12 lines
364 B
CoffeeScript
12 lines
364 B
CoffeeScript
attr = DS.attr
|
|
Qsupplier.App.List = DS.Model.extend
|
|
state: attr 'string'
|
|
needs_help: attr 'boolean'
|
|
needs_payment: attr 'boolean'
|
|
is_paid: attr 'boolean'
|
|
has_active_orders: attr 'boolean'
|
|
price: attr 'number'
|
|
table_number: attr 'number'
|
|
table: DS.belongsTo('Qsupplier.App.Table', inverse: 'active_list')
|
|
orders: DS.hasMany('Qsupplier.App.Order')
|