class Doctor < ApplicationRecord has_many :patients, through: :consultation end
has_many :books, dependent: :destroy