2017-12-13 07:24:14 +00:00
|
|
|
{
|
2017-12-13 12:40:21 +00:00
|
|
|
"name": "Mandate",
|
2017-12-13 07:24:14 +00:00
|
|
|
"base": "VnModel",
|
2017-12-13 12:40:21 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-01-29 11:37:54 +00:00
|
|
|
"table": "mandate"
|
2017-12-13 12:40:21 +00:00
|
|
|
}
|
|
|
|
},
|
2017-12-13 07:24:14 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2017-12-13 07:24:14 +00:00
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"code": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string"
|
2017-12-13 07:24:14 +00:00
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"finished": {
|
|
|
|
"type": "date"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
2017-12-13 08:05:58 +00:00
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
2017-12-13 07:24:14 +00:00
|
|
|
"company": {
|
|
|
|
"type": "belongsTo",
|
2017-12-13 12:40:21 +00:00
|
|
|
"model": "Company",
|
2017-12-13 07:24:14 +00:00
|
|
|
"foreignKey": "companyFk"
|
|
|
|
},
|
|
|
|
"mandateType": {
|
|
|
|
"type": "belongsTo",
|
2017-12-13 12:40:21 +00:00
|
|
|
"model": "MandateType",
|
2017-12-13 07:24:14 +00:00
|
|
|
"foreignKey": "mandateTypeFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|