@factor-wise/prisma-schema 1.0.3 → 1.0.5
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 +6 -1
- package/prisma/schema.prisma +144 -124
- package/.github/workflows/publish.yml +0 -45
- package/tsconfig.json +0 -25
package/package.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factor-wise/prisma-schema",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
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",
|
|
7
|
+
"files": [
|
|
8
|
+
"prisma/",
|
|
9
|
+
"package.json",
|
|
10
|
+
"generated/client/"
|
|
11
|
+
],
|
|
7
12
|
"scripts": {
|
|
8
13
|
"generate": "prisma generate",
|
|
9
14
|
"build": "npm run generate",
|
package/prisma/schema.prisma
CHANGED
|
@@ -18,7 +18,7 @@ model address {
|
|
|
18
18
|
pincode BigInt?
|
|
19
19
|
status address_status @default(Not_Verified)
|
|
20
20
|
verifiedBy Int @default(1)
|
|
21
|
-
createdDate DateTime
|
|
21
|
+
createdDate DateTime @db.DateTime(0)
|
|
22
22
|
address2 String? @db.Text
|
|
23
23
|
landmark String? @db.Text
|
|
24
24
|
area String? @db.Text
|
|
@@ -39,7 +39,7 @@ model alternative_contact {
|
|
|
39
39
|
ctype String @db.VarChar(256)
|
|
40
40
|
createdBy Int @default(1)
|
|
41
41
|
status String? @db.VarChar(256)
|
|
42
|
-
createdDate DateTime
|
|
42
|
+
createdDate DateTime? @default(now()) @db.DateTime(0)
|
|
43
43
|
|
|
44
44
|
@@index([customerID], map: "referencecontactID")
|
|
45
45
|
}
|
|
@@ -75,7 +75,7 @@ model app_lead {
|
|
|
75
75
|
otp String? @default("") @db.VarChar(20)
|
|
76
76
|
isVerified Boolean @default(dbgenerated("b'0'")) @db.Bit(1)
|
|
77
77
|
employeeType String? @db.VarChar(216)
|
|
78
|
-
createdDate DateTime
|
|
78
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
79
79
|
loanRequeried Float?
|
|
80
80
|
purposeloan String? @db.VarChar(256)
|
|
81
81
|
companyName String @db.VarChar(256)
|
|
@@ -118,7 +118,7 @@ model appcustloanlog {
|
|
|
118
118
|
mobile String @default("") @db.VarChar(100)
|
|
119
119
|
name String? @db.VarChar(100)
|
|
120
120
|
conatctDetails String? @db.LongText
|
|
121
|
-
createddate DateTime
|
|
121
|
+
createddate DateTime? @default(now()) @db.DateTime(0)
|
|
122
122
|
type String @default("") @db.VarChar(512)
|
|
123
123
|
utmSource String? @db.VarChar(256)
|
|
124
124
|
IsRooted String @default("false") @db.VarChar(256)
|
|
@@ -132,7 +132,7 @@ model appcustloanlog1 {
|
|
|
132
132
|
mobile String @db.VarChar(100)
|
|
133
133
|
name String? @db.VarChar(100)
|
|
134
134
|
conatctDetails String? @db.LongText
|
|
135
|
-
createddate DateTime
|
|
135
|
+
createddate DateTime @db.DateTime(0)
|
|
136
136
|
type String @db.VarChar(512)
|
|
137
137
|
}
|
|
138
138
|
|
|
@@ -142,7 +142,7 @@ model appcustloanlog21 {
|
|
|
142
142
|
mobile String @db.VarChar(100)
|
|
143
143
|
name String? @db.VarChar(100)
|
|
144
144
|
conatctDetails String? @db.LongText
|
|
145
|
-
createddate DateTime
|
|
145
|
+
createddate DateTime @db.DateTime(0)
|
|
146
146
|
type String @db.VarChar(512)
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -152,7 +152,7 @@ model appcustloanlog21042023 {
|
|
|
152
152
|
mobile String @db.VarChar(100)
|
|
153
153
|
name String? @db.VarChar(100)
|
|
154
154
|
conatctDetails String? @db.LongText
|
|
155
|
-
createddate DateTime
|
|
155
|
+
createddate DateTime @db.DateTime(0)
|
|
156
156
|
type String @db.VarChar(512)
|
|
157
157
|
|
|
158
158
|
@@index([mobile], map: "mobile")
|
|
@@ -164,7 +164,7 @@ model appcustloanlog23 {
|
|
|
164
164
|
mobile String @default("") @db.VarChar(100)
|
|
165
165
|
name String? @db.VarChar(100)
|
|
166
166
|
conatctDetails String? @db.LongText
|
|
167
|
-
createddate DateTime
|
|
167
|
+
createddate DateTime @default(dbgenerated("'0000-00-00 00:00:00'")) @db.DateTime(0)
|
|
168
168
|
type String @default("") @db.VarChar(512)
|
|
169
169
|
utmSource String? @db.VarChar(256)
|
|
170
170
|
IsRooted String @default("false") @db.VarChar(256)
|
|
@@ -179,7 +179,7 @@ model appcustlocation {
|
|
|
179
179
|
latitude String? @db.VarChar(216)
|
|
180
180
|
completeAddress String @db.LongText
|
|
181
181
|
conatctDetails String? @db.LongText
|
|
182
|
-
createddate DateTime
|
|
182
|
+
createddate DateTime @default(now()) @db.DateTime(0)
|
|
183
183
|
app_deviceID String? @db.LongText
|
|
184
184
|
utmSource String? @db.VarChar(256)
|
|
185
185
|
IsRooted String @default("false") @db.VarChar(256)
|
|
@@ -243,7 +243,7 @@ model approval {
|
|
|
243
243
|
rejectionReason String?
|
|
244
244
|
documentr String? @db.VarChar(512)
|
|
245
245
|
redFlag String?
|
|
246
|
-
createdDate
|
|
246
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
247
247
|
sanctionalloUID String? @default("no") @db.VarChar(216)
|
|
248
248
|
customerApproval approval_customerApproval @default(ZERO)
|
|
249
249
|
employmentType String? @db.VarChar(50)
|
|
@@ -328,7 +328,7 @@ model blacklistcustomerleadlog {
|
|
|
328
328
|
pancard String? @db.VarChar(100)
|
|
329
329
|
aadharNo BigInt
|
|
330
330
|
employeeType blacklistcustomerleadlog_employeeType
|
|
331
|
-
createdDate DateTime
|
|
331
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
332
332
|
loanRequeried Float
|
|
333
333
|
companyName String @db.VarChar(256)
|
|
334
334
|
monthlyIncome Float
|
|
@@ -357,15 +357,14 @@ model callhistory {
|
|
|
357
357
|
callHistoryID Int @id @default(autoincrement())
|
|
358
358
|
customerID Int
|
|
359
359
|
leadID Int
|
|
360
|
-
lead leads @relation(fields: [leadID], references: [leadID])
|
|
361
360
|
callType String
|
|
362
361
|
status String
|
|
363
362
|
noteli String @db.VarChar(512)
|
|
364
363
|
remark String
|
|
365
364
|
callbackTime DateTime? @db.Date
|
|
366
365
|
calledBy Int
|
|
367
|
-
createdDate DateTime
|
|
368
|
-
|
|
366
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
367
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
369
368
|
calledByUser users @relation(fields: [calledBy], references: [userID])
|
|
370
369
|
}
|
|
371
370
|
|
|
@@ -380,14 +379,13 @@ model callhistoryapp {
|
|
|
380
379
|
remark String
|
|
381
380
|
callbackTime DateTime? @db.Date
|
|
382
381
|
calledBy Int
|
|
383
|
-
createdDate DateTime
|
|
382
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
384
383
|
}
|
|
385
384
|
|
|
386
385
|
model callhistorylogs {
|
|
387
386
|
callHistoryID Int @id @default(autoincrement())
|
|
388
387
|
customerID Int
|
|
389
388
|
leadID Int
|
|
390
|
-
lead leads @relation(fields: [leadID], references: [leadID])
|
|
391
389
|
callType String
|
|
392
390
|
status String
|
|
393
391
|
appAmount String? @db.VarChar(216)
|
|
@@ -395,8 +393,8 @@ model callhistorylogs {
|
|
|
395
393
|
remark String
|
|
396
394
|
callbackTime DateTime? @db.Date
|
|
397
395
|
calledBy Int
|
|
398
|
-
createdDate DateTime
|
|
399
|
-
|
|
396
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
397
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
400
398
|
calledByUser users? @relation(fields: [calledBy], references: [userID])
|
|
401
399
|
}
|
|
402
400
|
|
|
@@ -439,7 +437,7 @@ model cashfree_mandate {
|
|
|
439
437
|
bankAccountNumber String?
|
|
440
438
|
bankAccountHolder String?
|
|
441
439
|
umrn String?
|
|
442
|
-
createddate DateTime
|
|
440
|
+
createddate DateTime @db.DateTime(0)
|
|
443
441
|
accountNo String? @db.VarChar(256)
|
|
444
442
|
accountType String? @db.VarChar(256)
|
|
445
443
|
ifsc String? @db.VarChar(256)
|
|
@@ -467,7 +465,7 @@ model cities {
|
|
|
467
465
|
stateID Int
|
|
468
466
|
cityName String @db.VarChar(255)
|
|
469
467
|
status String @default("0") @db.VarChar(16)
|
|
470
|
-
createdDate DateTime
|
|
468
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
471
469
|
|
|
472
470
|
@@index([stateID], map: "citystateID")
|
|
473
471
|
}
|
|
@@ -487,7 +485,7 @@ model collection {
|
|
|
487
485
|
status collection_status
|
|
488
486
|
remark String
|
|
489
487
|
collectedBy Int
|
|
490
|
-
createdDate DateTime
|
|
488
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
491
489
|
collectionStatus String @default("Approved") @db.VarChar(216)
|
|
492
490
|
collectionStatusby String @default("no") @db.VarChar(216)
|
|
493
491
|
approvedDate DateTime? @db.DateTime(0)
|
|
@@ -511,7 +509,7 @@ model collectionfollowup {
|
|
|
511
509
|
statusTypeDate String? @db.Text
|
|
512
510
|
remark String @db.Text
|
|
513
511
|
createdBy Int
|
|
514
|
-
createdDate DateTime
|
|
512
|
+
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
515
513
|
followup_type Int @default(0)
|
|
516
514
|
reason String? @db.Text
|
|
517
515
|
}
|
|
@@ -565,7 +563,7 @@ model contactus {
|
|
|
565
563
|
email String
|
|
566
564
|
message String @db.Text
|
|
567
565
|
status contactus_status
|
|
568
|
-
createdDate DateTime
|
|
566
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
569
567
|
subject String? @db.VarChar(150)
|
|
570
568
|
}
|
|
571
569
|
|
|
@@ -600,12 +598,6 @@ model convoque_call_logs {
|
|
|
600
598
|
|
|
601
599
|
model customer {
|
|
602
600
|
customerID Int @id @default(autoincrement())
|
|
603
|
-
leads leads[] // 👈 one-to-many relation
|
|
604
|
-
addresses address[]
|
|
605
|
-
employer employer[]
|
|
606
|
-
reference reference[]
|
|
607
|
-
accounts customeraccount[]
|
|
608
|
-
reloan_status reloan_status[]
|
|
609
601
|
name String? @db.VarChar(100)
|
|
610
602
|
firstName String? @db.VarChar(100)
|
|
611
603
|
middlename String? @db.VarChar(100)
|
|
@@ -623,7 +615,7 @@ model customer {
|
|
|
623
615
|
otp String? @default("") @db.VarChar(20)
|
|
624
616
|
isVerified Boolean @default(dbgenerated("b'0'")) @db.Bit(1)
|
|
625
617
|
employeeType customer_employeeType
|
|
626
|
-
createdDate DateTime @default(now())
|
|
618
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
627
619
|
industry String? @db.Text
|
|
628
620
|
designation String? @db.Text
|
|
629
621
|
working_since String? @db.Text
|
|
@@ -635,8 +627,14 @@ model customer {
|
|
|
635
627
|
razorpay_cust_id String? @db.VarChar(100)
|
|
636
628
|
reloaneligible customer_reloaneligible? @default(Approve)
|
|
637
629
|
reloanremark String? @db.VarChar(255)
|
|
638
|
-
|
|
639
|
-
|
|
630
|
+
fraudcheck Boolean? @default(false)
|
|
631
|
+
updatedAt DateTime? @default(now()) @updatedAt @db.Timestamp(0)
|
|
632
|
+
reloan_status reloan_status[]
|
|
633
|
+
leads leads[] // 👈 one-to-many relation
|
|
634
|
+
addresses address[]
|
|
635
|
+
employer employer[]
|
|
636
|
+
reference reference[]
|
|
637
|
+
accounts customeraccount[]
|
|
640
638
|
|
|
641
639
|
@@index([firstName], map: "firstName")
|
|
642
640
|
@@index([firstName], map: "firstName_2")
|
|
@@ -648,7 +646,7 @@ model customer_credit_remarks {
|
|
|
648
646
|
leadID Int
|
|
649
647
|
creditRemark String @db.Text
|
|
650
648
|
createdBy Int
|
|
651
|
-
createdDate DateTime
|
|
649
|
+
createdDate DateTime? @default(now()) @db.DateTime(0)
|
|
652
650
|
}
|
|
653
651
|
|
|
654
652
|
/// 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
|
|
@@ -692,7 +690,7 @@ model customeraccount {
|
|
|
692
690
|
ip String @db.VarChar(100)
|
|
693
691
|
credatedBy Int
|
|
694
692
|
status customeraccount_status
|
|
695
|
-
createdDate DateTime
|
|
693
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
696
694
|
bank_holder_name String? @db.Text
|
|
697
695
|
customer customer @relation(fields: [customerID], references: [customerID])
|
|
698
696
|
}
|
|
@@ -739,7 +737,7 @@ model disblogs {
|
|
|
739
737
|
andr String @db.VarChar(216)
|
|
740
738
|
blo_r String @db.VarChar(215)
|
|
741
739
|
uid String @db.VarChar(216)
|
|
742
|
-
createdDate DateTime
|
|
740
|
+
createdDate DateTime @db.DateTime(0)
|
|
743
741
|
}
|
|
744
742
|
|
|
745
743
|
model document {
|
|
@@ -841,7 +839,6 @@ model emis {
|
|
|
841
839
|
model employer {
|
|
842
840
|
employerID Int @id @default(autoincrement())
|
|
843
841
|
customerID Int
|
|
844
|
-
customer customer @relation(fields: [customerID], references: [customerID])
|
|
845
842
|
employerName String
|
|
846
843
|
empEmail String?
|
|
847
844
|
empDob String?
|
|
@@ -857,7 +854,8 @@ model employer {
|
|
|
857
854
|
pincode BigInt
|
|
858
855
|
status employer_status @default(Not_Verified)
|
|
859
856
|
verifiedBy Int @default(1)
|
|
860
|
-
createdDate DateTime
|
|
857
|
+
createdDate DateTime @db.DateTime(0)
|
|
858
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
861
859
|
|
|
862
860
|
@@index([customerID], map: "customerID")
|
|
863
861
|
}
|
|
@@ -867,7 +865,6 @@ model facebook_lead {
|
|
|
867
865
|
lead_data String @db.LongText
|
|
868
866
|
}
|
|
869
867
|
|
|
870
|
-
|
|
871
868
|
model reminders {
|
|
872
869
|
id Int @id @default(autoincrement())
|
|
873
870
|
customerID Int
|
|
@@ -881,7 +878,6 @@ model reminders {
|
|
|
881
878
|
@@index([sentAt], map: "idx_sentAt")
|
|
882
879
|
}
|
|
883
880
|
|
|
884
|
-
|
|
885
881
|
model emandates {
|
|
886
882
|
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
887
883
|
order_id String @unique(map: "uniq_order") @db.VarChar(100)
|
|
@@ -901,7 +897,6 @@ model emandates {
|
|
|
901
897
|
updated_at DateTime? @default(now()) @db.DateTime(0)
|
|
902
898
|
}
|
|
903
899
|
|
|
904
|
-
|
|
905
900
|
model cibildata_archive {
|
|
906
901
|
id Int @id @default(autoincrement())
|
|
907
902
|
leadID Int
|
|
@@ -1056,7 +1051,6 @@ model eagreement {
|
|
|
1056
1051
|
model leads {
|
|
1057
1052
|
leadID Int @id @default(autoincrement())
|
|
1058
1053
|
customerID Int?
|
|
1059
|
-
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
1060
1054
|
userID Int?
|
|
1061
1055
|
purpose String? @db.VarChar(255)
|
|
1062
1056
|
loanRequeried Float @default(10000)
|
|
@@ -1074,7 +1068,8 @@ model leads {
|
|
|
1074
1068
|
ip String
|
|
1075
1069
|
callAssign Int
|
|
1076
1070
|
creditAssign Int
|
|
1077
|
-
|
|
1071
|
+
collectionUID Int?
|
|
1072
|
+
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
1078
1073
|
alloUID String @default("no") @db.VarChar(216)
|
|
1079
1074
|
sanctionalloUID String @default("no") @db.VarChar(216)
|
|
1080
1075
|
sanctionAppID String @default("no") @db.VarChar(216)
|
|
@@ -1087,11 +1082,11 @@ model leads {
|
|
|
1087
1082
|
kfs leads_kfs @default(ZERO)
|
|
1088
1083
|
bureau_consent Int @default(0)
|
|
1089
1084
|
emandatebypass Boolean? @default(false)
|
|
1085
|
+
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
1086
|
+
callHistories callhistory[]
|
|
1087
|
+
callhistorylogs callhistorylogs[]
|
|
1088
|
+
approvals approval[]
|
|
1090
1089
|
|
|
1091
|
-
|
|
1092
|
-
callHistories callhistory[]
|
|
1093
|
-
callhistorylogs callhistorylogs[]
|
|
1094
|
-
approvals approval[]
|
|
1095
1090
|
@@index([customerID], map: "leadcustomerID")
|
|
1096
1091
|
}
|
|
1097
1092
|
|
|
@@ -1117,7 +1112,7 @@ model leads2 {
|
|
|
1117
1112
|
ip String
|
|
1118
1113
|
callAssign Int
|
|
1119
1114
|
creditAssign Int
|
|
1120
|
-
createdDate DateTime @default(now())
|
|
1115
|
+
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
1121
1116
|
alloUID String @default("no") @db.VarChar(216)
|
|
1122
1117
|
sanctionalloUID String @default("no") @db.VarChar(216)
|
|
1123
1118
|
sanctionAppID String @default("no") @db.VarChar(216)
|
|
@@ -1258,7 +1253,7 @@ model loan {
|
|
|
1258
1253
|
companyAccountNo String @default("")
|
|
1259
1254
|
ip String @db.VarChar(100)
|
|
1260
1255
|
disbursedBy Int
|
|
1261
|
-
createdDate DateTime
|
|
1256
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1262
1257
|
allocate_date DateTime? @default(now()) @db.DateTime(0)
|
|
1263
1258
|
allocated_by String? @db.VarChar(64)
|
|
1264
1259
|
}
|
|
@@ -1288,7 +1283,7 @@ model loan_ac_remove_logs {
|
|
|
1288
1283
|
companyAccountNo String @default("")
|
|
1289
1284
|
ip String @db.VarChar(100)
|
|
1290
1285
|
disbursedBy Int
|
|
1291
|
-
createdDate DateTime
|
|
1286
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1292
1287
|
remove_date DateTime @default(now()) @db.DateTime(0)
|
|
1293
1288
|
remove_by String @db.VarChar(64)
|
|
1294
1289
|
remove_resons String @db.LongText
|
|
@@ -1380,7 +1375,7 @@ model notifications {
|
|
|
1380
1375
|
type String?
|
|
1381
1376
|
subject String?
|
|
1382
1377
|
senderUser Int?
|
|
1383
|
-
createdDate DateTime
|
|
1378
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1384
1379
|
mtype String @default("crm") @db.VarChar(216)
|
|
1385
1380
|
uid String? @db.VarChar(64)
|
|
1386
1381
|
otp String? @db.Text
|
|
@@ -1419,7 +1414,7 @@ model onlinepaymentlog {
|
|
|
1419
1414
|
razorpayOrderId String @db.VarChar(216)
|
|
1420
1415
|
razorpayPaymentId String @db.VarChar(216)
|
|
1421
1416
|
paymentStatus String @db.VarChar(216)
|
|
1422
|
-
createdDate DateTime
|
|
1417
|
+
createdDate DateTime @db.DateTime(0)
|
|
1423
1418
|
|
|
1424
1419
|
@@ignore
|
|
1425
1420
|
}
|
|
@@ -1434,7 +1429,7 @@ model paydaypendingdata {
|
|
|
1434
1429
|
remaingCollection String @db.VarChar(216)
|
|
1435
1430
|
totalCollection String @db.VarChar(216)
|
|
1436
1431
|
rand String @db.VarChar(216)
|
|
1437
|
-
createdDate DateTime
|
|
1432
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1438
1433
|
|
|
1439
1434
|
@@ignore
|
|
1440
1435
|
}
|
|
@@ -1505,7 +1500,7 @@ model razorpay_emch_queue {
|
|
|
1505
1500
|
ch_amount Float
|
|
1506
1501
|
uid Int
|
|
1507
1502
|
status String @default("no") @db.VarChar(512)
|
|
1508
|
-
createdDate DateTime
|
|
1503
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1509
1504
|
|
|
1510
1505
|
@@ignore
|
|
1511
1506
|
}
|
|
@@ -1531,42 +1526,44 @@ model razorpay_emorder {
|
|
|
1531
1526
|
razorpay_signature String @db.VarChar(216)
|
|
1532
1527
|
tokenID String @db.VarChar(216)
|
|
1533
1528
|
uid String @db.VarChar(216)
|
|
1534
|
-
createdDate
|
|
1529
|
+
createdDate DateTime @db.DateTime(0)
|
|
1535
1530
|
|
|
1536
1531
|
@@ignore
|
|
1537
1532
|
}
|
|
1538
1533
|
|
|
1539
1534
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1540
1535
|
model razorpay_mandate {
|
|
1541
|
-
id Int
|
|
1542
|
-
customerID String
|
|
1543
|
-
accountNo String
|
|
1544
|
-
accountType String
|
|
1545
|
-
bank String
|
|
1546
|
-
ifsc String
|
|
1547
|
-
leadID String
|
|
1548
|
-
inv_id String
|
|
1549
|
-
entity String
|
|
1550
|
-
receipt String
|
|
1551
|
-
invoice_number String
|
|
1552
|
-
customer_id String
|
|
1553
|
-
cust_name String
|
|
1554
|
-
cust_email String
|
|
1555
|
-
cust_contact String
|
|
1556
|
-
order_id String
|
|
1557
|
-
status String
|
|
1558
|
-
sms_status String
|
|
1559
|
-
email_status String
|
|
1560
|
-
short_url String
|
|
1561
|
-
type String
|
|
1562
|
-
credated_date String
|
|
1563
|
-
uid String
|
|
1564
|
-
devices String
|
|
1565
|
-
etype String
|
|
1566
|
-
token_id String
|
|
1567
|
-
emMaxamount String?
|
|
1568
|
-
confirmed_bank Int
|
|
1569
|
-
res_response String?
|
|
1536
|
+
id Int @id @default(autoincrement())
|
|
1537
|
+
customerID String @db.VarChar(256)
|
|
1538
|
+
accountNo String @db.VarChar(216)
|
|
1539
|
+
accountType String @db.VarChar(216)
|
|
1540
|
+
bank String @db.VarChar(216)
|
|
1541
|
+
ifsc String @db.VarChar(216)
|
|
1542
|
+
leadID String @db.VarChar(256)
|
|
1543
|
+
inv_id String @db.VarChar(256)
|
|
1544
|
+
entity String @db.VarChar(256)
|
|
1545
|
+
receipt String @db.VarChar(256)
|
|
1546
|
+
invoice_number String @db.VarChar(256)
|
|
1547
|
+
customer_id String @db.VarChar(256)
|
|
1548
|
+
cust_name String @db.VarChar(256)
|
|
1549
|
+
cust_email String @db.VarChar(256)
|
|
1550
|
+
cust_contact String @db.VarChar(256)
|
|
1551
|
+
order_id String @db.VarChar(256)
|
|
1552
|
+
status String @db.VarChar(256)
|
|
1553
|
+
sms_status String @db.VarChar(256)
|
|
1554
|
+
email_status String @db.VarChar(256)
|
|
1555
|
+
short_url String @db.VarChar(256)
|
|
1556
|
+
type String @db.VarChar(256)
|
|
1557
|
+
credated_date String @db.VarChar(216)
|
|
1558
|
+
uid String @db.VarChar(216)
|
|
1559
|
+
devices String @default("ramfin-corp") @db.VarChar(216)
|
|
1560
|
+
etype String @db.VarChar(216)
|
|
1561
|
+
token_id String @default("no") @db.VarChar(216)
|
|
1562
|
+
emMaxamount String? @db.VarChar(256)
|
|
1563
|
+
confirmed_bank Int @default(0) @db.TinyInt
|
|
1564
|
+
res_response String? @db.LongText
|
|
1565
|
+
createdAt DateTime @default(now()) @db.Timestamp(0)
|
|
1566
|
+
updatedAt DateTime @default(now()) @db.Timestamp(0)
|
|
1570
1567
|
|
|
1571
1568
|
@@ignore
|
|
1572
1569
|
}
|
|
@@ -1626,7 +1623,7 @@ model razorpay_payout_contacts {
|
|
|
1626
1623
|
cont_active String @db.VarChar(256)
|
|
1627
1624
|
cont_notes_key_1 String @db.VarChar(256)
|
|
1628
1625
|
cont_notes_key_2 String @db.VarChar(256)
|
|
1629
|
-
createdDate DateTime
|
|
1626
|
+
createdDate DateTime @db.DateTime(0)
|
|
1630
1627
|
uid String @db.VarChar(216)
|
|
1631
1628
|
|
|
1632
1629
|
@@ignore
|
|
@@ -1674,7 +1671,6 @@ model razorpay_payout_disbured_amount {
|
|
|
1674
1671
|
model reference {
|
|
1675
1672
|
referenceID Int @id @default(autoincrement()) @db.UnsignedInt
|
|
1676
1673
|
customerID Int
|
|
1677
|
-
customer customer @relation(fields: [customerID], references: [customerID])
|
|
1678
1674
|
relation String
|
|
1679
1675
|
name String
|
|
1680
1676
|
address String
|
|
@@ -1683,12 +1679,12 @@ model reference {
|
|
|
1683
1679
|
pincode BigInt
|
|
1684
1680
|
contactNo String @db.VarChar(20)
|
|
1685
1681
|
createdBy Int @default(1)
|
|
1686
|
-
createdDate DateTime
|
|
1682
|
+
createdDate DateTime? @default(now()) @db.DateTime(0)
|
|
1687
1683
|
name_contact String? @db.Text
|
|
1688
1684
|
reference_verify Int @default(0)
|
|
1689
1685
|
is_verified Int @default(0)
|
|
1690
1686
|
recording String? @db.Text
|
|
1691
|
-
|
|
1687
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
1692
1688
|
createdByUser users @relation(fields: [createdBy], references: [userID])
|
|
1693
1689
|
}
|
|
1694
1690
|
|
|
@@ -1708,7 +1704,7 @@ model review {
|
|
|
1708
1704
|
loanNo String @db.VarChar(50)
|
|
1709
1705
|
customerRemarks String @db.Text
|
|
1710
1706
|
createdBy Int
|
|
1711
|
-
createdDate DateTime
|
|
1707
|
+
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
1712
1708
|
|
|
1713
1709
|
@@ignore
|
|
1714
1710
|
}
|
|
@@ -1735,8 +1731,8 @@ model setting {
|
|
|
1735
1731
|
}
|
|
1736
1732
|
|
|
1737
1733
|
model settings {
|
|
1738
|
-
key
|
|
1739
|
-
value
|
|
1734
|
+
key String @id
|
|
1735
|
+
value String?
|
|
1740
1736
|
userIds Json
|
|
1741
1737
|
}
|
|
1742
1738
|
|
|
@@ -1745,7 +1741,7 @@ model states {
|
|
|
1745
1741
|
stateID Int
|
|
1746
1742
|
stateName String
|
|
1747
1743
|
status Boolean @default(dbgenerated("b'1'")) @db.Bit(1)
|
|
1748
|
-
createdDate DateTime
|
|
1744
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1749
1745
|
code String @default("0") @db.VarChar(11)
|
|
1750
1746
|
cibil_state_code String? @db.Text
|
|
1751
1747
|
|
|
@@ -1797,32 +1793,29 @@ model user_ip_details {
|
|
|
1797
1793
|
|
|
1798
1794
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1799
1795
|
model users {
|
|
1800
|
-
userID Int
|
|
1801
|
-
name String
|
|
1796
|
+
userID Int @id @default(autoincrement())
|
|
1797
|
+
name String @db.VarChar(100)
|
|
1802
1798
|
email String
|
|
1803
|
-
mobile String
|
|
1804
|
-
did_no String?
|
|
1799
|
+
mobile String @db.VarChar(20)
|
|
1800
|
+
did_no String? @db.VarChar(36)
|
|
1805
1801
|
branch String
|
|
1806
1802
|
userName String
|
|
1807
1803
|
password String
|
|
1808
1804
|
role users_role
|
|
1809
|
-
status users_status
|
|
1805
|
+
status users_status @default(Active)
|
|
1810
1806
|
createdBy Int
|
|
1811
|
-
createdDate
|
|
1812
|
-
accessPer String
|
|
1813
|
-
utype String
|
|
1814
|
-
firebase_token String?
|
|
1815
|
-
device_token String?
|
|
1816
|
-
lip String
|
|
1817
|
-
convoque_login_id String?
|
|
1818
|
-
convoque_exten String?
|
|
1819
|
-
|
|
1807
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1808
|
+
accessPer String @db.MediumText
|
|
1809
|
+
utype String @default("ramfin-corp") @db.VarChar(216)
|
|
1810
|
+
firebase_token String? @db.Text
|
|
1811
|
+
device_token String? @db.Text
|
|
1812
|
+
lip String @default("no") @db.VarChar(64)
|
|
1813
|
+
convoque_login_id String? @db.Text
|
|
1814
|
+
convoque_exten String? @db.Text
|
|
1815
|
+
reloan_status reloan_status[]
|
|
1820
1816
|
reference reference[]
|
|
1821
1817
|
callhistory callhistory[]
|
|
1822
|
-
callhistorylogs
|
|
1823
|
-
reloan_status reloan_status[]
|
|
1824
|
-
|
|
1825
|
-
|
|
1818
|
+
callhistorylogs callhistorylogs[]
|
|
1826
1819
|
}
|
|
1827
1820
|
|
|
1828
1821
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
@@ -1940,7 +1933,7 @@ model website_amount {
|
|
|
1940
1933
|
amID Int
|
|
1941
1934
|
amount String @db.VarChar(64)
|
|
1942
1935
|
status String @default("0") @db.VarChar(16)
|
|
1943
|
-
createdDate DateTime
|
|
1936
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1944
1937
|
|
|
1945
1938
|
@@ignore
|
|
1946
1939
|
}
|
|
@@ -1953,7 +1946,7 @@ model bps_logs {
|
|
|
1953
1946
|
loanNo String? @db.VarChar(50)
|
|
1954
1947
|
billertxnReferenceId String @unique(map: "billertxnReferenceId")
|
|
1955
1948
|
amount Decimal? @db.Decimal(10, 2)
|
|
1956
|
-
createdDate
|
|
1949
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1957
1950
|
updatedDate DateTime @default(now()) @db.DateTime(0)
|
|
1958
1951
|
}
|
|
1959
1952
|
|
|
@@ -2024,7 +2017,7 @@ model customerapp {
|
|
|
2024
2017
|
token String?
|
|
2025
2018
|
presalesassign Int
|
|
2026
2019
|
reminders reminders[]
|
|
2027
|
-
|
|
2020
|
+
|
|
2028
2021
|
@@index([mobile], map: "mobile")
|
|
2029
2022
|
@@index([last_login], map: "idx_customer_lastLogin")
|
|
2030
2023
|
@@index([loanApplied], map: "idx_customer_loanApplied")
|
|
@@ -2124,16 +2117,14 @@ model digitmoney_leads {
|
|
|
2124
2117
|
}
|
|
2125
2118
|
|
|
2126
2119
|
model oldcrmdata {
|
|
2120
|
+
id Int @id @default(autoincrement())
|
|
2127
2121
|
pan String? @db.VarChar(11)
|
|
2128
|
-
|
|
2129
|
-
|
|
2122
|
+
last_outstanding String? @db.VarChar(12)
|
|
2123
|
+
loan_count String? @db.VarChar(10)
|
|
2130
2124
|
last_disburse String? @db.VarChar(18)
|
|
2131
2125
|
last_repay String? @db.VarChar(18)
|
|
2132
|
-
COL_6 String? @map("COL 6") @db.VarChar(10)
|
|
2133
|
-
id Int @id @default(autoincrement())
|
|
2134
2126
|
}
|
|
2135
2127
|
|
|
2136
|
-
|
|
2137
2128
|
model reloan_status {
|
|
2138
2129
|
id Int @id @default(autoincrement())
|
|
2139
2130
|
customerID Int
|
|
@@ -2145,11 +2136,39 @@ model reloan_status {
|
|
|
2145
2136
|
updatedAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2146
2137
|
customer customer @relation(fields: [customerID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "fk_reloan_customer")
|
|
2147
2138
|
users users? @relation(fields: [collectionUserId], references: [userID], onDelete: NoAction, onUpdate: NoAction, map: "fk_reloan_user")
|
|
2148
|
-
|
|
2139
|
+
|
|
2149
2140
|
@@index([customerID], map: "fk_reloan_customer")
|
|
2150
2141
|
@@index([collectionUserId], map: "fk_reloan_user")
|
|
2151
2142
|
}
|
|
2152
2143
|
|
|
2144
|
+
model lms_users {
|
|
2145
|
+
userID BigInt @id @unique(map: "userID") @default(autoincrement()) @db.UnsignedBigInt
|
|
2146
|
+
name String @db.VarChar(100)
|
|
2147
|
+
email String @unique(map: "email") @db.VarChar(150)
|
|
2148
|
+
mobile_number String? @db.VarChar(15)
|
|
2149
|
+
branch String? @db.VarChar(100)
|
|
2150
|
+
username String @unique(map: "username") @db.VarChar(100)
|
|
2151
|
+
password String @db.VarChar(255)
|
|
2152
|
+
role String? @db.VarChar(50)
|
|
2153
|
+
status String? @default("Active") @db.VarChar(20)
|
|
2154
|
+
created_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2155
|
+
updated_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2156
|
+
created_by String? @db.VarChar(100)
|
|
2157
|
+
lms_users_permissions lms_users_permissions[]
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
model lms_users_permissions {
|
|
2161
|
+
id BigInt @id @default(autoincrement()) @db.UnsignedBigInt
|
|
2162
|
+
user_id BigInt @db.UnsignedBigInt
|
|
2163
|
+
sidebar_access Json?
|
|
2164
|
+
profile_access Json?
|
|
2165
|
+
created_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2166
|
+
updated_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2167
|
+
lms_users lms_users @relation(fields: [user_id], references: [userID], onDelete: Cascade, onUpdate: NoAction, map: "lms_users_permissions_ibfk_1")
|
|
2168
|
+
|
|
2169
|
+
@@index([user_id], map: "user_id")
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2153
2172
|
enum usersgoogle_oauth_provider {
|
|
2154
2173
|
google
|
|
2155
2174
|
facebook
|
|
@@ -2239,12 +2258,6 @@ enum banks_status {
|
|
|
2239
2258
|
ONE @map("1")
|
|
2240
2259
|
}
|
|
2241
2260
|
|
|
2242
|
-
enum customer_reloaneligible {
|
|
2243
|
-
Approve
|
|
2244
|
-
Reject
|
|
2245
|
-
Applied
|
|
2246
|
-
}
|
|
2247
|
-
|
|
2248
2261
|
enum users_status {
|
|
2249
2262
|
Active
|
|
2250
2263
|
In_Active @map("In Active")
|
|
@@ -2446,3 +2459,10 @@ enum reloan_status_status {
|
|
|
2446
2459
|
Not_Now @map("Not Now")
|
|
2447
2460
|
Applied
|
|
2448
2461
|
}
|
|
2462
|
+
|
|
2463
|
+
enum customer_reloaneligible {
|
|
2464
|
+
Approve
|
|
2465
|
+
Reject
|
|
2466
|
+
Applied
|
|
2467
|
+
Pending
|
|
2468
|
+
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
name: 🚀 Publish to NPM
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
publish:
|
|
10
|
-
name: 📦 Publish Prisma Schema Package
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
|
|
13
|
-
permissions:
|
|
14
|
-
contents: write # allow pushing tags/commits back
|
|
15
|
-
|
|
16
|
-
steps:
|
|
17
|
-
- name: 🛎️ Checkout repository
|
|
18
|
-
uses: actions/checkout@v4
|
|
19
|
-
|
|
20
|
-
- name: 🧰 Setup Node.js
|
|
21
|
-
uses: actions/setup-node@v4
|
|
22
|
-
with:
|
|
23
|
-
node-version: 20
|
|
24
|
-
registry-url: "https://registry.npmjs.org"
|
|
25
|
-
|
|
26
|
-
- name: 📥 Install dependencies
|
|
27
|
-
run: npm install # use install instead of ci if package-lock.json is missing
|
|
28
|
-
|
|
29
|
-
- name: 📝 Configure Git user
|
|
30
|
-
run: |
|
|
31
|
-
git config --global user.name "github-actions[bot]"
|
|
32
|
-
git config --global user.email "actions@github.com"
|
|
33
|
-
|
|
34
|
-
- name: 📝 Bump version
|
|
35
|
-
run: npm version patch -m "🔖 Bump version to %s [skip ci]"
|
|
36
|
-
|
|
37
|
-
- name: 🚀 Publish to NPM
|
|
38
|
-
env:
|
|
39
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
40
|
-
run: npm publish --access public
|
|
41
|
-
|
|
42
|
-
- name: 🧠 Push version bump & tags to GitHub
|
|
43
|
-
env:
|
|
44
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
45
|
-
run: git push origin main --follow-tags
|
package/tsconfig.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "nodenext",
|
|
4
|
-
"moduleResolution": "nodenext",
|
|
5
|
-
"resolvePackageJsonExports": true,
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"isolatedModules": true,
|
|
8
|
-
"declaration": true,
|
|
9
|
-
"removeComments": true,
|
|
10
|
-
"emitDecoratorMetadata": true,
|
|
11
|
-
"experimentalDecorators": true,
|
|
12
|
-
"allowSyntheticDefaultImports": true,
|
|
13
|
-
"target": "ES2023",
|
|
14
|
-
"sourceMap": true,
|
|
15
|
-
"outDir": "./dist",
|
|
16
|
-
"baseUrl": "./",
|
|
17
|
-
"incremental": true,
|
|
18
|
-
"skipLibCheck": true,
|
|
19
|
-
"strictNullChecks": true,
|
|
20
|
-
"forceConsistentCasingInFileNames": true,
|
|
21
|
-
"noImplicitAny": false,
|
|
22
|
-
"strictBindCallApply": false,
|
|
23
|
-
"noFallthroughCasesInSwitch": false
|
|
24
|
-
}
|
|
25
|
-
}
|