@factor-wise/prisma-schema 2.0.80 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factor-wise/prisma-schema",
3
- "version": "2.0.80",
3
+ "version": "2.0.81",
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
 
@@ -3214,6 +3217,42 @@ model campaigns {
3214
3217
  @@index([createdBy])
3215
3218
  }
3216
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
+
3217
3256
  enum commission_type {
3218
3257
  PERCENTAGE // % based
3219
3258
  FIXED // per lead fixed amount