efiber-prisma-schema 1.4.0 → 1.5.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.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Database schema for eFiber",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1405,6 +1405,23 @@ model qrCode {
1405
1405
  cableId String?
1406
1406
 
1407
1407
  // one to many relation with pbo fat
1408
- pboFat PboFat? @relation(fields: [pboFatId], references: [id])
1409
- pboFatId String?
1408
+ pboFat PboFat? @relation(fields: [pboFatId], references: [id])
1409
+ pboFatId String?
1410
+ qrCodeTag qrCodeTag[]
1411
+ }
1412
+
1413
+ model qrCodeTag {
1414
+ id String @id @unique @default(uuid())
1415
+ no Int @default(autoincrement())
1416
+
1417
+ image String? @db.Text //Upload file for logo
1418
+ link String? @unique //where the qr code will redirect to
1419
+ scanned Boolean @default(false)
1420
+
1421
+ createdAt DateTime @default(now())
1422
+ updatedAt DateTime @updatedAt
1423
+ deletedAt DateTime?
1424
+
1425
+ qrCode qrCode @relation(fields: [qrCodeId], references: [id])
1426
+ qrCodeId String
1410
1427
  }