Skip to content

Commit

Permalink
feat(db): Create SEO fields for job posting
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam-sharma7 committed Nov 11, 2024
1 parent cdc1265 commit 0b7cc43
Show file tree
Hide file tree
Showing 5 changed files with 526 additions and 1 deletion.
10 changes: 10 additions & 0 deletions server/db/migrations/0012_cool_luckman.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DO $$ BEGIN
CREATE TYPE "public"."employment_type" AS ENUM('FULL_TIME', 'PART_TIME', 'CONTRACTOR', 'TEMPORARY', 'INTERN', 'VOLUNTEER', 'PER_DIEM', 'OTHER');
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
ALTER TABLE "job_postings" ADD COLUMN "employment_type" employment_type[];--> statement-breakpoint
ALTER TABLE "job_postings" ADD COLUMN "job_locations" json;--> statement-breakpoint
ALTER TABLE "job_postings" ADD COLUMN "is_remote" boolean DEFAULT false NOT NULL;--> statement-breakpoint
ALTER TABLE "job_postings" ADD COLUMN "base_salary" json;
Loading

0 comments on commit 0b7cc43

Please sign in to comment.