procbay-schema 1.0.78 → 1.0.83
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/json/content-data/dynamic-form.json +18 -15
- package/prisma/json/core-data/permissions/contract-clause.json +34 -0
- package/prisma/json/core-data/permissions/contract-template.json +34 -0
- package/prisma/json/core-data/permissions/contract.json +34 -0
- package/prisma/json/core-data/permissions/strategy.json +58 -0
- package/prisma/json/core-data/user-event-configuration.json +4 -0
- package/prisma/migrations/20251210115800_added_slug_in_strategy_table/migration.sql +11 -0
- package/prisma/migrations/20251211055141_added_description_in_user_event_config_and_dynamic_form_tables/migration.sql +5 -0
- package/prisma/schema.prisma +3 -0
- package/prisma/seeders/dynamic-form.seed.js +2 -0
- package/prisma/seeders/user-event-configuration.seed.js +2 -1
- package/src/prisma/edge.js +6 -3
- package/src/prisma/index-browser.js +3 -0
- package/src/prisma/index.d.ts +108 -4
- package/src/prisma/index.js +6 -3
- package/src/prisma/package.json +1 -1
- package/src/prisma/schema.prisma +20 -17
- package/src/prisma/wasm.js +3 -0
package/src/prisma/package.json
CHANGED
package/src/prisma/schema.prisma
CHANGED
|
@@ -1306,6 +1306,7 @@ model Strategies {
|
|
|
1306
1306
|
id Int @id @default(autoincrement())
|
|
1307
1307
|
uuid String? @unique @default(uuid())
|
|
1308
1308
|
name String? @unique
|
|
1309
|
+
slug String? @unique
|
|
1309
1310
|
description String?
|
|
1310
1311
|
is_active Boolean? @default(false)
|
|
1311
1312
|
created_at DateTime? @default(now()) @db.Timestamptz(6)
|
|
@@ -1755,23 +1756,24 @@ model FormMaster {
|
|
|
1755
1756
|
|
|
1756
1757
|
//------------------------------------ Dynamic Form Models Start ------------------------------------
|
|
1757
1758
|
model DynamicForm {
|
|
1758
|
-
id
|
|
1759
|
-
uuid
|
|
1760
|
-
module_id
|
|
1761
|
-
module
|
|
1762
|
-
form_name
|
|
1763
|
-
form_slug
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1759
|
+
id Int @id @default(autoincrement())
|
|
1760
|
+
uuid String? @unique @default(uuid())
|
|
1761
|
+
module_id Int?
|
|
1762
|
+
module FormMaster? @relation(fields: [module_id], references: [id], onDelete: Cascade)
|
|
1763
|
+
form_name String?
|
|
1764
|
+
form_slug String?
|
|
1765
|
+
description String?
|
|
1766
|
+
fields Json?
|
|
1767
|
+
form_order Int?
|
|
1768
|
+
is_active Boolean? @default(true)
|
|
1769
|
+
is_deleted Boolean? @default(false)
|
|
1770
|
+
created_at DateTime? @default(now()) @db.Timestamptz(6)
|
|
1771
|
+
created_by Int?
|
|
1772
|
+
user User? @relation(fields: [created_by], references: [id], onDelete: Cascade)
|
|
1773
|
+
updated_at DateTime? @updatedAt @db.Timestamptz(6)
|
|
1774
|
+
updated_by Int?
|
|
1775
|
+
deleted_at DateTime? @db.Timestamptz(6)
|
|
1776
|
+
deleted_by Int?
|
|
1775
1777
|
|
|
1776
1778
|
@@unique([module_id, form_slug])
|
|
1777
1779
|
@@map("dynamic_forms")
|
|
@@ -2303,6 +2305,7 @@ model UserEventConfiguration {
|
|
|
2303
2305
|
uuid String? @unique @default(uuid())
|
|
2304
2306
|
name String?
|
|
2305
2307
|
slug String? @unique
|
|
2308
|
+
description String?
|
|
2306
2309
|
is_active Boolean @default(false)
|
|
2307
2310
|
is_editable Boolean @default(false)
|
|
2308
2311
|
created_at DateTime @default(now()) @db.Timestamptz(6)
|
package/src/prisma/wasm.js
CHANGED
|
@@ -836,6 +836,7 @@ exports.Prisma.StrategiesScalarFieldEnum = {
|
|
|
836
836
|
id: 'id',
|
|
837
837
|
uuid: 'uuid',
|
|
838
838
|
name: 'name',
|
|
839
|
+
slug: 'slug',
|
|
839
840
|
description: 'description',
|
|
840
841
|
is_active: 'is_active',
|
|
841
842
|
created_at: 'created_at',
|
|
@@ -1106,6 +1107,7 @@ exports.Prisma.DynamicFormScalarFieldEnum = {
|
|
|
1106
1107
|
module_id: 'module_id',
|
|
1107
1108
|
form_name: 'form_name',
|
|
1108
1109
|
form_slug: 'form_slug',
|
|
1110
|
+
description: 'description',
|
|
1109
1111
|
fields: 'fields',
|
|
1110
1112
|
form_order: 'form_order',
|
|
1111
1113
|
is_active: 'is_active',
|
|
@@ -1421,6 +1423,7 @@ exports.Prisma.UserEventConfigurationScalarFieldEnum = {
|
|
|
1421
1423
|
uuid: 'uuid',
|
|
1422
1424
|
name: 'name',
|
|
1423
1425
|
slug: 'slug',
|
|
1426
|
+
description: 'description',
|
|
1424
1427
|
is_active: 'is_active',
|
|
1425
1428
|
is_editable: 'is_editable',
|
|
1426
1429
|
created_at: 'created_at',
|