mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
add sql
This commit is contained in:
18
backend/sql/3-create_organization.sql
Normal file
18
backend/sql/3-create_organization.sql
Normal file
@ -0,0 +1,18 @@
|
||||
-- Table: public.Organization
|
||||
|
||||
-- DROP TABLE IF EXISTS public."Organization";
|
||||
|
||||
CREATE TABLE IF NOT EXISTS public."Organization"
|
||||
(
|
||||
id integer NOT NULL DEFAULT nextval('"Organization_id_seq"'::regclass),
|
||||
name character varying(128) COLLATE pg_catalog."default" NOT NULL,
|
||||
location character varying COLLATE pg_catalog."default",
|
||||
description text COLLATE pg_catalog."default",
|
||||
is_hiring boolean,
|
||||
CONSTRAINT "Organization_pkey" PRIMARY KEY (id)
|
||||
)
|
||||
|
||||
TABLESPACE pg_default;
|
||||
|
||||
ALTER TABLE IF EXISTS public."Organization"
|
||||
OWNER to pg_database_owner;
|
Reference in New Issue
Block a user