generated from admin/template
Обновить works/sql-lab1
This commit is contained in:
+9
-9
@@ -12,7 +12,7 @@ Table card {
|
||||
}
|
||||
card_set_id int [not null, ref: > card_set.card_set_id]
|
||||
illustrator_id int [not null, ref: > illustrator.illustrator_id]
|
||||
card_pokemon_id int [not null, ref: - card_pokemon.card_pokemon_id]
|
||||
card_pokemon_id int [not null, primary key, ref: - card_pokemon.card_pokemon_id]
|
||||
attack_energy_cost_id int [not null, ref: > attack_energy_cost.attack_energy_cost_id]
|
||||
energy_type_id int [not null, ref: > energy_type.element_type_id]
|
||||
coach_id int [not null, ref: > coach.coach_id]
|
||||
@@ -41,7 +41,7 @@ Table card_pokemon {
|
||||
}
|
||||
|
||||
Table pokemon_sub_type {
|
||||
pokemon_sub_type_id int [primary key, not null]
|
||||
pokemon_sub_type_id int [primary key, not null, ref: - card_pokemon.card_pokemon_id]
|
||||
pokemon_sub_type_name text [not null]
|
||||
pokemon_sub_type_default_prize_count int [not null]
|
||||
pokemon_sub_type_global_rule_text text [not null]
|
||||
@@ -119,7 +119,7 @@ Table attack_name {
|
||||
}
|
||||
|
||||
Table trainer_printed_type{
|
||||
trainer_prinded_type_id int [primary key, not null]
|
||||
trainer_prinded_type_id int [primary key, not null, ref: - coach.coach_id]
|
||||
trainer_printed_type_name text [not null]
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ Table game_mechanic {
|
||||
}
|
||||
|
||||
Table pokemon_species {
|
||||
pokemon_species_pokedex_number int [not null]
|
||||
pokemon_species_pokedex_number int [not null, primary key, ref: - card_pokemon.card_pokemon_id]
|
||||
pokemon_species_end_name text [not null]
|
||||
pokemon_species_generetion int [not null]
|
||||
pokemon_species_height_m float [not null]
|
||||
@@ -137,21 +137,21 @@ Table pokemon_species {
|
||||
}
|
||||
|
||||
Table pokedex_entry {
|
||||
pokedex_entry_id int [not null]
|
||||
pokedex_entry_id int [not null, primary key, ref: - card_pokemon.card_pokemon_id]
|
||||
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_card_id int [not null, primary key, ref: - card.card_id]
|
||||
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_pokemon_card_id int [not null, primary key, ref: - card_pokemon.card_pokemon_id]
|
||||
ability_type_id int [not null]
|
||||
ability_name text [not null]
|
||||
ability_effect_text text [not null]
|
||||
@@ -169,7 +169,7 @@ Table pokemon_attack_link {
|
||||
}
|
||||
|
||||
Table pokemon_attribute {
|
||||
attribute_id int [not null]
|
||||
attribute_id int [not null, ref: > card_pokemon.card_pokemon_id]
|
||||
attribute_pokemon_card_id int [not null]
|
||||
attribute_energy_type_id int [not null]
|
||||
attribute_kind text [not null]
|
||||
@@ -180,7 +180,7 @@ Table pokemon_attribute {
|
||||
}
|
||||
|
||||
Table trainer_mechanic_link {
|
||||
mechanic_link_trainer_card_id int [not null]
|
||||
mechanic_link_trainer_card_id int [not null, ref: > game_mechanic.mechanic_id]
|
||||
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