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

81 lines
1.8 KiB
JSON
Raw Permalink Normal View History

2018-04-10 05:48:04 +00:00
{
2018-04-24 10:46:07 +00:00
"name": "Sale",
"base": "Loggable",
2018-04-24 10:46:07 +00:00
"options": {
"mysql": {
"table": "sale"
}
},
"properties": {
"id": {
"id": true,
"type": "number",
"description": "Identifier"
2018-04-24 10:46:07 +00:00
},
"concept": {
2022-05-12 07:47:47 +00:00
"type": "string",
"required": true
2018-04-24 10:46:07 +00:00
},
"quantity": {
"type": "number"
2018-04-24 10:46:07 +00:00
},
"price": {
"type": "number"
2018-04-24 10:46:07 +00:00
},
"discount": {
"type": "number"
2018-04-24 10:46:07 +00:00
},
"reserved": {
"type": "boolean"
2018-04-24 10:46:07 +00:00
},
"isPicked": {
"type": "number"
2018-04-24 10:46:07 +00:00
},
"created": {
"type": "date"
},
"originalQuantity":{
"type": "number"
2018-04-24 10:46:07 +00:00
}
},
"relations": {
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk",
"required": true
},
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk",
"required": true
},
"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"
},
2020-03-23 10:21:25 +00:00
"itemShelvingSale": {
"type": "hasOne",
"model": "ItemShelvingSale",
"foreignKey": "saleFk"
2023-02-06 12:57:04 +00:00
},
"saleGroupDetail": {
"type": "hasOne",
"model": "SaleGroupDetail",
"foreignKey": "saleFk"
2022-12-27 10:50:58 +00:00
}
}
2018-04-10 05:48:04 +00:00
}