Backend: - Created migration 031 for employee_count and founded_year - Updated Company model with EmployeeCount and FoundedYear - Updated core DTO with website, employeeCount, foundedYear, description Frontend: - Added website input field to company form - Added employee count dropdown (1-10, 11-50, etc.) - Added founded year input - Added 'About Company' rich text editor - Updated API payload to send new fields
12 lines
600 B
SQL
12 lines
600 B
SQL
-- Migration: Add employee count and founded year to companies
|
|
-- Description: Adds employee_count and founded_year columns for company profile
|
|
|
|
-- Add employee_count column (VARCHAR for range like '1-10', '11-50', etc.)
|
|
ALTER TABLE companies ADD COLUMN IF NOT EXISTS employee_count VARCHAR(50);
|
|
|
|
-- Add founded_year column
|
|
ALTER TABLE companies ADD COLUMN IF NOT EXISTS founded_year INT;
|
|
|
|
-- Comments
|
|
COMMENT ON COLUMN companies.employee_count IS 'Number of employees range: 1-10, 11-50, 51-200, 201-500, 501-1000, 1001+';
|
|
COMMENT ON COLUMN companies.founded_year IS 'Year the company was founded';
|