Обновить works/mysqllab1/result.dbml

This commit is contained in:
2026-09-09 11:54:11 +00:00
parent 0ae8ed926b
commit 2d5289c765
+28 -6
View File
@@ -14,15 +14,37 @@ Table card_set {
} }
Table pokemon { Table pokemon {
pokemon_id int [pk, increment] card_pokemon_id int [primary key, not null]
pokemon_attack_id int [not null, ref: > card_attack.card_attack_id] card_pokemon_hp int [not null, check: `card_hp > 0`]
pokemon_attack_position int [not null, ref: > card_attack.card_attack_position] card_pokemon_hieght numeric
pokemon_height numeric card_pokemon_weight numeric
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 { 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]
} }