generated from admin/template
Обновить schema
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
create table card_set(
|
create table card_set(
|
||||||
card_set_id int primary key,
|
card_set_id int generated always as identity primary key,
|
||||||
card_set_name text not null,
|
card_set_name text not null,
|
||||||
card_set_code text not null,
|
card_set_code text not null,
|
||||||
card_set_series text not null,
|
card_set_series text not null,
|
||||||
@@ -20,11 +20,40 @@ insert into card_set (card_set_name, card_set_code, card_set_series, card_set_am
|
|||||||
('XY Столкновение судеб', 'XY10', 'XY', 124, '2016-05-02');
|
('XY Столкновение судеб', 'XY10', 'XY', 124, '2016-05-02');
|
||||||
|
|
||||||
create table card(
|
create table card(
|
||||||
card_id int generated always as identity primary key,
|
card_id int primary key,
|
||||||
card_set_id int not null default 3 references card_set(card_set_id),
|
card_set_id int not null default 3 references card_set(card_set_id),
|
||||||
card_number text not null,
|
card_number text not null,
|
||||||
card_name text not null,
|
card_name text not null,
|
||||||
card_rarity text not null,
|
card_rarity text not null,
|
||||||
card_type text not null,
|
card_type text not null,
|
||||||
card_image_url 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
|
||||||
);
|
);
|
||||||
Reference in New Issue
Block a user