@factor-wise/prisma-schema 2.0.117 → 2.0.119
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 +30 -18
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -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,35 @@ 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
|
|
783
|
+
latlongAddress String?
|
|
778
784
|
|
|
785
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
786
|
+
|
|
787
|
+
@@unique([customerID, locationType])
|
|
788
|
+
@@index([customerID])
|
|
789
|
+
@@index([latitude, longitude])
|
|
790
|
+
}
|
|
779
791
|
|
|
780
792
|
model customer_credit_remarks {
|
|
781
793
|
id Int @id @default(autoincrement())
|