feat: update schema

This commit is contained in:
Alessandro Pezzè 2021-08-31 12:19:43 +02:00
parent 5b6b667a9d
commit f167fcc520
154 changed files with 672 additions and 629 deletions

View file

@ -1,2 +0,0 @@

View file

@ -4,9 +4,12 @@
connection_info:
database_url:
from_env: HASURA_GRAPHQL_DATABASE_URL
isolation_level: read-committed
pool_settings:
idle_timeout: 180
max_connections: 50
idle_timeout: 20
max_connections: 10
retries: 1
pool_timeout: 60
connection_lifetime: 60
use_prepared_statements: false
tables: "!include default/tables/tables.yaml"
functions: "!include default/functions/functions.yaml"

View file

@ -1,3 +1,10 @@
table:
name: pokemon_v2_ability
schema: public
object_relationships:
- name: pokemon_v2_generation
using:
foreign_key_constraint_on: generation_id
array_relationships:
- name: pokemon_v2_abilitychanges
using:
@ -34,10 +41,6 @@ array_relationships:
table:
name: pokemon_v2_pokemonability
schema: public
object_relationships:
- name: pokemon_v2_generation
using:
foreign_key_constraint_on: generation_id
select_permissions:
- permission:
allow_aggregations: true
@ -45,6 +48,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_ability
schema: public

View file

@ -1,3 +1,13 @@
table:
name: pokemon_v2_abilitychange
schema: public
object_relationships:
- name: pokemon_v2_ability
using:
foreign_key_constraint_on: ability_id
- name: pokemon_v2_versiongroup
using:
foreign_key_constraint_on: version_group_id
array_relationships:
- name: pokemon_v2_abilitychangeeffecttexts
using:
@ -6,13 +16,6 @@ array_relationships:
table:
name: pokemon_v2_abilitychangeeffecttext
schema: public
object_relationships:
- name: pokemon_v2_ability
using:
foreign_key_constraint_on: ability_id
- name: pokemon_v2_versiongroup
using:
foreign_key_constraint_on: version_group_id
select_permissions:
- permission:
allow_aggregations: true
@ -20,6 +23,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_abilitychange
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_abilitychangeeffecttext
schema: public
object_relationships:
- name: pokemon_v2_abilitychange
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_abilitychangeeffecttext
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_abilityeffecttext
schema: public
object_relationships:
- name: pokemon_v2_ability
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_abilityeffecttext
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_abilityflavortext
schema: public
object_relationships:
- name: pokemon_v2_ability
using:
@ -15,6 +18,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_abilityflavortext
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_abilityname
schema: public
object_relationships:
- name: pokemon_v2_ability
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_abilityname
schema: public

View file

@ -1,11 +1,6 @@
array_relationships:
- name: pokemon_v2_berryflavormaps
using:
foreign_key_constraint_on:
column: berry_id
table:
name: pokemon_v2_berryflavormap
schema: public
table:
name: pokemon_v2_berry
schema: public
object_relationships:
- name: pokemon_v2_berryfirmness
using:
@ -16,6 +11,14 @@ object_relationships:
- name: pokemon_v2_type
using:
foreign_key_constraint_on: natural_gift_type_id
array_relationships:
- name: pokemon_v2_berryflavormaps
using:
foreign_key_constraint_on:
column: berry_id
table:
name: pokemon_v2_berryflavormap
schema: public
select_permissions:
- permission:
allow_aggregations: true
@ -23,6 +26,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_berry
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_berryfirmness
schema: public
array_relationships:
- name: pokemon_v2_berries
using:
@ -20,6 +23,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_berryfirmness
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_berryfirmnessname
schema: public
object_relationships:
- name: pokemon_v2_berryfirmness
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_berryfirmnessname
schema: public

View file

