mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-07-24 13:02:16 +00:00
revamp db - refactor webhooks
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user