blink/backend/sql/2-create_activation_link.sql
xfarrow ad43563c05 Update SQL
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
2023-10-12 21:00:51 +02:00

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;