@ -1,3 +1,10 @@
table:
name: pokemon_v2_berryflavor
schema: public
object_relationships:
- name: pokemon_v2_contesttype
using:
foreign_key_constraint_on: contest_type_id
array_relationships:
- name: pokemonV2NaturesByLikesFlavorId
using:
@ -27,10 +34,6 @@ array_relationships:
table:
name: pokemon_v2_nature
schema: public
object_relationships:
- name: pokemon_v2_contesttype
using:
foreign_key_constraint_on: contest_type_id
select_permissions:
- permission:
allow_aggregations: true
@ -38,6 +41,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_berryflavor
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_berryflavormap
schema: public
object_relationships:
- name: pokemon_v2_berry
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_berryflavormap
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_berryflavorname
schema: public
object_relationships:
- name: pokemon_v2_berryflavor
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_berryflavorname
schema: public

View file

@ -1,3 +1,10 @@
table:
name: pokemon_v2_characteristic
schema: public
object_relationships:
- name: pokemon_v2_stat
using:
foreign_key_constraint_on: stat_id
array_relationships:
- name: pokemon_v2_characteristicdescriptions
using:
@ -6,10 +13,6 @@ array_relationships:
table:
name: pokemon_v2_characteristicdescription
schema: public
object_relationships:
- name: pokemon_v2_stat
using:
foreign_key_constraint_on: stat_id
select_permissions:
- permission:
allow_aggregations: true
@ -17,6 +20,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_characteristic
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_characteristicdescription
schema: public
object_relationships:
- name: pokemon_v2_characteristic
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_characteristicdescription
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_contestcombo
schema: public
object_relationships:
- name: pokemonV2MoveBySecondMoveId
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_contestcombo
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_contesteffect
schema: public
array_relationships:
- name: pokemon_v2_contesteffecteffecttexts
using:
@ -27,6 +30,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_contesteffect
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_contesteffecteffecttext
schema: public
object_relationships:
- name: pokemon_v2_contesteffect
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_contesteffecteffecttext
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_contesteffectflavortext
schema: public
object_relationships:
- name: pokemon_v2_contesteffect
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_contesteffectflavortext
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_contesttype
schema: public
array_relationships:
- name: pokemon_v2_berryflavors
using:
@ -27,6 +30,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_contesttype
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_contesttypename
schema: public
object_relationships:
- name: pokemon_v2_contesttype
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_contesttypename
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_egggroup
schema: public
array_relationships:
- name: pokemon_v2_egggroupnames
using:
@ -20,6 +23,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_egggroup
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_egggroupname
schema: public
object_relationships:
- name: pokemon_v2_egggroup
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_egggroupname
schema: public

View file

@ -1,11 +1,6 @@
array_relationships:
- name: pokemon_v2_encounterconditionvaluemaps
using:
foreign_key_constraint_on:
column: encounter_id
table:
name: pokemon_v2_encounterconditionvaluemap
schema: public
table:
name: pokemon_v2_encounter
schema: public
object_relationships:
- name: pokemon_v2_encounterslot
using:
@ -19,6 +14,14 @@ object_relationships:
- name: pokemon_v2_version
using:
foreign_key_constraint_on: version_id
array_relationships:
- name: pokemon_v2_encounterconditionvaluemaps
using:
foreign_key_constraint_on:
column: encounter_id
table:
name: pokemon_v2_encounterconditionvaluemap
schema: public
select_permissions:
- permission:
allow_aggregations: true
@ -26,6 +29,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_encounter
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_encountercondition
schema: public
array_relationships:
- name: pokemon_v2_encounterconditionnames
using:
@ -20,6 +23,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_encountercondition
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_encounterconditionname
schema: public
object_relationships:
- name: pokemon_v2_encountercondition
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_encounterconditionname
schema: public

View file

@ -1,3 +1,10 @@
table:
name: pokemon_v2_encounterconditionvalue
schema: public
object_relationships:
- name: pokemon_v2_encountercondition
using:
foreign_key_constraint_on: encounter_condition_id
array_relationships:
- name: pokemon_v2_encounterconditionvaluemaps
using:
@ -13,10 +20,6 @@ array_relationships:
table:
name: pokemon_v2_encounterconditionvaluename
schema: public
object_relationships:
- name: pokemon_v2_encountercondition
using:
foreign_key_constraint_on: encounter_condition_id
select_permissions:
- permission:
allow_aggregations: true
@ -24,6 +27,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_encounterconditionvalue
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_encounterconditionvaluemap
schema: public
object_relationships:
- name: pokemon_v2_encounter
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_encounterconditionvaluemap
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_encounterconditionvaluename
schema: public
object_relationships:
- name: pokemon_v2_encounterconditionvalue
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_encounterconditionvaluename
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_encountermethod
schema: public
array_relationships:
- name: pokemon_v2_encountermethodnames
using:
@ -27,6 +30,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_encountermethod
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_encountermethodname
schema: public
object_relationships:
- name: pokemon_v2_encountermethod
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_encountermethodname
schema: public

