From f124dea43fa50380da08266cdb52b16166ef231f Mon Sep 17 00:00:00 2001 From: andrix7777777 <16+andrix7777777@noreply.localhost> Date: Thu, 17 Sep 2026 06:21:30 +0000 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=D0=B4=D0=BD=D0=B8=D0=B9?= =?UTF-8?q?=20=D0=BF=D1=83=D0=BD=D0=BA=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit видимо, я к концу подзабыл что там ещё надо --- works/lab-01/dbdiagram.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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