25 lines
482 B
JavaScript
25 lines
482 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const Backbone = require('backbone');
|
||
|
|
||
|
const model = Backbone.Model.extend({
|
||
|
idAttribute: 'id',
|
||
|
|
||
|
defaults: function () {
|
||
|
return {
|
||
|
id: 0,
|
||
|
created_on: null,
|
||
|
modified_on: null,
|
||
|
// The following are expansions:
|
||
|
owner: null
|
||
|
};
|
||
|
}
|
||
|
});
|
||
|
|
||
|
module.exports = {
|
||
|
Model: model,
|
||
|
Collection: Backbone.Collection.extend({
|
||
|
model: model
|
||
|
})
|
||
|
};
|