efiber-prisma-schema 2.1.1 → 2.2.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-761b90eae45b5a66adb11d66765ab43961ed0387a8e0b49d52cbb49f75fbd65f",
2
+ "name": "prisma-client-2a76b6f5a1bdc22a92d8c7a11c3b63fd1b23167563a292d21eba70a917ce168b",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "default.js",
@@ -531,6 +531,7 @@ model User {
531
531
  Conduit Conduit[]
532
532
  ConduitTemplate ConduitTemplate[]
533
533
  WorkOrderComments WorkOrderComments[]
534
+ appVersions AppVersion[]
534
535
  }
535
536
 
536
537
  model MainProject {
@@ -905,6 +906,8 @@ model WorkOrder {
905
906
  buildingId String?
906
907
  WorkOrderPauses WorkOrderPauses[]
907
908
  WorkOrderComments WorkOrderComments[]
909
+
910
+ @@unique([mainId, projectId])
908
911
  }
909
912
 
910
913
  model WorkOrderChannel {
@@ -2220,9 +2223,9 @@ model Pole {
2220
2223
 
2221
2224
  address String? //Address of the pole
2222
2225
  material String? //Material of the pole
2223
- height Float? //Height of the pole in meters
2224
- topDiameter Float? //Top diameter of the pole in meters
2225
- bottomDiameter Float? //Bottom diameter of the pole in meters
2226
+ height String? //Height of the pole in meters
2227
+ topDiameter String? //Top diameter of the pole in meters
2228
+ bottomDiameter String? //Bottom diameter of the pole in meters
2226
2229
  downGuy Boolean @default(false) //Does the pole have a down guy?
2227
2230
  brand String? //Brand of the pole
2228
2231
  brandDescription String? //Description of the brand
@@ -3347,3 +3350,21 @@ model ReportTable {
3347
3350
  includeHeader Boolean @default(true)
3348
3351
  sortBy Json? //e.g {"column": "Client Name", "order": "asc"} for sorting the table by a specific column
3349
3352
  }
3353
+
3354
+ model AppVersion {
3355
+ id String @id @unique @default(uuid())
3356
+ no Int @default(autoincrement())
3357
+
3358
+ versionCode Int
3359
+ versionName String
3360
+ releaseNotes String?
3361
+
3362
+ createdAt DateTime @default(now())
3363
+ updatedAt DateTime @updatedAt
3364
+ deletedAt DateTime?
3365
+
3366
+ createdBy User @relation(fields: [createdById], references: [id])
3367
+ createdById String
3368
+
3369
+ apkUrl String? //URL to the APK file for Android
3370
+ }