blink/backend/sql/1-create_person.sql
2024-03-04 15:28:10 +01:00

22 lines
694 B
SQL

-- Table: public.Person
-- DROP TABLE IF EXISTS public."Person";
CREATE TABLE IF NOT EXISTS public."Person"
(
id SERIAL PRIMARY KEY,
email character varying(128) NOT NULL UNIQUE, -- Primary e-mail
password character varying(128) NOT NULL,
display_name character varying(128) NOT NULL,
date_of_birth date,
available boolean, -- Whether this person is available to be hired
enabled boolean NOT NULL DEFAULT false, -- Whether this profile is active
place_of_living character varying(128),
about_me character varying(4096),
qualification character varying(64)
)
TABLESPACE pg_default;
ALTER TABLE IF EXISTS public."Person"
OWNER to pg_database_owner;