efiber-prisma-schema 1.2.13 → 1.3.0

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.13",
3
+ "version": "1.3.0",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -362,6 +362,10 @@ model User {
362
362
  cable Cable[]
363
363
  SpliceClosure SpliceClosure[]
364
364
  CableTemplate CableTemplate[]
365
+ CentralOffice CentralOffice? @relation(fields: [centralOfficeId], references: [id])
366
+ centralOfficeId String?
367
+ Cluster Cluster? @relation(fields: [clusterId], references: [id])
368
+ clusterId String?
365
369
  }
366
370
 
367
371
  model MainProject {
@@ -415,6 +419,7 @@ model Project {
415
419
  spliceClosureAttributes SpliceClosureAttributes[]
416
420
  Cable Cable[]
417
421
  CableTemplate CableTemplate[]
422
+ CentralOffice CentralOffice[]
418
423
  }
419
424
 
420
425
  model Audit {
@@ -1168,11 +1173,11 @@ model CableTemplate {
1168
1173
  }
1169
1174
 
1170
1175
  model CableAtttributes {
1171
- id String @id @unique @default(uuid())
1172
- no Int @default(autoincrement())
1173
- name String
1174
- description String?
1175
- value String?
1176
+ id String @id @unique @default(uuid())
1177
+ no Int @default(autoincrement())
1178
+ name String
1179
+ description String?
1180
+ value String?
1176
1181
  visibleOnMobile Boolean @default(false)
1177
1182
 
1178
1183
  createdAt DateTime @default(now())
@@ -1335,3 +1340,36 @@ model SpliceClosureAttributes {
1335
1340
  spliceClosure SpliceClosure @relation(fields: [spliceClosureId], references: [id])
1336
1341
  spliceClosureId String
1337
1342
  }
1343
+
1344
+ model CentralOffice {
1345
+ id String @id @unique @default(uuid())
1346
+ no Int @default(autoincrement())
1347
+ name String @unique
1348
+
1349
+ createdAt DateTime @default(now())
1350
+ updatedAt DateTime @updatedAt
1351
+ deletedAt DateTime?
1352
+
1353
+ project Project? @relation(fields: [projectId], references: [id])
1354
+ projectId String?
1355
+
1356
+ users User[]
1357
+ Cluster Cluster[]
1358
+ }
1359
+
1360
+ model Cluster {
1361
+ id String @id @unique @default(uuid())
1362
+ no Int @default(autoincrement())
1363
+ name String @unique
1364
+
1365
+ createdAt DateTime @default(now())
1366
+ updatedAt DateTime @updatedAt
1367
+ deletedAt DateTime?
1368
+
1369
+ projectPhase String?
1370
+
1371
+ centralOffice CentralOffice? @relation(fields: [centralOfficeId], references: [id])
1372
+ centralOfficeId String?
1373
+
1374
+ users User[]
1375
+ }