blink/backend/sql/2-create_activation_link.sql

18 lines
487 B
SQL

-- Table: public.ActivationLink
-- DROP TABLE IF EXISTS public."ActivationLink";
CREATE TABLE IF NOT EXISTS public."ActivationLink"
(
identifier character varying PRIMARY KEY,
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;