forked from juan/hedera-web
52 lines
725 B
JSON
52 lines
725 B
JSON
|
{
|
||
|
"name": "Sale",
|
||
|
"base": "PersistedModel",
|
||
|
"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": "boolean"
|
||
|
},
|
||
|
"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
|
||
|
}
|
||
|
}
|
||
|
}
|