From 8b5cef789bc8d9dde48fddcd63d478117032736f Mon Sep 17 00:00:00 2001 From: Loser <19+loser@noreply.localhost> Date: Tue, 29 Sep 2026 08:41:00 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20schema?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schema | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/schema b/schema index e04c3c7..07dbc1b 100644 --- a/schema +++ b/schema @@ -1,5 +1,5 @@ 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_code 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'); 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_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 ); \ No newline at end of file