From 6ba8007daf562416c4228cbdb2b80af41be5c124 Mon Sep 17 00:00:00 2001 From: "sonya@gmail.com" Date: Thu, 3 Sep 2026 12:08:25 +0300 Subject: [PATCH] =?UTF-8?q?work-01,=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=B4=D0=B0=20=D0=B8?= =?UTF-8?q?=D0=B7=20dbdiagram?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/lab-01/dbdiagram.txt | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 works/lab-01/dbdiagram.txt diff --git a/works/lab-01/dbdiagram.txt b/works/lab-01/dbdiagram.txt new file mode 100644 index 0000000..6cec734 --- /dev/null +++ b/works/lab-01/dbdiagram.txt @@ -0,0 +1,49 @@ +Table card { + card_id int [primary key] + pokemon_id int + card_description text // у карт того же покемона бывают разные описания + + // данные, не влияющие на игру + card_rarity int + card_year int + card_set_no int + artist_id int + + // игровые данные + card_hp int + attack_id int + card_retreat_cost int +} + +Table pokemon { + pokemon_id int [primary key] + pokemon_name text + pokemon_height_m numeric + pokemon_weight_kg numeric + pokemon_stage int + + pokemon_resistance_element text + pokemon_resistance_amount text + pokemon_weakness_element text + pokemon_weakness_amount text +} + +Table artist { + artist_id int [primary key] + artist_name text +} + +Table attack { + attack_id int [primary key] + attack_name text + attack_description text + attack_element text + attack_energy_cost int + attack_damage int +} + +Ref: "pokemon"."pokemon_id" ?? "attack"."attack_id" \ No newline at end of file