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

41 lines
786 B
JSON

{
"name": "Recovery",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"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"
}
}
}