From 9e249561402adc66c5a5cb582ff25acddef61a3f Mon Sep 17 00:00:00 2001 From: Fan Date: Fri, 11 Sep 2026 08:04:01 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20works/sql=5Flab-2.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/sql_lab-2.1 | 91 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 works/sql_lab-2.1 diff --git a/works/sql_lab-2.1 b/works/sql_lab-2.1 new file mode 100644 index 0000000..98fd833 --- /dev/null +++ b/works/sql_lab-2.1 @@ -0,0 +1,91 @@ +creater table card_ set ( +set_card_id int primary key, +set_card_name text not null, +set_card_code text not null, +set_card_series text not null, +set_card_total_cards int not null, +set_card_release_date date not null, +set_card_logo_uei text not null, +set_card_stmbol_uri text not null, +); +creater table energy_type ( +energy_type_id int primary key, +energy_type_name text not null, +energy_type_icon_url text not null, +); +creater table pokemon_sub_type ( +sub_type_id int primery key, +sub_type_name text not null, +sub_type_defeult_prize_count int noy null, +sub_type_global_rule_text text not null, +); +creater table ability_type ( +ability_type_id int primery key, +ability_type_name text not null, +); +creater table attack_name ( +attack_name_id int primery key, +attack_name_title text not null, +); +creater table trainer_printed_type ( +trainer_printed_type_id int primery key, +trainer_printed_type_name text not null, +); +creater table game_machanic ( +game_machanic_id int primery key, +game_machanic_name text not null +); +creater table pokemon_species ( +pokemon_species_number int not null, +pokemon_species_name text not null, +pokemon_species_generation int not null, +pokemon_species_height_m float not null, +pokemon_species_weight_kg float not null, +); +creater table pokemon_entry ( +pokemon_entry_id int primery key, +pokemon_entry_number int not null, +pokemon_entry_game text not null, +pokemon_entry_desription text not null, +); +creater table card ( +card_id int primery key, +card_number text not null, +card_set_id int primery ket, +card_name text not null, +card_rarity text not null, +card_type text not null, +card_image_url text not null, +~~~~~~~~~ +); +creater table pokemon_card ( +pokemon_card_id int primery key references card (card_id), +pokemon_card_pokedex_number int primery key references pokemon_species (pokemon_species_number), +pokemon_card_pokedex_entry_id int primery key null references pokemon_entry (pokemon_entry_id), +pokemon_card_hp int, +pokemon_card_stage text not null, +pokemon_card_evolves_from text not null, +pokemon_card_retreat_cost int primery key, +pokemon_card_sub_type_id int primery key references pokemon_sub_type (sub_type_id), +pokemon_card_catrgoty text not null, +pokemon_card_printed_height text not null, +pokemon_card_printed_weight text not null, +); +creater table trainet_card ( +trainet_card_id int primery key references card (card_id ), +trainet_card_printed_type_id int not null references trainer_printed_type (trainer_printed_type_id), +trainet_card_effect_text text not null, +trainet_card_id_ace_spec boolean not null, +); +creater table energt_card ( +energt_card_id int primery key references card (card_id), +energt_card_is_special boolean not null, +energt_card_main_type_id int null references energy_type (energy_type_id), +energt_card_effect_text text null, +); +creater table pokemon_ability ( +pokemon_ability_card_id int primery key references pokemon_card (pokemon_card_id), +pokemon_ability_type_id int refereneces ability_type (ability_type_id), +pokemon_ability_name text not null, +pokemon_ability_effect_text text not null, +); \ No newline at end of file