efiber-prisma-schema 1.12.10 → 1.12.11
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,22 @@
|
|
|
1
|
+
-- CreateTable
|
|
2
|
+
CREATE TABLE "ClusterComments" (
|
|
3
|
+
"id" TEXT NOT NULL,
|
|
4
|
+
"no" SERIAL NOT NULL,
|
|
5
|
+
"comment" TEXT NOT NULL,
|
|
6
|
+
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
7
|
+
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
8
|
+
"deletedAt" TIMESTAMP(3),
|
|
9
|
+
"userId" TEXT NOT NULL,
|
|
10
|
+
"clusterId" TEXT NOT NULL,
|
|
11
|
+
|
|
12
|
+
CONSTRAINT "ClusterComments_pkey" PRIMARY KEY ("id")
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
-- CreateIndex
|
|
16
|
+
CREATE UNIQUE INDEX "ClusterComments_id_key" ON "ClusterComments"("id");
|
|
17
|
+
|
|
18
|
+
-- AddForeignKey
|
|
19
|
+
ALTER TABLE "ClusterComments" ADD CONSTRAINT "ClusterComments_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
20
|
+
|
|
21
|
+
-- AddForeignKey
|
|
22
|
+
ALTER TABLE "ClusterComments" ADD CONSTRAINT "ClusterComments_clusterId_fkey" FOREIGN KEY ("clusterId") REFERENCES "Cluster"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
package/prisma/schema.prisma
CHANGED
|
@@ -483,6 +483,7 @@ model User {
|
|
|
483
483
|
MapElementTemplate MapElementTemplate[]
|
|
484
484
|
MapElement MapElement[]
|
|
485
485
|
CentralOfficeUser CentralOfficeUser[]
|
|
486
|
+
ClusterComments ClusterComments[]
|
|
486
487
|
}
|
|
487
488
|
|
|
488
489
|
model MainProject {
|
|
@@ -2436,6 +2437,23 @@ model Cluster {
|
|
|
2436
2437
|
integrationUserLocation integrationUserLocation[]
|
|
2437
2438
|
MapElementTemplate MapElementTemplate[]
|
|
2438
2439
|
MapElement MapElement[]
|
|
2440
|
+
ClusterComments ClusterComments[]
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
model ClusterComments {
|
|
2444
|
+
id String @id @unique @default(uuid())
|
|
2445
|
+
no Int @default(autoincrement())
|
|
2446
|
+
|
|
2447
|
+
comment String
|
|
2448
|
+
createdAt DateTime @default(now())
|
|
2449
|
+
updatedAt DateTime @updatedAt
|
|
2450
|
+
deletedAt DateTime?
|
|
2451
|
+
|
|
2452
|
+
user User @relation(fields: [userId], references: [id])
|
|
2453
|
+
userId String
|
|
2454
|
+
|
|
2455
|
+
cluster Cluster @relation(fields: [clusterId], references: [id])
|
|
2456
|
+
clusterId String
|
|
2439
2457
|
}
|
|
2440
2458
|
|
|
2441
2459
|
model CentralOfficeTeam {
|
|
Binary file
|