View file

@ -1,3 +1,13 @@
table:
name: pokemon_v2_encounterslot
schema: public
object_relationships:
- name: pokemon_v2_encountermethod
using:
foreign_key_constraint_on: encounter_method_id
- name: pokemon_v2_versiongroup
using:
foreign_key_constraint_on: version_group_id
array_relationships:
- name: pokemon_v2_encounters
using:
@ -6,13 +16,6 @@ array_relationships:
table:
name: pokemon_v2_encounter
schema: public
object_relationships:
- name: pokemon_v2_encountermethod
using:
foreign_key_constraint_on: encounter_method_id
- name: pokemon_v2_versiongroup
using:
foreign_key_constraint_on: version_group_id
select_permissions:
- permission:
allow_aggregations: true
@ -20,6 +23,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_encounterslot
schema: public

View file

@ -1,3 +1,10 @@
table:
name: pokemon_v2_evolutionchain
schema: public
object_relationships:
- name: pokemon_v2_item
using:
foreign_key_constraint_on: baby_trigger_item_id
array_relationships:
- name: pokemon_v2_pokemonspecies
using:
@ -6,10 +13,6 @@ array_relationships:
table:
name: pokemon_v2_pokemonspecies
schema: public
object_relationships:
- name: pokemon_v2_item
using:
foreign_key_constraint_on: baby_trigger_item_id
select_permissions:
- permission:
allow_aggregations: true
@ -17,6 +20,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_evolutionchain
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_evolutiontrigger
schema: public
array_relationships:
- name: pokemon_v2_evolutiontriggernames
using:
@ -20,6 +23,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_evolutiontrigger
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_evolutiontriggername
schema: public
object_relationships:
- name: pokemon_v2_evolutiontrigger
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_evolutiontriggername
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_experience
schema: public
object_relationships:
- name: pokemon_v2_growthrate
using:
@ -9,6 +12,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_experience
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_gender
schema: public
array_relationships:
- name: pokemon_v2_pokemonevolutions
using:
@ -13,6 +16,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_gender
schema: public

View file

@ -1,3 +1,10 @@
table:
name: pokemon_v2_generation
schema: public
object_relationships:
- name: pokemon_v2_region
using:
foreign_key_constraint_on: region_id
array_relationships:
- name: pokemon_v2_abilities
using:
@ -55,6 +62,13 @@ array_relationships:
table:
name: pokemon_v2_pokemontypepast
schema: public
- name: pokemon_v2_typeefficacypasts
using:
foreign_key_constraint_on:
column: generation_id
table:
name: pokemon_v2_typeefficacypast
schema: public
- name: pokemon_v2_typegameindices
using:
foreign_key_constraint_on:
@ -76,10 +90,6 @@ array_relationships:
table:
name: pokemon_v2_versiongroup
schema: public
object_relationships:
- name: pokemon_v2_region
using:
foreign_key_constraint_on: region_id
select_permissions:
- permission:
allow_aggregations: true
@ -87,6 +97,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_generation
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_generationname
schema: public
object_relationships:
- name: pokemon_v2_generation
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_generationname
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_growthrate
schema: public
array_relationships:
- name: pokemon_v2_experiences
using:
@ -34,6 +37,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_growthrate
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_growthratedescription
schema: public
object_relationships:
- name: pokemon_v2_growthrate
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_growthratedescription
schema: public

View file

