salix/back/models/notificationSubscription.json

36 lines
825 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",
"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",
2023-01-24 08:04:43 +00:00
"model": "VnUser",
2022-07-19 13:17:22 +00:00
"foreignKey": "userFk"
}
}
}