salix/back/models/email-user.json

36 lines
551 B
JSON

{
"name": "EmailUser",
"base": "VnModel",
"options": {
"mysql": {
"table": "account.emailUser"
}
},
"properties": {
"userFk": {
"id": true,
"type": "number",
"required": true
},
"email": {
"type": "string",
"required": true
}
},
"relations": {
"user": {
"type": "belongsTo",
"model": "Account",
"foreignKey": "userFk"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}