blink/backend/sql/1-create_person.sql

20 lines
515 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,
2024-02-18 12:03:57 +01:00
email character varying(128) NOT NULL UNIQUE,
password character varying(128) NOT NULL,
display_name character varying(128) NOT NULL,
2023-10-12 12:23:18 +02:00
date_of_birth date,
available boolean,
enabled boolean NOT NULL DEFAULT false,
2024-02-18 12:03:57 +01:00
place_of_living character varying(128)
2023-10-12 12:23:18 +02:00
)
TABLESPACE pg_default;
ALTER TABLE IF EXISTS public."Person"
OWNER to pg_database_owner;