github.com/outbrain/consul@v1.4.5/ui-v2/app/models/dc.js (about) 1 import Model from 'ember-data/model'; 2 import attr from 'ember-data/attr'; 3 import { hasMany } from 'ember-data/relationships'; 4 5 export const PRIMARY_KEY = 'uid'; 6 export const FOREIGN_KEY = 'Datacenter'; 7 export const SLUG_KEY = 'Name'; 8 9 export default Model.extend({ 10 [PRIMARY_KEY]: attr('string'), 11 [SLUG_KEY]: attr('string'), 12 // TODO: Are these required? 13 Services: hasMany('service'), 14 Nodes: hasMany('node'), 15 });