33 lines
655 B
JSON
33 lines
655 B
JSON
{
|
|
"name": "Notification",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "util.notification"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"delay": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"subscription": {
|
|
"type": "hasMany",
|
|
"model": "NotificationSubscription",
|
|
"foreignKey": "notificationFk"
|
|
}
|
|
}
|
|
} |