Guest User

Untitled

a guest
Jul 22nd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. class RbMerchant
  2. include DataMapper::Resource
  3.  
  4. property :id, Serial
  5. property :name, String
  6. property :hmackey, String
  7. property :hmacalgorithm, String
  8. property :digestalgorithm, String
  9. property :permittedorigin, String
  10. property :created, DateTime
  11. property :modified, DateTime
  12.  
  13. storage_names[:default] = 'rb_merchant'
  14.  
  15. #belongs_to :account_owner
  16. #has 1, :account_owner, :through => Resource
  17.  
  18. #has n, :merchant_users, :through => Resource
  19.  
  20. end
  21.  
  22. class AccountOwner
  23. include DataMapper::Resource
  24.  
  25. property :account_owner_id, Integer
  26. property :username, String
  27. property :status, String
  28. property :salutation, String
  29. property :first_name, String
  30. property :middle_name, String
  31. property :surname, String
  32. property :gender, String
  33. property :date_of_birth, DateTime
  34. property :email, String
  35. property :home_phone, String
  36. property :work_phone, String
  37. property :previous_payment_request_time, Integer
  38. property :created_dt, DateTime
  39.  
  40. storage_names[:default] = 'account_owner'
  41.  
  42. #has n, :rb_merchants, :through => Resource
  43. #has n, :accounts
  44.  
  45. end
  46.  
  47. class RbMerchant2accountOwner
  48. include DataMapper::Resource
  49.  
  50. property :merchant_id, Integer
  51. property :account_owner_id, Integer
  52.  
  53. storage_names[:default] = 'rb_merchant2account_owner'
  54.  
  55. #belongs_to :rb_merchant
  56. #belongs_to :account_owner
  57.  
  58. end
Add Comment
Please, Sign In to add comment