corrad-bp/prisma/json/json-schema.json
Afiq 44baddb6e3 Enhance Process Builder with Critical Fixes and Database Integration
- Implemented complete API system with REST endpoints for all process operations, including CRUD functionality.
- Added support for direct process linking via URL parameters, improving navigation and usability.
- Enhanced save functionality with success/error notifications and improved state management.
- Fixed navigation issues, including unsaved changes detection and automatic URL synchronization.
- Resolved Vue Flow interference, allowing for seamless connector dragging between nodes.
- Ensured backward compatibility for legacy process definitions, automatically upgrading them.
- Introduced comprehensive toast notifications for user feedback on all operations.
- Optimized performance by reducing re-renders and improving memory management.
- Enhanced error handling with robust validation and graceful recovery throughout the system.
- Updated UI consistency across form builder and process builder management interfaces.
2025-05-30 16:36:32 +08:00

371 lines
7.2 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"user": {
"type": "object",
"properties": {
"userID": {
"type": "integer"
},
"userSecretKey": {
"type": [
"string",
"null"
]
},
"userUsername": {
"type": [
"string",
"null"
]
},
"userPassword": {
"type": [
"string",
"null"
]
},
"userFullName": {
"type": [
"string",
"null"
]
},
"userEmail": {
"type": [
"string",
"null"
]
},
"userPhone": {
"type": [
"string",
"null"
]
},
"userStatus": {
"type": [
"string",
"null"
]
},
"userCreatedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"userModifiedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"forms": {
"type": "array",
"items": {
"$ref": "#/definitions/form"
}
},
"processes": {
"type": "array",
"items": {
"$ref": "#/definitions/process"
}
},
"userrole": {
"type": "array",
"items": {
"$ref": "#/definitions/userrole"
}
}
}
},
"role": {
"type": "object",
"properties": {
"roleID": {
"type": "integer"
},
"roleName": {
"type": [
"string",
"null"
]
},
"roleDescription": {
"type": [
"string",
"null"
]
},
"roleStatus": {
"type": [
"string",
"null"
]
},
"roleCreatedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"roleModifiedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"userrole": {
"type": "array",
"items": {
"$ref": "#/definitions/userrole"
}
}
}
},
"userrole": {
"type": "object",
"properties": {
"userRoleID": {
"type": "integer"
},
"userRoleCreatedDate": {
"type": "string",
"format": "date-time"
},
"role": {
"$ref": "#/definitions/role"
},
"user": {
"$ref": "#/definitions/user"
}
}
},
"form": {
"type": "object",
"properties": {
"formID": {
"type": "integer"
},
"formUUID": {
"type": "string"
},
"formName": {
"type": "string"
},
"formDescription": {
"type": [
"string",
"null"
]
},
"formComponents": {
"type": [
"number",
"string",
"boolean",
"object",
"array",
"null"
]
},
"formStatus": {
"type": "string",
"default": "active"
},
"formCreatedDate": {
"type": "string",
"format": "date-time"
},
"formModifiedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"customCSS": {
"type": [
"string",
"null"
]
},
"customScript": {
"type": [
"string",
"null"
]
},
"formEvents": {
"type": [
"number",
"string",
"boolean",
"object",
"array",
"null"
]
},
"scriptMode": {
"type": [
"string",
"null"
],
"default": "safe"
},
"creator": {
"anyOf": [
{
"$ref": "#/definitions/user"
},
{
"type": "null"
}
]
}
}
},
"process": {
"type": "object",
"properties": {
"processID": {
"type": "integer"
},
"processUUID": {
"type": "string"
},
"processName": {
"type": "string"
},
"processDescription": {
"type": [
"string",
"null"
]
},
"processDefinition": {
"type": [
"number",
"string",
"boolean",
"object",
"array",
"null"
]
},
"processVersion": {
"type": "integer",
"default": 1
},
"processStatus": {
"type": "string",
"default": "draft"
},
"processCreatedDate": {
"type": "string",
"format": "date-time"
},
"processModifiedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"isTemplate": {
"type": "boolean",
"default": false
},
"processCategory": {
"type": [
"string",
"null"
]
},
"processOwner": {
"type": [
"string",
"null"
]
},
"processPermissions": {
"type": [
"number",
"string",
"boolean",
"object",
"array",
"null"
]
},
"processPriority": {
"type": [
"string",
"null"
],
"default": "normal"
},
"processSettings": {
"type": [
"number",
"string",
"boolean",
"object",
"array",
"null"
]
},
"processVariables": {
"type": [
"number",
"string",
"boolean",
"object",
"array",
"null"
]
},
"templateCategory": {
"type": [
"string",
"null"
]
},
"creator": {
"anyOf": [
{
"$ref": "#/definitions/user"
},
{
"type": "null"
}
]
}
}
}
},
"type": "object",
"properties": {
"user": {
"$ref": "#/definitions/user"
},
"role": {
"$ref": "#/definitions/role"
},
"userrole": {
"$ref": "#/definitions/userrole"
},
"form": {
"$ref": "#/definitions/form"
},
"process": {
"$ref": "#/definitions/process"
}
}
}