2017-10-13 14:22:45 +00:00
|
|
|
{
|
|
|
|
"name": "Account",
|
|
|
|
"base": "VnModel",
|
2018-01-29 11:37:54 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-12-17 10:28:39 +00:00
|
|
|
"table": "account.user"
|
2018-01-29 11:37:54 +00:00
|
|
|
}
|
|
|
|
},
|
2017-10-13 14:22:45 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
2019-01-23 12:11:44 +00:00
|
|
|
"nickname": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2017-10-13 14:22:45 +00:00
|
|
|
"password": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"active": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"email": {
|
2017-10-24 12:29:53 +00:00
|
|
|
"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"
|
2019-01-23 12:11:44 +00:00
|
|
|
}, {
|
|
|
|
"property": "validateToken",
|
|
|
|
"accessType": "EXECUTE",
|
|
|
|
"principalType": "ROLE",
|
2019-01-25 11:04:35 +00:00
|
|
|
"principalId": "$authenticated",
|
2019-01-23 12:11:44 +00:00
|
|
|
"permission": "ALLOW"
|
2019-01-04 12:32:04 +00:00
|
|
|
}
|
|
|
|
]
|
2017-10-13 14:22:45 +00:00
|
|
|
}
|