Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Model, { attr, hasMany } from '@ember-data/model';
- export default class TableSummariesModel extends Model {
- @attr('string') prettyName;
- @attr('string') description;
- @hasMany('static-data-table-column') columns;
- }
- ---------
- import Model, { attr, belongsTo } from '@ember-data/model';
- export default class StaticDataTableColumnModel extends Model {
- @belongsTo('table-summaries') TableSummaries!: any;
- @attr('string') prettyName!: string;
- @attr('number') colIndex!: number;
- @attr('boolean') isKey!: boolean;
- }
Advertisement
Add Comment
Please, Sign In to add comment