efiber-prisma-schema 1.12.4 → 1.12.6
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.
|
Binary file
|
package/package.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `mapElementTemplateId` on the `Project` table. All the data in the column will be lost.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- DropForeignKey
|
|
8
|
+
ALTER TABLE "Project" DROP CONSTRAINT "Project_mapElementTemplateId_fkey";
|
|
9
|
+
|
|
10
|
+
-- AlterTable
|
|
11
|
+
ALTER TABLE "Project" DROP COLUMN "mapElementTemplateId";
|
|
12
|
+
|
|
13
|
+
-- CreateTable
|
|
14
|
+
CREATE TABLE "_MapElementTemplateToProject" (
|
|
15
|
+
"A" TEXT NOT NULL,
|
|
16
|
+
"B" TEXT NOT NULL,
|
|
17
|
+
|
|
18
|
+
CONSTRAINT "_MapElementTemplateToProject_AB_pkey" PRIMARY KEY ("A","B")
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
-- CreateIndex
|
|
22
|
+
CREATE INDEX "_MapElementTemplateToProject_B_index" ON "_MapElementTemplateToProject"("B");
|
|
23
|
+
|
|
24
|
+
-- AddForeignKey
|
|
25
|
+
ALTER TABLE "_MapElementTemplateToProject" ADD CONSTRAINT "_MapElementTemplateToProject_A_fkey" FOREIGN KEY ("A") REFERENCES "MapElementTemplate"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
26
|
+
|
|
27
|
+
-- AddForeignKey
|
|
28
|
+
ALTER TABLE "_MapElementTemplateToProject" ADD CONSTRAINT "_MapElementTemplateToProject_B_fkey" FOREIGN KEY ("B") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
-- AlterTable
|
|
2
|
+
ALTER TABLE "Building" ADD COLUMN "asBuiltCoordinates" JSONB;
|
|
3
|
+
|
|
4
|
+
-- AlterTable
|
|
5
|
+
ALTER TABLE "FDTSRO" ADD COLUMN "asBuiltCoordinates" JSONB;
|
|
6
|
+
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE "Loop" ADD COLUMN "asBuiltCoordinates" JSONB;
|
|
9
|
+
|
|
10
|
+
-- AlterTable
|
|
11
|
+
ALTER TABLE "Manhole" ADD COLUMN "asBuiltCoordinates" JSONB;
|
|
12
|
+
|
|
13
|
+
-- AlterTable
|
|
14
|
+
ALTER TABLE "PboFat" ADD COLUMN "asBuiltCoordinates" JSONB;
|
|
15
|
+
|
|
16
|
+
-- AlterTable
|
|
17
|
+
ALTER TABLE "Pole" ADD COLUMN "asBuiltCoordinates" JSONB;
|
|
18
|
+
|
|
19
|
+
-- AlterTable
|
|
20
|
+
ALTER TABLE "SFU" ADD COLUMN "asBuiltCoordinates" JSONB;
|
|
21
|
+
|
|
22
|
+
-- AlterTable
|
|
23
|
+
ALTER TABLE "SpliceClosure" ADD COLUMN "asBuiltCoordinates" JSONB;
|
package/prisma/schema.prisma
CHANGED
|
@@ -544,8 +544,7 @@ model Project {
|
|
|
544
544
|
SFUTemplate SFUTemplate[]
|
|
545
545
|
BuildingTemplate BuildingTemplate[]
|
|
546
546
|
usersOnline integrationProjectUserStatus[]
|
|
547
|
-
MapElementTemplate MapElementTemplate
|
|
548
|
-
mapElementTemplateId String?
|
|
547
|
+
MapElementTemplate MapElementTemplate[]
|
|
549
548
|
MapElement MapElement[]
|
|
550
549
|
}
|
|
551
550
|
|
|
@@ -1499,6 +1498,8 @@ model PboFat {
|
|
|
1499
1498
|
namePrefix String?
|
|
1500
1499
|
templateIndex Int?
|
|
1501
1500
|
|
|
1501
|
+
asBuiltCoordinates Json? //Coordinates when installed
|
|
1502
|
+
|
|
1502
1503
|
// Reporting mirrors
|
|
1503
1504
|
fatMaxCapacity Int? //Maximum capacity of the PBO FAT
|
|
1504
1505
|
fatExistingSubscribers Int? //Existing subscribers in the PBO FAT
|
|
@@ -1581,6 +1582,8 @@ model SpliceClosure {
|
|
|
1581
1582
|
namePrefix String?
|
|
1582
1583
|
templateIndex Int?
|
|
1583
1584
|
|
|
1585
|
+
asBuiltCoordinates Json? //Coordinates when installed
|
|
1586
|
+
|
|
1584
1587
|
// Reporting mirrors
|
|
1585
1588
|
spliceClosureMaxCapacity Int? //Maximum capacity of the Splice Closure
|
|
1586
1589
|
|
|
@@ -1772,6 +1775,8 @@ model Pole {
|
|
|
1772
1775
|
namePrefix String?
|
|
1773
1776
|
templateIndex Int?
|
|
1774
1777
|
|
|
1778
|
+
asBuiltCoordinates Json? //Coordinates when installed
|
|
1779
|
+
|
|
1775
1780
|
createdAt DateTime @default(now())
|
|
1776
1781
|
updatedAt DateTime @updatedAt
|
|
1777
1782
|
deletedAt DateTime?
|
|
@@ -1849,6 +1854,8 @@ model Manhole {
|
|
|
1849
1854
|
namePrefix String?
|
|
1850
1855
|
templateIndex Int?
|
|
1851
1856
|
|
|
1857
|
+
asBuiltCoordinates Json? //Coordinates when installed
|
|
1858
|
+
|
|
1852
1859
|
createdAt DateTime @default(now())
|
|
1853
1860
|
updatedAt DateTime @updatedAt
|
|
1854
1861
|
deletedAt DateTime?
|
|
@@ -1926,6 +1933,8 @@ model Loop {
|
|
|
1926
1933
|
namePrefix String?
|
|
1927
1934
|
templateIndex Int?
|
|
1928
1935
|
|
|
1936
|
+
asBuiltCoordinates Json? //Coordinates when installed
|
|
1937
|
+
|
|
1929
1938
|
createdAt DateTime @default(now())
|
|
1930
1939
|
updatedAt DateTime @updatedAt
|
|
1931
1940
|
deletedAt DateTime?
|
|
@@ -2003,6 +2012,8 @@ model FDTSRO {
|
|
|
2003
2012
|
namePrefix String?
|
|
2004
2013
|
templateIndex Int?
|
|
2005
2014
|
|
|
2015
|
+
asBuiltCoordinates Json? //Coordinates when installed
|
|
2016
|
+
|
|
2006
2017
|
// Reporting mirrors
|
|
2007
2018
|
fdtsroMaxCapacity Int? //Maximum capacity of the FDTSRO
|
|
2008
2019
|
|
|
@@ -2084,6 +2095,8 @@ model SFU {
|
|
|
2084
2095
|
namePrefix String?
|
|
2085
2096
|
templateIndex Int?
|
|
2086
2097
|
|
|
2098
|
+
asBuiltCoordinates Json? //Coordinates when installed
|
|
2099
|
+
|
|
2087
2100
|
createdAt DateTime @default(now())
|
|
2088
2101
|
updatedAt DateTime @updatedAt
|
|
2089
2102
|
deletedAt DateTime?
|
|
@@ -2162,6 +2175,8 @@ model Building {
|
|
|
2162
2175
|
namePrefix String?
|
|
2163
2176
|
templateIndex Int?
|
|
2164
2177
|
|
|
2178
|
+
asBuiltCoordinates Json? //Coordinates when installed
|
|
2179
|
+
|
|
2165
2180
|
// Reporting mirrors
|
|
2166
2181
|
totalFlats Int? //Total number of flats in the building
|
|
2167
2182
|
floorCount Int? //Number of floors in the building
|