From af31359e13e29f6f2a397370563f6f299a2ff02a Mon Sep 17 00:00:00 2001 From: Stas Date: Thu, 1 Oct 2026 06:31:31 +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=20lesson0.sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lesson0.sql | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lesson0.sql b/lesson0.sql index 5bfe6d4..da70452 100644 --- a/lesson0.sql +++ b/lesson0.sql @@ -1,3 +1,13 @@ +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)) + illustrator_id: int (NOT NULL) + element_type_id: int (NOT NULL) + card_set_id: int (NOT NULL) +} + Table: illustrator { illustrator_id: int (PK, NOT NULL, UNIQUE, CHECK(illustrator_id > 0)) illustrator_name: Text (NOT NULL, UNIQUE) @@ -14,17 +24,7 @@ Table: card_set { 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)