access-list.js 541 B

123456789101112131415161718192021222324
  1. const Backbone = require('backbone');
  2. const model = Backbone.Model.extend({
  3. idAttribute: 'id',
  4. defaults: function () {
  5. return {
  6. id: undefined,
  7. created_on: null,
  8. modified_on: null,
  9. name: '',
  10. items: [],
  11. // The following are expansions:
  12. owner: null
  13. };
  14. }
  15. });
  16. module.exports = {
  17. Model: model,
  18. Collection: Backbone.Collection.extend({
  19. model: model
  20. })
  21. };