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

55 lines
1.1 KiB
JSON

{
"name": "Department",
"base": "VnModel",
"options": {
"mysql": {
"table": "department"
}
},
"properties": {
"id": {
"id": true,
"type": "number"
},
"code": {
"type": "string"
},
"name": {
"type": "string"
},
"parentFk": {
"type": "number"
},
"lft": {
"type": "number"
},
"rgt": {
"type": "number"
},
"sons": {
"type": "number"
},
"chatName": {
"type": "string"
},
"notificationEmail": {
"type": "string"
},
"hasToMistake": {
"type": "number"
}
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
}
}
}