{ "workflow_template": { "name": "workflow_template", "fields": { "workflow_template_id": { "name": "workflow_template_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "workflow_template_name": { "name": "workflow_template_name", "type": "VARCHAR(255)", "default": null, "null": true }, "workflow_template_status": { "name": "workflow_template_status", "type": "INT", "null": false }, "workflow_template_desc": { "name": "workflow_template_desc", "type": "TEXT", "default": null, "null": true }, "workflow_template_descRaw": { "name": "workflow_template_descRaw", "type": "TEXT", "default": null, "null": true }, "workflow_template_schema": { "name": "workflow_template_schema", "type": "TEXT", "default": null, "null": true }, "workflow_template_media": { "name": "workflow_template_media", "type": "INT", "null": true, "default": null, "foreignTable": "media", "foreignKey": "media_id" }, "workflow_template_created_at": { "name": "workflow_template_created_at", "type": "DATETIME", "null": false }, "workflow_template_created_by": { "name": "workflow_template_created_by", "type": "INT", "null": false, "foreignTable": "account", "foreignKey": "account_id" } } }, "workflow_instance": { "name": "workflow_instance", "fields": { "workflow_instance_id": { "name": "workflow_instance_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "workflow_instance_title": { "name": "workflow_instance_title", "type": "VARCHAR(255)", "default": null, "null": true }, "workflow_instance_status": { "name": "workflow_instance_status", "type": "INT", "null": false }, "workflow_instance_data": { "name": "workflow_instance_data", "type": "TEXT", "null": false }, "workflow_instance_template": { "name": "workflow_instance_template", "type": "INT", "null": false, "foreignTable": "workflow_template", "foreignKey": "workflow_template_id" }, "workflow_instance_created_at": { "name": "workflow_instance_created_at", "type": "DATETIME", "null": false }, "workflow_instance_end": { "name": "workflow_instance_end", "type": "DATETIME", "null": true, "default": null }, "workflow_instance_created_by": { "name": "workflow_instance_created_by", "type": "INT", "null": false, "foreignTable": "account", "foreignKey": "account_id" } } } }