@factor-wise/prisma-schema 2.0.88 → 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 +1 -1
- package/prisma/schema.prisma +18 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -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
|