60 lines
1.1 KiB
JSON
60 lines
1.1 KiB
JSON
{
|
|
"name": "Account",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "account.user"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"required": true
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"active": {
|
|
"type": "boolean"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
},
|
|
"updated": {
|
|
"type": "date"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
]
|
|
}
|