42 lines
801 B
JSON
42 lines
801 B
JSON
{
|
|
"name": "Mandate",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "mandate"
|
|
}
|
|
},
|
|
"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"
|
|
},
|
|
"company": {
|
|
"type": "belongsTo",
|
|
"model": "Company",
|
|
"foreignKey": "companyFk"
|
|
},
|
|
"mandateType": {
|
|
"type": "belongsTo",
|
|
"model": "MandateType",
|
|
"foreignKey": "mandateTypeFk"
|
|
}
|
|
}
|
|
} |