@factor-wise/prisma-schema 2.0.108 → 2.0.110
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 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -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
|
|
|
@@ -3746,6 +3748,7 @@ model customer_notifications {
|
|
|
3746
3748
|
data Json?
|
|
3747
3749
|
status NotificationStatus @default(PENDING)
|
|
3748
3750
|
failureReason String? @db.VarChar(255)
|
|
3751
|
+
isRead Boolean @default(false)
|
|
3749
3752
|
createdAt DateTime @default(now())
|
|
3750
3753
|
updatedAt DateTime @updatedAt
|
|
3751
3754
|
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
@@ -3753,6 +3756,14 @@ model customer_notifications {
|
|
|
3753
3756
|
@@index([customerID])
|
|
3754
3757
|
@@index([status])
|
|
3755
3758
|
@@index([type])
|
|
3759
|
+
@@index([isRead])
|
|
3760
|
+
}
|
|
3761
|
+
|
|
3762
|
+
enum LocationType {
|
|
3763
|
+
login
|
|
3764
|
+
leadCreation
|
|
3765
|
+
leadRejection
|
|
3766
|
+
selfie
|
|
3756
3767
|
}
|
|
3757
3768
|
|
|
3758
3769
|
enum NotificationStatus {
|