@ -1,3 +1,13 @@
table:
name: pokemon_v2_item
schema: public
object_relationships:
- name: pokemon_v2_itemcategory
using:
foreign_key_constraint_on: item_category_id
- name: pokemon_v2_itemflingeffect
using:
foreign_key_constraint_on: item_fling_effect_id
array_relationships:
- name: pokemonV2PokemonevolutionsByHeldItemId
using:
@ -83,13 +93,6 @@ array_relationships:
table:
name: pokemon_v2_pokemonitem
schema: public
object_relationships:
- name: pokemon_v2_itemcategory
using:
foreign_key_constraint_on: item_category_id
- name: pokemon_v2_itemflingeffect
using:
foreign_key_constraint_on: item_fling_effect_id
select_permissions:
- permission:
allow_aggregations: true
@ -97,6 +100,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_item
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itemattribute
schema: public
array_relationships:
- name: pokemon_v2_itemattributedescriptions
using:
@ -27,6 +30,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itemattribute
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itemattributedescription
schema: public
object_relationships:
- name: pokemon_v2_itemattribute
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itemattributedescription
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itemattributemap
schema: public
object_relationships:
- name: pokemon_v2_item
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itemattributemap
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itemattributename
schema: public
object_relationships:
- name: pokemon_v2_itemattribute
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itemattributename
schema: public

View file

@ -1,3 +1,10 @@
table:
name: pokemon_v2_itemcategory
schema: public
object_relationships:
- name: pokemon_v2_itempocket
using:
foreign_key_constraint_on: item_pocket_id
array_relationships:
- name: pokemon_v2_itemcategorynames
using:
@ -13,10 +20,6 @@ array_relationships:
table:
name: pokemon_v2_item
schema: public
object_relationships:
- name: pokemon_v2_itempocket
using:
foreign_key_constraint_on: item_pocket_id
select_permissions:
- permission:
allow_aggregations: true
@ -24,6 +27,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itemcategory
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itemcategoryname
schema: public
object_relationships:
- name: pokemon_v2_itemcategory
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itemcategoryname
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itemeffecttext
schema: public
object_relationships:
- name: pokemon_v2_item
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itemeffecttext
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itemflavortext
schema: public
object_relationships:
- name: pokemon_v2_item
using:
@ -15,6 +18,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itemflavortext
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itemflingeffect
schema: public
array_relationships:
- name: pokemon_v2_itemflingeffecteffecttexts
using:
@ -20,6 +23,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itemflingeffect
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itemflingeffecteffecttext
schema: public
object_relationships:
- name: pokemon_v2_itemflingeffect
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itemflingeffecteffecttext
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itemgameindex
schema: public
object_relationships:
- name: pokemon_v2_generation
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itemgameindex
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itemname
schema: public
object_relationships:
- name: pokemon_v2_item
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itemname
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itempocket
schema: public
array_relationships:
- name: pokemon_v2_itemcategories
using:
@ -20,6 +23,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itempocket
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itempocketname
schema: public
object_relationships:
- name: pokemon_v2_itempocket
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itempocketname
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_itemsprites
schema: public
object_relationships:
- name: pokemon_v2_item
using:
@ -9,6 +12,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_itemsprites
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_language
schema: public
array_relationships:
- name: pokemonV2LanguagenamesByLocalLanguageId
using:
@ -433,6 +436,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_language
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_languagename
schema: public
object_relationships:
- name: pokemonV2LanguageByLocalLanguageId
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_languagename
schema: public

View file

@ -1,3 +1,10 @@
table:
name: pokemon_v2_location
schema: public
object_relationships:
- name: pokemon_v2_region
using:
foreign_key_constraint_on: region_id
array_relationships:
- name: pokemon_v2_locationareas
using:
@ -27,10 +34,6 @@ array_relationships:
table:
name: pokemon_v2_pokemonevolution
schema: public
object_relationships:
- name: pokemon_v2_region
using:
foreign_key_constraint_on: region_id
select_permissions:
- permission:
allow_aggregations: true
@ -38,6 +41,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_location
schema: public

View file

