attr = DS.attr
App.SectionArea = DS.Model.extend Ember.Validations.Mixin,
  title: attr 'string'
  width: attr 'number', defaultValue: 2
  height: attr 'number', defaultValue: 2
  position_x: attr 'number', defaultValue: 0
  position_y: attr 'number', defaultValue: 0
  rounded: attr 'boolean', defaultValue: false
  color: attr 'string', defaultValue: '#AAAAAA'
  section: DS.belongsTo('section', async: false)
  validations:
    title: {presence: true}
