censis-archive/obrand/obrand-admin/app/models/company.js

21 lines
556 B
JavaScript
Raw Normal View History

2016-06-06 10:45:51 +00:00
import DS from 'ember-data';
export default DS.Model.extend({
cid: DS.attr('string'),
company_name: DS.attr('string'),
address1: DS.attr('string'),
address2: DS.attr('string'),
address3: DS.attr('string'),
town: DS.attr('string'),
county: DS.attr('string'),
postcode: DS.attr('string'),
country: DS.attr('string'),
pcontact: DS.attr('string'),
ocontact: DS.attr('string'),
mobile: DS.attr('string'),
email: DS.attr('string'),
needCompany: function() {
return typeof this.get('cid') !== 'undefined';
}.property('cid')
});