Compare commits

...

3 Commits

Author SHA1 Message Date
Alex Moreno 71a5a6fa86 refs #4879 feat: correct sql version
gitea/salix/pipeline/head There was a failure building this commit Details
gitea/salix/pipeline/pr-dev There was a failure building this commit Details
2023-10-25 15:09:21 +02:00
Alex Moreno 5058ba5062 Merge branch 'dev' into 4879-item-generic
gitea/salix/pipeline/head This commit looks good Details
2023-10-25 08:10:46 +00:00
Alex Moreno 045519c38a refs #4879 feat: genericAllocation model
gitea/salix/pipeline/head This commit looks good Details
2023-07-26 10:41:42 +02:00
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": { "Expense": {
"dataSource": "vn" "dataSource": "vn"
}, },
"GenericAllocation": {
"dataSource": "vn"
},
"Genus": { "Genus": {
"dataSource": "vn" "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"
}
},
"ended": {
"type": "date",
"mysql": {
"columnName": "endDated"
}
}
},
"relations": {
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk"
}
}
}