2019-03-15 11:58:26 +00:00
|
|
|
{
|
|
|
|
"name": "EmailUser",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "account.emailUser"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"userFk": {
|
|
|
|
"id": true,
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2019-03-15 11:58:26 +00:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
2023-01-24 08:04:43 +00:00
|
|
|
"model": "VnUser",
|
2019-03-15 11:58:26 +00:00
|
|
|
"foreignKey": "userFk"
|
|
|
|
}
|
2021-10-01 06:39:42 +00:00
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
]
|
2019-03-15 11:58:26 +00:00
|
|
|
}
|