# frozen_string_literal: true
class Job < ApplicationRecord
  belongs_to :user

  has_many :child_jobs, class_name: 'Job', foreign_key: 'parent_job_id', dependent: :nullify
  belongs_to :parent_job, class_name: 'Job', optional: true
end
