gohorsejobs/backend/migrations/030_add_salary_negotiable.sql
Tiago Yamamoto d6bb579260 feat: add salary options with toggle and candidate proposal
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
2025-12-26 15:23:22 -03:00

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';