@factor-wise/prisma-schema 2.0.8 → 2.0.10

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.8",
3
+ "version": "2.0.10",
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",
@@ -271,12 +271,19 @@ model appvedio {
271
271
  }
272
272
 
273
273
  model balance_history {
274
- id Int @id
275
- balance_date String? @db.Text
276
- disbused String? @db.LongText
277
- collection String? @db.LongText
278
- interest String? @db.LongText
279
- balance String? @db.LongText
274
+ id Int @id @default(autoincrement())
275
+ leadID Int
276
+ customerID Int
277
+ balance_date DateTime? @default(now()) @db.Timestamp(0)
278
+ consentId String?
279
+ txnId String?
280
+ responsePayload Json?
281
+ createdAt DateTime? @default(now()) @db.Timestamp(0)
282
+ updatedAt DateTime? @default(now()) @db.Timestamp(0)
283
+
284
+ lead leads @relation(fields: [leadID], references: [leadID], onDelete: Cascade)
285
+
286
+ @@index([leadID])
280
287
  }
281
288
 
282
289
  model bank_ifsc {
@@ -667,6 +674,7 @@ model customer {
667
674
  permanent_address String? @db.Text
668
675
  presalesassign Int?
669
676
  companyName String? @db.Text
677
+ step String? @db.VarChar(255)
670
678
  razorpay_contact_id String? @db.VarChar(100)
671
679
  addresses address[]
672
680
  bankstatement bankstatement[]
@@ -727,14 +735,14 @@ model customer_salary {
727
735
 
728
736
  model customeraccount {
729
737
  accountID Int @id @default(autoincrement())
730
- leadID Int
738
+ leadID Int?
731
739
  customerID Int?
732
740
  accountNo String @db.VarChar(100)
733
741
  accountType String @db.VarChar(100)
734
742
  bankIfsc String @db.VarChar(100)
735
743
  bank String
736
744
  bankBranch String
737
- ip String @db.VarChar(100)
745
+ ip String? @db.VarChar(100)
738
746
  credatedBy Int
739
747
  status customeraccount_status
740
748
  createdDate DateTime @default(now()) @db.DateTime(0)
@@ -896,19 +904,21 @@ model emis {
896
904
  model employer {
897
905
  employerID Int @id @default(autoincrement())
898
906
  customerID Int?
899
- employerName String
907
+ employerName String?
900
908
  empEmail String?
901
909
  empDob String?
902
910
  empSalary String?
911
+ employeeType customer_employeeType?
912
+ salaryMode String?
903
913
  empDesignation String?
904
914
  empWorkIndustry String?
905
915
  employment String?
906
- totalExperience String @default("0-6 Months")
907
- currentCompany String @default("0-6 Months")
908
- address String
909
- city String
910
- state String
911
- pincode BigInt
916
+ totalExperience String? @default("0-6 Months")
917
+ currentCompany String? @default("0-6 Months")
918
+ address String?
919
+ city String?
920
+ state String?
921
+ pincode BigInt?
912
922
  status employer_status @default(Not_Verified)
913
923
  verifiedBy Int @default(1)
914
924
  createdDate DateTime @db.DateTime(0)
@@ -1156,6 +1166,7 @@ model leads {
1156
1166
  callAssignUser lms_users @relation("CallAssignedUser", fields: [callAssign], references: [userID])
1157
1167
  collectionUser lms_users? @relation("CollectionAssignedUser", fields: [collectionUID], references: [userID])
1158
1168
  sanctionUser lms_users @relation("SanctionAssignedUser", fields: [sanctionalloUID], references: [userID])
1169
+ balanceHistory balance_history[]
1159
1170
 
1160
1171
  @@index([customerID], map: "leadcustomerID")
1161
1172
  }