2017-10-13 14:22:45 +00:00
|
|
|
{
|
|
|
|
"name": "Agency",
|
|
|
|
"base": "VnModel",
|
2018-01-29 11:37:54 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "agency"
|
|
|
|
}
|
|
|
|
},
|
2017-10-13 14:22:45 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
2022-02-23 15:12:29 +00:00
|
|
|
"type": "number",
|
2017-10-13 14:22:45 +00:00
|
|
|
"forceId": false
|
|
|
|
},
|
|
|
|
"name": {
|
2022-02-23 15:12:29 +00:00
|
|
|
"type": "string",
|
2017-10-13 14:22:45 +00:00
|
|
|
"required": false
|
|
|
|
}
|
2022-03-15 08:36:48 +00:00
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"supplierAgencyTerm": {
|
2022-03-15 13:50:09 +00:00
|
|
|
"type": "hasOne",
|
2022-03-15 08:36:48 +00:00
|
|
|
"model": "SupplierAgencyTerm",
|
|
|
|
"foreignKey": "agencyFk"
|
|
|
|
}
|
2017-10-13 14:22:45 +00:00
|
|
|
}
|
|
|
|
}
|