generated from admin/template
Обновить works/mysqllab1/result.dbml
This commit is contained in:
@@ -11,6 +11,8 @@ Table card_set {
|
|||||||
card_set_code text [not null, unique]
|
card_set_code text [not null, unique]
|
||||||
card_set_release_date date [null]
|
card_set_release_date date [null]
|
||||||
card_set_total_cards int [null, check: `card_set_total_cards > 0`]
|
card_set_total_cards int [null, check: `card_set_total_cards > 0`]
|
||||||
|
card_set_logo_url text
|
||||||
|
card_set_symbol_url text
|
||||||
}
|
}
|
||||||
|
|
||||||
Table pokemon {
|
Table pokemon {
|
||||||
@@ -34,6 +36,7 @@ Table energy_type {
|
|||||||
element_type_id int [primary key, not null]
|
element_type_id int [primary key, not null]
|
||||||
element_type_name text [not null, unique]
|
element_type_name text [not null, unique]
|
||||||
energy_type_id int [not null, primary key]
|
energy_type_id int [not null, primary key]
|
||||||
|
energy_type_icon_irl text
|
||||||
}
|
}
|
||||||
|
|
||||||
Table trainer {
|
Table trainer {
|
||||||
@@ -88,4 +91,83 @@ Table attack_energy_cost {
|
|||||||
attack_id int [not null, ref: > attack.attack_id]
|
attack_id int [not null, ref: > attack.attack_id]
|
||||||
element_type_id int [not null, ref: > element_type.element_type_id]
|
element_type_id int [not null, ref: > element_type.element_type_id]
|
||||||
energy_quantity int [not null, check: `energy_quantity > 0`]
|
energy_quantity int [not null, check: `energy_quantity > 0`]
|
||||||
|
}
|
||||||
|
|
||||||
|
Table pokemon_sub_type {
|
||||||
|
pokemon_sub_type_id int [pk]
|
||||||
|
pokemon_sub_type_name text [not null]
|
||||||
|
pokemon_sub_type_default_prize_count int [not null]
|
||||||
|
pokemon_sub_type_global_rule_text text
|
||||||
|
}
|
||||||
|
|
||||||
|
Table ability_type {
|
||||||
|
ability_type_id int [primary key, not null]
|
||||||
|
ability_name_title text
|
||||||
|
}
|
||||||
|
|
||||||
|
Table trainer_printed_type {
|
||||||
|
trainer_prinded_type_id int [primary key, not null]
|
||||||
|
trainer_printed_type_name text [not null]
|
||||||
|
}
|
||||||
|
|
||||||
|
Table game_mechanic {
|
||||||
|
mechanic_id int [primary key, not null]
|
||||||
|
mechenic_name text [not null]
|
||||||
|
}
|
||||||
|
|
||||||
|
Table pokemon_species {
|
||||||
|
pokemon_species_pokedex_number int [not null]
|
||||||
|
pokemon_species_end_name text [not null]
|
||||||
|
pokemon_species_generetion int [not null]
|
||||||
|
pokemon_species_height_m float [not null]
|
||||||
|
pokemon_species_weight_kg float [not null]
|
||||||
|
}
|
||||||
|
|
||||||
|
Table pokedex_entry {
|
||||||
|
pokedex_entry_id int [not null]
|
||||||
|
pokedex_entry_pokedex_number int [not null]
|
||||||
|
pokedex_entry_source_game text [not null]
|
||||||
|
pokedex_entry_description text [not null]
|
||||||
|
}
|
||||||
|
|
||||||
|
Table energy_card {
|
||||||
|
energy_card_id int [not null, primary key]
|
||||||
|
energy_is_special boolean [not null]
|
||||||
|
energy_main_type_id int [null]
|
||||||
|
energy_effect_text text [null]
|
||||||
|
}
|
||||||
|
|
||||||
|
Table pokemon_ability {
|
||||||
|
ability_pokemon_card_id int [not null]
|
||||||
|
ability_type_id int [not null]
|
||||||
|
ability_name text [not null]
|
||||||
|
ability_effect_text text [not null]
|
||||||
|
}
|
||||||
|
|
||||||
|
Table pokemon_attack_link {
|
||||||
|
link_id int [not null]
|
||||||
|
link_pokemon_card_id int [not null]
|
||||||
|
link_attack_name_id int [not null]
|
||||||
|
link_damage_value text [not null]
|
||||||
|
link_effect_text text [null]
|
||||||
|
indexes {
|
||||||
|
(link_pokemon_card_id, link_attack_name_id) [unique]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Table pokemon_attribute {
|
||||||
|
attribute_id int [not null]
|
||||||
|
attribute_pokemon_card_id int [not null]
|
||||||
|
attribute_energy_type_id int [not null]
|
||||||
|
attribute_kind text [not null]
|
||||||
|
attribute_modifier_value text [not null]
|
||||||
|
indexes {
|
||||||
|
(attribute_pokemon_card_id, attribute_energy_type_id, attribute_kind) [unique]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Table trainer_mechanic_link {
|
||||||
|
mechanic_link_trainer_card_id int [not null]
|
||||||
|
mechanic_link_mechanic_id int [not null]
|
||||||
|
primery key (mechanic_link_trainer_card_id, mechanic_link_mechanic_id)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user