UNPKG

ember-emeis

Version:

The frontend for the emeis user management service

25 lines (20 loc) 527 B
import { attr, hasMany } from "@ember-data/model"; import localizedAttr from "ember-emeis/decorators/localized-attr"; import LocalizedModel from "ember-emeis/models/localized"; export default class UserModel extends LocalizedModel { @attr username; @attr firstName; @attr lastName; @attr email; @attr phone; @attr language; @attr address; @localizedAttr city; @attr zip; @attr metainfo; @attr isActive; get fullName() { return `${this.firstName} ${this.lastName}`; } @hasMany("acl") acls; }