efiber-prisma-schema 1.11.7 → 1.12.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.11.7",
3
+ "version": "1.12.0",
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';
@@ -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[]