class WatchCourseVideo < ApplicationRecord
  belongs_to :course_video
  belongs_to :user

  has_many :watch_video_histories
  has_one :watch_course_video_detail

  validates :course_video_id, uniqueness: {scope: :user_id}
end
