@factor-wise/prisma-schema 2.0.85 → 2.0.87
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 +34 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -756,6 +756,9 @@ model customer_extended {
|
|
|
756
756
|
isBtCase Boolean @default(false)
|
|
757
757
|
attempts Int? @default(0)
|
|
758
758
|
lastAttempt DateTime?
|
|
759
|
+
verifyAttempts Int @default(0)
|
|
760
|
+
verifyLastAttempt DateTime?
|
|
761
|
+
otpExpiresAt DateTime?
|
|
759
762
|
latitude Decimal? @db.Decimal(10, 7)
|
|
760
763
|
longitude Decimal? @db.Decimal(10, 7)
|
|
761
764
|
selfieAttempts Int? @default(0)
|
|
@@ -764,6 +767,7 @@ model customer_extended {
|
|
|
764
767
|
@@index([latitude, longitude])
|
|
765
768
|
}
|
|
766
769
|
|
|
770
|
+
|
|
767
771
|
model customer_credit_remarks {
|
|
768
772
|
id Int @id @default(autoincrement())
|
|
769
773
|
customerId Int
|
|
@@ -3126,6 +3130,9 @@ model vendors {
|
|
|
3126
3130
|
parent vendors? @relation("VendorHierarchy", fields: [parentId], references: [id])
|
|
3127
3131
|
children vendors[] @relation("VendorHierarchy")
|
|
3128
3132
|
|
|
3133
|
+
roleId Int?
|
|
3134
|
+
role dsa_roles? @relation(fields: [roleId], references: [id])
|
|
3135
|
+
|
|
3129
3136
|
leads vendor_leads[]
|
|
3130
3137
|
campaigns campaigns[]
|
|
3131
3138
|
activityLogs activity_logs[]
|
|
@@ -3335,6 +3342,33 @@ model customer_app {
|
|
|
3335
3342
|
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
3336
3343
|
}
|
|
3337
3344
|
|
|
3345
|
+
model dsa_permissions {
|
|
3346
|
+
id Int @id @default(autoincrement())
|
|
3347
|
+
module String
|
|
3348
|
+
name String @unique
|
|
3349
|
+
description String?
|
|
3350
|
+
|
|
3351
|
+
createdAt DateTime @default(now())
|
|
3352
|
+
updatedAt DateTime @updatedAt
|
|
3353
|
+
|
|
3354
|
+
@@index([module])
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
model dsa_roles {
|
|
3358
|
+
id Int @id @default(autoincrement())
|
|
3359
|
+
name String @unique
|
|
3360
|
+
description String?
|
|
3361
|
+
|
|
3362
|
+
permissionIds Json
|
|
3363
|
+
|
|
3364
|
+
isActive Boolean @default(true)
|
|
3365
|
+
|
|
3366
|
+
createdAt DateTime @default(now())
|
|
3367
|
+
updatedAt DateTime @updatedAt
|
|
3368
|
+
|
|
3369
|
+
vendors vendors[]
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3338
3372
|
enum commission_type {
|
|
3339
3373
|
PERCENTAGE // % based
|
|
3340
3374
|
FIXED // per lead fixed amount
|