salix/modules/zone/back/models/agency.json

28 lines
434 B
JSON

{
"name": "Agency",
"base": "VnModel",
"options": {
"mysql": {
"table": "agency"
}
},
"properties": {
"id": {
"id": true,
"type": "number",
"forceId": false
},
"name": {
"type": "string",
"required": false
}
},
"relations": {
"supplierAgencyTerm": {
"type": "hasOne",
"model": "SupplierAgencyTerm",
"foreignKey": "agencyFk"
}
}
}