Skip to content

Commit 1f10079

Browse files
authored
Merge pull request #36 from olyaiy/fix/schema-jobs-column-mismatch
fix: align schema.sql jobs table with application code
2 parents 7b882c1 + 2e74018 commit 1f10079

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

schema.sql

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,16 @@ EXECUTE FUNCTION update_updated_at_column();
5555
CREATE TABLE IF NOT EXISTS public.jobs (
5656
id uuid NOT NULL DEFAULT uuid_generate_v4(),
5757
user_id uuid NOT NULL,
58-
title text NOT NULL,
59-
company text NULL,
60-
description text NULL,
58+
company_name text NULL,
59+
position_title text NOT NULL,
6160
job_url text NULL,
61+
description text NULL,
62+
location text NULL,
63+
salary_range text NULL,
64+
keywords jsonb NULL DEFAULT '[]'::jsonb,
65+
work_location text NULL DEFAULT 'in_person'::text,
66+
employment_type text NULL DEFAULT 'full_time'::text,
67+
is_active boolean NULL DEFAULT true,
6268
created_at timestamp with time zone NOT NULL DEFAULT timezone('utc'::text, now()),
6369
updated_at timestamp with time zone NOT NULL DEFAULT timezone('utc'::text, now()),
6470
CONSTRAINT jobs_pkey PRIMARY KEY (id),

0 commit comments

Comments
 (0)