efiber-prisma-schema 1.10.13 → 1.10.14

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efiber-prisma-schema",
3
- "version": "1.10.13",
3
+ "version": "1.10.14",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,16 @@
1
+ -- CreateTable
2
+ CREATE TABLE "_CamusatClientToUser" (
3
+ "A" TEXT NOT NULL,
4
+ "B" TEXT NOT NULL,
5
+
6
+ CONSTRAINT "_CamusatClientToUser_AB_pkey" PRIMARY KEY ("A","B")
7
+ );
8
+
9
+ -- CreateIndex
10
+ CREATE INDEX "_CamusatClientToUser_B_index" ON "_CamusatClientToUser"("B");
11
+
12
+ -- AddForeignKey
13
+ ALTER TABLE "_CamusatClientToUser" ADD CONSTRAINT "_CamusatClientToUser_A_fkey" FOREIGN KEY ("A") REFERENCES "CamusatClient"("id") ON DELETE CASCADE ON UPDATE CASCADE;
14
+
15
+ -- AddForeignKey
16
+ ALTER TABLE "_CamusatClientToUser" ADD CONSTRAINT "_CamusatClientToUser_B_fkey" FOREIGN KEY ("B") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
@@ -1,3 +1,3 @@
1
1
  # Please do not edit this file manually
2
2
  # It should be added in your version-control system (e.g., Git)
3
- provider = "postgresql"
3
+ provider = "postgresql"
@@ -85,6 +85,7 @@ model CamusatClient {
85
85
 
86
86
  mainProject MainProject[]
87
87
  clientMaterial clientMaterial[]
88
+ users User[]
88
89
  }
89
90
 
90
91
  model Platform {
@@ -407,6 +408,7 @@ model User {
407
408
  BuildingTemplate BuildingTemplate[]
408
409
  integrationProjectUserStatus integrationProjectUserStatus[]
409
410
  integrationUserLocation integrationUserLocation[]
411
+ CamusatClient CamusatClient[]
410
412
  }
411
413
 
412
414
  model MainProject {