35 lines
499 B
JSON
35 lines
499 B
JSON
|
{
|
||
|
"name": "ItemShelvingSale",
|
||
|
"base": "VnModel",
|
||
|
"options": {
|
||
|
"mysql": {
|
||
|
"table": "itemShelvingSale"
|
||
|
}
|
||
|
},
|
||
|
"properties": {
|
||
|
"id": {
|
||
|
"type": "Number",
|
||
|
"id": true,
|
||
|
"description": "Identifier"
|
||
|
},
|
||
|
"quantity": {
|
||
|
"type": "Number"
|
||
|
},
|
||
|
"created": {
|
||
|
"type": "Date"
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"sale": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Sale",
|
||
|
"foreignKey": "saleFk"
|
||
|
},
|
||
|
"user": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Account",
|
||
|
"foreignKey": "userFk"
|
||
|
}
|
||
|
}
|
||
|
}
|