access_item.js 385 B

12345678910111213141516171819202122
  1. 'use strict';
  2. import Backbone from 'backbone';
  3. const model = Backbone.Model.extend({
  4. idAttribute: 'username',
  5. defaults: function () {
  6. return {
  7. username: '',
  8. password: '',
  9. hint: ''
  10. };
  11. }
  12. });
  13. module.exports = {
  14. Model: model,
  15. Collection: Backbone.Collection.extend({
  16. model: model
  17. })
  18. };