diff --git a/лаба 3 b/лаба 3 new file mode 100644 index 0000000..06d4c9e --- /dev/null +++ b/лаба 3 @@ -0,0 +1,72 @@ +create table card_set ( +card_id int generated always as identify primary key, +set_name text not null, +set_code text not null, +set_series text not null, +set_total_cards int not null, +set_realese_date date not null, +set_sumbul_url text not null +); + +create table energy_type( +energy_type_id int generated always as identify primary key, +energy_type_name text not null, +energy_type_icon_url text not null +); + +create table pokemon_sub_type( +sub_type_id int generated always as identify primary key, +sub_type_name text not null, +sub_type_default_prize_count int not null, +sub_type_global_rule_text text not null +); + +create table ability_type ( +ability_type_id int generated always as identify primary key, +ability_type_name text not null +); + +create table attack_name ( +attack_name_id int generated always as identify primary key, +attack_name_tittle text not null +); + +create table trainer_printed_type ( +printed_type_id int generated always as identify primary key, +printed_type_name text not null +); + +create table game_mechanic( +mechanic_id int generated always as identify primary key, +mechanic_name text not null +); + +create table pokemon_spesies ( +spesies_pokedex_number int primary key, +spesies_eng_name text unique not null, +spesies_generation int not null, +spesies_weight_kg numeric not null, +spesies_height_m numeric not null +); + +create table pokedex_entry ( +entry_id int generated always as identify primary key, +entry_pokedex_number int references pokemon_spesies(spesies_pokedex_number), +entry_sourse_game text not null, +entry_discription text not null +); + +create table card ( +card_id int references card_set(card_id) +card_number int not null, +card_set_id int references card_set(card_set_id), +card_name text not null, +card_rarity text not null, +card_type text not null, +card_imagine_url text not null +); + + + + +