Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit c22c951

Browse files
committed
annotation and new model
1 parent 32df522 commit c22c951

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

app/models/ai_spam_log.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
11
# frozen_string_literal: true
22
class AiSpamLog < ActiveRecord::Base
33
end
4+
5+
# == Schema Information
6+
#
7+
# Table name: ai_spam_logs
8+
#
9+
# id :bigint not null, primary key
10+
# post_id :bigint not null
11+
# llm_model_id :bigint not null
12+
# last_ai_api_audit_log_id :bigint not null
13+
# scan_count :integer default(1), not null
14+
# is_spam :boolean not null
15+
# last_scan_payload :text default(""), not null
16+
# created_at :datetime not null
17+
# updated_at :datetime not null
18+
#

db/migrate/20241206051223_add_ai_spam_logs.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ def change
77
t.bigint :last_ai_api_audit_log_id, null: false
88
t.integer :scan_count, null: false, default: 1
99
t.boolean :is_spam, null: false
10+
t.text :last_scan_payload, null: false, default: "", limit: 20_000
11+
t.timestamps
1012
end
1113
end
1214
end

0 commit comments

Comments
 (0)