mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-07-24 04:52:03 +00:00
40 lines
569 B
JavaScript
40 lines
569 B
JavaScript
const Model = require('./model');
|
|
|
|
class VoipCarrier extends Model {
|
|
constructor() {
|
|
super();
|
|
}
|
|
}
|
|
|
|
VoipCarrier.table = 'voip_carriers';
|
|
VoipCarrier.fields = [
|
|
{
|
|
name: 'voip_carrier_sid',
|
|
type: 'string',
|
|
primaryKey: true
|
|
},
|
|
{
|
|
name: 'name',
|
|
type: 'string',
|
|
required: true
|
|
},
|
|
{
|
|
name: 'description',
|
|
type: 'string'
|
|
},
|
|
{
|
|
name: 'account_sid',
|
|
type: 'string',
|
|
},
|
|
{
|
|
name: 'application_sid',
|
|
type: 'string'
|
|
},
|
|
{
|
|
name: 'e164_leading_plus',
|
|
type: 'number'
|
|
}
|
|
];
|
|
|
|
module.exports = VoipCarrier;
|