github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/ui/app/models/token.js (about) 1 import { alias } from '@ember/object/computed'; 2 import Model from 'ember-data/model'; 3 import attr from 'ember-data/attr'; 4 import { hasMany } from 'ember-data/relationships'; 5 6 export default Model.extend({ 7 secret: attr('string'), 8 name: attr('string'), 9 global: attr('boolean'), 10 createTime: attr('date'), 11 type: attr('string'), 12 policies: hasMany('policy'), 13 policyNames: attr(), 14 15 accessor: alias('id'), 16 });