@factor-wise/prisma-schema 2.0.95 → 2.0.97
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 +93 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -1129,6 +1129,93 @@ model emandates {
|
|
|
1129
1129
|
emandate_charge emandate_charge[]
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
|
+
model easebuzz_emandates {
|
|
1133
|
+
id Int @id @default(autoincrement())
|
|
1134
|
+
|
|
1135
|
+
leadID String @db.VarChar(100)
|
|
1136
|
+
customerID String? @db.VarChar(100)
|
|
1137
|
+
|
|
1138
|
+
access_key String? @db.VarChar(255)
|
|
1139
|
+
|
|
1140
|
+
transaction_id String @unique @db.VarChar(100)
|
|
1141
|
+
mandate_id String? @db.VarChar(100)
|
|
1142
|
+
vendor String @default("easebuzz")
|
|
1143
|
+
|
|
1144
|
+
// Customer
|
|
1145
|
+
customer_name String? @db.VarChar(255)
|
|
1146
|
+
customer_email String? @db.VarChar(255)
|
|
1147
|
+
customer_phone String? @db.VarChar(20)
|
|
1148
|
+
|
|
1149
|
+
// Bank
|
|
1150
|
+
account_holder_name String? @db.VarChar(255)
|
|
1151
|
+
account_number String? @db.VarChar(100)
|
|
1152
|
+
account_type String? @db.VarChar(50)
|
|
1153
|
+
ifsc String? @db.VarChar(20)
|
|
1154
|
+
bank_code String? @db.VarChar(20)
|
|
1155
|
+
|
|
1156
|
+
// Mandate
|
|
1157
|
+
mandate_type String? @db.VarChar(50)
|
|
1158
|
+
auth_mode String? @db.VarChar(50)
|
|
1159
|
+
|
|
1160
|
+
amount Decimal? @db.Decimal(15,2)
|
|
1161
|
+
amount_rule String? @db.VarChar(20)
|
|
1162
|
+
|
|
1163
|
+
frequency String? @db.VarChar(30)
|
|
1164
|
+
|
|
1165
|
+
start_date DateTime?
|
|
1166
|
+
end_date DateTime?
|
|
1167
|
+
|
|
1168
|
+
status String? @db.VarChar(50)
|
|
1169
|
+
sub_status String? @db.VarChar(50)
|
|
1170
|
+
|
|
1171
|
+
umrn String? @db.VarChar(100)
|
|
1172
|
+
bank_reference_number String? @db.VarChar(100)
|
|
1173
|
+
|
|
1174
|
+
authorization String? @db.Text
|
|
1175
|
+
|
|
1176
|
+
response_code String? @db.VarChar(100)
|
|
1177
|
+
response_message String? @db.Text
|
|
1178
|
+
|
|
1179
|
+
success_url String? @db.Text
|
|
1180
|
+
failure_url String? @db.Text
|
|
1181
|
+
|
|
1182
|
+
response_json Json?
|
|
1183
|
+
|
|
1184
|
+
created_at DateTime @default(now())
|
|
1185
|
+
updated_at DateTime @updatedAt
|
|
1186
|
+
|
|
1187
|
+
//charges easebuzz_emandate_charge[]
|
|
1188
|
+
|
|
1189
|
+
@@index([leadID])
|
|
1190
|
+
@@index([customerID])
|
|
1191
|
+
@@index([transaction_id])
|
|
1192
|
+
@@index([status])
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
model Easebuzz_Mandate {
|
|
1197
|
+
|
|
1198
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
1199
|
+
transactionId String @unique
|
|
1200
|
+
leadID Int @unique
|
|
1201
|
+
requestId String?
|
|
1202
|
+
accessKey String?
|
|
1203
|
+
mandateId String?
|
|
1204
|
+
amount Decimal
|
|
1205
|
+
frequency String
|
|
1206
|
+
authMode String
|
|
1207
|
+
mandateType String
|
|
1208
|
+
status String
|
|
1209
|
+
htmlGenerated Boolean @default(false)
|
|
1210
|
+
webhookPayload Json?
|
|
1211
|
+
createdAt DateTime @default(now())
|
|
1212
|
+
updatedAt DateTime @updatedAt
|
|
1213
|
+
|
|
1214
|
+
lead leads? @relation(fields: [leadID], references: [leadID])
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1132
1219
|
model cibildata_archive {
|
|
1133
1220
|
id Int @id @default(autoincrement())
|
|
1134
1221
|
leadID Int
|
|
@@ -1336,6 +1423,7 @@ model leads {
|
|
|
1336
1423
|
balanceHistory balance_history[]
|
|
1337
1424
|
collectionFollowups collectionfollowup[]
|
|
1338
1425
|
Payout Payout?
|
|
1426
|
+
Easebuzz_Mandate Easebuzz_Mandate?
|
|
1339
1427
|
videokyc videokyc?
|
|
1340
1428
|
eagreement eagreement?
|
|
1341
1429
|
employmentHistory employment_history[]
|
|
@@ -2910,6 +2998,11 @@ model creadit_improve_leads {
|
|
|
2910
2998
|
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
2911
2999
|
sanctionalloUID Int
|
|
2912
3000
|
loanType lead_loan_type @default(improve_credit)
|
|
3001
|
+
consentOtp String?
|
|
3002
|
+
consentVerify Boolean @default(false)
|
|
3003
|
+
consentAt DateTime? @default(now()) @db.Timestamp(0)
|
|
3004
|
+
|
|
3005
|
+
|
|
2913
3006
|
|
|
2914
3007
|
customer credit_improve_customer? @relation(fields: [customerID], references: [ID])
|
|
2915
3008
|
creditApprovals credit_improve_approval[] @relation("CreditImproveApprovalToLead")
|