2025-01-04 12:15:14 +03:30

34 lines
858 B
JavaScript

const Backbone = require('backbone');
const model = Backbone.Model.extend({
idAttribute: 'id',
defaults: function () {
return {
id: undefined,
created_on: null,
modified_on: null,
domain_names: [],
certificate_id: 0,
ssl_key_type: 'ecdsa',
ssl_forced: false,
http2_support: false,
hsts_enabled: false,
hsts_subdomains: false,
enabled: true,
meta: {},
advanced_config: '',
// The following are expansions:
owner: null,
certificate: null
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};