mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2025-12-19 05:47:46 +00:00
36 lines
467 B
JavaScript
36 lines
467 B
JavaScript
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;
|