class Ahoy::Event < ApplicationRecord
  include Ahoy::QueryMethods

  self.table_name = "ahoy_events"

  belongs_to :visit
  belongs_to :user, optional: true<% if properties_type == "text" %>

  serialize :properties, JSON<% end %>
end
