github.com/outbrain/consul@v1.4.5/ui-v2/app/models/acl.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 // TODO: Why didn't I have to do this for KV's? 12 // this is to ensure that Name is '' and not null when creating 13 // maybe its due to the fact that `Key` is the primaryKey in Kv's 14 defaultValue: '', 15 }), 16 Type: attr('string'), 17 Rules: attr('string'), 18 CreateIndex: attr('number'), 19 ModifyIndex: attr('number'), 20 Datacenter: attr('string'), 21 });