@factor-wise/prisma-schema 2.0.116 → 2.0.118
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 +1 -1
- package/prisma/schema.prisma +31 -20
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -709,7 +709,7 @@ model customer {
|
|
|
709
709
|
finb_logs finb_logs[]
|
|
710
710
|
face_comparison face_comparison[]
|
|
711
711
|
preoffer preoffer[]
|
|
712
|
-
customer_extended customer_extended
|
|
712
|
+
customer_extended customer_extended?
|
|
713
713
|
criffsoftpull criffsoftpull[]
|
|
714
714
|
credforge_bre_log credforge_bre_log[]
|
|
715
715
|
sms customer_sms[]
|
|
@@ -723,6 +723,8 @@ model customer {
|
|
|
723
723
|
|
|
724
724
|
aiCallLogs ai_call_logs[]
|
|
725
725
|
|
|
726
|
+
customerLocations customer_locations[]
|
|
727
|
+
|
|
726
728
|
@@index([mobile], map: "idx_customer_mobile")
|
|
727
729
|
@@index([email], map: "idx_customer_email")
|
|
728
730
|
@@index([pancard], map: "idx_customer_pancard")
|
|
@@ -757,25 +759,34 @@ model customer {
|
|
|
757
759
|
}
|
|
758
760
|
|
|
759
761
|
model customer_extended {
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
762
|
+
id Int @id @default(autoincrement())
|
|
763
|
+
customerID Int @unique
|
|
764
|
+
isBtCase Boolean @default(false)
|
|
765
|
+
attempts Int? @default(0)
|
|
766
|
+
lastAttempt DateTime?
|
|
767
|
+
verifyAttempts Int? @default(0)
|
|
768
|
+
verifyLastAttempt DateTime?
|
|
769
|
+
otpExpiresAt DateTime?
|
|
770
|
+
selfieAttempts Int? @default(0)
|
|
771
|
+
kidGenerateAt DateTime? @default(now()) @db.DateTime(0)
|
|
772
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
model customer_locations {
|
|
776
|
+
id Int @id @default(autoincrement())
|
|
777
|
+
customerID Int
|
|
778
|
+
latitude Decimal @db.Decimal(10, 7)
|
|
779
|
+
longitude Decimal @db.Decimal(10, 7)
|
|
780
|
+
locationType LocationType
|
|
781
|
+
createdAt DateTime @default(now())
|
|
782
|
+
updatedAt DateTime @updatedAt
|
|
778
783
|
|
|
784
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
785
|
+
|
|
786
|
+
@@unique([customerID, locationType])
|
|
787
|
+
@@index([customerID])
|
|
788
|
+
@@index([latitude, longitude])
|
|
789
|
+
}
|
|
779
790
|
|
|
780
791
|
model customer_credit_remarks {
|
|
781
792
|
id Int @id @default(autoincrement())
|
|
@@ -2217,7 +2228,7 @@ model reference {
|
|
|
2217
2228
|
createdByUser lms_users @relation(fields: [createdBy], references: [userID])
|
|
2218
2229
|
customer customer @relation(fields: [customerID], references: [customerID])
|
|
2219
2230
|
|
|
2220
|
-
@@index([createdBy])
|
|
2231
|
+
@@index([createdBy], map: "reference_createdBy_fkey")
|
|
2221
2232
|
@@index([customerID], map: "reference_customerID_fkey")
|
|
2222
2233
|
@@index([contactNo])
|
|
2223
2234
|
}
|