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"
|
|
}
|
|
}
|
|
} |