mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
Create Job Offer, not complete yet
This commit is contained in:
15
backend/sql/7-tag.sql
Normal file
15
backend/sql/7-tag.sql
Normal file
@ -0,0 +1,15 @@
|
||||
-- Table: public.Tag
|
||||
|
||||
-- DROP TABLE IF EXISTS public."Tag";
|
||||
|
||||
CREATE TABLE IF NOT EXISTS public."Tag"
|
||||
(
|
||||
id SERIAL,
|
||||
tag character varying(256) NOT NULL,
|
||||
CONSTRAINT "Tag_pkey" PRIMARY KEY (id)
|
||||
)
|
||||
|
||||
TABLESPACE pg_default;
|
||||
|
||||
ALTER TABLE IF EXISTS public."Tag"
|
||||
OWNER to postgres;
|
26
backend/sql/8-create_job_offer.sql
Normal file
26
backend/sql/8-create_job_offer.sql
Normal file
@ -0,0 +1,26 @@
|
||||
-- Table: public.JobOffer
|
||||
|
||||
-- DROP TABLE IF EXISTS public."JobOffer";
|
||||
|
||||
CREATE TABLE IF NOT EXISTS public."JobOffer"
|
||||
(
|
||||
id SERIAL,
|
||||
title character varying(2048) NOT NULL,
|
||||
description character varying(4096),
|
||||
requirements character varying(4096),
|
||||
salary money NOT NULL,
|
||||
salary_frequency character varying(64) NOT NULL,
|
||||
location character varying(256),
|
||||
organization_id integer,
|
||||
CONSTRAINT "JobOffer_pkey" PRIMARY KEY (id),
|
||||
CONSTRAINT "OrganizationFK" FOREIGN KEY (organization_id)
|
||||
REFERENCES public."Organization" (id) MATCH SIMPLE
|
||||
ON UPDATE CASCADE
|
||||
ON DELETE CASCADE
|
||||
NOT VALID
|
||||
)
|
||||
|
||||
TABLESPACE pg_default;
|
||||
|
||||
ALTER TABLE IF EXISTS public."JobOffer"
|
||||
OWNER to postgres;
|
BIN
backend/sql/InsertIntoTag.7z
Normal file
BIN
backend/sql/InsertIntoTag.7z
Normal file
Binary file not shown.
Reference in New Issue
Block a user