mirror of
https://github.com/xfarrow/blink
synced 2025-03-24 12:45:20 +01:00
modificato: backend/sql/1-create_person.sql modificato: backend/sql/2-create_activation_link.sql modificato: backend/sql/3-create_organization.sql modificato: backend/sql/4-create_organization_post.sql
18 lines
517 B
SQL
18 lines
517 B
SQL
-- Table: public.ActivationLink
|
|
|
|
-- DROP TABLE IF EXISTS public."ActivationLink";
|
|
|
|
CREATE TABLE IF NOT EXISTS public."ActivationLink"
|
|
(
|
|
identifier character varying PRIMARY KEY COLLATE pg_catalog."default" ,
|
|
person_id integer NOT NULL,
|
|
CONSTRAINT "PersonActivationLinkFK" FOREIGN KEY (person_id)
|
|
REFERENCES public."Person" (id) MATCH SIMPLE
|
|
ON UPDATE CASCADE
|
|
ON DELETE CASCADE
|
|
)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
ALTER TABLE IF EXISTS public."ActivationLink"
|
|
OWNER to pg_database_owner; |