salix/modules/item/back/models/fixed-price.json

59 lines
1.2 KiB
JSON
Raw Normal View History

2021-01-18 13:16:39 +00:00
{
"name": "FixedPrice",
"base": "VnModel",
"options": {
"mysql": {
"table": "priceFixed"
}
},
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Identifier"
},
"itemFk": {
"type": "number",
"required": true
},
"warehouseFk": {
"type": "number"
},
"rate2": {
"type": "number",
"required": true
},
"rate3": {
"type": "number",
"required": true
},
"started": {
"type": "date",
"required": true
},
"ended": {
"type": "date",
"required": true
}
},
"relations": {
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk"
},
"warehouse": {
"type": "belongsTo",
"model": "Warehouse",
"foreignKey": "warehouseFk"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "buyer",
"permission": "ALLOW"
}
]
}