veekun_pokedex/main-tables.html
2012-02-13 00:14:24 +01:00

2540 lines
No EOL
160 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The pokédex tables &mdash; pokedex 0.1 documentation</title>
<link rel="stylesheet" href="_static/default.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '0.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="pokedex 0.1 documentation" href="index.html" />
<link rel="up" title="The database schema" href="schema.html" />
<link rel="prev" title="The database schema" href="schema.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="schema.html" title="The database schema"
accesskey="P">previous</a> |</li>
<li><a href="index.html">pokedex 0.1 documentation</a> &raquo;</li>
<li><a href="schema.html" accesskey="U">The database schema</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="module-pokedex.db.tables">
<span id="the-pokedex-tables"></span><h1>The pokédex tables<a class="headerlink" href="#module-pokedex.db.tables" title="Permalink to this headline"></a></h1>
<p>The <a class="reference internal" href="#module-pokedex.db.tables" title="pokedex.db.tables"><tt class="xref py py-mod docutils literal"><span class="pre">pokedex.db.tables</span></tt></a> module defines all of the tables in the Pokédex.
They are all defined with SQLAlchemy&#8217;s
<tt class="xref py py-mod docutils literal"><span class="pre">declarative</span></tt> extension.</p>
<p>To introspect the tables programmatically, you can use the following:</p>
<dl class="data">
<dt id="pokedex.db.tables.mapped_classes">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">mapped_classes</tt><a class="headerlink" href="#pokedex.db.tables.mapped_classes" title="Permalink to this definition"></a></dt>
<dd><p>A list of all the classes you see below.</p>
</dd></dl>
<dl class="data">
<dt id="pokedex.db.tables.metadata">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">metadata</tt><a class="headerlink" href="#pokedex.db.tables.metadata" title="Permalink to this definition"></a></dt>
<dd><p>The SQLAlchemy <tt class="xref py py-class docutils literal"><span class="pre">MetaData</span></tt> containing all the
tables.</p>
</dd></dl>
<p>Each of the classes has a <tt class="docutils literal"><span class="pre">translation_classes</span></tt> attribute: a potentially
empty list of translation classes. See <tt class="xref py py-mod docutils literal"><span class="pre">pokedex.db.multilang</span></tt> for how
these work.</p>
<p>Many tables have these columns:</p>
<ul class="simple">
<li><strong>id</strong>: An integer primary key. Sometimes it&#8217;s semantically meaningful, most
often it isn&#8217;t.</li>
<li><strong>identifier</strong>: A string identifier of the class, and the preferred way to
access individual items.</li>
<li><strong>name</strong>: A name (uses the multilang functionality)</li>
</ul>
<div class="section" id="pokemon">
<h2>Pokémon<a class="headerlink" href="#pokemon" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-pokemonspecies">
<h3>PokemonSpecies<a class="headerlink" href="#dex-table-pokemonspecies" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonSpecies">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonSpecies</tt><a class="headerlink" href="#pokedex.db.tables.PokemonSpecies" title="Permalink to this definition"></a></dt>
<dd><p>A Pokémon species: the standard 1151. Or 649. Whatever.</p>
<p>Table name: <em>pokemon_species</em>
(single: <em>pokemon_species</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokemon_species_names</em>.</p>
<hr><p>Columns:</p>
<p>PokemonSpecies.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><tt class="xref py py-class docutils literal"><span class="pre">Generation</span></tt></a>.id)</p>
<blockquote>
<div>ID of the generation this species first appeared in</div></blockquote>
<p>PokemonSpecies.<strong>evolves_from_species_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>.id):</p>
<blockquote>
<div>The species from which this one evolves</div></blockquote>
<p>PokemonSpecies.<strong>evolution_chain</strong> (evolution_chain_id → <a class="reference internal" href="#pokedex.db.tables.EvolutionChain" title="pokedex.db.tables.EvolutionChain"><tt class="xref py py-class docutils literal"><span class="pre">EvolutionChain</span></tt></a>.id)</p>
<blockquote>
<div>ID of the species&#8217; evolution chain (a.k.a. family)</div></blockquote>
<p>PokemonSpecies.<strong>color</strong> (color_id → <a class="reference internal" href="#pokedex.db.tables.PokemonColor" title="pokedex.db.tables.PokemonColor"><tt class="xref py py-class docutils literal"><span class="pre">PokemonColor</span></tt></a>.id)</p>
<blockquote>
<div>ID of this Pokémon&#8217;s Pokédex color, as used for a gimmick search function in the games.</div></blockquote>
<p>PokemonSpecies.<strong>shape</strong> (shape_id → <a class="reference internal" href="#pokedex.db.tables.PokemonShape" title="pokedex.db.tables.PokemonShape"><tt class="xref py py-class docutils literal"><span class="pre">PokemonShape</span></tt></a>.id)</p>
<blockquote>
<div>ID of this Pokémon&#8217;s body shape, as used for a gimmick search function in the games.</div></blockquote>
<p>PokemonSpecies.<strong>habitat</strong> (habitat_id → <a class="reference internal" href="#pokedex.db.tables.PokemonHabitat" title="pokedex.db.tables.PokemonHabitat"><tt class="xref py py-class docutils literal"><span class="pre">PokemonHabitat</span></tt></a>.id)</p>
<blockquote>
<div>ID of this Pokémon&#8217;s habitat, as used for a gimmick search function in the games.</div></blockquote>
<p>PokemonSpecies.<strong>gender_rate</strong> (<em>int</em>):</p>
<blockquote>
<div>The chance of this Pokémon being female, in eighths; or -1 for genderless</div></blockquote>
<p>PokemonSpecies.<strong>capture_rate</strong> (<em>int</em>):</p>
<blockquote>
<div>The base capture rate; up to 255</div></blockquote>
<p>PokemonSpecies.<strong>base_happiness</strong> (<em>int</em>):</p>
<blockquote>
<div>The tameness when caught by a normal ball</div></blockquote>
<p>PokemonSpecies.<strong>is_baby</strong> (<em>bool</em>):</p>
<blockquote>
<div>True iff the Pokémon is a baby, i.e. a lowest-stage Pokémon that cannot breed but whose evolved form can.</div></blockquote>
<p>PokemonSpecies.<strong>hatch_counter</strong> (<em>int</em>):</p>
<blockquote>
<div>Initial hatch counter: one must walk 255 × (hatch_counter + 1) steps before this Pokémon&#8217;s egg hatches, unless utilizing bonuses like Flame Body&#8217;s</div></blockquote>
<p>PokemonSpecies.<strong>has_gender_differences</strong> (<em>bool</em>):</p>
<blockquote>
<div>Set iff the species exhibits enough sexual dimorphism to have separate sets of sprites in Gen IV and beyond.</div></blockquote>
<p>PokemonSpecies.<strong>growth_rate</strong> (growth_rate_id → <a class="reference internal" href="#pokedex.db.tables.GrowthRate" title="pokedex.db.tables.GrowthRate"><tt class="xref py py-class docutils literal"><span class="pre">GrowthRate</span></tt></a>.id)</p>
<blockquote>
<div>ID of the growth rate for this family</div></blockquote>
<p>PokemonSpecies.<strong>forms_switchable</strong> (<em>bool</em>):</p>
<blockquote>
<div>True iff a particular individual of this species can switch beween its different forms.</div></blockquote>
<hr><p>Internationalized strings:</p>
<p>PokemonSpecies.<strong>genus</strong> (<em>unicode plaintext</em>) via <em>pokemon_species_names</em></p>
<blockquote>
<div>The short flavor text, such as &#8220;Seed&#8221; or &#8220;Lizard&#8221;; usually affixed with the word &#8220;Pokémon&#8221;</div></blockquote>
<p>PokemonSpecies.<strong>flavor_summary</strong> (<em>unicode plaintext</em>) via <em>pokemon_species_flavor_summaries</em></p>
<blockquote>
<div>Text containing facts from all flavor texts, for languages without official game translations</div></blockquote>
<p>PokemonSpecies.<strong>form_description</strong> (<em>unicode markdown</em>) via <em>pokemon_species_prose</em></p>
<blockquote>
<div>Description of how the forms work</div></blockquote>
<hr><p>Relationships:</p>
<p>PokemonSpecies.<strong>parent_species</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>])</p>
<blockquote>
<div>The species from which this one evolves</div></blockquote>
<p>PokemonSpecies.<strong>evolutions</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><tt class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></tt></a>])</p>
<p>PokemonSpecies.<strong>flavor_text</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpeciesFlavorText" title="pokedex.db.tables.PokemonSpeciesFlavorText"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpeciesFlavorText</span></tt></a>])</p>
<blockquote>
<div>Ordered by: <tt class="docutils literal"><span class="pre">pokemon_species_flavor_text.version_id</span> <span class="pre">ASC</span></tt></div></blockquote>
<p>PokemonSpecies.<strong>egg_groups</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.EggGroup" title="pokedex.db.tables.EggGroup"><tt class="xref py py-class docutils literal"><span class="pre">EggGroup</span></tt></a>])</p>
<blockquote>
<div>Ordered by: <tt class="docutils literal"><span class="pre">pokemon_egg_groups.egg_group_id</span> <span class="pre">ASC</span></tt></div></blockquote>
<p>PokemonSpecies.<strong>forms</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonForm" title="pokedex.db.tables.PokemonForm"><tt class="xref py py-class docutils literal"><span class="pre">PokemonForm</span></tt></a>])</p>
<blockquote>
<div>Ordered by: <tt class="docutils literal"><span class="pre">pokemon_forms.&quot;order&quot;</span> <span class="pre">ASC</span></tt>, <tt class="docutils literal"><span class="pre">pokemon_forms.form_identifier</span> <span class="pre">ASC</span></tt></div></blockquote>
<p>PokemonSpecies.<strong>default_form</strong>
(→ <a class="reference internal" href="#pokedex.db.tables.PokemonForm" title="pokedex.db.tables.PokemonForm"><tt class="xref py py-class docutils literal"><span class="pre">PokemonForm</span></tt></a>)</p>
<blockquote>
<div>A representative form of this species</div></blockquote>
<p>PokemonSpecies.<strong>default_pokemon</strong>
(→ <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>)</p>
<p>PokemonSpecies.<strong>dex_numbers</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonDexNumber" title="pokedex.db.tables.PokemonDexNumber"><tt class="xref py py-class docutils literal"><span class="pre">PokemonDexNumber</span></tt></a>])</p>
<blockquote>
<div>Ordered by: <tt class="docutils literal"><span class="pre">pokemon_dex_numbers.pokedex_id</span> <span class="pre">ASC</span></tt></div></blockquote>
<p>PokemonSpecies.<strong>child_species</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>])</p>
<blockquote>
<div>The species to which this one evolves</div></blockquote>
<p>PokemonSpecies.<strong>pokemon</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>])</p>
<p>PokemonSpecies.<strong>triggered_evolutions</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><tt class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></tt></a>])</p>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemon">
<h3>Pokemon<a class="headerlink" href="#dex-table-pokemon" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Pokemon">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Pokemon</tt><a class="headerlink" href="#pokedex.db.tables.Pokemon" title="Permalink to this definition"></a></dt>
<dd><p>A Pokémon. The core to this whole mess.</p>
<p>This table defines &#8220;Pokémon&#8221; the same way the games do: a form with
different types, moves, or other game-changing properties counts as a
different Pokémon. For example, this table contains four rows for Deoxys,
but only one for Unown.</p>
<p>Table name: <em>pokemon</em>
(single: <em>pokemon</em>)</p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Columns:</p>
<p>Pokemon.<strong>species</strong> (species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>.id)</p>
<blockquote>
<div>ID of the species this Pokémon belongs to</div></blockquote>
<p>Pokemon.<strong>height</strong> (<em>int</em>):</p>
<blockquote>
<div>The height of the Pokémon, in decimeters (tenths of a meter)</div></blockquote>
<p>Pokemon.<strong>weight</strong> (<em>int</em>):</p>
<blockquote>
<div>The weight of the Pokémon, in tenths of a kilogram (decigrams)</div></blockquote>
<p>Pokemon.<strong>base_experience</strong> (<em>int</em>):</p>
<blockquote>
<div>The base EXP gained when defeating this Pokémon</div></blockquote>
<p>Pokemon.<strong>order</strong> (<em>int</em>):</p>
<blockquote>
<div>Order for sorting. Almost national order, except families are grouped together.</div></blockquote>
<p>Pokemon.<strong>is_default</strong> (<em>bool</em>):</p>
<blockquote>
<div>Set for exactly one pokemon used as the default for each species.</div></blockquote>
<hr><p>Relationships:</p>
<p>Pokemon.<strong>all_abilities</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><tt class="xref py py-class docutils literal"><span class="pre">Ability</span></tt></a>])</p>
<blockquote>
<div><p>All abilities the Pokémon can have, including the Hidden Ability</p>
<p>Ordered by: <tt class="docutils literal"><span class="pre">pokemon_abilities.slot</span> <span class="pre">ASC</span></tt></p>
</div></blockquote>
<p>Pokemon.<strong>abilities</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><tt class="xref py py-class docutils literal"><span class="pre">Ability</span></tt></a>])</p>
<blockquote>
<div><p>Abilities the Pokémon can have in the wild</p>
<p>Ordered by: <tt class="docutils literal"><span class="pre">pokemon_abilities.slot</span> <span class="pre">ASC</span></tt></p>
</div></blockquote>
<p>Pokemon.<strong>dream_ability</strong>
(→ <a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><tt class="xref py py-class docutils literal"><span class="pre">Ability</span></tt></a>)</p>
<blockquote>
<div>The Pokémon&#8217;s Hidden Ability</div></blockquote>
<p>Pokemon.<strong>forms</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonForm" title="pokedex.db.tables.PokemonForm"><tt class="xref py py-class docutils literal"><span class="pre">PokemonForm</span></tt></a>])</p>
<blockquote>
<div>Ordered by: <tt class="docutils literal"><span class="pre">pokemon_forms.&quot;order&quot;</span> <span class="pre">ASC</span></tt>, <tt class="docutils literal"><span class="pre">pokemon_forms.form_identifier</span> <span class="pre">ASC</span></tt></div></blockquote>
<p>Pokemon.<strong>default_form</strong>
(→ <a class="reference internal" href="#pokedex.db.tables.PokemonForm" title="pokedex.db.tables.PokemonForm"><tt class="xref py py-class docutils literal"><span class="pre">PokemonForm</span></tt></a>)</p>
<blockquote>
<div>A representative form of this pokémon</div></blockquote>
<p>Pokemon.<strong>items</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonItem" title="pokedex.db.tables.PokemonItem"><tt class="xref py py-class docutils literal"><span class="pre">PokemonItem</span></tt></a>])</p>
<blockquote>
<div>Info about items this pokémon holds in the wild</div></blockquote>
<p>Pokemon.<strong>stats</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonStat" title="pokedex.db.tables.PokemonStat"><tt class="xref py py-class docutils literal"><span class="pre">PokemonStat</span></tt></a>])</p>
<blockquote>
<div>Ordered by: <tt class="docutils literal"><span class="pre">pokemon_stats.stat_id</span> <span class="pre">ASC</span></tt></div></blockquote>
<p>Pokemon.<strong>types</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><tt class="xref py py-class docutils literal"><span class="pre">Type</span></tt></a>])</p>
<blockquote>
<div>Ordered by: <tt class="docutils literal"><span class="pre">pokemon_types.slot</span> <span class="pre">ASC</span></tt></div></blockquote>
<p>Pokemon.<strong>encounters</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.Encounter" title="pokedex.db.tables.Encounter"><tt class="xref py py-class docutils literal"><span class="pre">Encounter</span></tt></a>])</p>
<p>Pokemon.<strong>pokemon_moves</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonMove" title="pokedex.db.tables.PokemonMove"><tt class="xref py py-class docutils literal"><span class="pre">PokemonMove</span></tt></a>])</p>
<hr><dl class="attribute">
<dt id="pokedex.db.tables.Pokemon.better_damage_class">
<tt class="descname">better_damage_class</tt><a class="headerlink" href="#pokedex.db.tables.Pokemon.better_damage_class" title="Permalink to this definition"></a></dt>
<dd><p>Returns the MoveDamageClass that this Pokémon is best suited for,
based on its attack stats.</p>
<p>If the attack stats are about equal (within 5), returns None. The
value None, not the damage class called &#8216;None&#8217;.</p>
</dd></dl>
<dl class="attribute">
<dt id="pokedex.db.tables.Pokemon.name">
<tt class="descname">name</tt><a class="headerlink" href="#pokedex.db.tables.Pokemon.name" title="Permalink to this definition"></a></dt>
<dd><p>Returns a name for this Pokémon, specifiying the form iff it
represents a specific PokemonForm.</p>
</dd></dl>
<dl class="method">
<dt id="pokedex.db.tables.Pokemon.stat">
<tt class="descname">stat</tt><big>(</big><em>stat_identifier</em><big>)</big><a class="headerlink" href="#pokedex.db.tables.Pokemon.stat" title="Permalink to this definition"></a></dt>
<dd><p>Returns a PokemonStat record for the given stat name (or Stat row
object). Uses the normal has-many machinery, so all the stats are
effectively cached.</p>
</dd></dl>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemonform">
<h3>PokemonForm<a class="headerlink" href="#dex-table-pokemonform" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonForm">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonForm</tt><a class="headerlink" href="#pokedex.db.tables.PokemonForm" title="Permalink to this definition"></a></dt>
<dd><p>An individual form of a Pokémon. This includes <em>every</em> variant (except
color differences) of every Pokémon, regardless of how the games treat
them. Even Pokémon with no alternate forms have one row in this table, to
represent their lone &#8220;normal&#8221; form.</p>
<p>Table name: <em>pokemon_forms</em>
(single: <em>pokemon_form</em>)</p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Columns:</p>
<p>PokemonForm.<strong>form_identifier</strong> (<em>unicode identifier</em>):</p>
<blockquote>
<div>An identifier of the form, uniue among a species. May be None for the default form of the species.</div></blockquote>
<p>PokemonForm.<strong>pokemon</strong> (pokemon_id → <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the base Pokémon for this form.</div></blockquote>
<p>PokemonForm.<strong>introduced_in_version_group_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><tt class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the version group in which this form first appeared.</div></blockquote>
<p>PokemonForm.<strong>is_default</strong> (<em>bool</em>):</p>
<blockquote>
<div>Set for exactly one form used as the default for each pokemon (not necessarily species).</div></blockquote>
<p>PokemonForm.<strong>is_battle_only</strong> (<em>bool</em>):</p>
<blockquote>
<div>Set iff the form can only appear in battle.</div></blockquote>
<p>PokemonForm.<strong>order</strong> (<em>int</em>):</p>
<blockquote>
<div>The order in which forms should be sorted. Multiple forms may have equal order, in which case they should fall back on sorting by name.</div></blockquote>
<hr><p>Internationalized strings:</p>
<p>PokemonForm.<strong>form_name</strong> (<em>unicode plaintext</em>) via <em>pokemon_form_names</em></p>
<blockquote>
<div>The full form name, e.g. &#8216;Sky Forme&#8217;, for pokémon with different forms</div></blockquote>
<p>PokemonForm.<strong>pokemon_name</strong> (<em>unicode plaintext</em>) via <em>pokemon_form_names</em></p>
<blockquote>
<div>The full pokémon name, e.g. &#8216;Sky Shaymin&#8217;, for pokémon with different forms</div></blockquote>
<hr><p>Relationships:</p>
<p>PokemonForm.<strong>species</strong>:
<tt class="docutils literal"><span class="pre">species</span></tt> of <tt class="docutils literal"><span class="pre">self.pokemon</span></tt></p>
<p>PokemonForm.<strong>version_group</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><tt class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></tt></a>])</p>
<p>PokemonForm.<strong>pokeathlon_stats</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonFormPokeathlonStat" title="pokedex.db.tables.PokemonFormPokeathlonStat"><tt class="xref py py-class docutils literal"><span class="pre">PokemonFormPokeathlonStat</span></tt></a>])</p>
<blockquote>
<div>Ordered by: <tt class="docutils literal"><span class="pre">PokemonFormPokeathlonStat.pokeathlon_stat_id</span></tt></div></blockquote>
<hr><dl class="attribute">
<dt id="pokedex.db.tables.PokemonForm.name">
<tt class="descname">name</tt><a class="headerlink" href="#pokedex.db.tables.PokemonForm.name" title="Permalink to this definition"></a></dt>
<dd><p>Name of this form: the form_name, if set; otherwise the species name</p>
</dd></dl>
</dd></dl>
</div>
<div class="section" id="dex-table-evolutionchain">
<h3>EvolutionChain<a class="headerlink" href="#dex-table-evolutionchain" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.EvolutionChain">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">EvolutionChain</tt><a class="headerlink" href="#pokedex.db.tables.EvolutionChain" title="Permalink to this definition"></a></dt>
<dd><p>A family of Pokémon that are linked by evolution</p>
<p>Table name: <em>evolution_chains</em></p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Columns:</p>
<p>EvolutionChain.<strong>baby_trigger_item</strong> (baby_trigger_item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><tt class="xref py py-class docutils literal"><span class="pre">Item</span></tt></a>.id)</p>
<blockquote>
<div>Item that a parent must hold while breeding to produce a baby</div></blockquote>
<hr><p>Relationships:</p>
<p>EvolutionChain.<strong>species</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>])</p>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemonevolution">
<h3>PokemonEvolution<a class="headerlink" href="#dex-table-pokemonevolution" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonEvolution">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonEvolution</tt><a class="headerlink" href="#pokedex.db.tables.PokemonEvolution" title="Permalink to this definition"></a></dt>
<dd><p>A required action (&#8220;trigger&#8221;) and the conditions under which the trigger
must occur to cause a Pokémon to evolve.</p>
<p>Any condition may be null if it does not apply for a particular Pokémon.</p>
<p>Table name: <em>pokemon_evolution</em></p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Columns:</p>
<p>PokemonEvolution.<strong>evolved_species</strong> (evolved_species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the post-evolution species.</div></blockquote>
<p>PokemonEvolution.<strong>evolution_trigger_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EvolutionTrigger" title="pokedex.db.tables.EvolutionTrigger"><tt class="xref py py-class docutils literal"><span class="pre">EvolutionTrigger</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the evolution trigger.</div></blockquote>
<p>PokemonEvolution.<strong>trigger_item</strong> (trigger_item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><tt class="xref py py-class docutils literal"><span class="pre">Item</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the item that must be used on the Pokémon.</div></blockquote>
<p>PokemonEvolution.<strong>minimum_level</strong> (<em>int</em>):</p>
<blockquote>
<div>The minimum level for the Pokémon.</div></blockquote>
<p>PokemonEvolution.<strong>gender</strong> (<em>enum: [male, female]</em>):</p>
<blockquote>
<div>The Pokémon&#8217;s required gender, or None if gender doesn&#8217;t matter</div></blockquote>
<p>PokemonEvolution.<strong>location</strong> (location_id → <a class="reference internal" href="#pokedex.db.tables.Location" title="pokedex.db.tables.Location"><tt class="xref py py-class docutils literal"><span class="pre">Location</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the location the evolution must be triggered at.</div></blockquote>
<p>PokemonEvolution.<strong>held_item</strong> (held_item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><tt class="xref py py-class docutils literal"><span class="pre">Item</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the item the Pokémon must hold.</div></blockquote>
<p>PokemonEvolution.<strong>time_of_day</strong> (<em>enum: [day, night]</em>):</p>
<blockquote>
<div>The required time of day.</div></blockquote>
<p>PokemonEvolution.<strong>known_move</strong> (known_move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><tt class="xref py py-class docutils literal"><span class="pre">Move</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the move the Pokémon must know.</div></blockquote>
<p>PokemonEvolution.<strong>minimum_happiness</strong> (<em>int</em>):</p>
<blockquote>
<div>The minimum happiness value the Pokémon must have.</div></blockquote>
<p>PokemonEvolution.<strong>minimum_beauty</strong> (<em>int</em>):</p>
<blockquote>
<div>The minimum Beauty value the Pokémon must have.</div></blockquote>
<p>PokemonEvolution.<strong>relative_physical_stats</strong> (<em>int</em>):</p>
<blockquote>
<div>The required relation between the Pokémon&#8217;s Attack and Defense stats, as sgn(atk-def).</div></blockquote>
<p>PokemonEvolution.<strong>party_species</strong> (party_species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the species that must be present in the party.</div></blockquote>
<p>PokemonEvolution.<strong>trade_species</strong> (trade_species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the species for which this one must be traded.</div></blockquote>
<hr><p>Relationships:</p>
<p>PokemonEvolution.<strong>trigger</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.EvolutionTrigger" title="pokedex.db.tables.EvolutionTrigger"><tt class="xref py py-class docutils literal"><span class="pre">EvolutionTrigger</span></tt></a>])</p>
</dd></dl>
</div>
</div>
<div class="section" id="moves">
<h2>Moves<a class="headerlink" href="#moves" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-move">
<h3>Move<a class="headerlink" href="#dex-table-move" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Move">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Move</tt><a class="headerlink" href="#pokedex.db.tables.Move" title="Permalink to this definition"></a></dt>
<dd><p>A Move: technique or attack a Pokémon can learn to use</p>
<p>Table name: <em>moves</em>
(single: <em>move</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>move_names</em>.</p>
<hr><p>Columns:</p>
<p>Move.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><tt class="xref py py-class docutils literal"><span class="pre">Generation</span></tt></a>.id)</p>
<blockquote>
<div>ID of the generation this move first appeared in</div></blockquote>
<p>Move.<strong>type</strong> (type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><tt class="xref py py-class docutils literal"><span class="pre">Type</span></tt></a>.id)</p>
<blockquote>
<div>ID of the move&#8217;s elemental type</div></blockquote>
<p>Move.<strong>power</strong> (<em>int</em>):</p>
<blockquote>
<div>Base power of the move</div></blockquote>
<p>Move.<strong>pp</strong> (<em>int</em>):</p>
<blockquote>
<div>Base PP (Power Points) of the move, nullable if not applicable (e.g. Struggle and Shadow moves).</div></blockquote>
<p>Move.<strong>accuracy</strong> (<em>int</em>):</p>
<blockquote>
<div>Accuracy of the move; NULL means it never misses</div></blockquote>
<p>Move.<strong>priority</strong> (<em>int</em>):</p>
<blockquote>
<div>The move&#8217;s priority bracket</div></blockquote>
<p>Move.<strong>target</strong> (target_id → <a class="reference internal" href="#pokedex.db.tables.MoveTarget" title="pokedex.db.tables.MoveTarget"><tt class="xref py py-class docutils literal"><span class="pre">MoveTarget</span></tt></a>.id)</p>
<blockquote>
<div>ID of the target (range) of the move</div></blockquote>
<p>Move.<strong>damage_class</strong> (damage_class_id → <a class="reference internal" href="#pokedex.db.tables.MoveDamageClass" title="pokedex.db.tables.MoveDamageClass"><tt class="xref py py-class docutils literal"><span class="pre">MoveDamageClass</span></tt></a>.id)</p>
<blockquote>
<div>ID of the damage class (physical/special) of the move</div></blockquote>
<p>Move.<strong>effect</strong> (effect_id → <a class="reference internal" href="#pokedex.db.tables.MoveEffect" title="pokedex.db.tables.MoveEffect"><tt class="xref py py-class docutils literal"><span class="pre">MoveEffect</span></tt></a>.id)</p>
<blockquote>
<div>ID of the move&#8217;s effect</div></blockquote>
<p>Move.<strong>effect_chance</strong> (<em>int</em>):</p>
<blockquote>
<div>The chance for a secondary effect. What this is a chance of is specified by the move&#8217;s effect.</div></blockquote>
<p>Move.<strong>contest_type</strong> (contest_type_id → <a class="reference internal" href="#pokedex.db.tables.ContestType" title="pokedex.db.tables.ContestType"><tt class="xref py py-class docutils literal"><span class="pre">ContestType</span></tt></a>.id)</p>
<blockquote>
<div>ID of the move&#8217;s Contest type (e.g. cool or smart)</div></blockquote>
<p>Move.<strong>contest_effect</strong> (contest_effect_id → <a class="reference internal" href="#pokedex.db.tables.ContestEffect" title="pokedex.db.tables.ContestEffect"><tt class="xref py py-class docutils literal"><span class="pre">ContestEffect</span></tt></a>.id)</p>
<blockquote>
<div>ID of the move&#8217;s Contest effect</div></blockquote>
<p>Move.<strong>super_contest_effect</strong> (super_contest_effect_id → <a class="reference internal" href="#pokedex.db.tables.SuperContestEffect" title="pokedex.db.tables.SuperContestEffect"><tt class="xref py py-class docutils literal"><span class="pre">SuperContestEffect</span></tt></a>.id)</p>
<blockquote>
<div>ID of the move&#8217;s Super Contest effect</div></blockquote>
<hr><p>Internationalized strings:</p>
<p>Move.<strong>flavor_summary</strong> (<em>unicode plaintext</em>) via <em>move_flavor_summaries</em></p>
<blockquote>
<div>Text containing facts from all flavor texts, for languages without official game translations</div></blockquote>
<hr><p>Relationships:</p>
<p>Move.<strong>pokemon_moves</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonMove" title="pokedex.db.tables.PokemonMove"><tt class="xref py py-class docutils literal"><span class="pre">PokemonMove</span></tt></a>])</p>
<p>Move.<strong>triggered_evolutions</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><tt class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></tt></a>])</p>
<hr><p>Undocumented:</p>
<p>Move.<strong>changelog</strong></p>
<p>Move.<strong>contest_combo_first</strong></p>
<p>Move.<strong>contest_combo_next</strong></p>
<p>Move.<strong>contest_combo_prev</strong></p>
<p>Move.<strong>contest_combo_second</strong></p>
<p>Move.<strong>effect_map</strong></p>
<p>Move.<strong>flags</strong></p>
<p>Move.<strong>flavor_text</strong></p>
<p>Move.<strong>machines</strong></p>
<p>Move.<strong>meta</strong></p>
<p>Move.<strong>meta_stat_changes</strong></p>
<p>Move.<strong>move_effect</strong></p>
<p>Move.<strong>move_flags</strong></p>
<p>Move.<strong>short_effect</strong></p>
<p>Move.<strong>short_effect_map</strong></p>
<p>Move.<strong>super_contest_combo_first</strong></p>
<p>Move.<strong>super_contest_combo_next</strong></p>
<p>Move.<strong>super_contest_combo_prev</strong></p>
<p>Move.<strong>super_contest_combo_second</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-moveeffect">
<h3>MoveEffect<a class="headerlink" href="#dex-table-moveeffect" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.MoveEffect">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">MoveEffect</tt><a class="headerlink" href="#pokedex.db.tables.MoveEffect" title="Permalink to this definition"></a></dt>
<dd><p>An effect of a move</p>
<p>Table name: <em>move_effects</em>
(single: <em>move_effect</em>)</p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Internationalized strings:</p>
<p>MoveEffect.<strong>short_effect</strong> (<em>unicode markdown</em>) via <em>move_effect_prose</em></p>
<blockquote>
<div>A short summary of the effect</div></blockquote>
<p>MoveEffect.<strong>effect</strong> (<em>unicode markdown</em>) via <em>move_effect_prose</em></p>
<blockquote>
<div>A detailed description of the effect</div></blockquote>
<hr><p>Undocumented:</p>
<p>MoveEffect.<strong>changelog</strong></p>
<p>MoveEffect.<strong>move_changelog</strong></p>
<p>MoveEffect.<strong>moves</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-movemeta">
<h3>MoveMeta<a class="headerlink" href="#dex-table-movemeta" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.MoveMeta">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">MoveMeta</tt><a class="headerlink" href="#pokedex.db.tables.MoveMeta" title="Permalink to this definition"></a></dt>
<dd><p>Metadata for move effects, sorta-kinda ripped straight from the game</p>
<p>Table name: <em>move_meta</em></p>
<hr><p>Columns:</p>
<p>MoveMeta.<strong>move</strong> (move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><tt class="xref py py-class docutils literal"><span class="pre">Move</span></tt></a>.id)</p>
<blockquote>
<div>A numeric ID</div></blockquote>
<p>MoveMeta.<strong>meta_category_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.MoveMetaCategory" title="pokedex.db.tables.MoveMetaCategory"><tt class="xref py py-class docutils literal"><span class="pre">MoveMetaCategory</span></tt></a>.id):</p>
<blockquote>
<div>ID of the move category</div></blockquote>
<p>MoveMeta.<strong>meta_ailment_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.MoveMetaAilment" title="pokedex.db.tables.MoveMetaAilment"><tt class="xref py py-class docutils literal"><span class="pre">MoveMetaAilment</span></tt></a>.id):</p>
<blockquote>
<div>ID of the caused ailment</div></blockquote>
<p>MoveMeta.<strong>min_hits</strong> (<em>int</em>):</p>
<blockquote>
<div>Minimum number of hits per use</div></blockquote>
<p>MoveMeta.<strong>max_hits</strong> (<em>int</em>):</p>
<blockquote>
<div>Maximum number of hits per use</div></blockquote>
<p>MoveMeta.<strong>min_turns</strong> (<em>int</em>):</p>
<blockquote>
<div>Minimum number of turns the user is forced to use the move</div></blockquote>
<p>MoveMeta.<strong>max_turns</strong> (<em>int</em>):</p>
<blockquote>
<div>Maximum number of turns the user is forced to use the move</div></blockquote>
<p>MoveMeta.<strong>recoil</strong> (<em>int</em>):</p>
<blockquote>
<div>Recoil damage, in percent of damage done</div></blockquote>
<p>MoveMeta.<strong>healing</strong> (<em>int</em>):</p>
<blockquote>
<div>Healing, in percent of user&#8217;s max HP</div></blockquote>
<p>MoveMeta.<strong>crit_rate</strong> (<em>int</em>):</p>
<blockquote>
<div>Critical hit rate bonus</div></blockquote>
<p>MoveMeta.<strong>ailment_chance</strong> (<em>int</em>):</p>
<blockquote>
<div>Chance to cause an ailment, in percent</div></blockquote>
<p>MoveMeta.<strong>flinch_chance</strong> (<em>int</em>):</p>
<blockquote>
<div>Chance to cause flinching, in percent</div></blockquote>
<p>MoveMeta.<strong>stat_chance</strong> (<em>int</em>):</p>
<blockquote>
<div>Chance to cause a stat change, in percent</div></blockquote>
<hr><p>Undocumented:</p>
<p>MoveMeta.<strong>ailment</strong></p>
<p>MoveMeta.<strong>category</strong></p>
</dd></dl>
</div>
</div>
<div class="section" id="items">
<h2>Items<a class="headerlink" href="#items" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-item">
<h3>Item<a class="headerlink" href="#dex-table-item" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Item">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Item</tt><a class="headerlink" href="#pokedex.db.tables.Item" title="Permalink to this definition"></a></dt>
<dd><p>An Item from the games, like &#8220;Poké Ball&#8221; or &#8220;Bicycle&#8221;.</p>
<p>Table name: <em>items</em>
(single: <em>item</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>item_names</em>.</p>
<hr><p>Columns:</p>
<p>Item.<strong>category</strong> (category_id → <a class="reference internal" href="#pokedex.db.tables.ItemCategory" title="pokedex.db.tables.ItemCategory"><tt class="xref py py-class docutils literal"><span class="pre">ItemCategory</span></tt></a>.id)</p>
<blockquote>
<div>ID of a category this item belongs to</div></blockquote>
<p>Item.<strong>cost</strong> (<em>int</em>):</p>
<blockquote>
<div>Cost of the item when bought. Items sell for half this price.</div></blockquote>
<p>Item.<strong>fling_power</strong> (<em>int</em>):</p>
<blockquote>
<div>Power of the move Fling when used with this item.</div></blockquote>
<p>Item.<strong>fling_effect</strong> (fling_effect_id → <a class="reference internal" href="#pokedex.db.tables.ItemFlingEffect" title="pokedex.db.tables.ItemFlingEffect"><tt class="xref py py-class docutils literal"><span class="pre">ItemFlingEffect</span></tt></a>.id)</p>
<blockquote>
<div>ID of the fling-effect of the move Fling when used with this item. Note that these are different from move effects.</div></blockquote>
<hr><p>Internationalized strings:</p>
<p>Item.<strong>short_effect</strong> (<em>unicode markdown</em>) via <em>item_prose</em></p>
<blockquote>
<div>A short summary of the effect</div></blockquote>
<p>Item.<strong>effect</strong> (<em>unicode markdown</em>) via <em>item_prose</em></p>
<blockquote>
<div>Detailed description of the item&#8217;s effect.</div></blockquote>
<p>Item.<strong>flavor_summary</strong> (<em>unicode plaintext</em>) via <em>item_flavor_summaries</em></p>
<blockquote>
<div>Text containing facts from all flavor texts, for languages without official game translations</div></blockquote>
<hr><p>Relationships:</p>
<p>Item.<strong>required_for_evolutions</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><tt class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></tt></a>])</p>
<p>Item.<strong>triggered_evolutions</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><tt class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></tt></a>])</p>
<hr><p>Undocumented:</p>
<p>Item.<strong>berry</strong></p>
<p>Item.<strong>evolution_chains</strong></p>
<p>Item.<strong>flags</strong></p>
<p>Item.<strong>flavor_text</strong></p>
<p>Item.<strong>game_indices</strong></p>
<p>Item.<strong>machines</strong></p>
<p>Item.<strong>pocket</strong></p>
<p>Item.<strong>pokemon</strong></p>
<hr><dl class="attribute">
<dt id="pokedex.db.tables.Item.appears_underground">
<tt class="descname">appears_underground</tt><a class="headerlink" href="#pokedex.db.tables.Item.appears_underground" title="Permalink to this definition"></a></dt>
<dd><p>True if the item appears underground, as specified by the appropriate flag</p>
</dd></dl>
</dd></dl>
</div>
<div class="section" id="dex-table-berry">
<h3>Berry<a class="headerlink" href="#dex-table-berry" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Berry">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Berry</tt><a class="headerlink" href="#pokedex.db.tables.Berry" title="Permalink to this definition"></a></dt>
<dd><p>A Berry, consumable item that grows on trees</p>
<p>For data common to all items, such as the name, see the corresponding item entry.</p>
<p>Table name: <em>berries</em></p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Columns:</p>
<p>Berry.<strong>item</strong> (item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><tt class="xref py py-class docutils literal"><span class="pre">Item</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the item that represents this Berry</div></blockquote>
<p>Berry.<strong>firmness</strong> (firmness_id → <a class="reference internal" href="#pokedex.db.tables.BerryFirmness" title="pokedex.db.tables.BerryFirmness"><tt class="xref py py-class docutils literal"><span class="pre">BerryFirmness</span></tt></a>.id)</p>
<blockquote>
<div>The ID of this Berry&#8217;s firmness category</div></blockquote>
<p>Berry.<strong>natural_gift_power</strong> (<em>int</em>):</p>
<blockquote>
<div>Natural Gift&#8217;s power when used with this Berry</div></blockquote>
<p>Berry.<strong>natural_gift_type</strong> (natural_gift_type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><tt class="xref py py-class docutils literal"><span class="pre">Type</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the Type that Natural Gift has when used with this Berry</div></blockquote>
<p>Berry.<strong>size</strong> (<em>int</em>):</p>
<blockquote>
<div>The size of this Berry, in millimeters</div></blockquote>
<p>Berry.<strong>max_harvest</strong> (<em>int</em>):</p>
<blockquote>
<div>The maximum number of these berries that can grow on one tree in Generation IV</div></blockquote>
<p>Berry.<strong>growth_time</strong> (<em>int</em>):</p>
<blockquote>
<div>Time it takes the tree to grow one stage, in hours. Berry trees go through four of these growth stages before they can be picked.</div></blockquote>
<p>Berry.<strong>soil_dryness</strong> (<em>int</em>):</p>
<blockquote>
<div>The speed at which this Berry dries out the soil as it grows. A higher rate means the soil dries more quickly.</div></blockquote>
<p>Berry.<strong>smoothness</strong> (<em>int</em>):</p>
<blockquote>
<div>The smoothness of this Berry, used in making Pokéblocks or Poffins</div></blockquote>
<hr><p>Undocumented:</p>
<p>Berry.<strong>berry_firmness</strong></p>
<p>Berry.<strong>flavors</strong></p>
</dd></dl>
</div>
</div>
<div class="section" id="types">
<h2>Types<a class="headerlink" href="#types" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-type">
<h3>Type<a class="headerlink" href="#dex-table-type" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Type">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Type</tt><a class="headerlink" href="#pokedex.db.tables.Type" title="Permalink to this definition"></a></dt>
<dd><p>Any of the elemental types Pokémon and moves can have.</p>
<p>Table name: <em>types</em>
(single: <em>type</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>type_names</em>.</p>
<hr><p>Columns:</p>
<p>Type.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><tt class="xref py py-class docutils literal"><span class="pre">Generation</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the generation this type first appeared in.</div></blockquote>
<p>Type.<strong>damage_class</strong> (damage_class_id → <a class="reference internal" href="#pokedex.db.tables.MoveDamageClass" title="pokedex.db.tables.MoveDamageClass"><tt class="xref py py-class docutils literal"><span class="pre">MoveDamageClass</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the damage class this type&#8217;s moves had before Generation IV, null if not applicable (e.g. ???).</div></blockquote>
<hr><p>Relationships:</p>
<p>Type.<strong>pokemon</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>])</p>
<hr><p>Undocumented:</p>
<p>Type.<strong>damage_efficacies</strong></p>
<p>Type.<strong>move_changelog</strong></p>
<p>Type.<strong>moves</strong></p>
<p>Type.<strong>target_efficacies</strong></p>
</dd></dl>
</div>
</div>
<div class="section" id="abilities">
<h2>Abilities<a class="headerlink" href="#abilities" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-ability">
<h3>Ability<a class="headerlink" href="#dex-table-ability" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Ability">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Ability</tt><a class="headerlink" href="#pokedex.db.tables.Ability" title="Permalink to this definition"></a></dt>
<dd><p>An ability a Pokémon can have, such as Static or Pressure.</p>
<p>Table name: <em>abilities</em>
(single: <em>ability</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>ability_names</em>.</p>
<hr><p>Columns:</p>
<p>Ability.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><tt class="xref py py-class docutils literal"><span class="pre">Generation</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the generation this ability was introduced in</div></blockquote>
<hr><p>Internationalized strings:</p>
<p>Ability.<strong>effect</strong> (<em>unicode markdown</em>) via <em>ability_prose</em></p>
<blockquote>
<div>A detailed description of this ability&#8217;s effect</div></blockquote>
<p>Ability.<strong>short_effect</strong> (<em>unicode markdown</em>) via <em>ability_prose</em></p>
<blockquote>
<div>A short summary of this ability&#8217;s effect</div></blockquote>
<hr><p>Relationships:</p>
<p>Ability.<strong>all_pokemon</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>])</p>
<p>Ability.<strong>dream_pokemon</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>])</p>
<p>Ability.<strong>pokemon</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>])</p>
<hr><p>Undocumented:</p>
<p>Ability.<strong>changelog</strong></p>
<p>Ability.<strong>flavor_text</strong></p>
</dd></dl>
</div>
</div>
<div class="section" id="language">
<h2>Language<a class="headerlink" href="#language" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-language">
<h3>Language<a class="headerlink" href="#dex-table-language" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Language">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Language</tt><a class="headerlink" href="#pokedex.db.tables.Language" title="Permalink to this definition"></a></dt>
<dd><p>A language the Pokémon games have been translated into</p>
<p>Table name: <em>languages</em>
(single: <em>language</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>language_names</em>.</p>
<hr><p>Columns:</p>
<p>Language.<strong>iso639</strong> (<em>unicode identifier</em>):</p>
<blockquote>
<div>The two-letter code of the country where this language is spoken. Note that it is not unique.</div></blockquote>
<p>Language.<strong>iso3166</strong> (<em>unicode identifier</em>):</p>
<blockquote>
<div>The two-letter code of the language. Note that it is not unique.</div></blockquote>
<p>Language.<strong>official</strong> (<em>bool</em>):</p>
<blockquote>
<div>True iff games are produced in the language.</div></blockquote>
<p>Language.<strong>order</strong> (<em>int</em>):</p>
<blockquote>
<div>Order for sorting in foreign name lists.</div></blockquote>
</dd></dl>
</div>
</div>
<div class="section" id="version-stuff">
<h2>Version stuff<a class="headerlink" href="#version-stuff" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-generation">
<h3>Generation<a class="headerlink" href="#dex-table-generation" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Generation">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Generation</tt><a class="headerlink" href="#pokedex.db.tables.Generation" title="Permalink to this definition"></a></dt>
<dd><p>A Generation of the Pokémon franchise</p>
<p>Table name: <em>generations</em>
(single: <em>generation</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>generation_names</em>.</p>
<hr><p>Columns:</p>
<p>Generation.<strong>main_region</strong> (main_region_id → <a class="reference internal" href="#pokedex.db.tables.Region" title="pokedex.db.tables.Region"><tt class="xref py py-class docutils literal"><span class="pre">Region</span></tt></a>.id)</p>
<blockquote>
<div>ID of the region this generation&#8217;s main games take place in</div></blockquote>
<p>Generation.<strong>canonical_pokedex</strong> (canonical_pokedex_id → <a class="reference internal" href="#pokedex.db.tables.Pokedex" title="pokedex.db.tables.Pokedex"><tt class="xref py py-class docutils literal"><span class="pre">Pokedex</span></tt></a>.id)</p>
<blockquote>
<div>ID of the Pokédex this generation&#8217;s main games use by default</div></blockquote>
<hr><p>Relationships:</p>
<p>Generation.<strong>species</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>])</p>
<hr><p>Undocumented:</p>
<p>Generation.<strong>abilities</strong></p>
<p>Generation.<strong>moves</strong></p>
<p>Generation.<strong>types</strong></p>
<p>Generation.<strong>version_groups</strong></p>
<p>Generation.<strong>versions</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-versiongroup">
<h3>VersionGroup<a class="headerlink" href="#dex-table-versiongroup" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.VersionGroup">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">VersionGroup</tt><a class="headerlink" href="#pokedex.db.tables.VersionGroup" title="Permalink to this definition"></a></dt>
<dd><p>A group of versions, containing either two paired versions (such as Red
and Blue) or a single game (such as Yellow.)</p>
<p>Table name: <em>version_groups</em></p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Columns:</p>
<p>VersionGroup.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><tt class="xref py py-class docutils literal"><span class="pre">Generation</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the generation the games in this group belong to.</div></blockquote>
<p>VersionGroup.<strong>pokedex</strong> (pokedex_id → <a class="reference internal" href="#pokedex.db.tables.Pokedex" title="pokedex.db.tables.Pokedex"><tt class="xref py py-class docutils literal"><span class="pre">Pokedex</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the regional Pokédex used in this version group.</div></blockquote>
<p>VersionGroup.<strong>order</strong> (<em>int</em>):</p>
<blockquote>
<div>Order for sorting. Almost by date of release, except similar versions are grouped together.</div></blockquote>
<hr><p>Undocumented:</p>
<p>VersionGroup.<strong>ability_changelog</strong></p>
<p>VersionGroup.<strong>move_changelog</strong></p>
<p>VersionGroup.<strong>move_effect_changelog</strong></p>
<p>VersionGroup.<strong>regions</strong></p>
<p>VersionGroup.<strong>version_group_regions</strong></p>
<p>VersionGroup.<strong>versions</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-version">
<h3>Version<a class="headerlink" href="#dex-table-version" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Version">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Version</tt><a class="headerlink" href="#pokedex.db.tables.Version" title="Permalink to this definition"></a></dt>
<dd><p>An individual main-series Pokémon game.</p>
<p>Table name: <em>versions</em>
(single: <em>version</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>version_names</em>.</p>
<hr><p>Columns:</p>
<p>Version.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><tt class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the version group this game belongs to.</div></blockquote>
<hr><p>Relationships:</p>
<p>Version.<strong>encounters</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.Encounter" title="pokedex.db.tables.Encounter"><tt class="xref py py-class docutils literal"><span class="pre">Encounter</span></tt></a>])</p>
<hr><p>Undocumented:</p>
<p>Version.<strong>generation</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-pokedex">
<h3>Pokedex<a class="headerlink" href="#dex-table-pokedex" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Pokedex">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Pokedex</tt><a class="headerlink" href="#pokedex.db.tables.Pokedex" title="Permalink to this definition"></a></dt>
<dd><p>A collection of Pokémon species ordered in a particular way</p>
<p>Table name: <em>pokedexes</em>
(single: <em>pokedex</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokedex_prose</em>.</p>
<hr><p>Columns:</p>
<p>Pokedex.<strong>region</strong> (region_id → <a class="reference internal" href="#pokedex.db.tables.Region" title="pokedex.db.tables.Region"><tt class="xref py py-class docutils literal"><span class="pre">Region</span></tt></a>.id)</p>
<blockquote>
<div>ID of the region this Pokédex is used in, or None if it&#8217;s global</div></blockquote>
<hr><p>Internationalized strings:</p>
<p>Pokedex.<strong>description</strong> (<em>unicode plaintext</em>) via <em>pokedex_prose</em></p>
<blockquote>
<div>A longer description of the Pokédex</div></blockquote>
<hr><p>Undocumented:</p>
<p>Pokedex.<strong>canonical_for_generation</strong></p>
<p>Pokedex.<strong>version_groups</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-region">
<h3>Region<a class="headerlink" href="#dex-table-region" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Region">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Region</tt><a class="headerlink" href="#pokedex.db.tables.Region" title="Permalink to this definition"></a></dt>
<dd><p>Major areas of the world: Kanto, Johto, etc.</p>
<p>Table name: <em>regions</em>
(single: <em>region</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>region_names</em>.</p>
<hr><p>Undocumented:</p>
<p>Region.<strong>generation</strong></p>
<p>Region.<strong>locations</strong></p>
<p>Region.<strong>pokedexes</strong></p>
<p>Region.<strong>version_group_regions</strong></p>
<p>Region.<strong>version_groups</strong></p>
</dd></dl>
</div>
</div>
<div class="section" id="encounters">
<h2>Encounters<a class="headerlink" href="#encounters" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-location">
<h3>Location<a class="headerlink" href="#dex-table-location" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Location">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Location</tt><a class="headerlink" href="#pokedex.db.tables.Location" title="Permalink to this definition"></a></dt>
<dd><p>A place in the Pokémon world</p>
<p>Table name: <em>locations</em>
(single: <em>location</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>location_names</em>.</p>
<hr><p>Columns:</p>
<p>Location.<strong>region</strong> (region_id → <a class="reference internal" href="#pokedex.db.tables.Region" title="pokedex.db.tables.Region"><tt class="xref py py-class docutils literal"><span class="pre">Region</span></tt></a>.id)</p>
<blockquote>
<div>ID of the region this location is in</div></blockquote>
<hr><p>Relationships:</p>
<p>Location.<strong>triggered_evolutions</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><tt class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></tt></a>])</p>
<hr><p>Undocumented:</p>
<p>Location.<strong>areas</strong></p>
<p>Location.<strong>game_indices</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-locationarea">
<h3>LocationArea<a class="headerlink" href="#dex-table-locationarea" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.LocationArea">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">LocationArea</tt><a class="headerlink" href="#pokedex.db.tables.LocationArea" title="Permalink to this definition"></a></dt>
<dd><p>A sub-area of a location</p>
<p>Table name: <em>location_areas</em>
(single: <em>location_area</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>location_area_prose</em>.</p>
<hr><p>Columns:</p>
<p>LocationArea.<strong>location</strong> (location_id → <a class="reference internal" href="#pokedex.db.tables.Location" title="pokedex.db.tables.Location"><tt class="xref py py-class docutils literal"><span class="pre">Location</span></tt></a>.id)</p>
<blockquote>
<div>ID of the location this area is part of</div></blockquote>
<p>LocationArea.<strong>game_index</strong> (<em>int</em>):</p>
<blockquote>
<div>ID the games ude for this area</div></blockquote>
<hr><p>Relationships:</p>
<p>LocationArea.<strong>encounters</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.Encounter" title="pokedex.db.tables.Encounter"><tt class="xref py py-class docutils literal"><span class="pre">Encounter</span></tt></a>])</p>
<hr><p>Undocumented:</p>
<p>LocationArea.<strong>encounter_rates</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-locationareaencounterrate">
<h3>LocationAreaEncounterRate<a class="headerlink" href="#dex-table-locationareaencounterrate" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.LocationAreaEncounterRate">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">LocationAreaEncounterRate</tt><a class="headerlink" href="#pokedex.db.tables.LocationAreaEncounterRate" title="Permalink to this definition"></a></dt>
<dd><p>None</p>
<p>Table name: <em>location_area_encounter_rates</em></p>
<hr><p>Columns:</p>
<p>LocationAreaEncounterRate.<strong>location_area</strong> (location_area_id → <a class="reference internal" href="#pokedex.db.tables.LocationArea" title="pokedex.db.tables.LocationArea"><tt class="xref py py-class docutils literal"><span class="pre">LocationArea</span></tt></a>.id)</p>
<blockquote>
<div>ID of the area</div></blockquote>
<p>LocationAreaEncounterRate.<strong>encounter_method_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EncounterMethod" title="pokedex.db.tables.EncounterMethod"><tt class="xref py py-class docutils literal"><span class="pre">EncounterMethod</span></tt></a>.id):</p>
<blockquote>
<div>ID of the method</div></blockquote>
<p>LocationAreaEncounterRate.<strong>version_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Version" title="pokedex.db.tables.Version"><tt class="xref py py-class docutils literal"><span class="pre">Version</span></tt></a>.id):</p>
<blockquote>
<div>ID of the version</div></blockquote>
<p>LocationAreaEncounterRate.<strong>rate</strong> (<em>int</em>):</p>
<blockquote>
<div>The encounter rate</div></blockquote>
<hr><p>Undocumented:</p>
<p>LocationAreaEncounterRate.<strong>method</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-encounter">
<h3>Encounter<a class="headerlink" href="#dex-table-encounter" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Encounter">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Encounter</tt><a class="headerlink" href="#pokedex.db.tables.Encounter" title="Permalink to this definition"></a></dt>
<dd><p>Encounters with wild Pokémon.</p>
<p>Bear with me, here.</p>
<p>Within a given area in a given game, encounters are differentiated by the
&#8220;slot&#8221; they are in and the state of the game world.</p>
<p>What the player is doing to get an encounter, such as surfing or walking
through tall grass, is called a method. Each method has its own set of
encounter slots.</p>
<p>Within a method, slots are defined primarily by rarity. Each slot can
also be affected by world conditions; for example, the 20% slot for walking
in tall grass is affected by whether a swarm is in effect in that area.
&#8220;Is there a swarm?&#8221; is a condition; &#8220;there is a swarm&#8221; and &#8220;there is not a
swarm&#8221; are the possible values of this condition.</p>
<p>A slot (20% walking in grass) and any appropriate world conditions (no
swarm) are thus enough to define a specific encounter.</p>
<p>Well, okay, almost: each slot actually appears twice.</p>
<p>Table name: <em>encounters</em></p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Columns:</p>
<p>Encounter.<strong>version</strong> (version_id → <a class="reference internal" href="#pokedex.db.tables.Version" title="pokedex.db.tables.Version"><tt class="xref py py-class docutils literal"><span class="pre">Version</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the version this applies to</div></blockquote>
<p>Encounter.<strong>location_area</strong> (location_area_id → <a class="reference internal" href="#pokedex.db.tables.LocationArea" title="pokedex.db.tables.LocationArea"><tt class="xref py py-class docutils literal"><span class="pre">LocationArea</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the location of this encounter</div></blockquote>
<p>Encounter.<strong>encounter_slot_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EncounterSlot" title="pokedex.db.tables.EncounterSlot"><tt class="xref py py-class docutils literal"><span class="pre">EncounterSlot</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the encounter slot, which determines method and rarity</div></blockquote>
<p>Encounter.<strong>pokemon</strong> (pokemon_id → <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the encountered Pokémon</div></blockquote>
<p>Encounter.<strong>min_level</strong> (<em>int</em>):</p>
<blockquote>
<div>The minimum level of the encountered Pokémon</div></blockquote>
<p>Encounter.<strong>max_level</strong> (<em>int</em>):</p>
<blockquote>
<div>The maxmum level of the encountered Pokémon</div></blockquote>
<hr><p>Relationships:</p>
<p>Encounter.<strong>condition_value_map</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.EncounterConditionValueMap" title="pokedex.db.tables.EncounterConditionValueMap"><tt class="xref py py-class docutils literal"><span class="pre">EncounterConditionValueMap</span></tt></a>])</p>
<p>Encounter.<strong>condition_values</strong>:
<tt class="docutils literal"><span class="pre">condition_value</span></tt> of <tt class="docutils literal"><span class="pre">self.condition_value_map</span></tt></p>
<p>Encounter.<strong>slot</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.EncounterSlot" title="pokedex.db.tables.EncounterSlot"><tt class="xref py py-class docutils literal"><span class="pre">EncounterSlot</span></tt></a>])</p>
</dd></dl>
</div>
<div class="section" id="dex-table-encountercondition">
<h3>EncounterCondition<a class="headerlink" href="#dex-table-encountercondition" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.EncounterCondition">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">EncounterCondition</tt><a class="headerlink" href="#pokedex.db.tables.EncounterCondition" title="Permalink to this definition"></a></dt>
<dd><p>A conditions in the game world that affects Pokémon encounters, such as time of day.</p>
<p>Table name: <em>encounter_conditions</em>
(single: <em>encounter_condition</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>encounter_condition_prose</em>.</p>
<hr><p>Undocumented:</p>
<p>EncounterCondition.<strong>values</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-encounterconditionvalue">
<h3>EncounterConditionValue<a class="headerlink" href="#dex-table-encounterconditionvalue" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.EncounterConditionValue">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">EncounterConditionValue</tt><a class="headerlink" href="#pokedex.db.tables.EncounterConditionValue" title="Permalink to this definition"></a></dt>
<dd><p>A possible state for a condition; for example, the state of &#8216;swarm&#8217; could be &#8216;swarm&#8217; or &#8216;no swarm&#8217;.</p>
<p>Table name: <em>encounter_condition_values</em>
(single: <em>encounter_condition_value</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>encounter_condition_value_prose</em>.</p>
<hr><p>Columns:</p>
<p>EncounterConditionValue.<strong>encounter_condition_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EncounterCondition" title="pokedex.db.tables.EncounterCondition"><tt class="xref py py-class docutils literal"><span class="pre">EncounterCondition</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the encounter condition this is a value of</div></blockquote>
<p>EncounterConditionValue.<strong>is_default</strong> (<em>bool</em>):</p>
<blockquote>
<div>Set if this value is the default state for the condition</div></blockquote>
<hr><p>Undocumented:</p>
<p>EncounterConditionValue.<strong>condition</strong></p>
<p>EncounterConditionValue.<strong>encounter_map</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-encountermethod">
<h3>EncounterMethod<a class="headerlink" href="#dex-table-encountermethod" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.EncounterMethod">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">EncounterMethod</tt><a class="headerlink" href="#pokedex.db.tables.EncounterMethod" title="Permalink to this definition"></a></dt>
<dd><p>A way the player can enter a wild encounter, e.g., surfing, fishing, or walking through tall grass.</p>
<p>Table name: <em>encounter_methods</em>
(single: <em>encounter_method</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>encounter_method_prose</em>.</p>
<hr><p>Undocumented:</p>
<p>EncounterMethod.<strong>slots</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-encounterslot">
<h3>EncounterSlot<a class="headerlink" href="#dex-table-encounterslot" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.EncounterSlot">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">EncounterSlot</tt><a class="headerlink" href="#pokedex.db.tables.EncounterSlot" title="Permalink to this definition"></a></dt>
<dd><p>An abstract &#8220;slot&#8221; within a method, associated with both some set of conditions and a rarity.</p>
<p>Note that there are two encounters per slot, so the rarities will only add
up to 50.</p>
<p>Table name: <em>encounter_slots</em></p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Columns:</p>
<p>EncounterSlot.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><tt class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the version group this slot is in</div></blockquote>
<p>EncounterSlot.<strong>encounter_method_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EncounterMethod" title="pokedex.db.tables.EncounterMethod"><tt class="xref py py-class docutils literal"><span class="pre">EncounterMethod</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the method</div></blockquote>
<p>EncounterSlot.<strong>slot</strong> (<em>int</em>):</p>
<blockquote>
<div>This slot&#8217;s order for the location and method</div></blockquote>
<p>EncounterSlot.<strong>rarity</strong> (<em>int</em>):</p>
<blockquote>
<div>The chance of the encounter as a percentage</div></blockquote>
<hr><p>Relationships:</p>
<p>EncounterSlot.<strong>encounters</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.Encounter" title="pokedex.db.tables.Encounter"><tt class="xref py py-class docutils literal"><span class="pre">Encounter</span></tt></a>])</p>
<hr><p>Undocumented:</p>
<p>EncounterSlot.<strong>method</strong></p>
</dd></dl>
</div>
</div>
<div class="section" id="contests">
<h2>Contests<a class="headerlink" href="#contests" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-contestcombo">
<h3>ContestCombo<a class="headerlink" href="#dex-table-contestcombo" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.ContestCombo">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">ContestCombo</tt><a class="headerlink" href="#pokedex.db.tables.ContestCombo" title="Permalink to this definition"></a></dt>
<dd><p>Combo of two moves in a Contest.</p>
<p>Table name: <em>contest_combos</em></p>
<hr><p>Columns:</p>
<p>ContestCombo.<strong>first_move_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><tt class="xref py py-class docutils literal"><span class="pre">Move</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the first move in the combo</div></blockquote>
<p>ContestCombo.<strong>second_move_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><tt class="xref py py-class docutils literal"><span class="pre">Move</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the second and final move in the combo</div></blockquote>
<hr><p>Undocumented:</p>
<p>ContestCombo.<strong>first</strong></p>
<p>ContestCombo.<strong>second</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-contesteffect">
<h3>ContestEffect<a class="headerlink" href="#dex-table-contesteffect" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.ContestEffect">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">ContestEffect</tt><a class="headerlink" href="#pokedex.db.tables.ContestEffect" title="Permalink to this definition"></a></dt>
<dd><p>Effect of a move when used in a Contest.</p>
<p>Table name: <em>contest_effects</em>
(single: <em>contest_effect</em>)</p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Columns:</p>
<p>ContestEffect.<strong>appeal</strong> (<em>int</em>):</p>
<blockquote>
<div>The base number of hearts the user of this move gets</div></blockquote>
<p>ContestEffect.<strong>jam</strong> (<em>int</em>):</p>
<blockquote>
<div>The base number of hearts the user&#8217;s opponent loses</div></blockquote>
<hr><p>Internationalized strings:</p>
<p>ContestEffect.<strong>flavor_text</strong> (<em>unicode gametext</em>) via <em>contest_effect_prose</em></p>
<blockquote>
<div>The in-game description of this effect</div></blockquote>
<p>ContestEffect.<strong>effect</strong> (<em>unicode plaintext</em>) via <em>contest_effect_prose</em></p>
<blockquote>
<div>A detailed description of the effect</div></blockquote>
<hr><p>Undocumented:</p>
<p>ContestEffect.<strong>moves</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-supercontestcombo">
<h3>SuperContestCombo<a class="headerlink" href="#dex-table-supercontestcombo" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.SuperContestCombo">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">SuperContestCombo</tt><a class="headerlink" href="#pokedex.db.tables.SuperContestCombo" title="Permalink to this definition"></a></dt>
<dd><p>Combo of two moves in a Super Contest.</p>
<p>Table name: <em>super_contest_combos</em></p>
<hr><p>Columns:</p>
<p>SuperContestCombo.<strong>first_move_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><tt class="xref py py-class docutils literal"><span class="pre">Move</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the first move in the combo.</div></blockquote>
<p>SuperContestCombo.<strong>second_move_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><tt class="xref py py-class docutils literal"><span class="pre">Move</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the second and last move.</div></blockquote>
<hr><p>Undocumented:</p>
<p>SuperContestCombo.<strong>first</strong></p>
<p>SuperContestCombo.<strong>second</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-supercontesteffect">
<h3>SuperContestEffect<a class="headerlink" href="#dex-table-supercontesteffect" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.SuperContestEffect">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">SuperContestEffect</tt><a class="headerlink" href="#pokedex.db.tables.SuperContestEffect" title="Permalink to this definition"></a></dt>
<dd><p>An effect a move can have when used in the Super Contest</p>
<p>Table name: <em>super_contest_effects</em>
(single: <em>super_contest_effect</em>)</p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Columns:</p>
<p>SuperContestEffect.<strong>appeal</strong> (<em>int</em>):</p>
<blockquote>
<div>The number of hearts the user gains.</div></blockquote>
<hr><p>Internationalized strings:</p>
<p>SuperContestEffect.<strong>flavor_text</strong> (<em>unicode plaintext</em>) via <em>super_contest_effect_prose</em></p>
<blockquote>
<div>A description of the effect.</div></blockquote>
<hr><p>Undocumented:</p>
<p>SuperContestEffect.<strong>moves</strong></p>
</dd></dl>
</div>
</div>
<div class="section" id="enum-tables">
<h2>Enum tables<a class="headerlink" href="#enum-tables" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-berryfirmness">
<h3>BerryFirmness<a class="headerlink" href="#dex-table-berryfirmness" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.BerryFirmness">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">BerryFirmness</tt><a class="headerlink" href="#pokedex.db.tables.BerryFirmness" title="Permalink to this definition"></a></dt>
<dd><p>A Berry firmness, such as &#8220;hard&#8221; or &#8220;very soft&#8221;.</p>
<p>Table name: <em>berry_firmness</em>
(single: <em>berry_firmness</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>berry_firmness_names</em>.</p>
<hr><p>Undocumented:</p>
<p>BerryFirmness.<strong>berries</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-contesttype">
<h3>ContestType<a class="headerlink" href="#dex-table-contesttype" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.ContestType">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">ContestType</tt><a class="headerlink" href="#pokedex.db.tables.ContestType" title="Permalink to this definition"></a></dt>
<dd><p>A Contest type, such as &#8220;cool&#8221; or &#8220;smart&#8221;, and their associated Berry flavors and Pokéblock colors.</p>
<p>Table name: <em>contest_types</em>
(single: <em>contest_type</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>contest_type_names</em>.</p>
<hr><p>Internationalized strings:</p>
<p>ContestType.<strong>flavor</strong> (<em>unicode plaintext</em>) via <em>contest_type_names</em></p>
<blockquote>
<div>The name of the corresponding Berry flavor</div></blockquote>
<p>ContestType.<strong>color</strong> (<em>unicode plaintext</em>) via <em>contest_type_names</em></p>
<blockquote>
<div>The name of the corresponding Pokéblock color</div></blockquote>
<hr><p>Undocumented:</p>
<p>ContestType.<strong>hating_natures</strong></p>
<p>ContestType.<strong>liking_natures</strong></p>
<p>ContestType.<strong>moves</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-egggroup">
<h3>EggGroup<a class="headerlink" href="#dex-table-egggroup" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.EggGroup">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">EggGroup</tt><a class="headerlink" href="#pokedex.db.tables.EggGroup" title="Permalink to this definition"></a></dt>
<dd><p>An Egg group. Usually, two Pokémon can breed if they share an Egg Group.</p>
<p>(exceptions are the Ditto and No Eggs groups)</p>
<p>Table name: <em>egg_groups</em>
(single: <em>egg_group</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>egg_group_prose</em>.</p>
<hr><p>Relationships:</p>
<p>EggGroup.<strong>species</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>])</p>
</dd></dl>
</div>
<div class="section" id="dex-table-evolutiontrigger">
<h3>EvolutionTrigger<a class="headerlink" href="#dex-table-evolutiontrigger" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.EvolutionTrigger">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">EvolutionTrigger</tt><a class="headerlink" href="#pokedex.db.tables.EvolutionTrigger" title="Permalink to this definition"></a></dt>
<dd><p>An evolution type, such as &#8220;level&#8221; or &#8220;trade&#8221;.</p>
<p>Table name: <em>evolution_triggers</em>
(single: <em>evolution_trigger</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>evolution_trigger_prose</em>.</p>
<hr><p>Relationships:</p>
<p>EvolutionTrigger.<strong>evolutions</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><tt class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></tt></a>])</p>
</dd></dl>
</div>
<div class="section" id="dex-table-growthrate">
<h3>GrowthRate<a class="headerlink" href="#dex-table-growthrate" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.GrowthRate">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">GrowthRate</tt><a class="headerlink" href="#pokedex.db.tables.GrowthRate" title="Permalink to this definition"></a></dt>
<dd><p>Growth rate of a Pokémon, i.e. the EXP → level function.</p>
<p>Table name: <em>growth_rates</em>
(single: <em>growth_rate</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>growth_rate_prose</em>.</p>
<hr><p>Columns:</p>
<p>GrowthRate.<strong>formula</strong> (<em>unicode latex</em>):</p>
<blockquote>
<div>The formula</div></blockquote>
<hr><p>Relationships:</p>
<p>GrowthRate.<strong>evolution_chains</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>])</p>
<hr><p>Undocumented:</p>
<p>GrowthRate.<strong>experience_table</strong></p>
<p>GrowthRate.<strong>max_experience</strong></p>
<p>GrowthRate.<strong>max_experience_obj</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-itemcategory">
<h3>ItemCategory<a class="headerlink" href="#dex-table-itemcategory" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.ItemCategory">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">ItemCategory</tt><a class="headerlink" href="#pokedex.db.tables.ItemCategory" title="Permalink to this definition"></a></dt>
<dd><p>An item category</p>
<p>Table name: <em>item_categories</em>
(single: <em>item_category</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>item_category_prose</em>.</p>
<hr><p>Columns:</p>
<p>ItemCategory.<strong>pocket</strong> (pocket_id → <a class="reference internal" href="#pokedex.db.tables.ItemPocket" title="pokedex.db.tables.ItemPocket"><tt class="xref py py-class docutils literal"><span class="pre">ItemPocket</span></tt></a>.id)</p>
<blockquote>
<div>ID of the pocket these items go to</div></blockquote>
<hr><p>Undocumented:</p>
<p>ItemCategory.<strong>items</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-itemflingeffect">
<h3>ItemFlingEffect<a class="headerlink" href="#dex-table-itemflingeffect" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.ItemFlingEffect">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">ItemFlingEffect</tt><a class="headerlink" href="#pokedex.db.tables.ItemFlingEffect" title="Permalink to this definition"></a></dt>
<dd><p>An effect of the move Fling when used with a specific item</p>
<p>Table name: <em>item_fling_effects</em>
(single: <em>item_fling_effect</em>)</p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Internationalized strings:</p>
<p>ItemFlingEffect.<strong>effect</strong> (<em>unicode plaintext</em>) via <em>item_fling_effect_prose</em></p>
<blockquote>
<div>Description of the effect</div></blockquote>
<hr><p>Undocumented:</p>
<p>ItemFlingEffect.<strong>items</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-itempocket">
<h3>ItemPocket<a class="headerlink" href="#dex-table-itempocket" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.ItemPocket">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">ItemPocket</tt><a class="headerlink" href="#pokedex.db.tables.ItemPocket" title="Permalink to this definition"></a></dt>
<dd><p>A pocket that categorizes items</p>
<p>Table name: <em>item_pockets</em>
(single: <em>item_pocket</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>item_pocket_names</em>.</p>
<hr><p>Undocumented:</p>
<p>ItemPocket.<strong>categories</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-movebattlestyle">
<h3>MoveBattleStyle<a class="headerlink" href="#dex-table-movebattlestyle" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.MoveBattleStyle">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">MoveBattleStyle</tt><a class="headerlink" href="#pokedex.db.tables.MoveBattleStyle" title="Permalink to this definition"></a></dt>
<dd><p>A battle style of a move</p>
<p>Table name: <em>move_battle_styles</em>
(single: <em>move_battle_style</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>move_battle_style_prose</em>.</p>
<hr><p>Undocumented:</p>
<p>MoveBattleStyle.<strong>nature_preferences</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-movedamageclass">
<h3>MoveDamageClass<a class="headerlink" href="#dex-table-movedamageclass" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.MoveDamageClass">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">MoveDamageClass</tt><a class="headerlink" href="#pokedex.db.tables.MoveDamageClass" title="Permalink to this definition"></a></dt>
<dd><p>Any of the damage classes moves can have, i.e. physical, special, or non-damaging.</p>
<p>Table name: <em>move_damage_classes</em>
(single: <em>move_damage_class</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>move_damage_class_prose</em>.</p>
<hr><p>Internationalized strings:</p>
<p>MoveDamageClass.<strong>description</strong> (<em>unicode plaintext</em>) via <em>move_damage_class_prose</em></p>
<blockquote>
<div>A description of the class</div></blockquote>
<hr><p>Undocumented:</p>
<p>MoveDamageClass.<strong>moves</strong></p>
<p>MoveDamageClass.<strong>stats</strong></p>
<p>MoveDamageClass.<strong>types</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-movemetaailment">
<h3>MoveMetaAilment<a class="headerlink" href="#dex-table-movemetaailment" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.MoveMetaAilment">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">MoveMetaAilment</tt><a class="headerlink" href="#pokedex.db.tables.MoveMetaAilment" title="Permalink to this definition"></a></dt>
<dd><p>Common status ailments moves can inflict on a single Pokémon, including
major ailments like paralysis and minor ailments like trapping.</p>
<p>Table name: <em>move_meta_ailments</em>
(single: <em>move_meta_ailment</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>move_meta_ailment_names</em>.</p>
<hr><p>Undocumented:</p>
<p>MoveMetaAilment.<strong>move_meta</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-movemetacategory">
<h3>MoveMetaCategory<a class="headerlink" href="#dex-table-movemetacategory" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.MoveMetaCategory">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">MoveMetaCategory</tt><a class="headerlink" href="#pokedex.db.tables.MoveMetaCategory" title="Permalink to this definition"></a></dt>
<dd><p>Very general categories that loosely group move effects.</p>
<p>Table name: <em>move_meta_categories</em>
(single: <em>move_meta_category</em>)</p>
<p>Has
<strong>id</strong> and <strong>identifier</strong>.</p>
<hr><p>Internationalized strings:</p>
<p>MoveMetaCategory.<strong>description</strong> (<em>unicode plaintext</em>) via <em>move_meta_category_prose</em></p>
<blockquote>
<div>A description of the category</div></blockquote>
<hr><p>Undocumented:</p>
<p>MoveMetaCategory.<strong>move_meta</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-movetarget">
<h3>MoveTarget<a class="headerlink" href="#dex-table-movetarget" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.MoveTarget">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">MoveTarget</tt><a class="headerlink" href="#pokedex.db.tables.MoveTarget" title="Permalink to this definition"></a></dt>
<dd><p>Targetting or &#8220;range&#8221; of a move, e.g. &#8220;Affects all opponents&#8221; or &#8220;Affects user&#8221;.</p>
<p>Table name: <em>move_targets</em>
(single: <em>move_target</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>move_target_prose</em>.</p>
<hr><p>Internationalized strings:</p>
<p>MoveTarget.<strong>description</strong> (<em>unicode plaintext</em>) via <em>move_target_prose</em></p>
<blockquote>
<div>A description</div></blockquote>
<hr><p>Undocumented:</p>
<p>MoveTarget.<strong>moves</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-nature">
<h3>Nature<a class="headerlink" href="#dex-table-nature" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Nature">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Nature</tt><a class="headerlink" href="#pokedex.db.tables.Nature" title="Permalink to this definition"></a></dt>
<dd><p>A nature a Pokémon can have, such as Calm or Brave</p>
<p>Table name: <em>natures</em>
(single: <em>nature</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>nature_names</em>.</p>
<hr><p>Columns:</p>
<p>Nature.<strong>decreased_stat</strong> (decreased_stat_id → <a class="reference internal" href="#pokedex.db.tables.Stat" title="pokedex.db.tables.Stat"><tt class="xref py py-class docutils literal"><span class="pre">Stat</span></tt></a>.id)</p>
<blockquote>
<div>ID of the stat that this nature decreases by 10% (if decreased_stat_id is the same, the effects cancel out)</div></blockquote>
<p>Nature.<strong>increased_stat</strong> (increased_stat_id → <a class="reference internal" href="#pokedex.db.tables.Stat" title="pokedex.db.tables.Stat"><tt class="xref py py-class docutils literal"><span class="pre">Stat</span></tt></a>.id)</p>
<blockquote>
<div>ID of the stat that this nature increases by 10% (if decreased_stat_id is the same, the effects cancel out)</div></blockquote>
<p>Nature.<strong>hates_flavor</strong> (hates_flavor_id → <a class="reference internal" href="#pokedex.db.tables.ContestType" title="pokedex.db.tables.ContestType"><tt class="xref py py-class docutils literal"><span class="pre">ContestType</span></tt></a>.id)</p>
<blockquote>
<div>ID of the Berry flavor the Pokémon hates (if likes_flavor_id is the same, the effects cancel out)</div></blockquote>
<p>Nature.<strong>likes_flavor</strong> (likes_flavor_id → <a class="reference internal" href="#pokedex.db.tables.ContestType" title="pokedex.db.tables.ContestType"><tt class="xref py py-class docutils literal"><span class="pre">ContestType</span></tt></a>.id)</p>
<blockquote>
<div>ID of the Berry flavor the Pokémon likes (if hates_flavor_id is the same, the effects cancel out)</div></blockquote>
<hr><p>Undocumented:</p>
<p>Nature.<strong>battle_style_preferences</strong></p>
<p>Nature.<strong>pokeathlon_effects</strong></p>
<hr><dl class="attribute">
<dt id="pokedex.db.tables.Nature.is_neutral">
<tt class="descname">is_neutral</tt><a class="headerlink" href="#pokedex.db.tables.Nature.is_neutral" title="Permalink to this definition"></a></dt>
<dd><p>Returns True iff this nature doesn&#8217;t alter a Pokémon&#8217;s stats,
bestow taste preferences, etc.</p>
</dd></dl>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemoncolor">
<h3>PokemonColor<a class="headerlink" href="#dex-table-pokemoncolor" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonColor">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonColor</tt><a class="headerlink" href="#pokedex.db.tables.PokemonColor" title="Permalink to this definition"></a></dt>
<dd><p>The &#8220;Pokédex color&#8221; of a Pokémon species. Usually based on the Pokémon&#8217;s color.</p>
<p>Table name: <em>pokemon_colors</em>
(single: <em>pokemon_color</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokemon_color_names</em>.</p>
<hr><p>Relationships:</p>
<p>PokemonColor.<strong>species</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>])</p>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemonmovemethod">
<h3>PokemonMoveMethod<a class="headerlink" href="#dex-table-pokemonmovemethod" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonMoveMethod">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonMoveMethod</tt><a class="headerlink" href="#pokedex.db.tables.PokemonMoveMethod" title="Permalink to this definition"></a></dt>
<dd><p>A method a move can be learned by, such as &#8220;Level up&#8221; or &#8220;Tutor&#8221;.</p>
<p>Table name: <em>pokemon_move_methods</em>
(single: <em>pokemon_move_method</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokemon_move_method_prose</em>.</p>
<hr><p>Internationalized strings:</p>
<p>PokemonMoveMethod.<strong>description</strong> (<em>unicode plaintext</em>) via <em>pokemon_move_method_prose</em></p>
<blockquote>
<div>A detailed description of how the method works</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemonshape">
<h3>PokemonShape<a class="headerlink" href="#dex-table-pokemonshape" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonShape">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonShape</tt><a class="headerlink" href="#pokedex.db.tables.PokemonShape" title="Permalink to this definition"></a></dt>
<dd><p>The shape of a Pokémon&#8217;s body. Used for flavor in generation IV and V
Pokédexes.</p>
<p>Table name: <em>pokemon_shapes</em>
(single: <em>pokemon_shape</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokemon_shape_prose</em>.</p>
<hr><p>Internationalized strings:</p>
<p>PokemonShape.<strong>awesome_name</strong> (<em>unicode plaintext</em>) via <em>pokemon_shape_prose</em></p>
<blockquote>
<div>A splendiferous name of the body shape</div></blockquote>
<hr><p>Relationships:</p>
<p>PokemonShape.<strong>species</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>])</p>
</dd></dl>
</div>
<div class="section" id="dex-table-stat">
<h3>Stat<a class="headerlink" href="#dex-table-stat" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Stat">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Stat</tt><a class="headerlink" href="#pokedex.db.tables.Stat" title="Permalink to this definition"></a></dt>
<dd><p>A Stat, such as Attack or Speed</p>
<p>Table name: <em>stats</em>
(single: <em>stat</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>stat_names</em>.</p>
<hr><p>Columns:</p>
<p>Stat.<strong>damage_class</strong> (damage_class_id → <a class="reference internal" href="#pokedex.db.tables.MoveDamageClass" title="pokedex.db.tables.MoveDamageClass"><tt class="xref py py-class docutils literal"><span class="pre">MoveDamageClass</span></tt></a>.id)</p>
<blockquote>
<div>For offensive and defensive stats, the damage this stat relates to; otherwise None (the NULL value)</div></blockquote>
<p>Stat.<strong>is_battle_only</strong> (<em>bool</em>):</p>
<blockquote>
<div>Whether this stat only exists within a battle</div></blockquote>
<hr><p>Undocumented:</p>
<p>Stat.<strong>decreasing_natures</strong></p>
<p>Stat.<strong>hints</strong></p>
<p>Stat.<strong>increasing_natures</strong></p>
<p>Stat.<strong>move_meta_stat_changes</strong></p>
</dd></dl>
</div>
</div>
<div class="section" id="changelogs">
<h2>Changelogs<a class="headerlink" href="#changelogs" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-abilitychangelog">
<h3>AbilityChangelog<a class="headerlink" href="#dex-table-abilitychangelog" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.AbilityChangelog">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">AbilityChangelog</tt><a class="headerlink" href="#pokedex.db.tables.AbilityChangelog" title="Permalink to this definition"></a></dt>
<dd><p>History of changes to abilities across main game versions.</p>
<p>Table name: <em>ability_changelog</em>
(single: <em>ability_changelog</em>)</p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Columns:</p>
<p>AbilityChangelog.<strong>ability</strong> (ability_id → <a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><tt class="xref py py-class docutils literal"><span class="pre">Ability</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the ability that changed</div></blockquote>
<p>AbilityChangelog.<strong>changed_in_version_group_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><tt class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the version group in which the ability changed</div></blockquote>
<hr><p>Internationalized strings:</p>
<p>AbilityChangelog.<strong>effect</strong> (<em>unicode markdown</em>) via <em>ability_changelog_prose</em></p>
<blockquote>
<div>A description of the old behavior</div></blockquote>
<hr><p>Undocumented:</p>
<p>AbilityChangelog.<strong>changed_in</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-moveeffectchangelog">
<h3>MoveEffectChangelog<a class="headerlink" href="#dex-table-moveeffectchangelog" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.MoveEffectChangelog">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">MoveEffectChangelog</tt><a class="headerlink" href="#pokedex.db.tables.MoveEffectChangelog" title="Permalink to this definition"></a></dt>
<dd><p>History of changes to move effects across main game versions.</p>
<p>Table name: <em>move_effect_changelog</em>
(single: <em>move_effect_changelog</em>)</p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Columns:</p>
<p>MoveEffectChangelog.<strong>effect</strong> (effect_id → <a class="reference internal" href="#pokedex.db.tables.MoveEffect" title="pokedex.db.tables.MoveEffect"><tt class="xref py py-class docutils literal"><span class="pre">MoveEffect</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the effect that changed</div></blockquote>
<p>MoveEffectChangelog.<strong>changed_in_version_group_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><tt class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the version group in which the effect changed</div></blockquote>
<hr><p>Internationalized strings:</p>
<p>MoveEffectChangelog.<strong>effect</strong> (<em>unicode markdown</em>) via <em>move_effect_changelog_prose</em></p>
<blockquote>
<div>A description of the old behavior</div></blockquote>
<hr><p>Undocumented:</p>
<p>MoveEffectChangelog.<strong>changed_in</strong></p>
<p>MoveEffectChangelog.<strong>move_effect</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-movechangelog">
<h3>MoveChangelog<a class="headerlink" href="#dex-table-movechangelog" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.MoveChangelog">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">MoveChangelog</tt><a class="headerlink" href="#pokedex.db.tables.MoveChangelog" title="Permalink to this definition"></a></dt>
<dd><p>History of changes to moves across main game versions.</p>
<p>Table name: <em>move_changelog</em>
(single: <em>move_changelog</em>)</p>
<hr><p>Columns:</p>
<p>MoveChangelog.<strong>move</strong> (move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><tt class="xref py py-class docutils literal"><span class="pre">Move</span></tt></a>.id)</p>
<blockquote>
<div>ID of the move that changed</div></blockquote>
<p>MoveChangelog.<strong>changed_in_version_group_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><tt class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></tt></a>.id):</p>
<blockquote>
<div>ID of the version group in which the move changed</div></blockquote>
<p>MoveChangelog.<strong>type</strong> (type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><tt class="xref py py-class docutils literal"><span class="pre">Type</span></tt></a>.id)</p>
<blockquote>
<div>Prior type of the move, or NULL if unchanged</div></blockquote>
<p>MoveChangelog.<strong>power</strong> (<em>int</em>):</p>
<blockquote>
<div>Prior base power of the move, or NULL if unchanged</div></blockquote>
<p>MoveChangelog.<strong>pp</strong> (<em>int</em>):</p>
<blockquote>
<div>Prior base PP of the move, or NULL if unchanged</div></blockquote>
<p>MoveChangelog.<strong>accuracy</strong> (<em>int</em>):</p>
<blockquote>
<div>Prior accuracy of the move, or NULL if unchanged</div></blockquote>
<p>MoveChangelog.<strong>effect</strong> (effect_id → <a class="reference internal" href="#pokedex.db.tables.MoveEffect" title="pokedex.db.tables.MoveEffect"><tt class="xref py py-class docutils literal"><span class="pre">MoveEffect</span></tt></a>.id)</p>
<blockquote>
<div>Prior ID of the effect, or NULL if unchanged</div></blockquote>
<p>MoveChangelog.<strong>effect_chance</strong> (<em>int</em>):</p>
<blockquote>
<div>Prior effect chance, or NULL if unchanged</div></blockquote>
<hr><p>Undocumented:</p>
<p>MoveChangelog.<strong>changed_in</strong></p>
<p>MoveChangelog.<strong>effect_map</strong></p>
<p>MoveChangelog.<strong>move_effect</strong></p>
<p>MoveChangelog.<strong>short_effect</strong></p>
<p>MoveChangelog.<strong>short_effect_map</strong></p>
</dd></dl>
</div>
</div>
<div class="section" id="flavor-text">
<h2>Flavor text<a class="headerlink" href="#flavor-text" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-itemflavortext">
<h3>ItemFlavorText<a class="headerlink" href="#dex-table-itemflavortext" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.ItemFlavorText">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">ItemFlavorText</tt><a class="headerlink" href="#pokedex.db.tables.ItemFlavorText" title="Permalink to this definition"></a></dt>
<dd><p>An in-game description of an item</p>
<p>Table name: <em>item_flavor_text</em>
(single: <em>item_flavor_text</em>)</p>
<hr><p>Columns:</p>
<p>ItemFlavorText.<strong>item</strong> (item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><tt class="xref py py-class docutils literal"><span class="pre">Item</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the item</div></blockquote>
<p>ItemFlavorText.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><tt class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></tt></a>.id)</p>
<blockquote>
<div>ID of the version group that sports this text</div></blockquote>
<p>ItemFlavorText.<strong>language</strong> (language_id → <a class="reference internal" href="#pokedex.db.tables.Language" title="pokedex.db.tables.Language"><tt class="xref py py-class docutils literal"><span class="pre">Language</span></tt></a>.id)</p>
<blockquote>
<div>The language</div></blockquote>
<p>ItemFlavorText.<strong>flavor_text</strong> (<em>unicode gametext</em>):</p>
<blockquote>
<div>The flavor text itself</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-abilityflavortext">
<h3>AbilityFlavorText<a class="headerlink" href="#dex-table-abilityflavortext" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.AbilityFlavorText">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">AbilityFlavorText</tt><a class="headerlink" href="#pokedex.db.tables.AbilityFlavorText" title="Permalink to this definition"></a></dt>
<dd><p>In-game flavor text of an ability</p>
<p>Table name: <em>ability_flavor_text</em></p>
<hr><p>Columns:</p>
<p>AbilityFlavorText.<strong>ability</strong> (ability_id → <a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><tt class="xref py py-class docutils literal"><span class="pre">Ability</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the ability</div></blockquote>
<p>AbilityFlavorText.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><tt class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the version group this flavor text is taken from</div></blockquote>
<p>AbilityFlavorText.<strong>language</strong> (language_id → <a class="reference internal" href="#pokedex.db.tables.Language" title="pokedex.db.tables.Language"><tt class="xref py py-class docutils literal"><span class="pre">Language</span></tt></a>.id)</p>
<blockquote>
<div>The language</div></blockquote>
<p>AbilityFlavorText.<strong>flavor_text</strong> (<em>unicode gametext</em>):</p>
<blockquote>
<div>The actual flavor text</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-moveflavortext">
<h3>MoveFlavorText<a class="headerlink" href="#dex-table-moveflavortext" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.MoveFlavorText">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">MoveFlavorText</tt><a class="headerlink" href="#pokedex.db.tables.MoveFlavorText" title="Permalink to this definition"></a></dt>
<dd><p>In-game description of a move</p>
<p>Table name: <em>move_flavor_text</em></p>
<hr><p>Columns:</p>
<p>MoveFlavorText.<strong>move</strong> (move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><tt class="xref py py-class docutils literal"><span class="pre">Move</span></tt></a>.id)</p>
<blockquote>
<div>ID of the move</div></blockquote>
<p>MoveFlavorText.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><tt class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></tt></a>.id)</p>
<blockquote>
<div>ID of the version group this text appears in</div></blockquote>
<p>MoveFlavorText.<strong>language</strong> (language_id → <a class="reference internal" href="#pokedex.db.tables.Language" title="pokedex.db.tables.Language"><tt class="xref py py-class docutils literal"><span class="pre">Language</span></tt></a>.id)</p>
<blockquote>
<div>The language</div></blockquote>
<p>MoveFlavorText.<strong>flavor_text</strong> (<em>unicode gametext</em>):</p>
<blockquote>
<div>The flavor text</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemonspeciesflavortext">
<h3>PokemonSpeciesFlavorText<a class="headerlink" href="#dex-table-pokemonspeciesflavortext" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonSpeciesFlavorText">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonSpeciesFlavorText</tt><a class="headerlink" href="#pokedex.db.tables.PokemonSpeciesFlavorText" title="Permalink to this definition"></a></dt>
<dd><p>In-game Pokédex descrption of a Pokémon.</p>
<p>Table name: <em>pokemon_species_flavor_text</em></p>
<hr><p>Columns:</p>
<p>PokemonSpeciesFlavorText.<strong>species</strong> (species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>.id)</p>
<blockquote>
<div>ID of the Pokémon</div></blockquote>
<p>PokemonSpeciesFlavorText.<strong>version</strong> (version_id → <a class="reference internal" href="#pokedex.db.tables.Version" title="pokedex.db.tables.Version"><tt class="xref py py-class docutils literal"><span class="pre">Version</span></tt></a>.id)</p>
<blockquote>
<div>ID of the version that has this flavor text</div></blockquote>
<p>PokemonSpeciesFlavorText.<strong>language</strong> (language_id → <a class="reference internal" href="#pokedex.db.tables.Language" title="pokedex.db.tables.Language"><tt class="xref py py-class docutils literal"><span class="pre">Language</span></tt></a>.id)</p>
<blockquote>
<div>The language</div></blockquote>
<p>PokemonSpeciesFlavorText.<strong>flavor_text</strong> (<em>unicode gametext</em>):</p>
<blockquote>
<div>The flavor text</div></blockquote>
</dd></dl>
</div>
</div>
<div class="section" id="association-tables">
<h2>Association tables<a class="headerlink" href="#association-tables" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-berryflavor">
<h3>BerryFlavor<a class="headerlink" href="#dex-table-berryflavor" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.BerryFlavor">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">BerryFlavor</tt><a class="headerlink" href="#pokedex.db.tables.BerryFlavor" title="Permalink to this definition"></a></dt>
<dd><p>A Berry flavor level.</p>
<p>Table name: <em>berry_flavors</em></p>
<hr><p>Columns:</p>
<p>BerryFlavor.<strong>berry</strong> (berry_id → <a class="reference internal" href="#pokedex.db.tables.Berry" title="pokedex.db.tables.Berry"><tt class="xref py py-class docutils literal"><span class="pre">Berry</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the berry</div></blockquote>
<p>BerryFlavor.<strong>contest_type</strong> (contest_type_id → <a class="reference internal" href="#pokedex.db.tables.ContestType" title="pokedex.db.tables.ContestType"><tt class="xref py py-class docutils literal"><span class="pre">ContestType</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the flavor</div></blockquote>
<p>BerryFlavor.<strong>flavor</strong> (<em>int</em>):</p>
<blockquote>
<div>The level of the flavor in the berry</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-encounterconditionvaluemap">
<h3>EncounterConditionValueMap<a class="headerlink" href="#dex-table-encounterconditionvaluemap" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.EncounterConditionValueMap">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">EncounterConditionValueMap</tt><a class="headerlink" href="#pokedex.db.tables.EncounterConditionValueMap" title="Permalink to this definition"></a></dt>
<dd><p>Maps encounters to the specific conditions under which they occur.</p>
<p>Table name: <em>encounter_condition_value_map</em></p>
<hr><p>Columns:</p>
<p>EncounterConditionValueMap.<strong>encounter</strong> (encounter_id → <a class="reference internal" href="#pokedex.db.tables.Encounter" title="pokedex.db.tables.Encounter"><tt class="xref py py-class docutils literal"><span class="pre">Encounter</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the encounter</div></blockquote>
<p>EncounterConditionValueMap.<strong>encounter_condition_value_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EncounterConditionValue" title="pokedex.db.tables.EncounterConditionValue"><tt class="xref py py-class docutils literal"><span class="pre">EncounterConditionValue</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the encounter condition value</div></blockquote>
<hr><p>Undocumented:</p>
<p>EncounterConditionValueMap.<strong>condition_value</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-itemflag">
<h3>ItemFlag<a class="headerlink" href="#dex-table-itemflag" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.ItemFlag">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">ItemFlag</tt><a class="headerlink" href="#pokedex.db.tables.ItemFlag" title="Permalink to this definition"></a></dt>
<dd><p>An item attribute such as &#8220;consumable&#8221; or &#8220;holdable&#8221;.</p>
<p>Table name: <em>item_flags</em>
(single: <em>item_flag</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>item_flag_prose</em>.</p>
<hr><p>Internationalized strings:</p>
<p>ItemFlag.<strong>description</strong> (<em>unicode plaintext</em>) via <em>item_flag_prose</em></p>
<blockquote>
<div>Short description of the flag</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-itemflagmap">
<h3>ItemFlagMap<a class="headerlink" href="#dex-table-itemflagmap" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.ItemFlagMap">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">ItemFlagMap</tt><a class="headerlink" href="#pokedex.db.tables.ItemFlagMap" title="Permalink to this definition"></a></dt>
<dd><p>Maps an item flag to its item.</p>
<p>Table name: <em>item_flag_map</em></p>
<hr><p>Columns:</p>
<p>ItemFlagMap.<strong>item_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><tt class="xref py py-class docutils literal"><span class="pre">Item</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the item</div></blockquote>
<p>ItemFlagMap.<strong>item_flag_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.ItemFlag" title="pokedex.db.tables.ItemFlag"><tt class="xref py py-class docutils literal"><span class="pre">ItemFlag</span></tt></a>.id):</p>
<blockquote>
<div>The ID of the item flag</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-machine">
<h3>Machine<a class="headerlink" href="#dex-table-machine" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Machine">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Machine</tt><a class="headerlink" href="#pokedex.db.tables.Machine" title="Permalink to this definition"></a></dt>
<dd><p>A TM or HM; numbered item that can teach a move to a Pokémon</p>
<p>Table name: <em>machines</em></p>
<hr><p>Columns:</p>
<p>Machine.<strong>machine_number</strong> (<em>int</em>):</p>
<blockquote>
<div>Number of the machine for TMs, or 100 + the munber for HMs</div></blockquote>
<p>Machine.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><tt class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></tt></a>.id)</p>
<blockquote>
<div>Versions this entry applies to</div></blockquote>
<p>Machine.<strong>item</strong> (item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><tt class="xref py py-class docutils literal"><span class="pre">Item</span></tt></a>.id)</p>
<blockquote>
<div>ID of the corresponding Item</div></blockquote>
<p>Machine.<strong>move</strong> (move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><tt class="xref py py-class docutils literal"><span class="pre">Move</span></tt></a>.id)</p>
<blockquote>
<div>ID of the taught move</div></blockquote>
<hr><p>Relationships:</p>
<p>Machine.<strong>pokemon_moves</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonMove" title="pokedex.db.tables.PokemonMove"><tt class="xref py py-class docutils literal"><span class="pre">PokemonMove</span></tt></a>])</p>
<hr><dl class="attribute">
<dt id="pokedex.db.tables.Machine.is_hm">
<tt class="descname">is_hm</tt><a class="headerlink" href="#pokedex.db.tables.Machine.is_hm" title="Permalink to this definition"></a></dt>
<dd><p>True if this machine is a HM, False if it&#8217;s a TM</p>
</dd></dl>
</dd></dl>
</div>
<div class="section" id="dex-table-moveflag">
<h3>MoveFlag<a class="headerlink" href="#dex-table-moveflag" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.MoveFlag">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">MoveFlag</tt><a class="headerlink" href="#pokedex.db.tables.MoveFlag" title="Permalink to this definition"></a></dt>
<dd><p>A Move attribute such as &#8220;snatchable&#8221; or &#8220;contact&#8221;.</p>
<p>Table name: <em>move_flags</em>
(single: <em>move_flag</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>move_flag_prose</em>.</p>
<hr><p>Internationalized strings:</p>
<p>MoveFlag.<strong>description</strong> (<em>unicode markdown</em>) via <em>move_flag_prose</em></p>
<blockquote>
<div>A short description of the flag</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-moveflagmap">
<h3>MoveFlagMap<a class="headerlink" href="#dex-table-moveflagmap" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.MoveFlagMap">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">MoveFlagMap</tt><a class="headerlink" href="#pokedex.db.tables.MoveFlagMap" title="Permalink to this definition"></a></dt>
<dd><p>Maps a move flag to a move</p>
<p>Table name: <em>move_flag_map</em></p>
<hr><p>Columns:</p>
<p>MoveFlagMap.<strong>move</strong> (move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><tt class="xref py py-class docutils literal"><span class="pre">Move</span></tt></a>.id)</p>
<blockquote>
<div>ID of the move</div></blockquote>
<p>MoveFlagMap.<strong>move_flag_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.MoveFlag" title="pokedex.db.tables.MoveFlag"><tt class="xref py py-class docutils literal"><span class="pre">MoveFlag</span></tt></a>.id):</p>
<blockquote>
<div>ID of the flag</div></blockquote>
<hr><p>Undocumented:</p>
<p>MoveFlagMap.<strong>flag</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-movemetastatchange">
<h3>MoveMetaStatChange<a class="headerlink" href="#dex-table-movemetastatchange" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.MoveMetaStatChange">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">MoveMetaStatChange</tt><a class="headerlink" href="#pokedex.db.tables.MoveMetaStatChange" title="Permalink to this definition"></a></dt>
<dd><p>Stat changes moves (may) make.</p>
<p>Table name: <em>move_meta_stat_changes</em></p>
<hr><p>Columns:</p>
<p>MoveMetaStatChange.<strong>move_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><tt class="xref py py-class docutils literal"><span class="pre">Move</span></tt></a>.id):</p>
<blockquote>
<div>ID of the move</div></blockquote>
<p>MoveMetaStatChange.<strong>stat</strong> (stat_id → <a class="reference internal" href="#pokedex.db.tables.Stat" title="pokedex.db.tables.Stat"><tt class="xref py py-class docutils literal"><span class="pre">Stat</span></tt></a>.id)</p>
<blockquote>
<div>ID of the stat</div></blockquote>
<p>MoveMetaStatChange.<strong>change</strong> (<em>int</em>):</p>
<blockquote>
<div>Amount of increase/decrease, in stages</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-naturebattlestylepreference">
<h3>NatureBattleStylePreference<a class="headerlink" href="#dex-table-naturebattlestylepreference" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.NatureBattleStylePreference">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">NatureBattleStylePreference</tt><a class="headerlink" href="#pokedex.db.tables.NatureBattleStylePreference" title="Permalink to this definition"></a></dt>
<dd><p>Battle Palace move preference</p>
<p>Specifies how likely a Pokémon with a specific Nature is to use a move of
a particular battl style in Battle Palace or Battle Tent</p>
<p>Table name: <em>nature_battle_style_preferences</em></p>
<hr><p>Columns:</p>
<p>NatureBattleStylePreference.<strong>nature</strong> (nature_id → <a class="reference internal" href="#pokedex.db.tables.Nature" title="pokedex.db.tables.Nature"><tt class="xref py py-class docutils literal"><span class="pre">Nature</span></tt></a>.id)</p>
<blockquote>
<div>ID of the Pokémon&#8217;s nature</div></blockquote>
<p>NatureBattleStylePreference.<strong>move_battle_style_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.MoveBattleStyle" title="pokedex.db.tables.MoveBattleStyle"><tt class="xref py py-class docutils literal"><span class="pre">MoveBattleStyle</span></tt></a>.id):</p>
<blockquote>
<div>ID of the battle style</div></blockquote>
<p>NatureBattleStylePreference.<strong>low_hp_preference</strong> (<em>int</em>):</p>
<blockquote>
<div>Chance of using the move, in percent, if HP is under ½</div></blockquote>
<p>NatureBattleStylePreference.<strong>high_hp_preference</strong> (<em>int</em>):</p>
<blockquote>
<div>Chance of using the move, in percent, if HP is over ½</div></blockquote>
<hr><p>Undocumented:</p>
<p>NatureBattleStylePreference.<strong>battle_style</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-naturepokeathlonstat">
<h3>NaturePokeathlonStat<a class="headerlink" href="#dex-table-naturepokeathlonstat" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.NaturePokeathlonStat">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">NaturePokeathlonStat</tt><a class="headerlink" href="#pokedex.db.tables.NaturePokeathlonStat" title="Permalink to this definition"></a></dt>
<dd><p>Specifies how a Nature affects a Pokéathlon stat</p>
<p>Table name: <em>nature_pokeathlon_stats</em></p>
<hr><p>Columns:</p>
<p>NaturePokeathlonStat.<strong>nature_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Nature" title="pokedex.db.tables.Nature"><tt class="xref py py-class docutils literal"><span class="pre">Nature</span></tt></a>.id):</p>
<blockquote>
<div>ID of the nature</div></blockquote>
<p>NaturePokeathlonStat.<strong>pokeathlon_stat</strong> (pokeathlon_stat_id → <a class="reference internal" href="#pokedex.db.tables.PokeathlonStat" title="pokedex.db.tables.PokeathlonStat"><tt class="xref py py-class docutils literal"><span class="pre">PokeathlonStat</span></tt></a>.id)</p>
<blockquote>
<div>ID of the stat</div></blockquote>
<p>NaturePokeathlonStat.<strong>max_change</strong> (<em>int</em>):</p>
<blockquote>
<div>Maximum change</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-pokeathlonstat">
<h3>PokeathlonStat<a class="headerlink" href="#dex-table-pokeathlonstat" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokeathlonStat">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokeathlonStat</tt><a class="headerlink" href="#pokedex.db.tables.PokeathlonStat" title="Permalink to this definition"></a></dt>
<dd><p>A Pokéathlon stat, such as &#8220;Stamina&#8221; or &#8220;Jump&#8221;.</p>
<p>Table name: <em>pokeathlon_stats</em>
(single: <em>pokeathlon_stat</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokeathlon_stat_names</em>.</p>
<hr><p>Undocumented:</p>
<p>PokeathlonStat.<strong>nature_effects</strong></p>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemonability">
<h3>PokemonAbility<a class="headerlink" href="#dex-table-pokemonability" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonAbility">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonAbility</tt><a class="headerlink" href="#pokedex.db.tables.PokemonAbility" title="Permalink to this definition"></a></dt>
<dd><p>Maps an ability to a Pokémon that can have it</p>
<p>Table name: <em>pokemon_abilities</em></p>
<hr><p>Columns:</p>
<p>PokemonAbility.<strong>pokemon_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>.id):</p>
<blockquote>
<div>ID of the Pokémon</div></blockquote>
<p>PokemonAbility.<strong>ability_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><tt class="xref py py-class docutils literal"><span class="pre">Ability</span></tt></a>.id):</p>
<blockquote>
<div>ID of the ability</div></blockquote>
<p>PokemonAbility.<strong>is_dream</strong> (<em>bool</em>):</p>
<blockquote>
<div>Whether this is a Dream World ability</div></blockquote>
<p>PokemonAbility.<strong>slot</strong> (<em>int</em>):</p>
<blockquote>
<div>The ability slot, i.e. 1 or 2 for gen. IV</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemonegggroup">
<h3>PokemonEggGroup<a class="headerlink" href="#dex-table-pokemonegggroup" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonEggGroup">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonEggGroup</tt><a class="headerlink" href="#pokedex.db.tables.PokemonEggGroup" title="Permalink to this definition"></a></dt>
<dd><p>Maps an Egg group to a species; each species belongs to one or two egg groups</p>
<p>Table name: <em>pokemon_egg_groups</em></p>
<hr><p>Columns:</p>
<p>PokemonEggGroup.<strong>species_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>.id):</p>
<blockquote>
<div>ID of the species</div></blockquote>
<p>PokemonEggGroup.<strong>egg_group_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EggGroup" title="pokedex.db.tables.EggGroup"><tt class="xref py py-class docutils literal"><span class="pre">EggGroup</span></tt></a>.id):</p>
<blockquote>
<div>ID of the egg group</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemonformpokeathlonstat">
<h3>PokemonFormPokeathlonStat<a class="headerlink" href="#dex-table-pokemonformpokeathlonstat" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonFormPokeathlonStat">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonFormPokeathlonStat</tt><a class="headerlink" href="#pokedex.db.tables.PokemonFormPokeathlonStat" title="Permalink to this definition"></a></dt>
<dd><p>A Pokémon form&#8217;s performance in one Pokéathlon stat.</p>
<p>Table name: <em>pokemon_form_pokeathlon_stats</em></p>
<hr><p>Columns:</p>
<p>PokemonFormPokeathlonStat.<strong>pokemon_form</strong> (pokemon_form_id → <a class="reference internal" href="#pokedex.db.tables.PokemonForm" title="pokedex.db.tables.PokemonForm"><tt class="xref py py-class docutils literal"><span class="pre">PokemonForm</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the Pokémon form.</div></blockquote>
<p>PokemonFormPokeathlonStat.<strong>pokeathlon_stat</strong> (pokeathlon_stat_id → <a class="reference internal" href="#pokedex.db.tables.PokeathlonStat" title="pokedex.db.tables.PokeathlonStat"><tt class="xref py py-class docutils literal"><span class="pre">PokeathlonStat</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the Pokéathlon stat.</div></blockquote>
<p>PokemonFormPokeathlonStat.<strong>minimum_stat</strong> (<em>int</em>):</p>
<blockquote>
<div>The minimum value for this stat for this Pokémon form.</div></blockquote>
<p>PokemonFormPokeathlonStat.<strong>base_stat</strong> (<em>int</em>):</p>
<blockquote>
<div>The default value for this stat for this Pokémon form.</div></blockquote>
<p>PokemonFormPokeathlonStat.<strong>maximum_stat</strong> (<em>int</em>):</p>
<blockquote>
<div>The maximum value for this stat for this Pokémon form.</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemonhabitat">
<h3>PokemonHabitat<a class="headerlink" href="#dex-table-pokemonhabitat" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonHabitat">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonHabitat</tt><a class="headerlink" href="#pokedex.db.tables.PokemonHabitat" title="Permalink to this definition"></a></dt>
<dd><p>The habitat of a Pokémon, as given in the FireRed/LeafGreen version Pokédex</p>
<p>Table name: <em>pokemon_habitats</em>
(single: <em>pokemon_habitat</em>)</p>
<p>Has
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokemon_habitat_names</em>.</p>
<hr><p>Relationships:</p>
<p>PokemonHabitat.<strong>species</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>])</p>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemonmove">
<h3>PokemonMove<a class="headerlink" href="#dex-table-pokemonmove" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonMove">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonMove</tt><a class="headerlink" href="#pokedex.db.tables.PokemonMove" title="Permalink to this definition"></a></dt>
<dd><p>Record of a move a Pokémon can learn</p>
<p>Table name: <em>pokemon_moves</em></p>
<hr><p>Columns:</p>
<p>PokemonMove.<strong>pokemon</strong> (pokemon_id → <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>.id)</p>
<blockquote>
<div>ID of the Pokémon</div></blockquote>
<p>PokemonMove.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><tt class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></tt></a>.id)</p>
<blockquote>
<div>ID of the version group this applies to</div></blockquote>
<p>PokemonMove.<strong>move</strong> (move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><tt class="xref py py-class docutils literal"><span class="pre">Move</span></tt></a>.id)</p>
<blockquote>
<div>ID of the move</div></blockquote>
<p>PokemonMove.<strong>pokemon_move_method_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.PokemonMoveMethod" title="pokedex.db.tables.PokemonMoveMethod"><tt class="xref py py-class docutils literal"><span class="pre">PokemonMoveMethod</span></tt></a>.id):</p>
<blockquote>
<div>ID of the method this move is learned by</div></blockquote>
<p>PokemonMove.<strong>level</strong> (<em>int</em>):</p>
<blockquote>
<div>Level the move is learned at, if applicable</div></blockquote>
<p>PokemonMove.<strong>order</strong> (<em>int</em>):</p>
<blockquote>
<div>A sort key to produce the correct ordering when all else is equal</div></blockquote>
<hr><p>Relationships:</p>
<p>PokemonMove.<strong>machine</strong>
(→ <a class="reference internal" href="#pokedex.db.tables.Machine" title="pokedex.db.tables.Machine"><tt class="xref py py-class docutils literal"><span class="pre">Machine</span></tt></a>)</p>
<p>PokemonMove.<strong>method</strong>
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonMoveMethod" title="pokedex.db.tables.PokemonMoveMethod"><tt class="xref py py-class docutils literal"><span class="pre">PokemonMoveMethod</span></tt></a>])</p>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemonstat">
<h3>PokemonStat<a class="headerlink" href="#dex-table-pokemonstat" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonStat">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonStat</tt><a class="headerlink" href="#pokedex.db.tables.PokemonStat" title="Permalink to this definition"></a></dt>
<dd><p>A stat value of a Pokémon</p>
<p>Table name: <em>pokemon_stats</em></p>
<hr><p>Columns:</p>
<p>PokemonStat.<strong>pokemon</strong> (pokemon_id → <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>.id)</p>
<blockquote>
<div>ID of the Pokémon</div></blockquote>
<p>PokemonStat.<strong>stat</strong> (stat_id → <a class="reference internal" href="#pokedex.db.tables.Stat" title="pokedex.db.tables.Stat"><tt class="xref py py-class docutils literal"><span class="pre">Stat</span></tt></a>.id)</p>
<blockquote>
<div>ID of the stat</div></blockquote>
<p>PokemonStat.<strong>base_stat</strong> (<em>int</em>):</p>
<blockquote>
<div>The base stat</div></blockquote>
<p>PokemonStat.<strong>effort</strong> (<em>int</em>):</p>
<blockquote>
<div>The effort increase in this stat gained when this Pokémon is defeated</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemonitem">
<h3>PokemonItem<a class="headerlink" href="#dex-table-pokemonitem" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonItem">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonItem</tt><a class="headerlink" href="#pokedex.db.tables.PokemonItem" title="Permalink to this definition"></a></dt>
<dd><p>Record of an item a Pokémon can hold in the wild</p>
<p>Table name: <em>pokemon_items</em></p>
<hr><p>Columns:</p>
<p>PokemonItem.<strong>pokemon</strong> (pokemon_id → <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>.id)</p>
<blockquote>
<div>ID of the Pokémon</div></blockquote>
<p>PokemonItem.<strong>version</strong> (version_id → <a class="reference internal" href="#pokedex.db.tables.Version" title="pokedex.db.tables.Version"><tt class="xref py py-class docutils literal"><span class="pre">Version</span></tt></a>.id)</p>
<blockquote>
<div>ID of the version this applies to</div></blockquote>
<p>PokemonItem.<strong>item</strong> (item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><tt class="xref py py-class docutils literal"><span class="pre">Item</span></tt></a>.id)</p>
<blockquote>
<div>ID of the item</div></blockquote>
<p>PokemonItem.<strong>rarity</strong> (<em>int</em>):</p>
<blockquote>
<div>Chance of the Pokémon holding the item, in percent</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemontype">
<h3>PokemonType<a class="headerlink" href="#dex-table-pokemontype" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonType">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonType</tt><a class="headerlink" href="#pokedex.db.tables.PokemonType" title="Permalink to this definition"></a></dt>
<dd><p>Maps a type to a Pokémon. Each Pokémon has 1 or 2 types.</p>
<p>Table name: <em>pokemon_types</em></p>
<hr><p>Columns:</p>
<p>PokemonType.<strong>pokemon_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>.id):</p>
<blockquote>
<div>ID of the Pokémon</div></blockquote>
<p>PokemonType.<strong>type_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><tt class="xref py py-class docutils literal"><span class="pre">Type</span></tt></a>.id):</p>
<blockquote>
<div>ID of the type</div></blockquote>
<p>PokemonType.<strong>slot</strong> (<em>int</em>):</p>
<blockquote>
<div>The type&#8217;s slot, 1 or 2, used to sort types if there are two of them</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-typeefficacy">
<h3>TypeEfficacy<a class="headerlink" href="#dex-table-typeefficacy" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.TypeEfficacy">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">TypeEfficacy</tt><a class="headerlink" href="#pokedex.db.tables.TypeEfficacy" title="Permalink to this definition"></a></dt>
<dd><p>The damage multiplier used when a move of a particular type damages a
Pokémon of a particular other type.</p>
<p>Table name: <em>type_efficacy</em></p>
<hr><p>Columns:</p>
<p>TypeEfficacy.<strong>damage_type</strong> (damage_type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><tt class="xref py py-class docutils literal"><span class="pre">Type</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the damaging type.</div></blockquote>
<p>TypeEfficacy.<strong>target_type</strong> (target_type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><tt class="xref py py-class docutils literal"><span class="pre">Type</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the defending Pokémon&#8217;s type.</div></blockquote>
<p>TypeEfficacy.<strong>damage_factor</strong> (<em>int</em>):</p>
<blockquote>
<div>The multiplier, as a percentage of damage inflicted.</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-versiongroupregion">
<h3>VersionGroupRegion<a class="headerlink" href="#dex-table-versiongroupregion" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.VersionGroupRegion">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">VersionGroupRegion</tt><a class="headerlink" href="#pokedex.db.tables.VersionGroupRegion" title="Permalink to this definition"></a></dt>
<dd><p>Maps a version group to a region that appears in it.</p>
<p>Table name: <em>version_group_regions</em></p>
<hr><p>Columns:</p>
<p>VersionGroupRegion.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><tt class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the version group.</div></blockquote>
<p>VersionGroupRegion.<strong>region</strong> (region_id → <a class="reference internal" href="#pokedex.db.tables.Region" title="pokedex.db.tables.Region"><tt class="xref py py-class docutils literal"><span class="pre">Region</span></tt></a>.id)</p>
<blockquote>
<div>The ID of the region.</div></blockquote>
</dd></dl>
</div>
</div>
<div class="section" id="index-maps">
<h2>Index maps<a class="headerlink" href="#index-maps" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-itemgameindex">
<h3>ItemGameIndex<a class="headerlink" href="#dex-table-itemgameindex" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.ItemGameIndex">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">ItemGameIndex</tt><a class="headerlink" href="#pokedex.db.tables.ItemGameIndex" title="Permalink to this definition"></a></dt>
<dd><p>The internal ID number a game uses for an item</p>
<p>Table name: <em>item_game_indices</em></p>
<hr><p>Columns:</p>
<p>ItemGameIndex.<strong>item</strong> (item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><tt class="xref py py-class docutils literal"><span class="pre">Item</span></tt></a>.id)</p>
<blockquote>
<div>The database ID of the item</div></blockquote>
<p>ItemGameIndex.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><tt class="xref py py-class docutils literal"><span class="pre">Generation</span></tt></a>.id)</p>
<blockquote>
<div>ID of the generation of games</div></blockquote>
<p>ItemGameIndex.<strong>game_index</strong> (<em>int</em>):</p>
<blockquote>
<div>Internal ID of the item in the generation</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-locationgameindex">
<h3>LocationGameIndex<a class="headerlink" href="#dex-table-locationgameindex" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.LocationGameIndex">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">LocationGameIndex</tt><a class="headerlink" href="#pokedex.db.tables.LocationGameIndex" title="Permalink to this definition"></a></dt>
<dd><p>IDs the games use internally for locations</p>
<p>Table name: <em>location_game_indices</em></p>
<hr><p>Columns:</p>
<p>LocationGameIndex.<strong>location</strong> (location_id → <a class="reference internal" href="#pokedex.db.tables.Location" title="pokedex.db.tables.Location"><tt class="xref py py-class docutils literal"><span class="pre">Location</span></tt></a>.id)</p>
<blockquote>
<div>Database ID of the locaion</div></blockquote>
<p>LocationGameIndex.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><tt class="xref py py-class docutils literal"><span class="pre">Generation</span></tt></a>.id)</p>
<blockquote>
<div>ID of the generation this entry to</div></blockquote>
<p>LocationGameIndex.<strong>game_index</strong> (<em>int</em>):</p>
<blockquote>
<div>Internal game ID of the location</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemondexnumber">
<h3>PokemonDexNumber<a class="headerlink" href="#dex-table-pokemondexnumber" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonDexNumber">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonDexNumber</tt><a class="headerlink" href="#pokedex.db.tables.PokemonDexNumber" title="Permalink to this definition"></a></dt>
<dd><p>The number of a species in a particular Pokédex (e.g. Jigglypuff is #138 in Hoenn&#8217;s &#8216;dex)</p>
<p>Table name: <em>pokemon_dex_numbers</em></p>
<hr><p>Columns:</p>
<p>PokemonDexNumber.<strong>species</strong> (species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><tt class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></tt></a>.id)</p>
<blockquote>
<div>ID of the species</div></blockquote>
<p>PokemonDexNumber.<strong>pokedex</strong> (pokedex_id → <a class="reference internal" href="#pokedex.db.tables.Pokedex" title="pokedex.db.tables.Pokedex"><tt class="xref py py-class docutils literal"><span class="pre">Pokedex</span></tt></a>.id)</p>
<blockquote>
<div>ID of the Pokédex</div></blockquote>
<p>PokemonDexNumber.<strong>pokedex_number</strong> (<em>int</em>):</p>
<blockquote>
<div>Number of the Pokémon in that the Pokédex</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-pokemongameindex">
<h3>PokemonGameIndex<a class="headerlink" href="#dex-table-pokemongameindex" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.PokemonGameIndex">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">PokemonGameIndex</tt><a class="headerlink" href="#pokedex.db.tables.PokemonGameIndex" title="Permalink to this definition"></a></dt>
<dd><p>The number of a Pokémon a game uses internally</p>
<p>Table name: <em>pokemon_game_indices</em></p>
<hr><p>Columns:</p>
<p>PokemonGameIndex.<strong>pokemon_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><tt class="xref py py-class docutils literal"><span class="pre">Pokemon</span></tt></a>.id):</p>
<blockquote>
<div>Database ID of the Pokémon</div></blockquote>
<p>PokemonGameIndex.<strong>generation_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><tt class="xref py py-class docutils literal"><span class="pre">Generation</span></tt></a>.id):</p>
<blockquote>
<div>Database ID of the generation</div></blockquote>
<p>PokemonGameIndex.<strong>game_index</strong> (<em>int</em>):</p>
<blockquote>
<div>Internal ID the generation&#8217;s games use for the Pokémon</div></blockquote>
</dd></dl>
</div>
</div>
<div class="section" id="mics-tables">
<h2>Mics tables<a class="headerlink" href="#mics-tables" title="Permalink to this headline"></a></h2>
<div class="section" id="dex-table-experience">
<h3>Experience<a class="headerlink" href="#dex-table-experience" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.Experience">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">Experience</tt><a class="headerlink" href="#pokedex.db.tables.Experience" title="Permalink to this definition"></a></dt>
<dd><p>EXP needed for a certain level with a certain growth rate</p>
<p>Table name: <em>experience</em></p>
<hr><p>Columns:</p>
<p>Experience.<strong>growth_rate</strong> (growth_rate_id → <a class="reference internal" href="#pokedex.db.tables.GrowthRate" title="pokedex.db.tables.GrowthRate"><tt class="xref py py-class docutils literal"><span class="pre">GrowthRate</span></tt></a>.id)</p>
<blockquote>
<div>ID of the growth rate</div></blockquote>
<p>Experience.<strong>level</strong> (<em>int</em>):</p>
<blockquote>
<div>The level</div></blockquote>
<p>Experience.<strong>experience</strong> (<em>int</em>):</p>
<blockquote>
<div>The number of EXP points needed to get to that level</div></blockquote>
</dd></dl>
</div>
<div class="section" id="dex-table-stathint">
<h3>StatHint<a class="headerlink" href="#dex-table-stathint" title="Permalink to this headline"></a></h3>
<dl class="dex-table">
<dt id="pokedex.db.tables.StatHint">
<tt class="descclassname">pokedex.db.tables.</tt><tt class="descname">StatHint</tt><a class="headerlink" href="#pokedex.db.tables.StatHint" title="Permalink to this definition"></a></dt>
<dd><p>Flavor text for genes that appears in a Pokémon&#8217;s summary. Sometimes
called &#8220;characteristics&#8221;.</p>
<p>Table name: <em>stat_hints</em>
(single: <em>stat_hint</em>)</p>
<p>Has
<strong>id</strong>.</p>
<hr><p>Columns:</p>
<p>StatHint.<strong>stat</strong> (stat_id → <a class="reference internal" href="#pokedex.db.tables.Stat" title="pokedex.db.tables.Stat"><tt class="xref py py-class docutils literal"><span class="pre">Stat</span></tt></a>.id)</p>
<blockquote>
<div>ID of the highest stat</div></blockquote>
<p>StatHint.<strong>gene_mod_5</strong> (<em>int</em>):</p>
<blockquote>
<div>Value of the highest stat modulo 5</div></blockquote>
<hr><p>Internationalized strings:</p>
<p>StatHint.<strong>message</strong> (<em>unicode plaintext</em>) via <em>stat_hint_names</em></p>
<blockquote>
<div>The text displayed</div></blockquote>
</dd></dl>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">The pokédex tables</a><ul>
<li><a class="reference internal" href="#pokemon">Pokémon</a><ul>
<li><a class="reference internal" href="#dex-table-pokemonspecies">PokemonSpecies</a></li>
<li><a class="reference internal" href="#dex-table-pokemon">Pokemon</a></li>
<li><a class="reference internal" href="#dex-table-pokemonform">PokemonForm</a></li>
<li><a class="reference internal" href="#dex-table-evolutionchain">EvolutionChain</a></li>
<li><a class="reference internal" href="#dex-table-pokemonevolution">PokemonEvolution</a></li>
</ul>
</li>
<li><a class="reference internal" href="#moves">Moves</a><ul>
<li><a class="reference internal" href="#dex-table-move">Move</a></li>
<li><a class="reference internal" href="#dex-table-moveeffect">MoveEffect</a></li>
<li><a class="reference internal" href="#dex-table-movemeta">MoveMeta</a></li>
</ul>
</li>
<li><a class="reference internal" href="#items">Items</a><ul>
<li><a class="reference internal" href="#dex-table-item">Item</a></li>
<li><a class="reference internal" href="#dex-table-berry">Berry</a></li>
</ul>
</li>
<li><a class="reference internal" href="#types">Types</a><ul>
<li><a class="reference internal" href="#dex-table-type">Type</a></li>
</ul>
</li>
<li><a class="reference internal" href="#abilities">Abilities</a><ul>
<li><a class="reference internal" href="#dex-table-ability">Ability</a></li>
</ul>
</li>
<li><a class="reference internal" href="#language">Language</a><ul>
<li><a class="reference internal" href="#dex-table-language">Language</a></li>
</ul>
</li>
<li><a class="reference internal" href="#version-stuff">Version stuff</a><ul>
<li><a class="reference internal" href="#dex-table-generation">Generation</a></li>
<li><a class="reference internal" href="#dex-table-versiongroup">VersionGroup</a></li>
<li><a class="reference internal" href="#dex-table-version">Version</a></li>
<li><a class="reference internal" href="#dex-table-pokedex">Pokedex</a></li>
<li><a class="reference internal" href="#dex-table-region">Region</a></li>
</ul>
</li>
<li><a class="reference internal" href="#encounters">Encounters</a><ul>
<li><a class="reference internal" href="#dex-table-location">Location</a></li>
<li><a class="reference internal" href="#dex-table-locationarea">LocationArea</a></li>
<li><a class="reference internal" href="#dex-table-locationareaencounterrate">LocationAreaEncounterRate</a></li>
<li><a class="reference internal" href="#dex-table-encounter">Encounter</a></li>
<li><a class="reference internal" href="#dex-table-encountercondition">EncounterCondition</a></li>
<li><a class="reference internal" href="#dex-table-encounterconditionvalue">EncounterConditionValue</a></li>
<li><a class="reference internal" href="#dex-table-encountermethod">EncounterMethod</a></li>
<li><a class="reference internal" href="#dex-table-encounterslot">EncounterSlot</a></li>
</ul>
</li>
<li><a class="reference internal" href="#contests">Contests</a><ul>
<li><a class="reference internal" href="#dex-table-contestcombo">ContestCombo</a></li>
<li><a class="reference internal" href="#dex-table-contesteffect">ContestEffect</a></li>
<li><a class="reference internal" href="#dex-table-supercontestcombo">SuperContestCombo</a></li>
<li><a class="reference internal" href="#dex-table-supercontesteffect">SuperContestEffect</a></li>
</ul>
</li>
<li><a class="reference internal" href="#enum-tables">Enum tables</a><ul>
<li><a class="reference internal" href="#dex-table-berryfirmness">BerryFirmness</a></li>
<li><a class="reference internal" href="#dex-table-contesttype">ContestType</a></li>
<li><a class="reference internal" href="#dex-table-egggroup">EggGroup</a></li>
<li><a class="reference internal" href="#dex-table-evolutiontrigger">EvolutionTrigger</a></li>
<li><a class="reference internal" href="#dex-table-growthrate">GrowthRate</a></li>
<li><a class="reference internal" href="#dex-table-itemcategory">ItemCategory</a></li>
<li><a class="reference internal" href="#dex-table-itemflingeffect">ItemFlingEffect</a></li>
<li><a class="reference internal" href="#dex-table-itempocket">ItemPocket</a></li>
<li><a class="reference internal" href="#dex-table-movebattlestyle">MoveBattleStyle</a></li>
<li><a class="reference internal" href="#dex-table-movedamageclass">MoveDamageClass</a></li>
<li><a class="reference internal" href="#dex-table-movemetaailment">MoveMetaAilment</a></li>
<li><a class="reference internal" href="#dex-table-movemetacategory">MoveMetaCategory</a></li>
<li><a class="reference internal" href="#dex-table-movetarget">MoveTarget</a></li>
<li><a class="reference internal" href="#dex-table-nature">Nature</a></li>
<li><a class="reference internal" href="#dex-table-pokemoncolor">PokemonColor</a></li>
<li><a class="reference internal" href="#dex-table-pokemonmovemethod">PokemonMoveMethod</a></li>
<li><a class="reference internal" href="#dex-table-pokemonshape">PokemonShape</a></li>
<li><a class="reference internal" href="#dex-table-stat">Stat</a></li>
</ul>
</li>
<li><a class="reference internal" href="#changelogs">Changelogs</a><ul>
<li><a class="reference internal" href="#dex-table-abilitychangelog">AbilityChangelog</a></li>
<li><a class="reference internal" href="#dex-table-moveeffectchangelog">MoveEffectChangelog</a></li>
<li><a class="reference internal" href="#dex-table-movechangelog">MoveChangelog</a></li>
</ul>
</li>
<li><a class="reference internal" href="#flavor-text">Flavor text</a><ul>
<li><a class="reference internal" href="#dex-table-itemflavortext">ItemFlavorText</a></li>
<li><a class="reference internal" href="#dex-table-abilityflavortext">AbilityFlavorText</a></li>
<li><a class="reference internal" href="#dex-table-moveflavortext">MoveFlavorText</a></li>
<li><a class="reference internal" href="#dex-table-pokemonspeciesflavortext">PokemonSpeciesFlavorText</a></li>
</ul>
</li>
<li><a class="reference internal" href="#association-tables">Association tables</a><ul>
<li><a class="reference internal" href="#dex-table-berryflavor">BerryFlavor</a></li>
<li><a class="reference internal" href="#dex-table-encounterconditionvaluemap">EncounterConditionValueMap</a></li>
<li><a class="reference internal" href="#dex-table-itemflag">ItemFlag</a></li>
<li><a class="reference internal" href="#dex-table-itemflagmap">ItemFlagMap</a></li>
<li><a class="reference internal" href="#dex-table-machine">Machine</a></li>
<li><a class="reference internal" href="#dex-table-moveflag">MoveFlag</a></li>
<li><a class="reference internal" href="#dex-table-moveflagmap">MoveFlagMap</a></li>
<li><a class="reference internal" href="#dex-table-movemetastatchange">MoveMetaStatChange</a></li>
<li><a class="reference internal" href="#dex-table-naturebattlestylepreference">NatureBattleStylePreference</a></li>
<li><a class="reference internal" href="#dex-table-naturepokeathlonstat">NaturePokeathlonStat</a></li>
<li><a class="reference internal" href="#dex-table-pokeathlonstat">PokeathlonStat</a></li>
<li><a class="reference internal" href="#dex-table-pokemonability">PokemonAbility</a></li>
<li><a class="reference internal" href="#dex-table-pokemonegggroup">PokemonEggGroup</a></li>
<li><a class="reference internal" href="#dex-table-pokemonformpokeathlonstat">PokemonFormPokeathlonStat</a></li>
<li><a class="reference internal" href="#dex-table-pokemonhabitat">PokemonHabitat</a></li>
<li><a class="reference internal" href="#dex-table-pokemonmove">PokemonMove</a></li>
<li><a class="reference internal" href="#dex-table-pokemonstat">PokemonStat</a></li>
<li><a class="reference internal" href="#dex-table-pokemonitem">PokemonItem</a></li>
<li><a class="reference internal" href="#dex-table-pokemontype">PokemonType</a></li>
<li><a class="reference internal" href="#dex-table-typeefficacy">TypeEfficacy</a></li>
<li><a class="reference internal" href="#dex-table-versiongroupregion">VersionGroupRegion</a></li>
</ul>
</li>
<li><a class="reference internal" href="#index-maps">Index maps</a><ul>
<li><a class="reference internal" href="#dex-table-itemgameindex">ItemGameIndex</a></li>
<li><a class="reference internal" href="#dex-table-locationgameindex">LocationGameIndex</a></li>
<li><a class="reference internal" href="#dex-table-pokemondexnumber">PokemonDexNumber</a></li>
<li><a class="reference internal" href="#dex-table-pokemongameindex">PokemonGameIndex</a></li>
</ul>
</li>
<li><a class="reference internal" href="#mics-tables">Mics tables</a><ul>
<li><a class="reference internal" href="#dex-table-experience">Experience</a></li>
<li><a class="reference internal" href="#dex-table-stathint">StatHint</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="schema.html"
title="previous chapter">The database schema</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/main-tables.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="schema.html" title="The database schema"
>previous</a> |</li>
<li><a href="index.html">pokedex 0.1 documentation</a> &raquo;</li>
<li><a href="schema.html" >The database schema</a> &raquo;</li>
</ul>
</div>
<div class="footer">
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2.
</div>
</body>
</html>