@factor-wise/prisma-schema 2.0.34 → 2.0.36

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.34",
3
+ "version": "2.0.36",
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",
@@ -2360,10 +2360,12 @@ model lms_users {
2360
2360
  }
2361
2361
 
2362
2362
  model lms_users_permissions {
2363
- id BigInt @id @default(autoincrement()) @db.UnsignedBigInt
2364
- user_id Int @unique
2365
- sidebar_access Json?
2366
- profile_access Json?
2363
+ id BigInt @id @default(autoincrement()) @db.UnsignedBigInt
2364
+ user_id Int @unique
2365
+ sidebar_access Json?
2366
+ profile_access Json?
2367
+ reports_sidebar Json?
2368
+ reports_access Json?
2367
2369
  created_at DateTime? @default(now()) @db.Timestamp(0)
2368
2370
  updated_at DateTime? @default(now()) @db.Timestamp(0)
2369
2371
  lms_users lms_users @relation(fields: [user_id], references: [userID], onDelete: Cascade, onUpdate: NoAction, map: "lms_users_permissions_ibfk_1")
@@ -2397,6 +2399,7 @@ model bankstatement {
2397
2399
  uploadedDate DateTime? @db.Date
2398
2400
  analyser_data Json?
2399
2401
  user_requirement Json?
2402
+ bank_analysis bank_analysis?
2400
2403
  customer customer @relation(fields: [customerID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_1")
2401
2404
  leads leads? @relation(fields: [leadID], references: [leadID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_3")
2402
2405
 
@@ -2404,6 +2407,21 @@ model bankstatement {
2404
2407
  @@index([customerID], map: "bankstatement_ibfk_1")
2405
2408
  }
2406
2409
 
2410
+ model bank_analysis {
2411
+ id Int @id @default(autoincrement())
2412
+ statementId Int @unique
2413
+ customerID Int
2414
+ clienttrnxid String
2415
+ analysisData Json?
2416
+ status bankanalysisStatus
2417
+ updated_at DateTime @updatedAt
2418
+ createdAt DateTime @default(now())
2419
+ bankstatement bankstatement @relation(fields: [statementId], references: [id])
2420
+
2421
+ @@index([statementId], map: "statementId")
2422
+ @@index([customerID], map: "bankstatement_ibfk_1")
2423
+ }
2424
+
2407
2425
  model disbursement_requests {
2408
2426
  id BigInt @id @default(autoincrement())
2409
2427
  loanId Int @unique()
@@ -2851,3 +2869,10 @@ enum PayoutStatus {
2851
2869
  REJECTED
2852
2870
  REVERSED
2853
2871
  }
2872
+
2873
+ enum bankanalysisStatus {
2874
+ PENDING
2875
+ PROCESSING
2876
+ SUCCEEDED
2877
+ FAILED
2878
+ }