2021-02-26 08:08:31 +00:00
|
|
|
{
|
|
|
|
"name": "StarredModule",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2021-03-01 11:15:13 +00:00
|
|
|
"table": "vn.starredModule"
|
2021-02-26 08:08:31 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "number",
|
|
|
|
"id": true
|
|
|
|
},
|
|
|
|
"workerFk": {
|
|
|
|
"type": "number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"moduleFk": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
|
|
|
},
|
|
|
|
"module": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Module",
|
|
|
|
"foreignKey": "moduleFk"
|
|
|
|
}
|
2021-03-01 15:13:47 +00:00
|
|
|
},
|
2021-03-01 12:07:23 +00:00
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
]
|
2021-03-01 15:13:47 +00:00
|
|
|
}
|