@factor-wise/prisma-schema 1.0.28 → 2.0.1
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 +4 -3
- package/prisma/schema.prisma +43 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factor-wise/prisma-schema",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
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",
|
|
@@ -26,9 +26,10 @@
|
|
|
26
26
|
"author": "Factor Wise",
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@prisma/client": "^
|
|
29
|
+
"@prisma/client": "^7.2.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"
|
|
32
|
+
"@types/node": "^25.0.3",
|
|
33
|
+
"prisma": "^7.2.0"
|
|
33
34
|
}
|
|
34
35
|
}
|
package/prisma/schema.prisma
CHANGED
|
@@ -4,7 +4,6 @@ generator client {
|
|
|
4
4
|
|
|
5
5
|
datasource db {
|
|
6
6
|
provider = "mysql"
|
|
7
|
-
url = env("DATABASE_URL")
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
model address {
|
|
@@ -534,6 +533,12 @@ model collectionfollowup {
|
|
|
534
533
|
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
535
534
|
followup_type Int @default(0)
|
|
536
535
|
reason String? @db.Text
|
|
536
|
+
|
|
537
|
+
lead leads @relation(fields: [leadID], references: [leadID], onDelete: Cascade)
|
|
538
|
+
loan loan @relation(fields: [loanNo], references: [loanNo], onDelete: Cascade)
|
|
539
|
+
|
|
540
|
+
@@index([leadID])
|
|
541
|
+
@@index([loanNo])
|
|
537
542
|
}
|
|
538
543
|
|
|
539
544
|
model collectionrefund {
|
|
@@ -688,6 +693,8 @@ model customer_credit_remarks {
|
|
|
688
693
|
creditRemark String @db.Text
|
|
689
694
|
createdBy Int
|
|
690
695
|
createdDate DateTime? @default(now()) @db.DateTime(0)
|
|
696
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
697
|
+
@@index([leadID], map: "approval_leadID_fkey")
|
|
691
698
|
}
|
|
692
699
|
|
|
693
700
|
/// 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
|
|
@@ -963,6 +970,7 @@ model cibildata_archive {
|
|
|
963
970
|
@@index([leadID], map: "leadID")
|
|
964
971
|
}
|
|
965
972
|
|
|
973
|
+
|
|
966
974
|
model finbox_aa_dow_st {
|
|
967
975
|
id Int @id
|
|
968
976
|
customerID Int
|
|
@@ -1143,6 +1151,9 @@ model leads {
|
|
|
1143
1151
|
collections collection[]
|
|
1144
1152
|
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
1145
1153
|
loan loan?
|
|
1154
|
+
collectionFollowups collectionfollowup[]
|
|
1155
|
+
creditRemarks customer_credit_remarks[]
|
|
1156
|
+
|
|
1146
1157
|
|
|
1147
1158
|
@@index([customerID], map: "leadcustomerID")
|
|
1148
1159
|
}
|
|
@@ -1286,34 +1297,37 @@ model legal_notices {
|
|
|
1286
1297
|
|
|
1287
1298
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1288
1299
|
model loan {
|
|
1289
|
-
id
|
|
1290
|
-
loanID
|
|
1291
|
-
leadID
|
|
1292
|
-
loanNo
|
|
1293
|
-
customerID
|
|
1294
|
-
disbursalAmount
|
|
1295
|
-
disbursalDate
|
|
1296
|
-
disbursalTime
|
|
1297
|
-
disbursalRefrenceNo
|
|
1298
|
-
accountNo
|
|
1299
|
-
accountType
|
|
1300
|
-
bankIfsc
|
|
1301
|
-
bank
|
|
1302
|
-
bankBranch
|
|
1303
|
-
chequeDetails
|
|
1304
|
-
pdDate
|
|
1305
|
-
pdDoneBy
|
|
1306
|
-
deduction
|
|
1307
|
-
remarks
|
|
1308
|
-
status
|
|
1309
|
-
rejReason
|
|
1310
|
-
companyAccountNo
|
|
1311
|
-
ip
|
|
1312
|
-
disbursedBy
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1300
|
+
id Int @id @default(autoincrement())
|
|
1301
|
+
loanID Int
|
|
1302
|
+
leadID Int @unique
|
|
1303
|
+
loanNo String @unique
|
|
1304
|
+
customerID Int?
|
|
1305
|
+
disbursalAmount Float
|
|
1306
|
+
disbursalDate String? @db.Text
|
|
1307
|
+
disbursalTime DateTime @default(dbgenerated("'00:00:00'")) @db.Time(0)
|
|
1308
|
+
disbursalRefrenceNo String?
|
|
1309
|
+
accountNo String @db.VarChar(100)
|
|
1310
|
+
accountType String @db.VarChar(100)
|
|
1311
|
+
bankIfsc String @db.VarChar(100)
|
|
1312
|
+
bank String
|
|
1313
|
+
bankBranch String
|
|
1314
|
+
chequeDetails String
|
|
1315
|
+
pdDate DateTime @db.Date
|
|
1316
|
+
pdDoneBy String @db.VarChar(100)
|
|
1317
|
+
deduction Float @default(0)
|
|
1318
|
+
remarks String
|
|
1319
|
+
status loan_status
|
|
1320
|
+
rejReason String? @db.VarChar(256)
|
|
1321
|
+
companyAccountNo String @default("")
|
|
1322
|
+
ip String @db.VarChar(100)
|
|
1323
|
+
disbursedBy Int?
|
|
1324
|
+
acutalDisbursalAmount Int?
|
|
1325
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1326
|
+
allocate_date DateTime? @default(now()) @db.DateTime(0)
|
|
1327
|
+
allocated_by String? @db.VarChar(64)
|
|
1328
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
1329
|
+
exported Boolean @default(false)
|
|
1330
|
+
collectionFollowups collectionfollowup[]
|
|
1317
1331
|
}
|
|
1318
1332
|
|
|
1319
1333
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|