Backend: - Added migration 030_add_salary_negotiable.sql - Added SalaryNegotiable field to Job model Frontend: - Updated PostJobPage with salary mode toggle (fixed/range) - Added 'Candidato envia proposta' checkbox to hide salary - Updated job submission logic and confirmation display
6 lines
330 B
SQL
6 lines
330 B
SQL
-- Migration: Add salary_negotiable column to jobs table
|
|
-- Description: When true, salary is hidden and candidate sends proposal
|
|
|
|
ALTER TABLE jobs ADD COLUMN IF NOT EXISTS salary_negotiable BOOLEAN DEFAULT false;
|
|
|
|
COMMENT ON COLUMN jobs.salary_negotiable IS 'When true, salary is not displayed and candidate proposes their own';
|