class User < ApplicationRecord
  has_secure_password

  has_many :sessions
  has_many :likes
  has_many :liked_tracks, through: :likes, foreign_key: "user_id", class_name: "Track", source: :track
end
