efiber-prisma-schema 1.13.5 → 1.13.6

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.13.5",
3
+ "version": "1.13.6",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,24 @@
1
+ -- AlterTable
2
+ ALTER TABLE "Building" ADD COLUMN "pboFatId" TEXT;
3
+
4
+ -- AlterTable
5
+ ALTER TABLE "Conduit" ADD COLUMN "deploymentPhase" TEXT;
6
+
7
+ -- AlterTable
8
+ ALTER TABLE "FDTSRO" ADD COLUMN "splitter1" TEXT;
9
+
10
+ -- AlterTable
11
+ ALTER TABLE "SFU" ADD COLUMN "buildingId" TEXT,
12
+ ADD COLUMN "gponAddress" TEXT,
13
+ ADD COLUMN "linkToDispatch" TEXT,
14
+ ADD COLUMN "macAddress" TEXT,
15
+ ADD COLUMN "pboFatId" TEXT;
16
+
17
+ -- AddForeignKey
18
+ ALTER TABLE "SFU" ADD CONSTRAINT "SFU_pboFatId_fkey" FOREIGN KEY ("pboFatId") REFERENCES "PboFat"("id") ON DELETE SET NULL ON UPDATE CASCADE;
19
+
20
+ -- AddForeignKey
21
+ ALTER TABLE "SFU" ADD CONSTRAINT "SFU_buildingId_fkey" FOREIGN KEY ("buildingId") REFERENCES "Building"("id") ON DELETE SET NULL ON UPDATE CASCADE;
22
+
23
+ -- AddForeignKey
24
+ ALTER TABLE "Building" ADD CONSTRAINT "Building_pboFatId_fkey" FOREIGN KEY ("pboFatId") REFERENCES "PboFat"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -1640,7 +1640,8 @@ model Conduit {
1640
1640
  isInRevision Boolean @default(false)
1641
1641
  installationStatus String? @default("pending") //pending, approved, in-revision
1642
1642
 
1643
- address String? //Address of the conduit
1643
+ address String? //Address of the conduit
1644
+ deploymentPhase String? //Deployment phase of the conduit
1644
1645
  trenchConfiguration String? //Trench configuration for the conduit
1645
1646
  trenchDepth Float? //Trench depth for the conduit
1646
1647
  backfillMaterial String? //Backfill material for the conduit
@@ -1905,6 +1906,8 @@ model PboFat {
1905
1906
 
1906
1907
  dependencies PreviousEquipment[]
1907
1908
  Revision Revision[]
1909
+ SFU SFU[]
1910
+ Building Building[]
1908
1911
 
1909
1912
  @@index([nodeId])
1910
1913
  @@index([clusterId])
@@ -2488,6 +2491,7 @@ model FDTSRO {
2488
2491
  previousEquipmentId String? //ID of the previous equipment
2489
2492
  nextEquipmentType String? //Type of the next equipment
2490
2493
  nextEquipmentId String? //ID of the next equipment
2494
+ splitter1 String? //1:2, 1:4, 1:8 etc
2491
2495
  brand String?
2492
2496
  brandDescription String? //Description of the brand
2493
2497
  materialListReference String? //Reference to the material list
@@ -2579,6 +2583,10 @@ model SFU {
2579
2583
  isInstalled Boolean @default(false)
2580
2584
  installationDate DateTime?
2581
2585
 
2586
+ linkToDispatch String? //Link to the dispatch system
2587
+ macAddress String? //MAC address of the Router in the SFU
2588
+ gponAddress String? //GPON address of the SFU
2589
+
2582
2590
  isInRevision Boolean @default(false)
2583
2591
  installationStatus String? @default("pending") //pending, approved, in-revision
2584
2592
 
@@ -2609,9 +2617,14 @@ model SFU {
2609
2617
  installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
2610
2618
  installationId String?
2611
2619
 
2620
+ pboFat PboFat? @relation(fields: [pboFatId], references: [id])
2621
+ pboFatId String?
2622
+
2612
2623
  qrCodeTag qrCodeTag[]
2613
2624
  workOrders WorkOrder[]
2614
2625
  Revision Revision[]
2626
+ Building Building? @relation(fields: [buildingId], references: [id])
2627
+ buildingId String?
2615
2628
  }
2616
2629
 
2617
2630
  model SFUTemplate {
@@ -2708,6 +2721,10 @@ model Building {
2708
2721
  installation NetworkElementInstallation? @relation(fields: [installationId], references: [id])
2709
2722
  installationId String?
2710
2723
 
2724
+ pboFat PboFat? @relation(fields: [pboFatId], references: [id])
2725
+ pboFatId String?
2726
+
2727
+ sfu SFU[]
2711
2728
  qrCodeTag qrCodeTag[]
2712
2729
  workOrders WorkOrder[]
2713
2730
  Revision Revision[]