{ "hr_staff": { "name": "hr_staff", "fields": { "hr_staff_id": { "name": "hr_staff_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_staff_status": { "name": "hr_staff_status", "type": "TINYINT(1)", "null": false }, "hr_staff_profile": { "name": "hr_staff_profile", "type": "INT", "null": false, "foreignTable": "profile_account", "foreignKey": "profile_account_id" }, "hr_staff_smiPHash": { "name": "hr_staff_smiPHash", "type": "VARBINARY(255)", "null": false }, "hr_staff_image": { "name": "hr_staff_image", "type": "INT", "default": null, "null": true, "foreignTable": "media", "foreignKey": "media_id", "annotations": { "gdpr": true } } } }, "hr_staff_media": { "name": "hr_staff_media", "fields": { "hr_staff_media_id": { "name": "hr_staff_media_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_staff_media_item": { "name": "hr_staff_media_item", "type": "INT", "null": false, "foreignTable": "hr_staff", "foreignKey": "hr_staff_id" }, "hr_staff_media_media": { "name": "hr_staff_media_media", "type": "INT", "null": false, "foreignTable": "media", "foreignKey": "media_id" } } }, "hr_staff_note": { "name": "hr_staff_note", "fields": { "hr_staff_note_id": { "name": "hr_staff_note_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_staff_note_staff": { "name": "hr_staff_note_staff", "type": "INT", "null": false, "foreignTable": "hr_staff", "foreignKey": "hr_staff_id" }, "hr_staff_note_doc": { "name": "hr_staff_note_doc", "type": "INT", "null": false, "foreignTable": "editor_doc", "foreignKey": "editor_doc_id" } } }, "hr_staff_history": { "name": "hr_staff_history", "fields": { "hr_staff_history_id": { "name": "hr_staff_history_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_staff_history_staff": { "name": "hr_staff_history_staff", "type": "INT", "null": false, "foreignTable": "hr_staff", "foreignKey": "hr_staff_id" }, "hr_staff_history_unit": { "name": "hr_staff_history_unit", "type": "INT", "null": true, "default": null, "foreignTable": "unit", "foreignKey": "unit_id" }, "hr_staff_history_department": { "name": "hr_staff_history_department", "type": "INT", "null": true, "default": null, "foreignTable": "organization_department", "foreignKey": "organization_department_id" }, "hr_staff_history_position": { "name": "hr_staff_history_position", "type": "INT", "null": true, "default": null, "foreignTable": "organization_position", "foreignKey": "organization_position_id" }, "hr_staff_history_start": { "name": "hr_staff_history_start", "type": "DATETIME", "null": false }, "hr_staff_history_end": { "name": "hr_staff_history_end", "type": "DATETIME", "null": true, "default": null } } }, "hr_staff_history_media": { "name": "hr_staff_history_media", "fields": { "hr_staff_history_media_id": { "name": "hr_staff_history_media_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_staff_history_media_history": { "name": "hr_staff_history_media_history", "type": "INT", "null": false, "foreignTable": "hr_staff_history", "foreignKey": "hr_staff_history_id" }, "hr_staff_history_media_media": { "name": "hr_staff_history_media_media", "type": "INT", "null": false, "foreignTable": "media", "foreignKey": "media_id" } } }, "hr_staff_education_history": { "name": "hr_staff_education_history", "fields": { "hr_staff_education_history_id": { "name": "hr_staff_education_history_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_staff_education_history_staff": { "name": "hr_staff_education_history_staff", "type": "INT", "null": false, "foreignTable": "hr_staff", "foreignKey": "hr_staff_id" }, "hr_staff_education_history_address": { "name": "hr_staff_education_history_address", "type": "TEXT", "null": false }, "hr_staff_education_history_title": { "name": "hr_staff_education_history_title", "type": "VARCHAR(255)", "null": false }, "hr_staff_education_history_passed": { "name": "hr_staff_education_history_passed", "type": "TINYINT", "null": false }, "hr_staff_education_history_score": { "name": "hr_staff_education_history_score", "type": "VARCHAR(255)", "null": false }, "hr_staff_education_history_start": { "name": "hr_staff_education_history_start", "type": "DATETIME", "null": false }, "hr_staff_education_history_end": { "name": "hr_staff_education_history_end", "type": "DATETIME", "null": true, "default": null } } }, "hr_staff_education_history_media": { "name": "hr_staff_education_history_media", "fields": { "hr_staff_education_history_media_id": { "name": "hr_staff_education_history_media_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_staff_education_history_media_history": { "name": "hr_staff_education_history_media_history", "type": "INT", "null": false, "foreignTable": "hr_staff_education_history", "foreignKey": "hr_staff_education_history_id" }, "hr_staff_education_history_media_media": { "name": "hr_staff_education_history_media_media", "type": "INT", "null": false, "foreignTable": "media", "foreignKey": "media_id" } } }, "hr_staff_work_history": { "name": "hr_staff_work_history", "fields": { "hr_staff_work_history_id": { "name": "hr_staff_work_history_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_staff_work_history_staff": { "name": "hr_staff_work_history_staff", "type": "INT", "null": false, "foreignTable": "hr_staff", "foreignKey": "hr_staff_id" }, "hr_staff_work_history_address": { "name": "hr_staff_work_history_address", "type": "TEXT", "null": false }, "hr_staff_work_history_title": { "name": "hr_staff_work_history_title", "type": "VARCHAR(255)", "null": false }, "hr_staff_work_history_start": { "name": "hr_staff_work_history_start", "type": "DATETIME", "null": false }, "hr_staff_work_history_end": { "name": "hr_staff_work_history_end", "type": "DATETIME", "null": true, "default": null } } }, "hr_staff_work_history_media": { "name": "hr_staff_work_history_media", "fields": { "hr_staff_work_history_media_id": { "name": "hr_staff_work_history_media_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_staff_work_history_media_history": { "name": "hr_staff_work_history_media_history", "type": "INT", "null": false, "foreignTable": "hr_staff_work_history", "foreignKey": "hr_staff_work_history_id" }, "hr_staff_work_history_media_media": { "name": "hr_staff_work_history_media_media", "type": "INT", "null": false, "foreignTable": "media", "foreignKey": "media_id" } } }, "hr_salary_type": { "name": "hr_salary_type", "fields": { "hr_salary_type_id": { "name": "hr_salary_type_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_salary_type_name": { "name": "hr_salary_type_name", "type": "VARCHAR(64)", "null": false, "unique": true }, "hr_salary_type_salary": { "comment": "Not all salary types are considered salary by the employee", "name": "hr_salary_type_salary", "type": "TINYINT(1)", "null": false }, "hr_salary_type_regular": { "comment": "Not all salary types are regular payments. Can be overwritten by salary", "name": "hr_salary_type_regular", "type": "TINYINT(1)", "null": false } } }, "hr_salary_type_l11n": { "name": "hr_salary_type_l11n", "fields": { "hr_salary_type_l11n_id": { "name": "hr_salary_type_l11n_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_salary_type_l11n_title": { "name": "hr_salary_type_l11n_title", "type": "VARCHAR(64)", "null": false }, "hr_salary_type_l11n_type": { "name": "hr_salary_type_l11n_type", "type": "INT", "null": false, "foreignTable": "hr_salary_type", "foreignKey": "hr_salary_type_id" }, "hr_salary_type_l11n_language": { "name": "hr_salary_type_l11n_language", "type": "VARCHAR(2)", "default": null, "null": true, "foreignTable": "language", "foreignKey": "language_639_1" } } }, "hr_salary": { "name": "hr_salary", "fields": { "hr_salary_id": { "name": "hr_salary_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_salary_description": { "name": "hr_salary_description", "type": "TEXT", "null": false }, "hr_salary_staff": { "name": "hr_salary_staff", "type": "INT", "null": false, "foreignTable": "hr_staff", "foreignKey": "hr_staff_id" }, "hr_salary_amount": { "name": "hr_salary_amount", "type": "BIGINT", "null": false }, "hr_salary_type": { "name": "hr_salary_type", "type": "INT", "null": false, "foreignTable": "hr_salary_type", "foreignKey": "hr_salary_type_id" }, "hr_salary_date": { "name": "hr_salary_date", "type": "DATETIME", "null": true, "default": null }, "hr_salary_regular": { "name": "hr_salary_regular", "type": "TINYINT(1)", "null": false } } }, "hr_position": { "name": "hr_position", "fields": { "hr_position_id": { "name": "hr_position_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_position_title": { "name": "hr_position_title", "type": "VARCHAR(255)", "null": false }, "hr_position_requirement": { "name": "hr_position_requirement", "type": "TEXT", "null": false }, "hr_position_requirementraw": { "name": "hr_position_requirementraw", "type": "TEXT", "null": false }, "hr_position_tasks": { "name": "hr_position_tasks", "type": "TEXT", "null": false }, "hr_position_tasksraw": { "name": "hr_position_tasksraw", "type": "TEXT", "null": false }, "hr_position_lang": { "name": "hr_position_lang", "type": "VARCHAR(2)", "null": false, "foreignTable": "language", "foreignKey": "language_639_1" }, "hr_position_position": { "name": "hr_position_position", "type": "INT", "default": null, "null": true, "foreignTable": "organization_position", "foreignKey": "organization_position_id" } } }, "hr_position_media": { "name": "hr_position_media", "fields": { "hr_position_media_id": { "name": "hr_position_media_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "hr_position_media_position": { "name": "hr_position_media_position", "type": "INT", "null": false, "foreignTable": "hr_position", "foreignKey": "hr_position_id" }, "hr_position_media_media": { "name": "hr_position_media_media", "type": "INT", "null": false, "foreignTable": "media", "foreignKey": "media_id" } } } }