@factor-wise/prisma-schema 2.0.97 → 2.0.99

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.97",
3
+ "version": "2.0.99",
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",
@@ -1132,17 +1132,16 @@ model emandates {
1132
1132
  model easebuzz_emandates {
1133
1133
  id Int @id @default(autoincrement())
1134
1134
 
1135
- leadID String @db.VarChar(100)
1136
- customerID String? @db.VarChar(100)
1135
+ leadID Int @unique
1136
+ customerID Int
1137
1137
 
1138
1138
  access_key String? @db.VarChar(255)
1139
1139
 
1140
1140
  transaction_id String @unique @db.VarChar(100)
1141
+ request_id String @unique @db.VarChar(100)
1141
1142
  mandate_id String? @db.VarChar(100)
1142
- vendor String @default("easebuzz")
1143
1143
 
1144
1144
  // Customer
1145
- customer_name String? @db.VarChar(255)
1146
1145
  customer_email String? @db.VarChar(255)
1147
1146
  customer_phone String? @db.VarChar(20)
1148
1147
 
@@ -1153,12 +1152,10 @@ model easebuzz_emandates {
1153
1152
  ifsc String? @db.VarChar(20)
1154
1153
  bank_code String? @db.VarChar(20)
1155
1154
 
1156
- // Mandate
1157
1155
  mandate_type String? @db.VarChar(50)
1158
1156
  auth_mode String? @db.VarChar(50)
1159
1157
 
1160
1158
  amount Decimal? @db.Decimal(15,2)
1161
- amount_rule String? @db.VarChar(20)
1162
1159
 
1163
1160
  frequency String? @db.VarChar(30)
1164
1161
 
@@ -1176,14 +1173,15 @@ model easebuzz_emandates {
1176
1173
  response_code String? @db.VarChar(100)
1177
1174
  response_message String? @db.Text
1178
1175
 
1179
- success_url String? @db.Text
1180
- failure_url String? @db.Text
1181
-
1182
- response_json Json?
1176
+ response_json String?
1177
+ webhook_json Json?
1183
1178
 
1184
1179
  created_at DateTime @default(now())
1185
1180
  updated_at DateTime @updatedAt
1186
1181
 
1182
+ lead leads? @relation(fields: [leadID], references: [leadID])
1183
+
1184
+
1187
1185
  //charges easebuzz_emandate_charge[]
1188
1186
 
1189
1187
  @@index([leadID])
@@ -1193,29 +1191,6 @@ model easebuzz_emandates {
1193
1191
  }
1194
1192
 
1195
1193
 
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
-
1219
1194
  model cibildata_archive {
1220
1195
  id Int @id @default(autoincrement())
1221
1196
  leadID Int
@@ -1423,7 +1398,7 @@ model leads {
1423
1398
  balanceHistory balance_history[]
1424
1399
  collectionFollowups collectionfollowup[]
1425
1400
  Payout Payout?
1426
- Easebuzz_Mandate Easebuzz_Mandate?
1401
+ easebuzz_emandates easebuzz_emandates?
1427
1402
  videokyc videokyc?
1428
1403
  eagreement eagreement?
1429
1404
  employmentHistory employment_history[]