2022-07-19 13:17:22 +00:00
|
|
|
{
|
|
|
|
"name": "NotificationSubscription",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2022-07-20 12:54:50 +00:00
|
|
|
"table": "util.notificationSubscription"
|
2022-07-19 13:17:22 +00:00
|
|
|
}
|
|
|
|
},
|
2022-07-25 06:25:10 +00:00
|
|
|
"properties": {
|
|
|
|
"notificationFk": {
|
|
|
|
"type": "number",
|
2022-12-27 13:32:19 +00:00
|
|
|
"id": true,
|
2022-07-25 06:25:10 +00:00
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"userFk": {
|
|
|
|
"type": "number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
}
|
|
|
|
},
|
2022-07-19 13:17:22 +00:00
|
|
|
"relations": {
|
2022-07-20 12:54:50 +00:00
|
|
|
"notification": {
|
2022-07-19 13:17:22 +00:00
|
|
|
"type": "belongsTo",
|
2022-07-20 12:54:50 +00:00
|
|
|
"model": "Notification",
|
|
|
|
"foreignKey": "notificationFk"
|
2022-07-19 13:17:22 +00:00
|
|
|
},
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
2022-07-25 06:25:10 +00:00
|
|
|
"model": "Account",
|
2022-07-19 13:17:22 +00:00
|
|
|
"foreignKey": "userFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|