efiber-prisma-schema 1.11.7 → 1.12.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efiber-prisma-schema",
3
- "version": "1.11.7",
3
+ "version": "1.12.1",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,5 @@
1
+ -- CreateEnum
2
+ CREATE TYPE "NetworkElementClassification" AS ENUM ('NetworkElement', 'InfrastructureElement', 'MapElement');
3
+
4
+ -- AlterTable
5
+ ALTER TABLE "NetworkElement" ADD COLUMN "classification" "NetworkElementClassification" NOT NULL DEFAULT 'NetworkElement';
@@ -0,0 +1,59 @@
1
+ -- AlterTable
2
+ ALTER TABLE "Building" ADD COLUMN "texts" JSONB;
3
+
4
+ -- AlterTable
5
+ ALTER TABLE "BuildingTemplate" ADD COLUMN "texts" JSONB;
6
+
7
+ -- AlterTable
8
+ ALTER TABLE "Cable" ADD COLUMN "texts" JSONB;
9
+
10
+ -- AlterTable
11
+ ALTER TABLE "CableTemplate" ADD COLUMN "texts" JSONB;
12
+
13
+ -- AlterTable
14
+ ALTER TABLE "FDTSRO" ADD COLUMN "texts" JSONB;
15
+
16
+ -- AlterTable
17
+ ALTER TABLE "FDTSROTemplate" ADD COLUMN "texts" JSONB;
18
+
19
+ -- AlterTable
20
+ ALTER TABLE "Loop" ADD COLUMN "texts" JSONB;
21
+
22
+ -- AlterTable
23
+ ALTER TABLE "LoopTemplate" ADD COLUMN "texts" JSONB;
24
+
25
+ -- AlterTable
26
+ ALTER TABLE "Manhole" ADD COLUMN "texts" JSONB;
27
+
28
+ -- AlterTable
29
+ ALTER TABLE "ManholeTemplate" ADD COLUMN "texts" JSONB;
30
+
31
+ -- AlterTable
32
+ ALTER TABLE "PboFat" ADD COLUMN "texts" JSONB;
33
+
34
+ -- AlterTable
35
+ ALTER TABLE "PboFatTemplate" ADD COLUMN "texts" JSONB;
36
+
37
+ -- AlterTable
38
+ ALTER TABLE "Pole" ADD COLUMN "texts" JSONB;
39
+
40
+ -- AlterTable
41
+ ALTER TABLE "PoleTemplate" ADD COLUMN "texts" JSONB;
42
+
43
+ -- AlterTable
44
+ ALTER TABLE "SFU" ADD COLUMN "texts" JSONB;
45
+
46
+ -- AlterTable
47
+ ALTER TABLE "SFUTemplate" ADD COLUMN "texts" JSONB;
48
+
49
+ -- AlterTable
50
+ ALTER TABLE "SpliceClosure" ADD COLUMN "texts" JSONB;
51
+
52
+ -- AlterTable
53
+ ALTER TABLE "SpliceClosureTemplate" ADD COLUMN "texts" JSONB;
54
+
55
+ -- AlterTable
56
+ ALTER TABLE "ZoneNro" ADD COLUMN "texts" JSONB;
57
+
58
+ -- AlterTable
59
+ ALTER TABLE "ZoneNroTemplate" ADD COLUMN "texts" JSONB;
@@ -7,6 +7,12 @@ datasource db {
7
7
  url = env("DATABASE_URL")
8
8
  }
9
9
 
