efiber-prisma-schema 1.2.9 → 1.2.11
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 +16 -14
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -1113,12 +1113,13 @@ model Cable {
|
|
|
1113
1113
|
id String @id @unique @default(uuid())
|
|
1114
1114
|
no Int @default(autoincrement())
|
|
1115
1115
|
|
|
1116
|
-
status
|
|
1117
|
-
name
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1116
|
+
status String @default("active")
|
|
1117
|
+
name String?
|
|
1118
|
+
terminalAccess Boolean @default(false)
|
|
1119
|
+
photos Json? //Upload files for photos
|
|
1120
|
+
zone Json? //Color code for zone
|
|
1121
|
+
geometry Json? //Icon for the cable
|
|
1122
|
+
attributes Json? //Attributes for the cable
|
|
1122
1123
|
|
|
1123
1124
|
createdAt DateTime @default(now())
|
|
1124
1125
|
updatedAt DateTime @updatedAt
|
|
@@ -1142,12 +1143,13 @@ model CableTemplate {
|
|
|
1142
1143
|
id String @id @unique @default(uuid())
|
|
1143
1144
|
no Int @default(autoincrement())
|
|
1144
1145
|
|
|
1145
|
-
status
|
|
1146
|
-
name
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1146
|
+
status String @default("active")
|
|
1147
|
+
name String?
|
|
1148
|
+
terminalAccess Boolean @default(false)
|
|
1149
|
+
photos Json? //Upload files for photos
|
|
1150
|
+
zone Json? //Color code for zone
|
|
1151
|
+
geometry Json? //Icon for the cable
|
|
1152
|
+
attributes Json? //Attributes for the cable
|
|
1151
1153
|
|
|
1152
1154
|
createdAt DateTime @default(now())
|
|
1153
1155
|
updatedAt DateTime @updatedAt
|
|
@@ -1176,8 +1178,8 @@ model CableAtttributes {
|
|
|
1176
1178
|
updatedAt DateTime @updatedAt
|
|
1177
1179
|
deletedAt DateTime?
|
|
1178
1180
|
|
|
1179
|
-
cable Cable @relation(fields: [cableId], references: [id])
|
|
1180
|
-
cableId String
|
|
1181
|
+
cable Cable? @relation(fields: [cableId], references: [id])
|
|
1182
|
+
cableId String?
|
|
1181
1183
|
|
|
1182
1184
|
project Project? @relation(fields: [projectId], references: [id])
|
|
1183
1185
|
projectId String?
|