diff --git a/app/models/copilot_message.rb b/app/models/copilot_message.rb deleted file mode 100644 index 16ae2c3c9..000000000 --- a/app/models/copilot_message.rb +++ /dev/null @@ -1,27 +0,0 @@ -# == Schema Information -# -# Table name: copilot_messages -# -# id :bigint not null, primary key -# message :jsonb not null -# message_type :string not null -# created_at :datetime not null -# updated_at :datetime not null -# account_id :bigint not null -# copilot_thread_id :bigint not null -# user_id :bigint not null -# -# Indexes -# -# index_copilot_messages_on_account_id (account_id) -# index_copilot_messages_on_copilot_thread_id (copilot_thread_id) -# index_copilot_messages_on_user_id (user_id) -# -class CopilotMessage < ApplicationRecord - belongs_to :copilot_thread - belongs_to :user - belongs_to :account - - validates :message_type, presence: true, inclusion: { in: %w[user assistant assistant_thinking] } - validates :message, presence: true -end diff --git a/app/models/copilot_thread.rb b/app/models/copilot_thread.rb deleted file mode 100644 index 865418ad7..000000000 --- a/app/models/copilot_thread.rb +++ /dev/null @@ -1,26 +0,0 @@ -# == Schema Information -# -# Table name: copilot_threads -# -# id :bigint not null, primary key -# title :string not null -# uuid :uuid not null -# created_at :datetime not null -# updated_at :datetime not null -# account_id :bigint not null -# user_id :bigint not null -# -# Indexes -# -# index_copilot_threads_on_account_id (account_id) -# index_copilot_threads_on_user_id (user_id) -# index_copilot_threads_on_uuid (uuid) UNIQUE -# -class CopilotThread < ApplicationRecord - belongs_to :user - belongs_to :account - has_many :copilot_messages, dependent: :destroy - - validates :title, presence: true - validates :uuid, presence: true, uniqueness: true -end