28 lines
401 B
JSON
28 lines
401 B
JSON
{
|
|
"name": "MailAliasAccount",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "account.mailAliasAccount"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"alias": {
|
|
"type": "belongsTo",
|
|
"model": "MailAlias",
|
|
"foreignKey": "mailAlias"
|
|
},
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "VnUser",
|
|
"foreignKey": "account"
|
|
}
|
|
}
|
|
}
|