salix/services/client/common/models/mandate.json

43 lines
827 B
JSON
Raw Normal View History

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": {
"table": "mandate",
"database": "vn"
}
},
2017-12-13 07:24:14 +00:00
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"code": {
"type": "String"
},
"created": {
"type": "date"
},
"finished": {
"type": "date"
}
},
"relations": {
"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"
}
}
}