# frozen_string_literal: true
module ESM
class UserNotificationPreference < ApplicationRecord
# =============================================================================
# INITIALIZE
# =============================================================================
# =============================================================================
# DATA STRUCTURE
# =============================================================================
attribute :user_id, :integer
attribute :server_id, :integer
attribute :custom, :boolean, default: true
attribute :base_raid, :boolean, default: true
attribute :flag_stolen, :boolean, default: true
attribute :flag_restored, :boolean, default: true
attribute :flag_steal_started, :boolean, default: true
attribute :protection_money_due, :boolean, default: true
attribute :protection_money_paid, :boolean, default: true
attribute :grind_started, :boolean, default: true
attribute :hack_started, :boolean, default: true
attribute :charge_plant_started, :boolean, default: true
attribute :marxet_item_sold, :boolean, default: true
# =============================================================================
# ASSOCIATIONS
# =============================================================================
belongs_to :user
belongs_to :server
# =============================================================================
# VALIDATIONS
# =============================================================================
# =============================================================================
# CALLBACKS
# =============================================================================
# =============================================================================
# SCOPES
# =============================================================================
# =============================================================================
# CLASS METHODS
# =============================================================================
# =============================================================================
# INSTANCE METHODS
# =============================================================================
end
end