2017-12-15 21:39:18 +00:00
|
|
|
import { alias } from '@ember/object/computed';
|
2017-10-13 22:17:51 +00:00
|
|
|
import Model from 'ember-data/model';
|
|
|
|
import attr from 'ember-data/attr';
|
|
|
|
import { hasMany } from 'ember-data/relationships';
|
|
|
|
|
|
|
|
export default Model.extend({
|
|
|
|
secret: attr('string'),
|
|
|
|
name: attr('string'),
|
|
|
|
global: attr('boolean'),
|
|
|
|
createTime: attr('date'),
|
|
|
|
type: attr('string'),
|
|
|
|
policies: hasMany('policy'),
|
|
|
|
policyNames: attr(),
|
|
|
|
|
2017-12-15 21:39:18 +00:00
|
|
|
accessor: alias('id'),
|
2017-10-13 22:17:51 +00:00
|
|
|
});
|