loopback/test/fixtures/user-integration-app/server/model-config.json

60 lines
952 B
JSON

{
"_meta": {
"sources": [
"../common/models",
"./models",
"../../../../common/models"
]
},
"Email": {
"dataSource": "mail",
"public": false
},
"User": {
"dataSource": "db",
"public": true,
"relations": {
"posts": {
"model": "Post",
"type": "hasMany",
"foreignKey": "userId"
}
},
"acls": [
{
"permission": "ALLOW",
"principalType": "ROLE",
"principalId": "$owner"
}
]
},
"AccessToken": {
"dataSource": "db",
"public": false
},
"ACL": {
"dataSource": "db",
"public": false
},
"RoleMapping": {
"dataSource": "db",
"public": false
},
"Role": {
"dataSource": "db",
"public": false
},
"myUser": {
"dataSource": "db",
"public": true
},
"blog": {
"dataSource": "db",
"public": true
},
"Post": {
"dataSource": "db",
"public": true
}
}