Created
February 6, 2015 21:46
-
-
Save deathbearbrown/1fe09ef6671318429c13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import DS from 'ember-data'; | |
var Pledge = DS.Model.extend({ | |
amount: DS.attr('float'), | |
pledge_type: DS.attr('integer'), | |
swag: DS.hasMany('rewards', {async: true}), | |
prizes: DS.hasMany('prizes', {async: true}), | |
premiums: DS.hasMany('premiums', {async: true}), | |
first_name: DS.attr('string'), | |
last_name: DS.attr('string'), | |
billing_addr1: DS.attr('string'), | |
billing_addr2: DS.attr('string'), | |
billing_city: DS.attr('string'), | |
billing_state: DS.attr('string'), | |
billing_zipcode: DS.attr('integer'), | |
shipping_addr1: DS.attr('string'), | |
shipping_addr2: DS.attr('string'), | |
shipping_city: DS.attr('string'), | |
shipping_state: DS.attr('string'), | |
shipping_zipcode: DS.attr('integer') | |
}); | |
export default Pledge; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment