diff --git a/works/lab-01/dbdiagram.txt b/works/lab-01/dbdiagram.txt new file mode 100644 index 0000000..6cec734 --- /dev/null +++ b/works/lab-01/dbdiagram.txt @@ -0,0 +1,49 @@ +Table card { + card_id int [primary key] + pokemon_id int + card_description text // у карт того же покемона бывают разные описания + + // данные, не влияющие на игру + card_rarity int + card_year int + card_set_no int + artist_id int + + // игровые данные + card_hp int + attack_id int + card_retreat_cost int +} + +Table pokemon { + pokemon_id int [primary key] + pokemon_name text + pokemon_height_m numeric + pokemon_weight_kg numeric + pokemon_stage int + + pokemon_resistance_element text + pokemon_resistance_amount text + pokemon_weakness_element text + pokemon_weakness_amount text +} + +Table artist { + artist_id int [primary key] + artist_name text +} + +Table attack { + attack_id int [primary key] + attack_name text + attack_description text + attack_element text + attack_energy_cost int + attack_damage int +} + +Ref: "pokemon"."pokemon_id" ?? "attack"."attack_id" \ No newline at end of file