salix/back/models/account.json

60 lines
1.1 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
},
"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
},
"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
}