10
+ enum NetworkElementClassification {
11
+ NetworkElement
12
+ InfrastructureElement
13
+ MapElement
14
+ }
15
+
10
16
  enum ProjectLevel {
11
17
  Subsidiary
12
18
  Client
@@ -1281,6 +1287,7 @@ model NetworkElement {
1281
1287
  createdAt DateTime @default(now())
1282
1288
  updatedAt DateTime @updatedAt
1283
1289
  deletedAt DateTime?
1290
+ classification NetworkElementClassification @default(NetworkElement)
1284
1291
 
1285
1292
  PboFat PboFat[]
1286
1293
  pboFatTemplate PboFatTemplate[]
@@ -1313,6 +1320,7 @@ model Cable {
1313
1320
  name String?
1314
1321
  terminalAccess Boolean @default(false)
1315
1322
  photos Json? //Upload files for photos
1323
+ texts Json? //Add text attributes to the cable
1316
1324
  zone Json? //Color code for zone
1317
1325
  geometry Json? //Icon for the cable
1318
1326
  attributes Json? //Attributes for the cable
@@ -1358,6 +1366,7 @@ model CableTemplate {
1358
1366
  name String?
1359
1367
  terminalAccess Boolean @default(false)
1360
1368
  photos Json? //Upload files for photos
1369
+ texts Json? //Add text attributes to the cable
1361
1370
  zone Json? //Color code for zone
1362
1371
  geometry Json? //Icon for the cable
1363
1372
  attributes Json? //Attributes for the cable
@@ -1428,6 +1437,7 @@ model PboFatTemplate {
1428
1437
  terminalAccess Boolean @default(false)
1429
1438
  name String?
1430
1439
  photos Json? //Upload files for photos
1440
+ texts Json? //Add text attributes to the PBO FAT
1431
1441
  zone Json? //Color code for zone
1432
1442
  geometry Json? //Icon for the PBO FAT
1433
1443
  attributes Json? //Attributes for the PBO FAT
@@ -1463,6 +1473,7 @@ model PboFat {
1463
1473
  terminalAccess Boolean @default(false)
1464
1474
  name String?
1465
1475
  photos Json? //Upload files for photos
1476
+ texts Json? //Add text attributes to the PBO FAT
1466
1477
  zone Json? //Color code for zone
1467
1478
  geometry Json? //Icon for the PBO FAT
1468
1479
  attributes Json? //Attributes for the PBO FAT
@@ -1542,6 +1553,7 @@ model SpliceClosure {
1542
1553
  status String @default("active")
1543
1554
  terminalAccess Boolean @default(false)
1544
1555
  photos Json? //Upload files for photos
1556
+ texts Json? //Add text attributes to the PBO FAT
1545
1557
  zone Json? //Color code for zone
1546
1558
  geometry Json? //Icon for the PBO FAT
1547
1559
  attributes Json? //Attributes for the PBO FAT
@@ -1589,6 +1601,7 @@ model SpliceClosureTemplate {
1589
1601
  status String @default("active")
1590
1602
  terminalAccess Boolean @default(false)
1591
1603
  photos Json? //Upload files for photos
1604
+ texts Json? //Add text attributes to the PBO FAT
1592
1605
  zone Json? //Color code for zone
1593
1606
  geometry Json? //Icon for the PBO FAT
1594
1607
  attributes Json? //Attributes for the PBO FAT
@@ -1649,6 +1662,7 @@ model ZoneNro {
1649
1662
  terminalAccess Boolean @default(false)
1650
1663
  name String?
1651
1664
  photos Json?
1665
+ texts Json? //Add text attributes to the zone
1652
1666
  zone Json?
1653
1667
  geometry Json?
1654
1668
  attributes Json?
@@ -1693,6 +1707,7 @@ model ZoneNroTemplate {
1693
1707
  terminalAccess Boolean @default(false)
1694
1708
  name String?
1695
1709
  photos Json?
1710
+ texts Json? //Add text attributes to the zone
1696
1711
  zone Json?
1697
1712
  geometry Json?
1698
1713
  attributes Json?
@@ -1726,6 +1741,7 @@ model Pole {
1726
1741
  terminalAccess Boolean @default(false)
1727
1742
  name String?
1728
1743
  photos Json?
1744
+ texts Json? //Add text attributes to the pole
1729
1745
  zone Json?
1730
1746
  geometry Json?
1731
1747
  attributes Json?
@@ -1767,6 +1783,7 @@ model PoleTemplate {
1767
1783
  terminalAccess Boolean @default(false)
1768
1784
  name String?
1769
1785
  photos Json?
1786
+ texts Json? //Add text attributes to the pole
1770
1787
  zone Json?
1771
1788
  geometry Json?
1772
1789
  attributes Json?
@@ -1799,6 +1816,7 @@ model Manhole {
1799
1816
  terminalAccess Boolean @default(false)
1800
1817
  name String?
1801
1818
  photos Json?
1819
+ texts Json? //Add text attributes to the manhole
1802
1820
  zone Json?
1803
1821
  geometry Json?
1804
1822
  attributes Json?
@@ -1840,6 +1858,7 @@ model ManholeTemplate {
1840
1858
  terminalAccess Boolean @default(false)
1841
1859
  name String?
1842
1860
  photos Json?
1861
+ texts Json? //Add text attributes to the manhole
1843
1862
  zone Json?
1844
1863
  geometry Json?
1845
1864
  attributes Json?
@@ -1872,6 +1891,7 @@ model Loop {
1872
1891
  terminalAccess Boolean @default(false)
1873
1892
  name String?
1874
1893
  photos Json?
1894
+ texts Json? //Add text attributes to the loop
1875
1895
  zone Json?
1876
1896
  geometry Json?
1877
1897
  attributes Json?
@@ -1913,6 +1933,7 @@ model LoopTemplate {
1913
1933
  terminalAccess Boolean @default(false)
1914
1934
  name String?
1915
1935
  photos Json?
1936
+ texts Json? //Add text attributes to the loop
1916
1937
  zone Json?
1917
1938
  geometry Json?
1918
1939
  attributes Json?
@@ -1945,6 +1966,7 @@ model FDTSRO {
1945
1966
  terminalAccess Boolean @default(false)
1946
1967
  name String?
1947
1968
  photos Json?
1969
+ texts Json? //Add text attributes to the FDTSRO
1948
1970
  zone Json?
1949
1971
  geometry Json?
1950
1972
  attributes Json?
@@ -1990,6 +2012,7 @@ model FDTSROTemplate {
1990
2012
  terminalAccess Boolean @default(false)
1991
2013
  name String?
1992
2014
  photos Json?
2015
+ texts Json? //Add text attributes to the FDTSRO
1993
2016
  zone Json?
1994
2017
  geometry Json?
1995
2018
  attributes Json?
@@ -2022,6 +2045,7 @@ model SFU {
2022
2045
  terminalAccess Boolean @default(false)
2023
2046
  name String?
2024
2047
  photos Json?
2048
+ texts Json? //Add text attributes to the SFU
2025
2049
  zone Json?
2026
2050
  geometry Json?
2027
2051
  attributes Json?
@@ -2064,6 +2088,7 @@ model SFUTemplate {
2064
2088
  terminalAccess Boolean @default(false)
2065
2089
  name String?
2066
2090
  photos Json?
2091
+ texts Json? //Add text attributes to the SFU
2067
2092
  zone Json?
2068
2093
  geometry Json?
2069
2094
  attributes Json?
@@ -2096,6 +2121,7 @@ model Building {
2096
2121
  terminalAccess Boolean @default(false)
2097
2122
  name String?
2098
2123
  photos Json?
2124
+ texts Json? //Add text attributes to the building
2099
2125
  zone Json?
2100
2126
  geometry Json?
2101
2127
  attributes Json?
@@ -2143,6 +2169,7 @@ model BuildingTemplate {
2143
2169
  terminalAccess Boolean @default(false)
2144
2170
  name String?
2145
2171
  photos Json?
2172
+ texts Json? //Add text attributes to the building
2146
2173
  zone Json?
2147
2174
  geometry Json?
2148
2175
  attributes Json?