From 2d5289c765b2b8e6c1cc6d3a88a7490455134a59 Mon Sep 17 00:00:00 2001 From: salfetka5 Date: Wed, 9 Sep 2026 11:54:11 +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=20works/mysqllab1/result.dbml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/mysqllab1/result.dbml | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/works/mysqllab1/result.dbml b/works/mysqllab1/result.dbml index 19e6373..716b570 100644 --- a/works/mysqllab1/result.dbml +++ b/works/mysqllab1/result.dbml @@ -14,15 +14,37 @@ Table card_set { } Table pokemon { - pokemon_id int [pk, increment] - pokemon_attack_id int [not null, ref: > card_attack.card_attack_id] - pokemon_attack_position int [not null, ref: > card_attack.card_attack_position] - pokemon_height numeric - pokemon_weight numeric + card_pokemon_id int [primary key, not null] + card_pokemon_hp int [not null, check: `card_hp > 0`] + card_pokemon_hieght numeric + card_pokemon_weight numeric + card_pokemon_name text [not null] + card_card_id int [primary key, not null] + card_pokemon_stage text [not null] + card_pokemon_evloves_from text + card_pokemon_category text + entrgy_type_id int [not null, ref: > energy_type.energy_type_id] + attack_energy_cost_id int [not null, ref: > attack_energy_cost.attack_energy_cost_id] + attack_id int [not null, ref: > attack.attack_id] + trainer_id int [not null, ref: > trainer.trainer_id] +} + +Table energy_type { + energy_quantily text [null] + element_type_id int [primary key, not null] + element_type_name text [not null, unique] + energy_type_id int [not null, primary key] } Table trainer { - trainer_id int [pk, increment] + trainer_id int [primary key, not null] + trainer_name text [not null, unique] + trainer_type int [not null] + trainer_releaced_date date [not null] + trainer_skill text [not null] + trainer_description text [not null] + trainer_rarity text [not null] + trainer_image_url text [not null] }