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] }