41 lines
817 B
JSON
41 lines
817 B
JSON
{
|
|
"name": "Recovery",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model": "ClientLog",
|
|
"relation": "client"
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
} |