salix/modules/client/back/models/recovery.json

38 lines
739 B
JSON

{
"name": "Recovery",
"base": "Loggable",
"options": {
"mysql": {
"table": "recovery"
}
},
"properties": {
"id": {
"id": true,
"type": "number",
"description": "Identifier"
},
"started": {
"type": "date",
"required": true
},
"finished": {
"type": "date"
},
"amount": {
"type": "number",
"required": true
},
"period": {
"type": "number"
}
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
}
}
}