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

41 lines
786 B
JSON
Raw Permalink Normal View History

{
"name": "Recovery",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"options": {
2022-05-12 06:06:30 +00:00
"mysql": {
"table": "recovery"
}
},
"properties": {
2022-05-12 06:06:30 +00:00
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number",
2022-05-12 06:06:30 +00:00
"description": "Identifier"
},
"started": {
"type": "date",
"required": true
},
"finished": {
"type": "date"
},
"amount": {
2022-05-12 07:47:47 +00:00
"type": "number",
2022-05-12 06:06:30 +00:00
"required": true
},
"period": {
2022-05-12 07:47:47 +00:00
"type": "number"
2022-05-12 06:06:30 +00:00
}
},
"relations": {
2022-05-12 06:06:30 +00:00
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
}
}
}