salix/modules/item/back/models/item-minimum-quantity.json

63 lines
1.3 KiB
JSON
Raw Permalink Normal View History

2024-07-11 06:57:45 +00:00
{
"name": "ItemMinimumQuantity",
"base": "VnModel",
"options": {
"mysql": {
"table": "itemMinimumQuantity"
}
},
2024-07-12 07:03:37 +00:00
"mixins": {
"Loggable": true
},
2024-07-11 06:57:45 +00:00
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Id"
},
"itemFk": {
"type": "number",
"required": true
},
"quantity": {
"type": "number",
"required": true
},
"started": {
"type": "date",
"required": true
},
"ended": {
"type": "date"
},
"warehouseFk": {
"type": "number"
},
"created": {
"type": "date"
2024-07-12 05:58:59 +00:00
},
"editorFk": {
"type": "number"
2024-07-11 06:57:45 +00:00
}
},
"relations": {
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk"
},
"warehouse": {
"type": "belongsTo",
"model": "Warehouse",
"foreignKey": "warehouseFk"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "buyer",
"permission": "ALLOW"
}
]
}