Обновить lesson.-1.sql

This commit is contained in:
2026-10-01 07:13:52 +00:00
parent 84b5e89f6d
commit cf4ad81287
+27 -27
View File
@@ -1,42 +1,42 @@
create table card ( create table card (
card_id int (primary key) card_id int
card_name text (not null) card_name text
card_stage text (not null) card_stage text
card_hp int (not null, check) (card_hp > 0) card_hp int
card_pokidex_number int (not null, check) (card_pokidex_number > 0) card_pokidex_number int
card_species next (not null) card_species
card_height_m numeric (not null, check) ( card_height_m > 0) card_height_m numeric
card_weight_kg numeric (not null, check) (card_weight_kg > 0) card_weight_kg numeric
card_number_in_set text (not null) card_number_in_set text
card_retrat_cost int (not null, check) (card_retrat_cost > 0) card_retrat_cost int
card_release_year int (not null) card_release_year int
card_set_id int (not null) card_set_id int
card_ellement_type_id int (not null) card_ellement_type_id int
card_illustrator_id int (not null) card_illustrator_id int
); );
create table card_set ( create table card_set (
card_set_id int (primary key) card_set_id int
card_set_name text (not null) card_set_name text
card_set_code text (not null) card_set_code text
set_total_cards int (not null, check) (set_total_cards > 0) set_total_cards int
set_release_date date (not null) set_release_date date
); );
create table attack ( create table attack (
attack_id int (primary key) attack_id int
attack_name text (not null) attack_name text
attack_base_damage text (not null, check) (attack_base_damage > 0) attack_base_damage text
attack_effect text attack_effect text
attack_card_id int (not null) attack_card_id int
); );
create table element_type ( create table element_type (
element_type_id int (primary key) element_type_id int
element_type_name text (not null) element_type_name text
); );
create table illustrator ( create table illustrator (
illustrator_id int (primary key) illustrator_id int
illustrator_name text (not null) illustrator_name text
); );