salix/modules/worker/back/models/department.json

72 lines
1.5 KiB
JSON
Raw Normal View History

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",
"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"
},
"hasToMistake": {
"type": "number"
},
"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-02-26 11:52:34 +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-02-26 11:52:34 +00:00
}