Guest User

models

a guest
Jul 11th, 2024
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. import Model, { attr, hasMany } from '@ember-data/model';
  2.  
  3. export default class TableSummariesModel extends Model {
  4. @attr('string') prettyName;
  5.  
  6. @attr('string') description;
  7.  
  8. @hasMany('static-data-table-column') columns;
  9. }
  10. ---------
  11. import Model, { attr, belongsTo } from '@ember-data/model';
  12.  
  13. export default class StaticDataTableColumnModel extends Model {
  14. @belongsTo('table-summaries') TableSummaries!: any;
  15. @attr('string') prettyName!: string;
  16. @attr('number') colIndex!: number;
  17. @attr('boolean') isKey!: boolean;
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment