- Add is_featured column to jobs table (migration) - Update Job model and Service to support featured jobs - Update JobHandler to expose featured jobs API - Support filtering by featured status in GET /jobs - Frontend: Fetch and display featured jobs from API - Frontend: Update Job type definition
5 lines
248 B
SQL
5 lines
248 B
SQL
-- Add is_featured column to jobs table
|
|
ALTER TABLE jobs ADD COLUMN IF NOT EXISTS is_featured BOOLEAN DEFAULT FALSE;
|
|
|
|
-- Create an index to optimize filtering by featured status
|
|
CREATE INDEX IF NOT EXISTS idx_jobs_is_featured ON jobs(is_featured);
|