oms-HumanResourceManagement/Admin/Install/db.json
Dennis Eichhorn f0e2ebe314 update
2024-01-02 23:34:17 +00:00

389 lines
13 KiB
JSON
Executable File

{
"hr_staff": {
"name": "hr_staff",
"fields": {
"hr_staff_id": {
"name": "hr_staff_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"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_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"
}
}
}
}