43 lines
827 B
JSON
43 lines
827 B
JSON
{
|
|
"name": "Mandate",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "mandate",
|
|
"database": "vn"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
} |