@factor-wise/prisma-schema 1.0.13 → 1.0.15
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 +15 -5
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -622,18 +622,17 @@ model customer {
|
|
|
622
622
|
middlename String? @db.VarChar(100)
|
|
623
623
|
lastName String? @db.VarChar(100)
|
|
624
624
|
fatherName String? @db.VarChar(100)
|
|
625
|
-
gender customer_gender @default(NA)
|
|
626
|
-
dob DateTime
|
|
625
|
+
gender customer_gender? @default(NA)
|
|
626
|
+
dob DateTime? @db.Date
|
|
627
627
|
mobile BigInt
|
|
628
|
-
email String
|
|
628
|
+
email String? @db.VarChar(100)
|
|
629
629
|
pancard String? @db.VarChar(100)
|
|
630
630
|
aadharNo BigInt?
|
|
631
|
-
password String
|
|
632
631
|
marrital String? @db.VarChar(10)
|
|
633
632
|
profile String? @db.VarChar(100)
|
|
634
633
|
otp String? @default("") @db.VarChar(20)
|
|
635
634
|
isVerified Boolean @default(dbgenerated("b'0'")) @db.Bit(1)
|
|
636
|
-
employeeType customer_employeeType
|
|
635
|
+
employeeType customer_employeeType?
|
|
637
636
|
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
638
637
|
industry String? @db.Text
|
|
639
638
|
designation String? @db.Text
|
|
@@ -651,6 +650,15 @@ model customer {
|
|
|
651
650
|
customerappId Int?
|
|
652
651
|
isBlocked Boolean @default(false)
|
|
653
652
|
utmSource String? @db.VarChar(256)
|
|
653
|
+
last_login DateTime @default(now()) @db.Timestamp(0)
|
|
654
|
+
loanApplied Boolean @default(false)
|
|
655
|
+
is_onboarded Boolean @default(false)
|
|
656
|
+
digioKid String?
|
|
657
|
+
digioMobileNumber String?
|
|
658
|
+
permanent_address String? @db.Text
|
|
659
|
+
current_address String? @db.Text
|
|
660
|
+
presalesassign Int?
|
|
661
|
+
alternateMobile String? @db.VarChar(50)
|
|
654
662
|
addresses address[]
|
|
655
663
|
bankstatement bankstatement[]
|
|
656
664
|
customerapp customerapp? @relation(fields: [customerappId], references: [customerID], map: "fk_customer_customerapp")
|
|
@@ -663,6 +671,8 @@ model customer {
|
|
|
663
671
|
|
|
664
672
|
@@index([firstName], map: "firstName")
|
|
665
673
|
@@index([firstName], map: "firstName_2")
|
|
674
|
+
@@index([last_login], map: "idx_customer_lastLogin")
|
|
675
|
+
@@index([loanApplied], map: "idx_customer_loanApplied")
|
|
666
676
|
@@index([customerappId], map: "fk_customer_customerapp")
|
|
667
677
|
}
|
|
668
678
|
|