salix/modules/ticket/back/models/sale.json

73 lines
1.6 KiB
JSON
Raw Normal View History

2018-04-10 05:48:04 +00:00
{
2018-04-24 10:46:07 +00:00
"name": "Sale",
"base": "VnModel",
"options": {
"mysql": {
"table": "sale"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
2018-04-24 10:46:07 +00:00
},
"concept": {
"type": "String",
"required": true
2018-04-24 10:46:07 +00:00
},
"quantity": {
"type": "Number"
},
"price": {
"type": "Number"
},
"discount": {
"type": "Number"
},
"reserved": {
"type": "boolean"
2018-04-24 10:46:07 +00:00
},
"isPicked": {
"type": "Number"
},
"created": {
"type": "date"
}
},
"relations": {
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk",
"required": true
},
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk",
"required": true
},
"isChecked": {
"type": "hasOne",
"model": "SaleChecked",
"foreignKey": "saleFk"
},
"components": {
"type": "hasMany",
"model": "SaleComponent",
"foreignKey": "saleFk"
},
2018-11-21 09:09:36 +00:00
"claimBeginning": {
"type": "hasOne",
"model": "ClaimBeginning",
"foreignKey": "saleFk"
},
"saleTracking": {
"type": "hasOne",
"model": "SaleTracking",
"foreignKey": "saleFk"
}
}
2018-04-10 05:48:04 +00:00
}