START TRANSACTION; CREATE TABLE "Project" ( "Id" uuid NOT NULL, "OrganizationId" uuid NOT NULL, "Name" text NULL, "CreationDate" timestamp without time zone NOT NULL, "RevisionDate" timestamp without time zone NOT NULL, "DeletedDate" timestamp without time zone NULL, CONSTRAINT "PK_Project" PRIMARY KEY ("Id"), CONSTRAINT "FK_Project_Organization_OrganizationId" FOREIGN KEY ("OrganizationId") REFERENCES "Organization" ("Id") ON DELETE CASCADE ); CREATE INDEX "IX_Project_DeletedDate" ON "Project" ("DeletedDate"); CREATE INDEX "IX_Project_OrganizationId" ON "Project" ("OrganizationId"); INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion") VALUES ('20220830185238_CreateProjectTable', '6.0.4'); COMMIT;