2023-10-12 12:23:18 +02:00
|
|
|
-- Table: public.OrganizationPost
|
|
|
|
|
|
|
|
-- DROP TABLE IF EXISTS public."OrganizationPost";
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS public."OrganizationPost"
|
|
|
|
(
|
2023-10-12 21:00:51 +02:00
|
|
|
id SERIAL PRIMARY KEY,
|
2023-10-12 12:23:18 +02:00
|
|
|
organization_id integer NOT NULL,
|
|
|
|
content text COLLATE pg_catalog."default" NOT NULL,
|
|
|
|
CONSTRAINT "OrganizationIdFk" FOREIGN KEY (organization_id)
|
|
|
|
REFERENCES public."Organization" (id) MATCH SIMPLE
|
|
|
|
ON UPDATE CASCADE
|
|
|
|
ON DELETE CASCADE
|
|
|
|
NOT VALID
|
|
|
|
)
|
|
|
|
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
|
|
|
|
ALTER TABLE IF EXISTS public."OrganizationPost"
|
|
|
|
OWNER to postgres;
|