2018-03-12 12:55:18 +00:00
|
|
|
{
|
|
|
|
"name": "Sale",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "sale"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number",
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"concept": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"quantity": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"price": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"discount": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"reserved": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"isPicked": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"item": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Item",
|
|
|
|
"foreignKey": "itemFk",
|
|
|
|
"required": true
|
|
|
|
},
|
2018-03-20 13:01:46 +00:00
|
|
|
"itemTag": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ItemTag",
|
|
|
|
"foreignKey": "itemFk"
|
|
|
|
},
|
2018-03-12 12:55:18 +00:00
|
|
|
"ticket": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Ticket",
|
|
|
|
"foreignKey": "ticketFk",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|