2013-12-18 05:10:05 +00:00
|
|
|
{
|
|
|
|
"email": {
|
|
|
|
"options": {
|
|
|
|
"base": "Email",
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"permission": "DENY",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"dataSource": "mail",
|
|
|
|
"public": false
|
|
|
|
},
|
|
|
|
"user": {
|
|
|
|
"options": {
|
|
|
|
"base": "User",
|
|
|
|
"relations": {
|
|
|
|
"accessTokens": {
|
|
|
|
"model": "accessToken",
|
|
|
|
"type": "hasMany",
|
|
|
|
"foreignKey": "userId"
|
|
|
|
},
|
|
|
|
"transactions": {
|
|
|
|
"model": "transaction",
|
|
|
|
"type": "hasMany"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"permission": "DENY",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"dataSource": "db",
|
|
|
|
"public": true
|
|
|
|
},
|
|
|
|
"accessToken": {
|
|
|
|
"options": {
|
|
|
|
"base": "AccessToken",
|
|
|
|
"baseUrl": "access-tokens",
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"permission": "DENY",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"permission": "ALLOW",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"property": "create"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"dataSource": "db",
|
|
|
|
"public": true
|
|
|
|
},
|
|
|
|
"bank": {
|
|
|
|
"options": {
|
|
|
|
"relations": {
|
|
|
|
"users": {
|
|
|
|
"model": "user",
|
|
|
|
"type": "hasMany"
|
|
|
|
},
|
|
|
|
"accounts": {
|
|
|
|
"model": "account",
|
|
|
|
"type": "hasMany"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"permission": "DENY",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"accessType": "READ",
|
|
|
|
"permission": "ALLOW",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"properties": {},
|
|
|
|
"public": true,
|
|
|
|
"dataSource": "db"
|
|
|
|
},
|
|
|
|
"account": {
|
|
|
|
"options": {
|
|
|
|
"relations": {
|
|
|
|
"transactions": {
|
|
|
|
"model": "transaction",
|
|
|
|
"type": "hasMany"
|
2014-03-19 22:09:20 +00:00
|
|
|
},
|
|
|
|
"user": {
|
|
|
|
"model": "user",
|
|
|
|
"type": "belongsTo",
|
|
|
|
"foreignKey": "userId"
|
2013-12-18 05:10:05 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"permission": "DENY",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"permission": "ALLOW",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$owner"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"permission": "DENY",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$owner",
|
2014-07-16 16:09:07 +00:00
|
|
|
"property": "deleteById"
|
2013-12-18 05:10:05 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"properties": {},
|
|
|
|
"public": true,
|
|
|
|
"dataSource": "db"
|
|
|
|
},
|
|
|
|
"transaction": {
|
|
|
|
"options": {
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"permission": "DENY",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"properties": {},
|
|
|
|
"public": true,
|
|
|
|
"dataSource": "db"
|
|
|
|
},
|
|
|
|
"alert": {
|
|
|
|
"options": {
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "WRITE",
|
|
|
|
"permission": "DENY",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"properties": {},
|
|
|
|
"public": true,
|
|
|
|
"dataSource": "db"
|
|
|
|
}
|
|
|
|
}
|