blink/backend/sql/1-create_person.sql

20 lines
624 B
MySQL
Raw Normal View History

2023-10-12 12:23:18 +02:00
-- Table: public.Person
-- DROP TABLE IF EXISTS public."Person";
CREATE TABLE IF NOT EXISTS public."Person"
(
id SERIAL PRIMARY KEY,
2023-10-12 12:23:18 +02:00
email character varying(128) COLLATE pg_catalog."default" NOT NULL,
password character varying(128) COLLATE pg_catalog."default" NOT NULL,
2023-10-12 18:05:14 +02:00
display_name character varying(128) COLLATE pg_catalog."default" NOT NULL,
2023-10-12 12:23:18 +02:00
date_of_birth date,
available boolean,
enabled boolean NOT NULL DEFAULT false,
place_of_living character varying(128) COLLATE pg_catalog."default"
2023-10-12 12:23:18 +02:00
)
TABLESPACE pg_default;
ALTER TABLE IF EXISTS public."Person"
OWNER to pg_database_owner;