mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-10-28 02:14:13 +00:00
revamp db - refactor webhooks
This commit is contained in:
1 parent
10074504c5
commit
87208bc669
13 files changed
+675
-252
No files matched your search
@@ -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