37 lines
739 B
JSON
37 lines
739 B
JSON
|
{
|
||
|
"name": "SupplierDms",
|
||
|
"base": "VnModel",
|
||
|
"mixins": {
|
||
|
"Loggable": true
|
||
|
},
|
||
|
"options": {
|
||
|
"mysql": {
|
||
|
"table": "supplierDms"
|
||
|
}
|
||
|
},
|
||
|
"allowedContentTypes": [
|
||
|
"image/png",
|
||
|
"image/jpeg",
|
||
|
"image/jpg",
|
||
|
"application/pdf"
|
||
|
],
|
||
|
"properties": {
|
||
|
"dmsFk": {
|
||
|
"type": "number",
|
||
|
"id": true,
|
||
|
"required": true
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"supplier": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Supplier",
|
||
|
"foreignKey": "supplierFk"
|
||
|
},
|
||
|
"dms": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Dms",
|
||
|
"foreignKey": "dmsFk"
|
||
|
}
|
||
|
}
|
||
|
}
|