2023-02-27 14:21:40 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ClassificationResult < ActiveRecord::Base
|
|
|
|
belongs_to :target, polymorphic: true
|
|
|
|
end
|
|
|
|
|
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: classification_results
|
|
|
|
#
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
# model_used :string
|
|
|
|
# classification_type :string
|
2024-10-28 10:07:09 -04:00
|
|
|
# target_id :bigint
|
2023-02-27 14:21:40 -05:00
|
|
|
# target_type :string
|
|
|
|
# classification :jsonb
|
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
|
|
|
#
|
|
|
|
# Indexes
|
|
|
|
#
|
|
|
|
# unique_classification_target_per_type (target_id,target_type,model_used) UNIQUE
|
|
|
|
#
|