refs #4879 feat: genericAllocation model
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2023-07-26 10:41:42 +02:00
parent 26ea39cacc
commit 045519c38a
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,2 @@
INSERT INTO `salix`.`ACL` (`model`,`property`,`accessType`,`permission`,`principalType`,`principalId`)
VALUES ('GenericAllocation','find','READ','ALLOW','ROLE','employee');

View File

@ -2,6 +2,9 @@
"Expense": {
"dataSource": "vn"
},
"GenericAllocation": {
"dataSource": "vn"
},
"Genus": {
"dataSource": "vn"
},

View File

@ -0,0 +1,38 @@
{
"name": "GenericAllocation",
"base": "VnModel",
"options": {
"mysql": {
"table": "genericAllocation"
}
},
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Identifier"
},
"color": {
"type": "string"
},
"started": {
"type": "date",
"mysql": {
"columnName": "startDated"
}
},
"finished": {
"type": "date",
"mysql": {
"columnName": "endDated"
}
}
},
"relations": {
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk"
}
}
}