salix/back/models/notificationSubscription.json

36 lines
826 B
JSON
Raw Normal View History

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
}
},
"properties": {
2023-01-05 13:13:42 +00:00
"id": {
"type": "number",
2022-12-27 13:32:19 +00:00
"id": true,
2023-01-05 13:13:42 +00:00
"description": "Primary key"
},
"notificationFk": {
"type": "number",
"description": "Foreign key to Notification"
},
"userFk": {
"type": "number",
2023-01-05 13:13:42 +00:00
"description": "Foreign key to Account"
}
},
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",
"model": "Account",
2022-07-19 13:17:22 +00:00
"foreignKey": "userFk"
}
}
}