2017-12-19 11:29:35 +00:00
|
|
|
{
|
|
|
|
"name": "Item",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "item",
|
|
|
|
"database": "vn"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
2017-12-21 13:08:40 +00:00
|
|
|
"name": {
|
2018-01-09 13:54:18 +00:00
|
|
|
"type": "String",
|
|
|
|
"required": true
|
2017-12-21 13:08:40 +00:00
|
|
|
},
|
2017-12-19 11:29:35 +00:00
|
|
|
"size": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"category": {
|
2017-12-21 13:08:40 +00:00
|
|
|
"type": "String"
|
2017-12-19 11:29:35 +00:00
|
|
|
},
|
|
|
|
"stems": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"isOnOffer": {
|
|
|
|
"type": "Boolean"
|
|
|
|
},
|
|
|
|
"isBargain": {
|
|
|
|
"type": "Boolean"
|
2017-12-19 13:28:19 +00:00
|
|
|
},
|
|
|
|
"comment": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"relevancy": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"image": {
|
|
|
|
"type": "String"
|
2017-12-19 11:29:35 +00:00
|
|
|
}
|
2017-12-19 13:58:14 +00:00
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"itemType": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "ItemType",
|
|
|
|
"foreignKey": "typeFk"
|
2017-12-20 08:53:50 +00:00
|
|
|
},
|
|
|
|
"ink": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Ink",
|
|
|
|
"foreignKey": "inkFk"
|
|
|
|
},
|
|
|
|
"origin": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Origin",
|
|
|
|
"foreignKey": "originFk"
|
|
|
|
},
|
|
|
|
"producer": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Producer",
|
|
|
|
"foreignKey": "producerFk"
|
|
|
|
},
|
|
|
|
"intrastat": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Intrastat",
|
|
|
|
"foreignKey": "intrastatFk"
|
2018-01-17 13:28:06 +00:00
|
|
|
},
|
|
|
|
"expence": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Expence",
|
|
|
|
"foreignKey": "expenceFk"
|
2017-12-19 13:58:14 +00:00
|
|
|
}
|
2017-12-19 11:29:35 +00:00
|
|
|
}
|
|
|
|
}
|