salix/back/models/emailUser.json

28 lines
404 B
JSON
Raw Normal View History

2019-03-15 11:58:26 +00:00
{
"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"
}
}
}