Files

91 lines
3.0 KiB
Groff

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,
);