# app/models/monster.rb

module ExampleApplication::Models
  class Monster
    # TODO: This should be auto-generated.
    class Record < ApplicationRecord
      self.table_name = :monsters
    end # class

    include SleepingKingStudios::Shinkansen::Models::Adaptable::Model

    attribute :name,            :string
    attribute :description,     :text
    attribute :level,           :integer
    attribute :capture_odds,    :float
    attribute :stats_per_level, :decimal
    attribute :captured_at,     :datetime
    attribute :thumbnail,       :binary
    attribute :shiny,           :boolean
  end # class
end # module
