discourse/plugins/chat/app/models/chat_message_reaction.rb

23 lines
516 B
Ruby

# frozen_string_literal: true
class ChatMessageReaction < ActiveRecord::Base
belongs_to :chat_message
belongs_to :user
end
# == Schema Information
#
# Table name: chat_message_reactions
#
# id :bigint not null, primary key
# chat_message_id :integer
# user_id :integer
# emoji :string
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# chat_message_reactions_index (chat_message_id,user_id,emoji) UNIQUE
#