efiber-prisma-schema 1.16.0 → 1.16.2

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.16.0",
3
+ "version": "1.16.2",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,7 @@
1
+ -- AlterTable
2
+ ALTER TABLE "Cable" ADD COLUMN "isSubcable" BOOLEAN NOT NULL DEFAULT false,
3
+ ADD COLUMN "parentCableId" TEXT,
4
+ ADD COLUMN "parentCableName" TEXT;
5
+
6
+ -- AddForeignKey
7
+ ALTER TABLE "Cable" ADD CONSTRAINT "Cable_parentCableId_fkey" FOREIGN KEY ("parentCableId") REFERENCES "Cable"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -0,0 +1,2 @@
1
+ -- AlterTable
2
+ ALTER TABLE "Conduit" ADD COLUMN "namePrefix" TEXT;
@@ -0,0 +1,2 @@
1
+ -- AlterTable
2
+ ALTER TABLE "SpliceClosure" ALTER COLUMN "spliceClosureMaximumCapacity" SET DATA TYPE TEXT;
@@ -1664,6 +1664,8 @@ model Conduit {
1664
1664
  updatedAt DateTime @updatedAt
1665
1665
  deletedAt DateTime?
1666
1666
 
1667
+ namePrefix String?
1668
+
1667
1669
  asBuiltCoordinates Json? //As built coordinates
1668
1670
  isInstalled Boolean @default(false)
1669
1671
  installationDate DateTime?
@@ -2001,7 +2003,7 @@ model SpliceClosure {
2001
2003
  comments String?
2002
2004
 
2003
2005
  // Reporting mirrors
2004
- spliceClosureMaximumCapacity Int? //Maximum capacity of the Splice Closure
2006
+ spliceClosureMaximumCapacity String? //Maximum capacity of the Splice Closure
2005
2007
  placeOfInstallation String? //ID to an Infrastructure element
2006
2008
  address String? //Address of the Splice Closure
2007
2009
  previousEquipmentType String? //Type of the previous equipment