This commit is contained in:
xfarrow 2024-02-16 21:28:10 +01:00
parent 212a03a42f
commit 91eb4d4b56
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ CREATE TABLE IF NOT EXISTS public."OrganizationPost"
CONSTRAINT "AuthorIdFK" FOREIGN KEY (original_author)
REFERENCES public."Person" (id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE NO ACTION
ON DELETE CASCADE
NOT VALID,
CONSTRAINT "OrganizationIdFk" FOREIGN KEY (organization_id)
REFERENCES public."Organization" (id) MATCH SIMPLE

View File

@ -10,12 +10,12 @@ CREATE TABLE IF NOT EXISTS public."OrganizationAdministrator"
CONSTRAINT "OrganizationAdministratorOrganizationId" FOREIGN KEY (id_organization)
REFERENCES public."Organization" (id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE NO ACTION
ON DELETE CASCADE
NOT VALID,
CONSTRAINT "OrganizationAdministratorUserId" FOREIGN KEY (id_person)
REFERENCES public."Person" (id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE NO ACTION
ON DELETE CASCADE
)
TABLESPACE pg_default;