mirror of
https://github.com/xfarrow/blink
synced 2024-12-10 23:15:16 +01:00
22 lines
694 B
SQL
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; |