efiber-prisma-schema 1.5.2 → 1.6.1
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 +1 -1
- package/prisma/schema.prisma +237 -11
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -372,6 +372,13 @@ model User {
|
|
|
372
372
|
Cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
373
373
|
clusterId String?
|
|
374
374
|
projectPhaseLog projectPhaseLog[]
|
|
375
|
+
ZoneNro ZoneNro[]
|
|
376
|
+
Pole Pole[]
|
|
377
|
+
Manhole Manhole[]
|
|
378
|
+
Loop Loop[]
|
|
379
|
+
FDTSRO FDTSRO[]
|
|
380
|
+
SFU SFU[]
|
|
381
|
+
Building Building[]
|
|
375
382
|
}
|
|
376
383
|
|
|
377
384
|
model MainProject {
|
|
@@ -429,6 +436,13 @@ model Project {
|
|
|
429
436
|
CentralOffice CentralOffice[]
|
|
430
437
|
qrCode qrCode[]
|
|
431
438
|
projectPhaseLog projectPhaseLog[]
|
|
439
|
+
ZoneNro ZoneNro[]
|
|
440
|
+
Pole Pole[]
|
|
441
|
+
Manhole Manhole[]
|
|
442
|
+
Loop Loop[]
|
|
443
|
+
FDTSRO FDTSRO[]
|
|
444
|
+
SFU SFU[]
|
|
445
|
+
Building Building[]
|
|
432
446
|
}
|
|
433
447
|
|
|
434
448
|
model projectPhaseLog {
|
|
@@ -1141,6 +1155,13 @@ model NetworkElement {
|
|
|
1141
1155
|
SpliceClosure SpliceClosure[]
|
|
1142
1156
|
CableTemplate CableTemplate[]
|
|
1143
1157
|
qrCode qrCode[]
|
|
1158
|
+
ZoneNro ZoneNro[]
|
|
1159
|
+
Pole Pole[]
|
|
1160
|
+
Manhole Manhole[]
|
|
1161
|
+
Loop Loop[]
|
|
1162
|
+
FDTSRO FDTSRO[]
|
|
1163
|
+
SFU SFU[]
|
|
1164
|
+
Building Building[]
|
|
1144
1165
|
}
|
|
1145
1166
|
|
|
1146
1167
|
model Cable {
|
|
@@ -1154,6 +1175,7 @@ model Cable {
|
|
|
1154
1175
|
zone Json? //Color code for zone
|
|
1155
1176
|
geometry Json? //Icon for the cable
|
|
1156
1177
|
attributes Json? //Attributes for the cable
|
|
1178
|
+
coordinates Json?
|
|
1157
1179
|
|
|
1158
1180
|
createdAt DateTime @default(now())
|
|
1159
1181
|
updatedAt DateTime @updatedAt
|
|
@@ -1185,6 +1207,7 @@ model CableTemplate {
|
|
|
1185
1207
|
zone Json? //Color code for zone
|
|
1186
1208
|
geometry Json? //Icon for the cable
|
|
1187
1209
|
attributes Json? //Attributes for the cable
|
|
1210
|
+
coordinates Json?
|
|
1188
1211
|
|
|
1189
1212
|
createdAt DateTime @default(now())
|
|
1190
1213
|
updatedAt DateTime @updatedAt
|
|
@@ -1328,16 +1351,16 @@ model PboFatAttributes {
|
|
|
1328
1351
|
|
|
1329
1352
|
model SpliceClosure {
|
|
1330
1353
|
// TODO: Add the fields for previous/next equipment, CO and project phase
|
|
1331
|
-
id
|
|
1332
|
-
no
|
|
1333
|
-
name
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
description
|
|
1354
|
+
id String @id @unique @default(uuid())
|
|
1355
|
+
no Int @default(autoincrement())
|
|
1356
|
+
name String
|
|
1357
|
+
status String @default("active")
|
|
1358
|
+
terminalAccess Boolean @default(false)
|
|
1359
|
+
photos Json? //Upload files for photos
|
|
1360
|
+
zone Json? //Color code for zone
|
|
1361
|
+
geometry Json? //Icon for the PBO FAT
|
|
1362
|
+
attributes Json? //Attributes for the PBO FAT
|
|
1363
|
+
description String?
|
|
1341
1364
|
|
|
1342
1365
|
createdAt DateTime @default(now())
|
|
1343
1366
|
updatedAt DateTime @updatedAt
|
|
@@ -1375,6 +1398,202 @@ model SpliceClosureAttributes {
|
|
|
1375
1398
|
spliceClosureId String
|
|
1376
1399
|
}
|
|
1377
1400
|
|
|
1401
|
+
model ZoneNro {
|
|
1402
|
+
id String @id @unique @default(uuid())
|
|
1403
|
+
no Int @default(autoincrement())
|
|
1404
|
+
|
|
1405
|
+
status String @default("active")
|
|
1406
|
+
terminalAccess Boolean @default(false)
|
|
1407
|
+
photos Json?
|
|
1408
|
+
zone Json?
|
|
1409
|
+
geometry Json?
|
|
1410
|
+
attributes Json?
|
|
1411
|
+
|
|
1412
|
+
createdAt DateTime @default(now())
|
|
1413
|
+
updatedAt DateTime @updatedAt
|
|
1414
|
+
deletedAt DateTime?
|
|
1415
|
+
|
|
1416
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1417
|
+
updatedById String?
|
|
1418
|
+
|
|
1419
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1420
|
+
networkElementId String
|
|
1421
|
+
|
|
1422
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1423
|
+
projectId String?
|
|
1424
|
+
|
|
1425
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1426
|
+
clusterId String?
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
model Pole {
|
|
1430
|
+
id String @id @unique @default(uuid())
|
|
1431
|
+
no Int @default(autoincrement())
|
|
1432
|
+
|
|
1433
|
+
status String @default("active")
|
|
1434
|
+
terminalAccess Boolean @default(false)
|
|
1435
|
+
photos Json?
|
|
1436
|
+
zone Json?
|
|
1437
|
+
geometry Json?
|
|
1438
|
+
attributes Json?
|
|
1439
|
+
|
|
1440
|
+
createdAt DateTime @default(now())
|
|
1441
|
+
updatedAt DateTime @updatedAt
|
|
1442
|
+
deletedAt DateTime?
|
|
1443
|
+
|
|
1444
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1445
|
+
updatedById String?
|
|
1446
|
+
|
|
1447
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1448
|
+
networkElementId String
|
|
1449
|
+
|
|
1450
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1451
|
+
projectId String?
|
|
1452
|
+
|
|
1453
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1454
|
+
clusterId String?
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
model Manhole {
|
|
1458
|
+
id String @id @unique @default(uuid())
|
|
1459
|
+
no Int @default(autoincrement())
|
|
1460
|
+
|
|
1461
|
+
status String @default("active")
|
|
1462
|
+
terminalAccess Boolean @default(false)
|
|
1463
|
+
photos Json?
|
|
1464
|
+
zone Json?
|
|
1465
|
+
geometry Json?
|
|
1466
|
+
attributes Json?
|
|
1467
|
+
|
|
1468
|
+
createdAt DateTime @default(now())
|
|
1469
|
+
updatedAt DateTime @updatedAt
|
|
1470
|
+
deletedAt DateTime?
|
|
1471
|
+
|
|
1472
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1473
|
+
updatedById String?
|
|
1474
|
+
|
|
1475
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1476
|
+
networkElementId String
|
|
1477
|
+
|
|
1478
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1479
|
+
projectId String?
|
|
1480
|
+
|
|
1481
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1482
|
+
clusterId String?
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
model Loop {
|
|
1486
|
+
id String @id @unique @default(uuid())
|
|
1487
|
+
no Int @default(autoincrement())
|
|
1488
|
+
|
|
1489
|
+
status String @default("active")
|
|
1490
|
+
terminalAccess Boolean @default(false)
|
|
1491
|
+
photos Json?
|
|
1492
|
+
zone Json?
|
|
1493
|
+
geometry Json?
|
|
1494
|
+
attributes Json?
|
|
1495
|
+
|
|
1496
|
+
createdAt DateTime @default(now())
|
|
1497
|
+
updatedAt DateTime @updatedAt
|
|
1498
|
+
deletedAt DateTime?
|
|
1499
|
+
|
|
1500
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1501
|
+
updatedById String?
|
|
1502
|
+
|
|
1503
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1504
|
+
networkElementId String
|
|
1505
|
+
|
|
1506
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1507
|
+
projectId String?
|
|
1508
|
+
|
|
1509
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1510
|
+
clusterId String?
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
model FDTSRO {
|
|
1514
|
+
id String @id @unique @default(uuid())
|
|
1515
|
+
no Int @default(autoincrement())
|
|
1516
|
+
|
|
1517
|
+
status String @default("active")
|
|
1518
|
+
terminalAccess Boolean @default(false)
|
|
1519
|
+
photos Json?
|
|
1520
|
+
zone Json?
|
|
1521
|
+
geometry Json?
|
|
1522
|
+
attributes Json?
|
|
1523
|
+
|
|
1524
|
+
createdAt DateTime @default(now())
|
|
1525
|
+
updatedAt DateTime @updatedAt
|
|
1526
|
+
deletedAt DateTime?
|
|
1527
|
+
|
|
1528
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1529
|
+
updatedById String?
|
|
1530
|
+
|
|
1531
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1532
|
+
networkElementId String
|
|
1533
|
+
|
|
1534
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1535
|
+
projectId String?
|
|
1536
|
+
|
|
1537
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1538
|
+
clusterId String?
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
model SFU {
|
|
1542
|
+
id String @id @unique @default(uuid())
|
|
1543
|
+
no Int @default(autoincrement())
|
|
1544
|
+
|
|
1545
|
+
status String @default("active")
|
|
1546
|
+
terminalAccess Boolean @default(false)
|
|
1547
|
+
photos Json?
|
|
1548
|
+
zone Json?
|
|
1549
|
+
geometry Json?
|
|
1550
|
+
attributes Json?
|
|
1551
|
+
|
|
1552
|
+
createdAt DateTime @default(now())
|
|
1553
|
+
updatedAt DateTime @updatedAt
|
|
1554
|
+
deletedAt DateTime?
|
|
1555
|
+
|
|
1556
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1557
|
+
updatedById String?
|
|
1558
|
+
|
|
1559
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1560
|
+
networkElementId String
|
|
1561
|
+
|
|
1562
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1563
|
+
projectId String?
|
|
1564
|
+
|
|
1565
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1566
|
+
clusterId String?
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
model Building {
|
|
1570
|
+
id String @id @unique @default(uuid())
|
|
1571
|
+
no Int @default(autoincrement())
|
|
1572
|
+
|
|
1573
|
+
status String @default("active")
|
|
1574
|
+
terminalAccess Boolean @default(false)
|
|
1575
|
+
photos Json?
|
|
1576
|
+
zone Json?
|
|
1577
|
+
geometry Json?
|
|
1578
|
+
attributes Json?
|
|
1579
|
+
|
|
1580
|
+
createdAt DateTime @default(now())
|
|
1581
|
+
updatedAt DateTime @updatedAt
|
|
1582
|
+
deletedAt DateTime?
|
|
1583
|
+
|
|
1584
|
+
updatedBy User? @relation(fields: [updatedById], references: [id])
|
|
1585
|
+
updatedById String?
|
|
1586
|
+
|
|
1587
|
+
networkElement NetworkElement @relation(fields: [networkElementId], references: [id])
|
|
1588
|
+
networkElementId String
|
|
1589
|
+
|
|
1590
|
+
project Project? @relation(fields: [projectId], references: [id])
|
|
1591
|
+
projectId String?
|
|
1592
|
+
|
|
1593
|
+
cluster Cluster? @relation(fields: [clusterId], references: [id])
|
|
1594
|
+
clusterId String?
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1378
1597
|
model CentralOffice {
|
|
1379
1598
|
id String @id @unique @default(uuid())
|
|
1380
1599
|
no Int @default(autoincrement())
|
|
@@ -1405,7 +1624,14 @@ model Cluster {
|
|
|
1405
1624
|
centralOffice CentralOffice? @relation(fields: [centralOfficeId], references: [id])
|
|
1406
1625
|
centralOfficeId String?
|
|
1407
1626
|
|
|
1408
|
-
users
|
|
1627
|
+
users User[]
|
|
1628
|
+
ZoneNro ZoneNro[]
|
|
1629
|
+
Pole Pole[]
|
|
1630
|
+
Manhole Manhole[]
|
|
1631
|
+
Loop Loop[]
|
|
1632
|
+
FDTSRO FDTSRO[]
|
|
1633
|
+
SFU SFU[]
|
|
1634
|
+
Building Building[]
|
|
1409
1635
|
}
|
|
1410
1636
|
|
|
1411
1637
|
model qrCode {
|