salix/back/models/account.json

73 lines
1.3 KiB
JSON
Raw Normal View History

2017-10-13 14:22:45 +00:00
{
"name": "Account",
"base": "VnModel",
"options": {
"mysql": {
2018-12-17 10:28:39 +00:00
"table": "account.user"
}
},
2017-10-13 14:22:45 +00:00
"properties": {
"id": {
"type": "number",
"required": true
},
"name": {
"type": "string",
"required": true
},
2019-01-29 20:45:43 +00:00
"roleFk": {
"type": "number",
"mysql": {
"columnName": "role"
}
},
"nickname": {
"type": "string"
},
2017-10-13 14:22:45 +00:00
"password": {
"type": "string",
"required": true
},
"active": {
"type": "boolean"
},
"email": {
"type": "string"
2017-10-13 14:22:45 +00:00
},
"created": {
"type": "date"
},
"updated": {
"type": "date"
}
2019-01-04 12:32:04 +00:00
},
2019-01-29 20:45:43 +00:00
"relations": {
"role": {
"type": "belongsTo",
"model": "Role",
"foreignKey": "roleFk"
}
},
2019-01-04 12:32:04 +00:00
"acls": [
{
"property": "login",
"accessType": "EXECUTE",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}, {
"property": "logout",
"accessType": "EXECUTE",
"principalType": "ROLE",
"principalId": "$authenticated",
"permission": "ALLOW"
}, {
"property": "validateToken",
"accessType": "EXECUTE",
"principalType": "ROLE",
"principalId": "$authenticated",
"permission": "ALLOW"
2019-01-04 12:32:04 +00:00
}
]
2017-10-13 14:22:45 +00:00
}