2019-02-01 08:31:01 +00:00
|
|
|
{
|
|
|
|
"name": "Department",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "department"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2023-05-29 13:27:50 +00:00
|
|
|
"type": "number",
|
2023-05-30 07:16:02 +00:00
|
|
|
"id": true,
|
2023-05-29 13:27:50 +00:00
|
|
|
"description": "Identifier"
|
2021-02-01 08:29:47 +00:00
|
|
|
},
|
|
|
|
"code": {
|
|
|
|
"type": "string"
|
2019-02-01 08:31:01 +00:00
|
|
|
},
|
|
|
|
"name": {
|
2021-02-01 08:29:47 +00:00
|
|
|
"type": "string"
|
2019-10-04 05:41:24 +00:00
|
|
|
},
|
|
|
|
"parentFk": {
|
2021-02-01 08:29:47 +00:00
|
|
|
"type": "number"
|
2019-10-16 06:56:13 +00:00
|
|
|
},
|
|
|
|
"lft": {
|
2021-02-01 08:29:47 +00:00
|
|
|
"type": "number"
|
2019-10-16 06:56:13 +00:00
|
|
|
},
|
|
|
|
"rgt": {
|
2021-02-01 08:29:47 +00:00
|
|
|
"type": "number"
|
2019-10-16 06:56:13 +00:00
|
|
|
},
|
|
|
|
"sons": {
|
2021-02-01 08:29:47 +00:00
|
|
|
"type": "number"
|
2020-01-20 10:59:15 +00:00
|
|
|
},
|
|
|
|
"chatName": {
|
2021-02-01 08:29:47 +00:00
|
|
|
"type": "string"
|
2020-10-02 10:23:48 +00:00
|
|
|
},
|
|
|
|
"notificationEmail": {
|
2021-02-01 08:29:47 +00:00
|
|
|
"type": "string"
|
2022-03-23 13:12:47 +00:00
|
|
|
},
|
|
|
|
"hasToMistake": {
|
|
|
|
"type": "number"
|
2023-05-30 07:16:02 +00:00
|
|
|
},
|
|
|
|
"isTeleworking": {
|
|
|
|
"type": "boolean"
|
2023-05-30 08:13:49 +00:00
|
|
|
},
|
|
|
|
"hasToRefill": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"hasToSendMail": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isProduction": {
|
|
|
|
"type": "boolean"
|
2019-02-01 08:31:01 +00:00
|
|
|
}
|
2023-05-15 11:15:33 +00:00
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
2024-03-14 07:36:19 +00:00
|
|
|
},
|
|
|
|
"workerActivity": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerActivityTypeFk"
|
2023-05-15 11:15:33 +00:00
|
|
|
}
|
2019-02-01 08:31:01 +00:00
|
|
|
}
|
2024-03-14 07:36:19 +00:00
|
|
|
}
|