2017-12-19 11:29:35 +00:00
|
|
|
{
|
|
|
|
"name": "Item",
|
2020-02-17 06:22:55 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model": "ItemLog",
|
2019-04-04 10:38:54 +00:00
|
|
|
"showField": "id"
|
2020-02-17 06:22:55 +00:00
|
|
|
},
|
2017-12-19 11:29:35 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2020-02-17 06:22:55 +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,
|
2019-10-28 16:31:33 +00:00
|
|
|
"description": "Id"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
|
|
|
"name": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "String",
|
|
|
|
"description": "Name"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
|
|
|
"size": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "Number",
|
|
|
|
"description": "Size"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
|
|
|
"category": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "String",
|
|
|
|
"description": "Category"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
2019-01-16 07:46:40 +00:00
|
|
|
"typeFk": {
|
|
|
|
"type": "Number",
|
2019-10-28 16:31:33 +00:00
|
|
|
"description": "Type",
|
2019-01-16 07:46:40 +00:00
|
|
|
"required": true
|
|
|
|
},
|
2018-07-24 05:34:14 +00:00
|
|
|
"stems": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "Number",
|
|
|
|
"description": "Stems"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
|
|
|
"description": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "String",
|
|
|
|
"description": "Description"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
|
|
|
"isOnOffer": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "Boolean",
|
|
|
|
"description": "Offer"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
|
|
|
"isBargain": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "Boolean",
|
|
|
|
"description": "Bargain"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
2018-10-16 11:18:24 +00:00
|
|
|
"isActive": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "Boolean",
|
|
|
|
"description": "Active"
|
2018-10-16 11:18:24 +00:00
|
|
|
},
|
2018-07-24 05:34:14 +00:00
|
|
|
"comment": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "String",
|
|
|
|
"description": "Comment"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
|
|
|
"relevancy": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "Number",
|
|
|
|
"description": "Relevancy"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
2018-12-17 13:15:39 +00:00
|
|
|
"density": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "Number",
|
|
|
|
"description": "Density"
|
2018-12-17 13:15:39 +00:00
|
|
|
},
|
2018-07-24 05:34:14 +00:00
|
|
|
"image": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "String",
|
|
|
|
"description": "Image"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
|
|
|
"longName": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "String",
|
|
|
|
"description": "Long name"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
|
|
|
"subName": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "String",
|
|
|
|
"description": "Subname"
|
2018-07-24 05:34:14 +00:00
|
|
|
},
|
|
|
|
"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"
|
2019-09-12 10:27:19 +00:00
|
|
|
},
|
|
|
|
"hasKgPrice": {
|
2019-10-28 16:31:33 +00:00
|
|
|
"type": "Boolean",
|
|
|
|
"description": "Price per Kg"
|
2019-12-13 10:59:25 +00:00
|
|
|
},
|
|
|
|
"expenseFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "expenceFk"
|
|
|
|
}
|
2020-08-27 15:54:43 +00:00
|
|
|
},
|
|
|
|
"minPrice": {
|
|
|
|
"type": "number"
|
2018-07-24 05:34:14 +00:00
|
|
|
}
|
2017-12-19 13:58:14 +00:00
|
|
|
},
|
|
|
|
"relations": {
|
2020-02-17 06:22:55 +00:00
|
|
|
"itemType": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "ItemType",
|
|
|
|
"foreignKey": "typeFk"
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
},
|
|
|
|
"expense": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Expense",
|
|
|
|
"foreignKey": "expenseFk"
|
|
|
|
},
|
|
|
|
"tags": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ItemTag",
|
|
|
|
"foreignKey": "itemFk"
|
|
|
|
},
|
|
|
|
"itemBarcode": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ItemBarcode",
|
|
|
|
"foreignKey": "itemFk"
|
|
|
|
},
|
|
|
|
"taxes": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ItemTaxCountry",
|
|
|
|
"foreignKey": "itemFk"
|
|
|
|
},
|
|
|
|
"itemNiche": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ItemNiche",
|
|
|
|
"foreignKey": "itemFk"
|
|
|
|
}
|
2020-03-11 14:56:02 +00:00
|
|
|
},
|
|
|
|
"scope": {
|
|
|
|
"where": {
|
|
|
|
"name": {
|
|
|
|
"neq": ""
|
|
|
|
}
|
|
|
|
}
|
2017-12-19 11:29:35 +00:00
|
|
|
}
|
2020-02-17 06:22:55 +00:00
|
|
|
}
|