Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RbMerchant
- include DataMapper::Resource
- property :id, Serial
- property :name, String
- property :hmackey, String
- property :hmacalgorithm, String
- property :digestalgorithm, String
- property :permittedorigin, String
- property :created, DateTime
- property :modified, DateTime
- storage_names[:default] = 'rb_merchant'
- #belongs_to :account_owner
- #has 1, :account_owner, :through => Resource
- #has n, :merchant_users, :through => Resource
- end
- class AccountOwner
- include DataMapper::Resource
- property :account_owner_id, Integer
- property :username, String
- property :status, String
- property :salutation, String
- property :first_name, String
- property :middle_name, String
- property :surname, String
- property :gender, String
- property :date_of_birth, DateTime
- property :email, String
- property :home_phone, String
- property :work_phone, String
- property :previous_payment_request_time, Integer
- property :created_dt, DateTime
- storage_names[:default] = 'account_owner'
- #has n, :rb_merchants, :through => Resource
- #has n, :accounts
- end
- class RbMerchant2accountOwner
- include DataMapper::Resource
- property :merchant_id, Integer
- property :account_owner_id, Integer
- storage_names[:default] = 'rb_merchant2account_owner'
- #belongs_to :rb_merchant
- #belongs_to :account_owner
- end
Add Comment
Please, Sign In to add comment