efiber-prisma-schema 1.12.4 → 1.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `mapElementTemplateId` on the `Project` table. All the data in the column will be lost.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- DropForeignKey
|
|
8
|
+
ALTER TABLE "Project" DROP CONSTRAINT "Project_mapElementTemplateId_fkey";
|
|
9
|
+
|
|
10
|
+
-- AlterTable
|
|
11
|
+
ALTER TABLE "Project" DROP COLUMN "mapElementTemplateId";
|
|
12
|
+
|
|
13
|
+
-- CreateTable
|
|
14
|
+
CREATE TABLE "_MapElementTemplateToProject" (
|
|
15
|
+
"A" TEXT NOT NULL,
|
|
16
|
+
"B" TEXT NOT NULL,
|
|
17
|
+
|
|
18
|
+
CONSTRAINT "_MapElementTemplateToProject_AB_pkey" PRIMARY KEY ("A","B")
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
-- CreateIndex
|
|
22
|
+
CREATE INDEX "_MapElementTemplateToProject_B_index" ON "_MapElementTemplateToProject"("B");
|
|
23
|
+
|
|
24
|
+
-- AddForeignKey
|
|
25
|
+
ALTER TABLE "_MapElementTemplateToProject" ADD CONSTRAINT "_MapElementTemplateToProject_A_fkey" FOREIGN KEY ("A") REFERENCES "MapElementTemplate"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
26
|
+
|
|
27
|
+
-- AddForeignKey
|
|
28
|
+
ALTER TABLE "_MapElementTemplateToProject" ADD CONSTRAINT "_MapElementTemplateToProject_B_fkey" FOREIGN KEY ("B") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
package/prisma/schema.prisma
CHANGED
|
@@ -544,8 +544,7 @@ model Project {
|
|
|
544
544
|
SFUTemplate SFUTemplate[]
|
|
545
545
|
BuildingTemplate BuildingTemplate[]
|
|
546
546
|
usersOnline integrationProjectUserStatus[]
|
|
547
|
-
MapElementTemplate MapElementTemplate
|
|
548
|
-
mapElementTemplateId String?
|
|
547
|
+
MapElementTemplate MapElementTemplate[]
|
|
549
548
|
MapElement MapElement[]
|
|
550
549
|
}
|
|
551
550
|
|