2018-07-08 21:22:10 -04:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const Backbone = require('backbone');
|
|
|
|
|
|
|
|
const model = Backbone.Model.extend({
|
|
|
|
idAttribute: 'id',
|
|
|
|
|
|
|
|
defaults: function () {
|
|
|
|
return {
|
2018-08-15 23:08:56 -04:00
|
|
|
id: undefined,
|
2018-08-07 06:27:20 -04:00
|
|
|
created_on: null,
|
|
|
|
modified_on: null,
|
|
|
|
domain_names: [],
|
|
|
|
certificate_id: 0,
|
|
|
|
ssl_forced: false,
|
|
|
|
meta: {},
|
2018-07-25 18:23:32 -04:00
|
|
|
// The following are expansions:
|
2018-08-07 06:27:20 -04:00
|
|
|
owner: null,
|
|
|
|
certificate: null
|
2018-07-08 21:22:10 -04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
Model: model,
|
|
|
|
Collection: Backbone.Collection.extend({
|
|
|
|
model: model
|
|
|
|
})
|
|
|
|
};
|