discourse-ai/app/models/ai_spam_log.rb

27 lines
724 B
Ruby
Raw Normal View History

2024-12-11 17:17:25 -05:00
# frozen_string_literal: true
class AiSpamLog < ActiveRecord::Base
belongs_to :post
belongs_to :llm_model
belongs_to :ai_api_audit_log
belongs_to :reviewable
end
# == Schema Information
#
# Table name: ai_spam_logs
#
# id :bigint not null, primary key
# post_id :bigint not null
# llm_model_id :bigint not null
# ai_api_audit_log_id :bigint
# reviewable_id :bigint
# is_spam :boolean not null
# payload :string(20000) default(""), not null
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_ai_spam_logs_on_post_id (post_id)
#