@factor-wise/prisma-schema 1.0.27 → 1.0.28

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": "1.0.27",
3
+ "version": "1.0.28",
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",
@@ -502,7 +502,7 @@ model collection {
502
502
  collectedBy Int
503
503
  createdDate DateTime @default(now()) @db.DateTime(0)
504
504
  collectionStatus String @default("Approved") @db.VarChar(216)
505
- collectionStatusby String @default("no") @db.VarChar(216)
505
+ collectionStatusby Int?
506
506
  approvedDate DateTime? @db.DateTime(0)
507
507
  orderID String @default("no") @db.VarChar(216)
508
508
  excess_amount String? @db.Text
@@ -510,9 +510,14 @@ model collection {
510
510
  discount_waiver_amount String? @db.Text
511
511
  refund_utr_no String? @db.VarChar(256)
512
512
  s3key String?
513
+ collectedByUser lms_users @relation("CollectionCollectedByUser", fields: [collectedBy], references: [userID])
513
514
  lead leads @relation(fields: [leadID], references: [leadID])
515
+ statusUpdatedByUser lms_users? @relation("CollectionStatusUpdatedByUser", fields: [collectionStatusby], references: [userID])
516
+
514
517
 
515
518
  @@index([leadID], map: "leadID")
519
+ @@index([collectedBy])
520
+ @@index([collectionStatusby])
516
521
  }
517
522
 
518
523
  /// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
@@ -1849,26 +1854,26 @@ model user_ip_details {
1849
1854
 
1850
1855
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
1851
1856
  model users {
1852
- userID Int @id @default(autoincrement())
1853
- name String @db.VarChar(100)
1854
- email String
1855
- mobile String @db.VarChar(20)
1856
- did_no String? @db.VarChar(36)
1857
- branch String
1858
- userName String
1859
- password String
1860
- role users_role
1861
- status users_status @default(Active)
1862
- createdBy Int
1863
- createdDate DateTime @default(now()) @db.DateTime(0)
1864
- accessPer String @db.MediumText
1865
- utype String @default("ramfin-corp") @db.VarChar(216)
1866
- firebase_token String? @db.Text
1867
- device_token String? @db.Text
1868
- lip String @default("no") @db.VarChar(64)
1869
- convoque_login_id String? @db.Text
1870
- convoque_exten String? @db.Text
1871
- reloan_status reloan_status[]
1857
+ userID Int @id @default(autoincrement())
1858
+ name String @db.VarChar(100)
1859
+ email String
1860
+ mobile String @db.VarChar(20)
1861
+ did_no String? @db.VarChar(36)
1862
+ branch String
1863
+ userName String
1864
+ password String
1865
+ role users_role
1866
+ status users_status @default(Active)
1867
+ createdBy Int
1868
+ createdDate DateTime @default(now()) @db.DateTime(0)
1869
+ accessPer String @db.MediumText
1870
+ utype String @default("ramfin-corp") @db.VarChar(216)
1871
+ firebase_token String? @db.Text
1872
+ device_token String? @db.Text
1873
+ lip String @default("no") @db.VarChar(64)
1874
+ convoque_login_id String? @db.Text
1875
+ convoque_exten String? @db.Text
1876
+ reloan_status reloan_status[]
1872
1877
  }
1873
1878
 
1874
1879
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
@@ -2133,10 +2138,10 @@ model cibildata {
2133
2138
  leadID Int
2134
2139
  requestPayload Json
2135
2140
  responsePayload Json?
2136
- analyser_data Json?
2137
2141
  status String @default("pending") @db.VarChar(50)
2138
2142
  createdAt DateTime? @default(now()) @db.Timestamp(0)
2139
2143
  updatedAt DateTime? @default(now()) @db.Timestamp(0)
2144
+ analyser_data Json?
2140
2145
 
2141
2146
  @@index([leadID], map: "leadID")
2142
2147
  }
@@ -2218,6 +2223,8 @@ model lms_users {
2218
2223
  approvalsSanctioned approval[] @relation("ApprovalSanctionByUser")
2219
2224
  callhistory callhistory[]
2220
2225
  callhistorylogs callhistorylogs[]
2226
+ collectionsCollected collection[] @relation("CollectionCollectedByUser")
2227
+ collectionsStatusUpdated collection[] @relation("CollectionStatusUpdatedByUser")
2221
2228
  lms_users_permissions lms_users_permissions?
2222
2229
  reference reference[]
2223
2230
  }
@@ -2267,7 +2274,6 @@ model bankstatement {
2267
2274
  @@index([customerID], map: "bankstatement_ibfk_1")
2268
2275
  }
2269
2276
 
2270
-
2271
2277
  enum usersgoogle_oauth_provider {
2272
2278
  google
2273
2279
  facebook