module EducodeSales class SalePlan < ApplicationRecord include ::Deletable belongs_to :business belongs_to :staff validates :business_id, presence: true # validates :month, presence: true CLAZZ_NAME = {'商机目标' => 7, '中标目标' => 18, '签单目标' => 1, '回款目标' => 2} default_scope -> {where(deleted_at: nil)} end end