@factor-wise/prisma-schema 2.0.6 → 2.0.8

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.6",
3
+ "version": "2.0.8",
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",
@@ -533,6 +533,7 @@ model collectionfollowup {
533
533
  createdDate DateTime @default(now()) @db.Timestamp(0)
534
534
  followup_type Int @default(0)
535
535
  reason String? @db.Text
536
+ s3key String?
536
537
 
537
538
  @@index([leadID])
538
539
  @@index([loanNo])
@@ -1100,10 +1101,13 @@ model eagreement {
1100
1101
  document_id String @db.VarChar(100)
1101
1102
  status String @db.VarChar(100)
1102
1103
  file_name String @db.VarChar(100)
1104
+ access_token String? @db.VarChar(100)
1103
1105
  isSigned Boolean @default(false)
1104
1106
  signedAt DateTime?
1107
+ updated_at DateTime? @default(now())
1105
1108
  createdAt DateTime @default(now())
1106
1109
 
1110
+
1107
1111
  @@index([loanNo])
1108
1112
  }
1109
1113
 
@@ -1131,7 +1135,7 @@ model leads {
1131
1135
  collectionUID Int?
1132
1136
  createdDate DateTime @default(now()) @db.Timestamp(0)
1133
1137
  alloUID String @default("no") @db.VarChar(216)
1134
- sanctionalloUID String @default("no") @db.VarChar(216)
1138
+ sanctionalloUID Int
1135
1139
  sanctionAppID String @default("no") @db.VarChar(216)
1136
1140
  entity_id String? @db.Text
1137
1141
  field_officer_id String? @db.Text
@@ -1149,6 +1153,9 @@ model leads {
1149
1153
  collections collection[]
1150
1154
  customer customer? @relation(fields: [customerID], references: [customerID])
1151
1155
  loan loan?
1156
+ callAssignUser lms_users @relation("CallAssignedUser", fields: [callAssign], references: [userID])
1157
+ collectionUser lms_users? @relation("CollectionAssignedUser", fields: [collectionUID], references: [userID])
1158
+ sanctionUser lms_users @relation("SanctionAssignedUser", fields: [sanctionalloUID], references: [userID])
1152
1159
 
1153
1160
  @@index([customerID], map: "leadcustomerID")
1154
1161
  }
@@ -2235,6 +2242,9 @@ model lms_users {
2235
2242
  collectionsStatusUpdated collection[] @relation("CollectionStatusUpdatedByUser")
2236
2243
  lms_users_permissions lms_users_permissions?
2237
2244
  reference reference[]
2245
+ callAssignedLeads leads[] @relation("CallAssignedUser")
2246
+ sanctionedLeads leads[] @relation("SanctionAssignedUser")
2247
+ collectionAssignedLeads leads[] @relation("CollectionAssignedUser")
2238
2248
  }
2239
2249
 
2240
2250
  model lms_users_permissions {