@factor-wise/prisma-schema 2.0.87 → 2.0.89

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.87",
3
+ "version": "2.0.89",
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",
@@ -756,7 +756,7 @@ model customer_extended {
756
756
  isBtCase Boolean @default(false)
757
757
  attempts Int? @default(0)
758
758
  lastAttempt DateTime?
759
- verifyAttempts Int @default(0)
759
+ verifyAttempts Int? @default(0)
760
760
  verifyLastAttempt DateTime?
761
761
  otpExpiresAt DateTime?
762
762
  latitude Decimal? @db.Decimal(10, 7)
@@ -2674,6 +2674,7 @@ model lms_users {
2674
2674
  callAssignedLeads leads[] @relation("CallAssignedUser")
2675
2675
  sanctionedLeads leads[] @relation("SanctionAssignedUser")
2676
2676
  collectionAssignedLeads leads[] @relation("CollectionAssignedUser")
2677
+ paymentDatesCreated payment_block_dates[] @relation("UserCreatedPaymentDates")
2677
2678
  }
2678
2679
 
2679
2680
  model lms_users_permissions {
@@ -3369,6 +3370,23 @@ model dsa_roles {
3369
3370
  vendors vendors[]
3370
3371
  }
3371
3372
 
3373
+ model payment_block_dates {
3374
+ id Int @id @default(autoincrement())
3375
+ date DateTime @db.Date
3376
+ reason String? @db.VarChar(255)
3377
+ isActive Boolean @default(true)
3378
+
3379
+ createdById Int?
3380
+
3381
+ createdBy lms_users? @relation("UserCreatedPaymentDates", fields: [createdById], references: [userID])
3382
+
3383
+ createdAt DateTime @default(now())
3384
+ updatedAt DateTime @updatedAt
3385
+
3386
+ @@unique([date])
3387
+ @@index([createdById])
3388
+ }
3389
+
3372
3390
  enum commission_type {
3373
3391
  PERCENTAGE // % based
3374
3392
  FIXED // per lead fixed amount