github.com/outbrain/consul@v1.4.5/ui-v2/app/models/session.js (about) 1 import Model from 'ember-data/model'; 2 import attr from 'ember-data/attr'; 3 4 export const PRIMARY_KEY = 'uid'; 5 export const SLUG_KEY = 'ID'; 6 7 export default Model.extend({ 8 [PRIMARY_KEY]: attr('string'), 9 [SLUG_KEY]: attr('string'), 10 Name: attr('string'), 11 Node: attr('string'), 12 CreateIndex: attr('number'), 13 ModifyIndex: attr('number'), 14 LockDelay: attr('number'), 15 Behavior: attr('string'), 16 TTL: attr('string'), 17 Checks: attr({ 18 defaultValue: function() { 19 return []; 20 }, 21 }), 22 Datacenter: attr('string'), 23 });