@factor-wise/prisma-schema 2.0.85 → 2.0.86

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.85",
3
+ "version": "2.0.86",
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",
@@ -3126,6 +3126,9 @@ model vendors {
3126
3126
  parent vendors? @relation("VendorHierarchy", fields: [parentId], references: [id])
3127
3127
  children vendors[] @relation("VendorHierarchy")
3128
3128
 
3129
+ roleId Int?
3130
+ role dsa_roles? @relation(fields: [roleId], references: [id])
3131
+
3129
3132
  leads vendor_leads[]
3130
3133
  campaigns campaigns[]
3131
3134
  activityLogs activity_logs[]
@@ -3335,6 +3338,33 @@ model customer_app {
3335
3338
  customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
3336
3339
  }
3337
3340
 
3341
+ model dsa_permissions {
3342
+ id Int @id @default(autoincrement())
3343
+ module String
3344
+ name String @unique
3345
+ description String?
3346
+
3347
+ createdAt DateTime @default(now())
3348
+ updatedAt DateTime @updatedAt
3349
+
3350
+ @@index([module])
3351
+ }
3352
+
3353
+ model dsa_roles {
3354
+ id Int @id @default(autoincrement())
3355
+ name String @unique
3356
+ description String?
3357
+
3358
+ permissionIds Json
3359
+
3360
+ isActive Boolean @default(true)
3361
+
3362
+ createdAt DateTime @default(now())
3363
+ updatedAt DateTime @updatedAt
3364
+
3365
+ vendors vendors[]
3366
+ }
3367
+
3338
3368
  enum commission_type {
3339
3369
  PERCENTAGE // % based
3340
3370
  FIXED // per lead fixed amount