mirror of https://github.com/status-im/consul.git
15 lines
390 B
JavaScript
15 lines
390 B
JavaScript
import Model from 'ember-data/model';
|
|
import attr from 'ember-data/attr';
|
|
import { hasMany } from 'ember-data/relationships';
|
|
|
|
export const PRIMARY_KEY = 'uid';
|
|
export const FOREIGN_KEY = 'Datacenter';
|
|
export const SLUG_KEY = 'Name';
|
|
|
|
export default Model.extend({
|
|
[PRIMARY_KEY]: attr('string'),
|
|
[SLUG_KEY]: attr('string'),
|
|
Services: hasMany('service'),
|
|
Nodes: hasMany('node'),
|
|
});
|