Обновить lesson0.sql

This commit is contained in:
2026-10-01 06:18:30 +00:00
parent a1fa6a4c59
commit 11563863c1
+5 -5
View File
@@ -1,21 +1,21 @@
Table: illustrator{ Table: illustrator {
illustrator_id: int (PK, NOT NULL, UNIQUE, CHECK(illustrator_id > 0)) illustrator_id: int (PK, NOT NULL, UNIQUE, CHECK(illustrator_id > 0))
illustrator_name: Text (NOT NULL, UNIQUE) illustrator_name: Text (NOT NULL, UNIQUE)
} }
Table: element_type{ Table: element_type {
element_type_id: int (PK, NOT NULL, UNIQUE, CHECK(element_type_id > 0)) element_type_id: int (PK, NOT NULL, UNIQUE, CHECK(element_type_id > 0))
element_type_name: Text (NOT NULL, UNIQUE) element_type_name: Text (NOT NULL, UNIQUE)
} }
Table: card_set{ Table: card_set {
set_id: int (PK, NOT NULL, UNIQUE, CHECK(set_id > 0)) set_id: int (PK, NOT NULL, UNIQUE, CHECK(set_id > 0))
set_name: Text (NOT NULL, UNIQUE) set_name: Text (NOT NULL, UNIQUE)
set_code: Text (NOT NULL, UNIQUE) set_code: Text (NOT NULL, UNIQUE)
set_total_cards: int (NOT NULL, CHECK(set_total_cards > 0)) set_total_cards: int (NOT NULL, CHECK(set_total_cards > 0))
} }
Table: card{ Table: card {
card_id: int (PK, NOT NULL, UNIQUE, CHECK(card_id > 0)) card_id: int (PK, NOT NULL, UNIQUE, CHECK(card_id > 0))
card_name: Text (NOT NULL) card_name: Text (NOT NULL)
card hp: int (NOT NULL) card hp: int (NOT NULL)
@@ -25,7 +25,7 @@ Table: card{
card_set_id: int (NOT NULL) card_set_id: int (NOT NULL)
} }
Table: attack{ Table: attack {
attack_id: int (PK, NOT NULL, CHECK (attack_id > 0)) attack_id: int (PK, NOT NULL, CHECK (attack_id > 0))
attack_name: Text (NOT NULL) attack_name: Text (NOT NULL)
attack_base_damage: int (NOT NULL, CHECK(attack_base_damage >= 0)) attack_base_damage: int (NOT NULL, CHECK(attack_base_damage >= 0))