diff --git a/works/lab-01/dbdiagram.txt b/works/lab-01/dbdiagram.txt index 9042de8..83361e1 100644 --- a/works/lab-01/dbdiagram.txt +++ b/works/lab-01/dbdiagram.txt @@ -136,6 +136,7 @@ Table attack_energy_cost { cost_quantity int [default: 1] // Количество энергии (например, 3 единицы Огня) } +// pokemon_attribute: Хранит модификаторы урона покемона против определенных стихий. Связь Многие-ко-Многим. (Уязвимость и Сопротивление) Table pokemon_attribute { attribute_id int [pk] attribute_pokemon_card_id int [unique] @@ -144,6 +145,11 @@ Table pokemon_attribute { attribute_modifier_value text // Обозначение изменения урона (Пример: 'x2', '-20', '-30') } +// trainer_mechanic_link: Промежуточная таблица (Многие-ко-Многому). Связывает карточку тренера с ее скрытыми игровыми правилами движка. +Table trainer_mechanic_link { + mechanic_link_trainer_card_id int [pk] + mechanic_link_mechanic_id int +} Ref: "pokedex_entry"."entry_pokedex_number" ?>? "pokemon_species"."species_pokedex_number" @@ -170,4 +176,7 @@ Ref: "attack_energy_cost"."cost_link_id" ?>? "pokemon_attack_link"."link_id" Ref: "attack_energy_cost"."cost_energy_type_id" ?>? "energy_type"."energy_type_id" Ref: "pokemon_card"."pokemon_card_id" ?-? "pokemon_attribute"."attribute_pokemon_card_id" -Ref: "energy_type"."energy_type_id" ?-? "pokemon_attribute"."attribute_energy_type_id" \ No newline at end of file +Ref: "energy_type"."energy_type_id" ?-? "pokemon_attribute"."attribute_energy_type_id" + +Ref: "trainer_mechanic_link"."mechanic_link_mechanic_id" ?>? "game_mechanic"."mechanic_id" +Ref: "trainer_card"."trainer_card_id" -? "trainer_mechanic_link"."mechanic_link_trainer_card_id" \ No newline at end of file