@factor-wise/prisma-schema 2.0.79 → 2.0.81
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 +59 -12
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -705,6 +705,9 @@ model customer {
|
|
|
705
705
|
customer_extended customer_extended?
|
|
706
706
|
criffsoftpull criffsoftpull[]
|
|
707
707
|
credforge_bre_log credforge_bre_log[]
|
|
708
|
+
sms customer_sms[]
|
|
709
|
+
contacts customer_contact[]
|
|
710
|
+
apps customer_app[]
|
|
708
711
|
|
|
709
712
|
|
|
710
713
|
|
|
@@ -1816,20 +1819,28 @@ model penny_drop {
|
|
|
1816
1819
|
|
|
1817
1820
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1818
1821
|
model pincode {
|
|
1819
|
-
id
|
|
1820
|
-
pincode
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1822
|
+
id BigInt @id @default(autoincrement())
|
|
1823
|
+
pincode String @db.VarChar(10)
|
|
1824
|
+
circlename String? @db.VarChar(100)
|
|
1825
|
+
regionname String? @db.VarChar(100)
|
|
1826
|
+
divisionname String? @db.VarChar(20)
|
|
1827
|
+
officename String? @db.VarChar(50)
|
|
1828
|
+
officetype String? @db.VarChar(20)
|
|
1829
|
+
delivery String? @db.VarChar(20)
|
|
1830
|
+
district String? @db.VarChar(20)
|
|
1831
|
+
statename String? @db.VarChar(20)
|
|
1832
|
+
latitude String? @db.VarChar(20)
|
|
1833
|
+
longitude String? @db.VarChar(20)
|
|
1834
|
+
type String? @db.VarChar(20)
|
|
1835
|
+
riskStatus String? @db.VarChar(20)
|
|
1836
|
+
riskEligibleFlag String? @db.VarChar(20)
|
|
1837
|
+
eligibleSince String? @db.VarChar(20)
|
|
1838
|
+
isActive Boolean @default(false)
|
|
1839
|
+
createdAt DateTime @default(now())
|
|
1840
|
+
updatedAt DateTime @updatedAt
|
|
1830
1841
|
|
|
1831
1842
|
@@unique([pincode])
|
|
1832
|
-
@@index([pincode, isActive,
|
|
1843
|
+
@@index([pincode, isActive, district, statename])
|
|
1833
1844
|
}
|
|
1834
1845
|
|
|
1835
1846
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
@@ -3206,6 +3217,42 @@ model campaigns {
|
|
|
3206
3217
|
@@index([createdBy])
|
|
3207
3218
|
}
|
|
3208
3219
|
|
|
3220
|
+
model customer_sms {
|
|
3221
|
+
id Int @id @default(autoincrement())
|
|
3222
|
+
sender String
|
|
3223
|
+
body String
|
|
3224
|
+
timestamp BigInt
|
|
3225
|
+
type String
|
|
3226
|
+
customerID Int
|
|
3227
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
3228
|
+
updated_at DateTime @updatedAt
|
|
3229
|
+
|
|
3230
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
3231
|
+
}
|
|
3232
|
+
|
|
3233
|
+
model customer_contact {
|
|
3234
|
+
id Int @id @default(autoincrement())
|
|
3235
|
+
name String
|
|
3236
|
+
phone String @unique
|
|
3237
|
+
customerID Int
|
|
3238
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
3239
|
+
updated_at DateTime @updatedAt
|
|
3240
|
+
|
|
3241
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
model customer_app {
|
|
3245
|
+
id Int @id @default(autoincrement())
|
|
3246
|
+
appName String
|
|
3247
|
+
packageName String @unique
|
|
3248
|
+
versionName String
|
|
3249
|
+
customerID Int
|
|
3250
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
3251
|
+
updated_at DateTime @updatedAt
|
|
3252
|
+
|
|
3253
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
3254
|
+
}
|
|
3255
|
+
|
|
3209
3256
|
enum commission_type {
|
|
3210
3257
|
PERCENTAGE // % based
|
|
3211
3258
|
FIXED // per lead fixed amount
|