51 lines
911 B
JSON
51 lines
911 B
JSON
{
|
|
"name": "Item",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "item",
|
|
"database": "vn"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"size": {
|
|
"type": "Number"
|
|
},
|
|
"category": {
|
|
"type": "Number"
|
|
},
|
|
"stems": {
|
|
"type": "Number"
|
|
},
|
|
"description": {
|
|
"type": "String"
|
|
},
|
|
"isOnOffer": {
|
|
"type": "Boolean"
|
|
},
|
|
"isBargain": {
|
|
"type": "Boolean"
|
|
},
|
|
"comment": {
|
|
"type": "String"
|
|
},
|
|
"relevancy": {
|
|
"type": "Number"
|
|
},
|
|
"image": {
|
|
"type": "String"
|
|
}
|
|
},
|
|
"relations": {
|
|
"itemType": {
|
|
"type": "belongsTo",
|
|
"model": "ItemType",
|
|
"foreignKey": "typeFk"
|
|
}
|
|
}
|
|
} |