From 031e9a02218da6798361ced9078c36b7a8526f67 Mon Sep 17 00:00:00 2001 From: andrix7777777 Date: Thu, 17 Sep 2026 07:29:32 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20works/lab-01/dbdiagram=5Flesson0.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit не совсем dbdiagram, но того требует наука --- works/lab-01/dbdiagram_lesson0.txt | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 works/lab-01/dbdiagram_lesson0.txt diff --git a/works/lab-01/dbdiagram_lesson0.txt b/works/lab-01/dbdiagram_lesson0.txt new file mode 100644 index 0000000..4488526 --- /dev/null +++ b/works/lab-01/dbdiagram_lesson0.txt @@ -0,0 +1,33 @@ +Сущность: card +- card_id: int (pk) +- card_pokemon_id: int (unique, not null) +- card_description: text +- card_number_in_set: text (not null) +- card_rarity: text (not null) +- card_set_id: int (not null, FK -> card_set.card_set_id) +- card_illustrator_id: int (not null, FK -> illustrator.illustrator_id) +- card_height_m: numeric (not null) +- card_weight_kg: numeric (not null) +- card_hp int (check (card_hp > 0)) +- card_attack_id: int (not null, FK -> attack.attack_id) +- card_retreat_cost int +- card_element_type: int (not null, FK -> element_type.element_type_id) + +Сущность: card_set +- card_set_id: int (pk) +- card_set_name: text (not null) +- card_set_year: int (not null) + +Сущность: illustrator +- illustrator_id: int (pk) +- illustrator_name: text + +Сущность: attack +- attack_id: int (pk) +- attack_name: text (not null) +- attack_base_damage: int (not null) +- attack_damage_modifier: text + +Сущность: element_type +- element_type_id: int (pk) +- element_type_name: text (not null) \ No newline at end of file