feat: 🎸 add initial modeling for host sets
This commit is contained in:
5 files changed
+78
-1
No files matched your search
@@ -1,3 +1,11 @@
|
||||
import GeneratedHostCatalogModel from '../generated/models/host-catalog';
|
||||
import { hasMany } from '@ember-data/model';
|
||||
|
||||
export default class HostCatalogModel extends GeneratedHostCatalogModel { }
|
||||
export default class HostCatalogModel extends GeneratedHostCatalogModel {
|
||||
|
||||
/**
|
||||
* @type {HostSetModel[]}
|
||||
*/
|
||||
@hasMany('host-set') hostSets;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import GeneratedHostSetModel from '../generated/models/host-set';
|
||||
import { belongsTo } from '@ember-data/model';
|
||||
|
||||
export default class HostSetModel extends GeneratedHostSetModel {
|
||||
|
||||
// =relationships
|
||||
|
||||
/**
|
||||
* @type {HostCatalogModel}
|
||||
*/
|
||||
@belongsTo('host-catalog') hostCatalog;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user