```ruby
class SolidusPaypalBraintree::Source < ApplicationRecord
  belongs_to :user, class_name: "Spree::User"
  belongs_to :payment_method, class_name: 'Spree::PaymentMethod'

  belongs_to :customer, class_name: "SolidusPaypalBraintree::Customer"

  # we are not currenctly supporting an "imported" flag
  def imported
    false
  end
end
```

Add AR relation from Source to Payment
user
```ruby
class SolidusPaypalBraintree::Source < ApplicationRecord
  belongs_to :user, class_name: "Spree::User"
  belongs_to :payment_method, class_name: 'Spree::PaymentMethod'
  has_many :payments, as: :source, class_name: "Spree::Payment"

  belongs_to :customer, class_name: "SolidusPaypalBraintree::Customer"

  # we are not currenctly supporting an "imported" flag
  def imported
    false
  end
end
```
assistant