mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
add sql
This commit is contained in:
21
backend/sql/1-create_person.sql
Normal file
21
backend/sql/1-create_person.sql
Normal file
@ -0,0 +1,21 @@
|
||||
-- Table: public.Person
|
||||
|
||||
-- DROP TABLE IF EXISTS public."Person";
|
||||
|
||||
CREATE TABLE IF NOT EXISTS public."Person"
|
||||
(
|
||||
id integer NOT NULL DEFAULT nextval('"Person_id_seq"'::regclass),
|
||||
email character varying(128) COLLATE pg_catalog."default" NOT NULL,
|
||||
password character varying(128) COLLATE pg_catalog."default" NOT NULL,
|
||||
displayname character varying(128) COLLATE pg_catalog."default" NOT NULL,
|
||||
date_of_birth date,
|
||||
available boolean,
|
||||
enabled boolean NOT NULL DEFAULT false,
|
||||
place_of_living character varying(128) COLLATE pg_catalog."default",
|
||||
CONSTRAINT "Person_pkey" PRIMARY KEY (id)
|
||||
)
|
||||
|
||||
TABLESPACE pg_default;
|
||||
|
||||
ALTER TABLE IF EXISTS public."Person"
|
||||
OWNER to pg_database_owner;
|
Reference in New Issue
Block a user