oms-Checklist/Admin/Install/db.json
Dennis Eichhorn c2ebc3920d test fixes
2024-03-17 03:57:41 +00:00

136 lines
4.3 KiB
JSON

{
"checklist_template": {
"name": "checklist_template",
"fields": {
"checklist_template_id": {
"name": "checklist_template_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"checklist_template_name": {
"name": "checklist_template_name",
"type": "VARCHAR(255)",
"null": false
},
"checklist_template_description": {
"name": "checklist_template_description",
"type": "TEXT",
"null": false
},
"checklist_template_repeat": {
"name": "checklist_template_repeat",
"type": "TINYINT(1)",
"null": false
},
"checklist_template_interval": {
"name": "checklist_template_interval",
"type": "VARCHAR(255)",
"null": false
},
"checklist_template_start": {
"name": "checklist_template_start",
"type": "DATETIME",
"null": false
},
"checklist_template_end": {
"name": "checklist_template_end",
"type": "DATETIME",
"null": true,
"default": null
}
}
},
"checklist_template_task": {
"name": "checklist_template_task",
"fields": {
"checklist_template_task_id": {
"name": "checklist_template_task_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"checklist_template_task_order": {
"name": "checklist_template_task_order",
"type": "INT",
"null": false
},
"checklist_template_task_template": {
"name": "checklist_template_task_template",
"type": "INT",
"null": false,
"foreignTable": "checklist_template",
"foreignKey": "checklist_template_id"
},
"checklist_template_task_task": {
"name": "checklist_template_task_task",
"type": "INT",
"null": false,
"foreignTable": "task",
"foreignKey": "task_id"
}
}
},
"checklist": {
"name": "checklist",
"fields": {
"checklist_id": {
"name": "checklist_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"checklist_name": {
"name": "checklist_name",
"type": "VARCHAR(255)",
"null": false
},
"checklist_template": {
"name": "checklist_template",
"type": "INT",
"null": false,
"foreignTable": "checklist_template",
"foreignKey": "checklist_template_id"
},
"checklist_createdat": {
"name": "checklist_createdat",
"type": "DATETIME",
"null": false
}
}
},
"checklist_task": {
"name": "checklist_task",
"fields": {
"checklist_task_id": {
"name": "checklist_task_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"checklist_task_order": {
"name": "checklist_task_order",
"type": "INT",
"null": false
},
"checklist_task_checklist": {
"name": "checklist_task_checklist",
"type": "INT",
"null": false,
"foreignTable": "checklist",
"foreignKey": "checklist_id"
},
"checklist_task_task": {
"name": "checklist_task_task",
"type": "INT",
"null": false,
"foreignTable": "task",
"foreignKey": "task_id"
}
}
}
}