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

59 lines
1.2 KiB
JSON

{
"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"
}
]
}