This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/models/user.js
2015-09-09 14:23:25 -07:00

15 lines
369 B
JavaScript

import DS from 'ember-data';
export default DS.Model.extend({
email : DS.attr('string'),
password : DS.attr('string'),
name : DS.attr('string'),
role : DS.attr('string'),
createdAt: DS.attr('date'),
updatedAt: DS.attr('date'),
deletedAt: DS.attr('date'),
isAdmin: function() {
return this.get('role') === 'A';
}.property('role'),
});