From 3c143286fd8152a2b28cc01e3532d4a4ccd0647d Mon Sep 17 00:00:00 2001 From: AntonKat Date: Thu, 17 Sep 2026 06:47:03 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20works/lab-01/lab-1.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/lab-01/lab-1.md | 58 +++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/works/lab-01/lab-1.md b/works/lab-01/lab-1.md index 7087029..9b5a563 100644 --- a/works/lab-01/lab-1.md +++ b/works/lab-01/lab-1.md @@ -1,30 +1,30 @@ Table: illustrator{
- illustrator_id: int (PK, NOT NULL, UNIQUE, CHECK(illustrator_id > 0)) - illustrator_name: Text (NOT NULL, UNIQUE) -} -Table: element_type{ - element_type_id: int (PK, NOT NULL, UNIQUE, CHECK(element_type_id > 0)) - element_type_name: Text (NOT NULL, UNIQUE) -} -Table: card_set{ - set_id: int (PK, NOT NULL, UNIQUE, CHECK(set_id > 0)) - set_name: Text (NOT NULL, UNIQUE) - set_code: Text (NOT NULL, UNIQUE) - set_total_cards: int (NOT NULL, CHECK(set_total_cards > 0)) -} -Table: card{ - card_id: int (PK, NOT NULL, UNIQUE, CHECK(card_id > 0)) - card_name: Text (NOT NULL) - card_hp: int (NOT NULL) - card_number: Text (NOT NULL, CHECK(card_number > 0)) - card_illustrator_id: int (NOT NULL) - card_element_type_id: int (NOT NULL) - card_set_id: int (NOT NULL) -} -Table: attack{ - attack_id: int (PK, NOT NULL, CHECK (attack_id > 0)) - attack_name: Text (NOT NULL) - attack_base_damage : int (NOT NULL, CHECK(attack_base_damage >= 0)) - attack_damage_modifier: Text (CHECK(attack_dam_modifier in ["+", "x"])) - attack_card_id: int (NOT NULL) -} \ No newline at end of file + illustrator_id: int (PK, NOT NULL, UNIQUE, CHECK(illustrator_id > 0))
+ illustrator_name: Text (NOT NULL, UNIQUE)
+}
+Table: element_type{
+ element_type_id: int (PK, NOT NULL, UNIQUE, CHECK(element_type_id > 0))
+ element_type_name: Text (NOT NULL, UNIQUE)
+}
+Table: card_set{
+ set_id: int (PK, NOT NULL, UNIQUE, CHECK(set_id > 0))
+ set_name: Text (NOT NULL, UNIQUE)
+ set_code: Text (NOT NULL, UNIQUE)
+ set_total_cards: int (NOT NULL, CHECK(set_total_cards > 0))
+}
+Table: card{
+ card_id: int (PK, NOT NULL, UNIQUE, CHECK(card_id > 0))
+ card_name: Text (NOT NULL)
+ card_hp: int (NOT NULL)
+ card_number: Text (NOT NULL, CHECK(card_number > 0))
+ card_illustrator_id: int (NOT NULL)
+ card_element_type_id: int (NOT NULL)
+ card_set_id: int (NOT NULL)
+}
+Table: attack{
+ attack_id: int (PK, NOT NULL, CHECK (attack_id > 0))
+ attack_name: Text (NOT NULL)
+ attack_base_damage : int (NOT NULL, CHECK(attack_base_damage >= 0))
+ attack_damage_modifier: Text (CHECK(attack_dam_modifier in ["+", "x"]))
+ attack_card_id: int (NOT NULL)
+}
\ No newline at end of file