generated from admin/template
59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
create table card_set(
|
|
card_set_id int generated always as identity primary key,
|
|
card_set_name text not null,
|
|
card_set_code text not null,
|
|
card_set_series text not null,
|
|
card_set_amount int not null,
|
|
card_set_release date not null
|
|
);
|
|
|
|
insert into card_set (card_set_name, card_set_code, card_set_series, card_set_amount, card_set_release) values
|
|
('XY Базовый набор', 'XY1', 'XY', 146, '2014-02-05'),
|
|
('XY Огненная вспышка', 'XY2', 'XY', 106, '2014-05-07'),
|
|
('XY Яростный кулак', 'XY3', 'XY', 111, '2014-08-13'),
|
|
('XY Призрачные силы', 'XY4', 'XY', 119, '2014-11-05'),
|
|
('XY Первобытная дуэль', 'XY5', 'XY', 160, '2015-02-04'),
|
|
('XY Грохочущие небеса', 'XY6', 'XY', 108, '2015-05-06'),
|
|
('XY Древние истоки', 'XY7', 'XY', 98, '2015-08-12'),
|
|
('XY Прорыв', 'XY8', 'XY', 162, '2015-11-04'),
|
|
('XY Тайное превосходство', 'XY9', 'XY', 122, '2016-02-03'),
|
|
('XY Столкновение судеб', 'XY10', 'XY', 124, '2016-05-02');
|
|
|
|
create table card(
|
|
card_id int primary key,
|
|
card_set_id int not null default 3 references card_set(card_set_id),
|
|
card_number text not null,
|
|
card_name text not null,
|
|
card_rarity text not null,
|
|
card_type text not null,
|
|
card_image_url text not null
|
|
);
|
|
|
|
create table pokemon_card(
|
|
pokemon_hp int not null,
|
|
pokemon_stage text not null,
|
|
pokemon_evolves_from text,
|
|
pokemon_retreat_cost text not null
|
|
);
|
|
|
|
|
|
create table attack_name(
|
|
attacks_name_title text not null
|
|
);
|
|
|
|
|
|
create table pockemon_attack_link(
|
|
link_damage_value text not null,
|
|
link_effect_text text not null
|
|
);
|
|
|
|
|
|
create table attack_energy_cost(
|
|
attack_energy_cost text not null
|
|
);
|
|
|
|
|
|
create table pokemon_attribute(
|
|
weakness text not null,
|
|
resistance text not null
|
|
); |