Обновить lesson0.sql

This commit is contained in:
2026-10-01 06:31:31 +00:00
parent 2703b7a904
commit af31359e13
+10 -10
View File
@@ -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 { 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)
@@ -15,16 +25,6 @@ Table: card_set {
set_total_cards: int (NOT NULL, CHECK(set_total_cards > 0)) 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 { 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)