@ -1,3 +1,10 @@
table:
name: pokemon_v2_locationarea
schema: public
object_relationships:
- name: pokemon_v2_location
using:
foreign_key_constraint_on: location_id
array_relationships:
- name: pokemon_v2_encounters
using:
@ -20,10 +27,6 @@ array_relationships:
table:
name: pokemon_v2_locationareaname
schema: public
object_relationships:
- name: pokemon_v2_location
using:
foreign_key_constraint_on: location_id
select_permissions:
- permission:
allow_aggregations: true
@ -31,6 +34,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_locationarea
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_locationareaencounterrate
schema: public
object_relationships:
- name: pokemon_v2_encountermethod
using:
@ -15,6 +18,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_locationareaencounterrate
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_locationareaname
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_locationareaname
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_locationgameindex
schema: public
object_relationships:
- name: pokemon_v2_generation
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_locationgameindex
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_locationname
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_locationname
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_machine
schema: public
object_relationships:
- name: pokemon_v2_growthrate
using:
@ -18,6 +21,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_machine
schema: public

View file

@ -1,3 +1,38 @@
table:
name: pokemon_v2_move
schema: public
object_relationships:
- name: pokemon_v2_contesteffect
using:
foreign_key_constraint_on: contest_effect_id
- name: pokemon_v2_contesttype
using:
foreign_key_constraint_on: contest_type_id
- name: pokemon_v2_generation
using:
foreign_key_constraint_on: generation_id
- name: pokemon_v2_movedamageclass
using:
foreign_key_constraint_on: move_damage_class_id
- name: pokemon_v2_moveeffect
using:
foreign_key_constraint_on: move_effect_id
- name: pokemon_v2_movemetum
using:
foreign_key_constraint_on:
column: move_id
table:
name: pokemon_v2_movemeta
schema: public
- name: pokemon_v2_movetarget
using:
foreign_key_constraint_on: move_target_id
- name: pokemon_v2_supercontesteffect
using:
foreign_key_constraint_on: super_contest_effect_id
- name: pokemon_v2_type
using:
foreign_key_constraint_on: type_id
array_relationships:
- name: pokemonV2ContestcombosBySecondMoveId
using:
@ -90,31 +125,6 @@ array_relationships:
table:
name: pokemon_v2_supercontestcombo
schema: public
object_relationships:
- name: pokemon_v2_contesteffect
using:
foreign_key_constraint_on: contest_effect_id
- name: pokemon_v2_contesttype
using:
foreign_key_constraint_on: contest_type_id
- name: pokemon_v2_generation
using:
foreign_key_constraint_on: generation_id
- name: pokemon_v2_movedamageclass
using:
foreign_key_constraint_on: move_damage_class_id
- name: pokemon_v2_moveeffect
using:
foreign_key_constraint_on: move_effect_id
- name: pokemon_v2_movetarget
using:
foreign_key_constraint_on: move_target_id
- name: pokemon_v2_supercontesteffect
using:
foreign_key_constraint_on: super_contest_effect_id
- name: pokemon_v2_type
using:
foreign_key_constraint_on: type_id
select_permissions:
- permission:
allow_aggregations: true
@ -122,6 +132,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_move
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_moveattribute
schema: public
array_relationships:
- name: pokemon_v2_moveattributedescriptions
using:
@ -27,6 +30,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_moveattribute
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_moveattributedescription
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_moveattributedescription
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_moveattributemap
schema: public
object_relationships:
- name: pokemon_v2_move
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_moveattributemap
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_moveattributename
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_moveattributename
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movebattlestyle
schema: public
array_relationships:
- name: pokemon_v2_movebattlestylenames
using:
@ -20,6 +23,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movebattlestyle
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movebattlestylename
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movebattlestylename
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movechange
schema: public
object_relationships:
- name: pokemon_v2_move
using:
@ -18,6 +21,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movechange
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movedamageclass
schema: public
array_relationships:
- name: pokemon_v2_movedamageclassdescriptions
using:
@ -41,6 +44,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movedamageclass
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movedamageclassdescription
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movedamageclassdescription
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movedamageclassname
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movedamageclassname
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_moveeffect
schema: public
array_relationships:
- name: pokemon_v2_movechanges
using:
@ -34,6 +37,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_moveeffect
schema: public

View file

