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

42 lines
801 B
JSON
Raw Permalink 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"
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": {
"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"
}
}
}