@factor-wise/prisma-schema 2.0.107 → 2.0.109
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 +11 -2
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -719,7 +719,7 @@ model customer {
|
|
|
719
719
|
|
|
720
720
|
customerDevices customer_devices[]
|
|
721
721
|
|
|
722
|
-
notifications
|
|
722
|
+
notifications customer_notifications[]
|
|
723
723
|
|
|
724
724
|
@@index([mobile], map: "idx_customer_mobile")
|
|
725
725
|
@@index([email], map: "idx_customer_email")
|
|
@@ -767,8 +767,10 @@ model customer_extended {
|
|
|
767
767
|
longitude Decimal? @db.Decimal(10, 7)
|
|
768
768
|
selfieAttempts Int? @default(0)
|
|
769
769
|
kidGenerateAt DateTime? @default(now()) @db.DateTime(0)
|
|
770
|
+
locationType LocationType?
|
|
770
771
|
customer customer @relation(fields: [customerID], references: [customerID])
|
|
771
772
|
|
|
773
|
+
@@unique([customerID, locationType])
|
|
772
774
|
@@index([latitude, longitude])
|
|
773
775
|
}
|
|
774
776
|
|
|
@@ -3737,7 +3739,7 @@ model customer_devices {
|
|
|
3737
3739
|
@@index([deviceToken])
|
|
3738
3740
|
}
|
|
3739
3741
|
|
|
3740
|
-
model
|
|
3742
|
+
model customer_notifications {
|
|
3741
3743
|
id Int @id @default(autoincrement())
|
|
3742
3744
|
customerID Int
|
|
3743
3745
|
type String @db.VarChar(100)
|
|
@@ -3755,6 +3757,13 @@ model notification {
|
|
|
3755
3757
|
@@index([type])
|
|
3756
3758
|
}
|
|
3757
3759
|
|
|
3760
|
+
enum LocationType {
|
|
3761
|
+
login
|
|
3762
|
+
leadCreation
|
|
3763
|
+
leadRejection
|
|
3764
|
+
selfie
|
|
3765
|
+
}
|
|
3766
|
+
|
|
3758
3767
|
enum NotificationStatus {
|
|
3759
3768
|
PENDING
|
|
3760
3769
|
SENT
|