@ -1,3 +1,13 @@
table:
name: pokemon_v2_moveeffectchange
schema: public
object_relationships:
- name: pokemon_v2_moveeffect
using:
foreign_key_constraint_on: move_effect_id
- name: pokemon_v2_versiongroup
using:
foreign_key_constraint_on: version_group_id
array_relationships:
- name: pokemon_v2_moveeffectchangeeffecttexts
using:
@ -6,13 +16,6 @@ array_relationships:
table:
name: pokemon_v2_moveeffectchangeeffecttext
schema: public
object_relationships:
- name: pokemon_v2_moveeffect
using:
foreign_key_constraint_on: move_effect_id
- name: pokemon_v2_versiongroup
using:
foreign_key_constraint_on: version_group_id
select_permissions:
- permission:
allow_aggregations: true
@ -20,6 +23,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_moveeffectchange
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_moveeffectchangeeffecttext
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_moveeffectchangeeffecttext
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_moveeffecteffecttext
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_moveeffecteffecttext
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_moveflavortext
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -15,6 +18,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_moveflavortext
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movelearnmethod
schema: public
array_relationships:
- name: pokemon_v2_movelearnmethoddescriptions
using:
@ -34,6 +37,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movelearnmethod
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movelearnmethoddescription
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movelearnmethoddescription
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movelearnmethodname
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movelearnmethodname
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movemeta
schema: public
object_relationships:
- name: pokemon_v2_move
using:
@ -15,6 +18,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movemeta
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movemetaailment
schema: public
array_relationships:
- name: pokemon_v2_movemeta
using:
@ -20,6 +23,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movemetaailment
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movemetaailmentname
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movemetaailmentname
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movemetacategory
schema: public
array_relationships:
- name: pokemon_v2_movemeta
using:
@ -20,6 +23,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movemetacategory
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movemetacategorydescription
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movemetacategorydescription
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movemetastatchange
schema: public
object_relationships:
- name: pokemon_v2_move
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movemetastatchange
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movename
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movename
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movetarget
schema: public
array_relationships:
- name: pokemon_v2_moves
using:
@ -27,6 +30,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movetarget
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movetargetdescription
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movetargetdescription
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_movetargetname
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_movetargetname
schema: public

View file

@ -1,3 +1,19 @@
table:
name: pokemon_v2_nature
schema: public
object_relationships:
- name: pokemonV2BerryflavorByLikesFlavorId
using:
foreign_key_constraint_on: likes_flavor_id
- name: pokemonV2StatByIncreasedStatId
using:
foreign_key_constraint_on: increased_stat_id
- name: pokemon_v2_berryflavor
using:
foreign_key_constraint_on: hates_flavor_id
- name: pokemon_v2_stat
using:
foreign_key_constraint_on: decreased_stat_id
array_relationships:
- name: pokemon_v2_naturebattlestylepreferences
using:
@ -20,19 +36,6 @@ array_relationships:
table:
name: pokemon_v2_naturepokeathlonstat
schema: public
object_relationships:
- name: pokemonV2BerryflavorByLikesFlavorId
using:
foreign_key_constraint_on: likes_flavor_id
- name: pokemonV2StatByIncreasedStatId
using:
foreign_key_constraint_on: increased_stat_id
- name: pokemon_v2_berryflavor
using:
foreign_key_constraint_on: hates_flavor_id
- name: pokemon_v2_stat
using:
foreign_key_constraint_on: decreased_stat_id
select_permissions:
- permission:
allow_aggregations: true
@ -40,6 +43,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_nature
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_naturebattlestylepreference
schema: public
object_relationships:
- name: pokemon_v2_movebattlestyle
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_naturebattlestylepreference
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_naturename
schema: public
object_relationships:
- name: pokemon_v2_language
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_naturename
schema: public

View file

@ -1,3 +1,6 @@
table:
name: pokemon_v2_naturepokeathlonstat
schema: public
object_relationships:
- name: pokemon_v2_nature
using:
@ -12,6 +15,3 @@ select_permissions:
filter: {}
limit: 100000
role: anon
table:
name: pokemon_v2_naturepokeathlonstat
schema: public

Some files were not shown because too many files have changed in this diff Show more