module Erp::Articles
  class Article < ApplicationRecord
    # Relations
    belongs_to :user, class_name: "Erp::User", foreign_key: "user_id", optional: true
    belongs_to :category, class_name: "Erp::Articles::Category", foreign_key: "category_id"
  end
end
