access-list.js 574 B

12345678910111213141516171819202122232425
  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. clients: [],
  12. // The following are expansions:
  13. owner: null
  14. };
  15. }
  16. });
  17. module.exports = {
  18. Model: model,
  19. Collection: Backbone.Collection.extend({
  20. model: model
  21. })
  22. };