revamp db - refactor webhooks

This commit is contained in:
Dave Horton
2020-01-28 10:30:07 -05:00
parent 10074504c5
commit 87208bc669
13 changed files with 675 additions and 252 deletions
+35
View File
@@ -0,0 +1,35 @@
const Model = require('./model');
class Webhook extends Model {
constructor() {
super();
}
}
Webhook.table = 'webhooks';
Webhook.fields = [
{
name: 'webhook_sid',
type: 'string',
primaryKey: true
},
{
name: 'url',
type: 'string',
required: true
},
{
name: 'method',
type: 'string'
},
{
name: 'username',
type: 'string'
},
{
name: 'password',
type: 'string'
}
];
module.exports = Webhook;