CREATE TABLE public."DatasetExternalDataset" ( "Id" uuid DEFAULT public.uuid_generate_v4() NOT NULL, "Dataset" uuid NOT NULL, "ExternalDataset" uuid NOT NULL, "Role" numeric, "Data" character varying ); ALTER TABLE public."DatasetExternalDataset" OWNER TO :POSTGRES_USER; ALTER TABLE ONLY public."DatasetExternalDataset" ADD CONSTRAINT "DatasetExternalDataset_pkey" PRIMARY KEY ("Id"); ALTER TABLE ONLY public."DatasetExternalDataset" ADD CONSTRAINT fkey_datasetexternaldataset_dataset FOREIGN KEY ("Dataset") REFERENCES public."Dataset"("ID"); ALTER TABLE ONLY public."DatasetExternalDataset" ADD CONSTRAINT fkey_datasetexternaldataset_externaldataset FOREIGN KEY ("ExternalDataset") REFERENCES public."ExternalDataset"("Id");