Обновить works/lab-01/lab-1.md

This commit is contained in:
2026-09-17 06:47:03 +00:00
parent 407edac5b3
commit 3c143286fd
+29 -29
View File
@@ -1,30 +1,30 @@
Table: illustrator{ <br>
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)
}
illustrator_id: int (PK, NOT NULL, UNIQUE, CHECK(illustrator_id > 0)) <br>
illustrator_name: Text (NOT NULL, UNIQUE) <br>
} <br>
Table: element_type{ <br>
element_type_id: int (PK, NOT NULL, UNIQUE, CHECK(element_type_id > 0)) <br>
element_type_name: Text (NOT NULL, UNIQUE) <br>
} <br>
Table: card_set{ <br>
set_id: int (PK, NOT NULL, UNIQUE, CHECK(set_id > 0)) <br>
set_name: Text (NOT NULL, UNIQUE) <br>
set_code: Text (NOT NULL, UNIQUE) <br>
set_total_cards: int (NOT NULL, CHECK(set_total_cards > 0)) <br>
} <br>
Table: card{ <br>
card_id: int (PK, NOT NULL, UNIQUE, CHECK(card_id > 0)) <br>
card_name: Text (NOT NULL) <br>
card_hp: int (NOT NULL) <br>
card_number: Text (NOT NULL, CHECK(card_number > 0)) <br>
card_illustrator_id: int (NOT NULL) <br>
card_element_type_id: int (NOT NULL) <br>
card_set_id: int (NOT NULL) <br>
} <br>
Table: attack{ <br>
attack_id: int (PK, NOT NULL, CHECK (attack_id > 0)) <br>
attack_name: Text (NOT NULL) <br>
attack_base_damage : int (NOT NULL, CHECK(attack_base_damage >= 0)) <br>
attack_damage_modifier: Text (CHECK(attack_dam_modifier in ["+", "x"])) <br>
attack_card_id: int (NOT NULL) <br>
} <br>