2017-12-19 11:29:35 +00:00
|
|
|
{
|
|
|
|
"name": "Item",
|
2019-03-12 10:47:53 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model":"ItemLog"
|
|
|
|
},
|
2017-12-19 11:29:35 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-01-29 11:37:54 +00:00
|
|
|
"table": "item"
|
2017-12-19 11:29:35 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
2018-07-24 05:34:14 +00:00
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
2019-01-16 07:46:40 +00:00
|
|
|
"type": "String"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
|
|
|
"size": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"category": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
2019-01-16 07:46:40 +00:00
|
|
|
"typeFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
|
|
|
},
|
2018-07-24 05:34:14 +00:00
|
|
|
"stems": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"isOnOffer": {
|
|
|
|
"type": "Boolean"
|
|
|
|
},
|
|
|
|
"isBargain": {
|
|
|
|
"type": "Boolean"
|
|
|
|
},
|
2018-10-16 11:18:24 +00:00
|
|
|
"isActive": {
|
|
|
|
"type": "Boolean"
|
|
|
|
},
|
2018-07-24 05:34:14 +00:00
|
|
|
"comment": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"relevancy": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
2018-12-17 13:15:39 +00:00
|
|
|
"density": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
2018-07-24 05:34:14 +00:00
|
|
|
"image": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"longName": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"subName": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"tag5": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"value5": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"tag6": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"value6": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"tag7": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"value7": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"tag8": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"value8": {
|
|
|
|
"type": "String"
|
2018-11-06 09:49:38 +00:00
|
|
|
},
|
|
|
|
"tag9": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"value9": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"tag10": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"value10": {
|
|
|
|
"type": "String"
|
2018-07-24 05:34:14 +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"
|
2018-01-30 07:59:43 +00:00
|
|
|
},
|
2018-04-26 14:41:08 +00:00
|
|
|
"tags": {
|
2018-02-01 09:05:20 +00:00
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ItemTag",
|
|
|
|
"foreignKey": "itemFk"
|
2018-02-14 13:22:35 +00:00
|
|
|
},
|
|
|
|
"itemBarcode": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ItemBarcode",
|
|
|
|
"foreignKey": "itemFk"
|
2018-02-20 11:25:51 +00:00
|
|
|
},
|
2018-02-23 12:04:44 +00:00
|
|
|
"taxes": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ItemTaxCountry",
|
|
|
|
"foreignKey": "itemFk"
|
|
|
|
},
|
2018-02-20 11:25:51 +00:00
|
|
|
"itemNiche": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ItemNiche",
|
|
|
|
"foreignKey": "itemFk"
|
2017-12-19 13:58:14 +00:00
|
|
|
}
|
2017-12-19 11:29:35 +00:00
|
|
|
}
|
|
|
|
}
|