@factor-wise/prisma-schema 2.0.104 → 2.0.105
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 +28 -1
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -717,7 +717,7 @@ model customer {
|
|
|
717
717
|
apps customer_app[]
|
|
718
718
|
credit_improve_customer credit_improve_customer?
|
|
719
719
|
|
|
720
|
-
|
|
720
|
+
customerDevices customer_devices[]
|
|
721
721
|
|
|
722
722
|
@@index([mobile], map: "idx_customer_mobile")
|
|
723
723
|
@@index([email], map: "idx_customer_email")
|
|
@@ -3675,6 +3675,33 @@ model payment_block_dates {
|
|
|
3675
3675
|
@@index([createdById])
|
|
3676
3676
|
}
|
|
3677
3677
|
|
|
3678
|
+
model customer_devices {
|
|
3679
|
+
id Int @id @default(autoincrement())
|
|
3680
|
+
customerID Int
|
|
3681
|
+
deviceId String
|
|
3682
|
+
deviceType DeviceType
|
|
3683
|
+
deviceToken String? @unique
|
|
3684
|
+
deviceName String?
|
|
3685
|
+
appVersion String?
|
|
3686
|
+
osVersion String?
|
|
3687
|
+
ipAddress String?
|
|
3688
|
+
createdAt DateTime @default(now())
|
|
3689
|
+
updatedAt DateTime @updatedAt
|
|
3690
|
+
|
|
3691
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
3692
|
+
|
|
3693
|
+
@@unique([customerID, deviceId])
|
|
3694
|
+
@@index([customerID])
|
|
3695
|
+
@@index([deviceToken])
|
|
3696
|
+
}
|
|
3697
|
+
|
|
3698
|
+
|
|
3699
|
+
enum DeviceType {
|
|
3700
|
+
web
|
|
3701
|
+
android
|
|
3702
|
+
ios
|
|
3703
|
+
}
|
|
3704
|
+
|
|
3678
3705
|
enum commission_type {
|
|
3679
3706
|
PERCENTAGE // % based
|
|
3680
3707
|
FIXED // per lead fixed amount
|