37 lines
698 B
JSON
37 lines
698 B
JSON
{
|
|
"name": "EntryDms",
|
|
"base": "VnModel",
|
|
"mixins": {
|
|
"Loggable": true
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "entryDms"
|
|
}
|
|
},
|
|
"allowedContentTypes": [
|
|
"image/png",
|
|
"image/jpeg",
|
|
"image/jpg"
|
|
],
|
|
"properties": {
|
|
"dmsFk": {
|
|
"type": "number",
|
|
"id": true,
|
|
"required": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"entry": {
|
|
"type": "belongsTo",
|
|
"model": "Entry",
|
|
"foreignKey": "entryFk"
|
|
},
|
|
"dms": {
|
|
"type": "belongsTo",
|
|
"model": "Dms",
|
|
"foreignKey": "dmsFk"
|
|
}
|
|
}
|
|
}
|