This commit is contained in:
parent
26ea39cacc
commit
045519c38a
|
@ -0,0 +1,2 @@
|
|||
INSERT INTO `salix`.`ACL` (`model`,`property`,`accessType`,`permission`,`principalType`,`principalId`)
|
||||
VALUES ('GenericAllocation','find','READ','ALLOW','ROLE','employee');
|
|
@ -2,6 +2,9 @@
|
|||
"Expense": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"GenericAllocation": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"Genus": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue