1 CREATE TABLE page_restrictions (
2 pr_page INTEGER NULL REFERENCES page (page_id) ON DELETE CASCADE,
4 pr_level TEXT NOT NULL,
5 pr_cascade SMALLINT NOT NULL,
7 pr_expiry TIMESTAMPTZ NULL
9 ALTER TABLE page_restrictions ADD CONSTRAINT page_restrictions_pk PRIMARY KEY (pr_page,pr_type);