@factor-wise/prisma-schema 2.0.80 → 2.0.82

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factor-wise/prisma-schema",
3
- "version": "2.0.80",
3
+ "version": "2.0.82",
4
4
  "description": "Shared Prisma schema and generated client for Factor Wise projects",
5
5
  "main": "generated/client/index.js",
6
6
  "types": "generated/client/index.d.ts",
@@ -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
 
@@ -721,7 +724,11 @@ model customer_extended {
721
724
  isBtCase Boolean @default(false)
722
725
  attempts Int? @default(0)
723
726
  lastAttempt DateTime?
727
+ latitude Decimal? @db.Decimal(10, 7)
728
+ longitude Decimal? @db.Decimal(10, 7)
724
729
  customer customer @relation(fields: [customerID], references: [customerID])
730
+
731
+ @@index([latitude, longitude])
725
732
  }
726
733
 
727
734
  model customer_credit_remarks {
@@ -3214,6 +3221,42 @@ model campaigns {
3214
3221
  @@index([createdBy])
3215
3222
  }
3216
3223
 
3224
+ model customer_sms {
3225
+ id Int @id @default(autoincrement())
3226
+ sender String
3227
+ body String
3228
+ timestamp BigInt
3229
+ type String
3230
+ customerID Int
3231
+ created_at DateTime @default(now()) @db.DateTime(0)
3232
+ updated_at DateTime @updatedAt
3233
+
3234
+ customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
3235
+ }
3236
+
3237
+ model customer_contact {
3238
+ id Int @id @default(autoincrement())
3239
+ name String
3240
+ phone String @unique
3241
+ customerID Int
3242
+ created_at DateTime @default(now()) @db.DateTime(0)
3243
+ updated_at DateTime @updatedAt
3244
+
3245
+ customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
3246
+ }
3247
+
3248
+ model customer_app {
3249
+ id Int @id @default(autoincrement())
3250
+ appName String
3251
+ packageName String @unique
3252
+ versionName String
3253
+ customerID Int
3254
+ created_at DateTime @default(now()) @db.DateTime(0)
3255
+ updated_at DateTime @updatedAt
3256
+
3257
+ customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
3258
+ }
3259
+
3217
3260
  enum commission_type {
3218
3261
  PERCENTAGE // % based
3219
3262
  FIXED // per lead fixed amount