From 8094fe3b9dfb7675dc5e74d1208f66f6e738f404 Mon Sep 17 00:00:00 2001 From: Stas Date: Mon, 21 Sep 2026 08:03:56 +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=20lesson1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lesson1 | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 lesson1 diff --git a/lesson1 b/lesson1 new file mode 100644 index 0000000..b2a6e45 --- /dev/null +++ b/lesson1 @@ -0,0 +1,55 @@ +Table card { + card_id int [pk] + card_name text [not null, unique] + card_hp int [not null] + card_set_id int [not null] + card_illustrator_id int [not null] +} + +Table illustrator { + illustrator_id int [pk] + illustrator_name text [not null] +} + +Table card_set { + card_set_id int [pk] + card_set_name text [not null, unique] + card_set_code text [not null, unique] + card_set_release_date date [not null] +} + +Table card_attack { + card_attack_id int [pk] + card_id int [not null] + attack_id int [not null] +} + +Table attack { + attack_id int [pk] + attack_name text [not null] + attack_base_damage int [not null] +} + +Table element_type { + element_id int [pk] + element_name text [not null, unique] +} + +Table attack_energy_cost { + attack_energy_cost_id int [pk] + attack_id int [not null] + element_type_id int [not null] + energy_quantity int [not null] +} + +Ref: "card"."card_illustrator_id" > "illustrator"."illustrator_id" + +Ref: "card"."card_set_id" ?> "card_set"."card_set_id" + +Ref: "card"."card_id" "element_type"."element_id" \ No newline at end of file