efiber-prisma-schema 1.2.8 → 1.2.10

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.2.8",
3
+ "version": "1.2.10",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -361,6 +361,7 @@ model User {
361
361
  pboFat PboFat[]
362
362
  cable Cable[]
363
363
  SpliceClosure SpliceClosure[]
364
+ CableTemplate CableTemplate[]
364
365
  }
365
366
 
366
367
  model MainProject {
@@ -412,6 +413,8 @@ model Project {
412
413
  pboFat PboFat[]
413
414
  cableAttributes CableAtttributes[]
414
415
  spliceClosureAttributes SpliceClosureAttributes[]
416
+ Cable Cable[]
417
+ CableTemplate CableTemplate[]
415
418
  }
416
419
 
417
420
  model Audit {
@@ -1103,35 +1106,65 @@ model NetworkElement {
1103
1106
  pboFatTemplate PboFatTemplate[]
1104
1107
  Cable Cable[]
1105
1108
  SpliceClosure SpliceClosure[]
1109
+ CableTemplate CableTemplate[]
1106
1110
  }
1107
1111
 
1108
1112
  model Cable {
1109
- id String @id @unique @default(uuid())
1110
- no Int @default(autoincrement())
1111
- name String
1112
- type String //aerial/underground
1113
- capacity Int
1114
- fibersActive Int
1115
- fibersReserved Int
1116
- fibersDark Int
1117
- fibersDedicated Int
1118
- length Int?
1119
- brand String?
1120
- description String?
1113
+ id String @id @unique @default(uuid())
1114
+ no Int @default(autoincrement())
1121
1115
 
1122
- createdAt DateTime @default(now())
1123
- updatedAt DateTime @updatedAt
1124
- updatedBy User? @relation(fields: [updatedById], references: [id])
1116
+ status String @default("active")
1117
+ name String?
1118
+ terminalAccess Boolean @default(false)
1119
+ photos Json? //Upload files for photos
1120
+ zone Json? //Color code for zone
1121
+ geometry Json? //Icon for the cable
1122
+ attributes Json? //Attributes for the cable
1123
+
1124
+ createdAt DateTime @default(now())
1125
+ updatedAt DateTime @updatedAt
1126
+ deletedAt DateTime?
1127
+
1128
+ updatedBy User? @relation(fields: [updatedById], references: [id])
1125
1129
  updatedById String?
1126
- deletedAt DateTime?
1127
1130
 
1128
1131
  networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1129
1132
  networkElementId String
1130
1133
 
1131
- cableAttributes CableAtttributes[]
1134
+ project Project? @relation(fields: [projectId], references: [id])
1135
+ projectId String?
1132
1136
 
1133
- pboFatAttributes PboFatAttributes[]
1134
- spliceClosureAttributes SpliceClosureAttributes[]
1137
+ cableAttributes CableAtttributes[]
1138
+ PboFatAttributes PboFatAttributes[]
1139
+ SpliceClosureAttributes SpliceClosureAttributes[]
1140
+ }
1141
+
1142
+ model CableTemplate {
1143
+ id String @id @unique @default(uuid())
1144
+ no Int @default(autoincrement())
1145
+
1146
+ status String @default("active")
1147
+ name String?
1148
+ terminalAccess Boolean @default(false)
1149
+ photos Json? //Upload files for photos
1150
+ zone Json? //Color code for zone
1151
+ geometry Json? //Icon for the cable
1152
+ attributes Json? //Attributes for the cable
1153
+
1154
+ createdAt DateTime @default(now())
1155
+ updatedAt DateTime @updatedAt
1156
+ deletedAt DateTime?
1157
+
1158
+ updatedBy User? @relation(fields: [updatedById], references: [id])
1159
+ updatedById String?
1160
+
1161
+ networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
1162
+ networkElementId String
1163
+
1164
+ project Project? @relation(fields: [projectId], references: [id])
1165
+ projectId String?
1166
+
1167
+ cableAttributes CableAtttributes[]
1135
1168
  }
1136
1169
 
1137
1170
  model CableAtttributes {
@@ -1151,8 +1184,10 @@ model CableAtttributes {
1151
1184
  project Project? @relation(fields: [projectId], references: [id])
1152
1185
  projectId String?
1153
1186
 
1154
- material Material? @relation(fields: [materialId], references: [id])
1155
- materialId String?
1187
+ material Material? @relation(fields: [materialId], references: [id])
1188
+ materialId String?
1189
+ CableTemplate CableTemplate? @relation(fields: [cableTemplateId], references: [id])
1190
+ cableTemplateId String?
1156
1191
  }
1157
1192
 
1158
1193
  model Splitter {
@@ -1224,11 +1259,11 @@ model PboFat {
1224
1259
  }
1225
1260
 
1226
1261
  model PboFatAttributes {
1227
- id String @id @unique @default(uuid())
1228
- no Int @default(autoincrement())
1229
- name String
1230
- description String?
1231
- value String?
1262
+ id String @id @unique @default(uuid())
1263
+ no Int @default(autoincrement())
1264
+ name String
1265
+ description String?
1266
+ value String?
1232
1267
  visibleOnMobile Boolean @default(false)
1233
1268
 
1234
1269
  createdAt DateTime @default(now())