@factor-wise/prisma-schema 2.0.54 → 2.0.56

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": "@factor-wise/prisma-schema",
3
- "version": "2.0.54",
3
+ "version": "2.0.56",
4
4
  "description": "Shared Prisma schema and generated client for Factor Wise projects",
5
5
  "main": "generated/client/index.js",
6
6
  "types": "generated/client/index.d.ts",
@@ -1217,6 +1217,7 @@ model leads {
1217
1217
  bankstatement bankstatement[]
1218
1218
  callHistories callhistory[]
1219
1219
  callhistorylogs callhistorylogs[]
1220
+ notifications notifications[]
1220
1221
  collections collection[]
1221
1222
  customer customer? @relation(fields: [customerID], references: [customerID])
1222
1223
  loan loan?
@@ -1530,6 +1531,14 @@ model notifications {
1530
1531
  mtype String @default("crm") @db.VarChar(216)
1531
1532
  uid String? @db.VarChar(64)
1532
1533
  otp String? @db.Text
1534
+ lead leads @relation(fields: [leadID], references: [leadID])
1535
+
1536
+ @@index([leadID])
1537
+ @@index([createdDate])
1538
+ @@index([type])
1539
+
1540
+ @@index([leadID, createdDate])
1541
+ @@index([leadID, type])
1533
1542
  }
1534
1543
 
1535
1544
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
@@ -2461,6 +2470,10 @@ model lms_users {
2461
2470
  branch String? @db.VarChar(100)
2462
2471
  username String @unique(map: "username") @db.VarChar(100)
2463
2472
  password String @db.VarChar(255)
2473
+ otp String? @db.VarChar(255)
2474
+ attempts Int?
2475
+ expire_at DateTime? @default(now()) @db.Timestamp(0)
2476
+ isVerified Boolean @default(false)
2464
2477
  role String? @db.VarChar(50)
2465
2478
  status String? @default("Active") @db.VarChar(20)
2466
2479
  session_id String? @db.VarChar(255)