Files
base-sql/works/lab-01/dbdiagram.txt
T

49 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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" ?<? "card"."pokemon_id"
Ref: "artist"."artist_id" ?<? "card"."artist_id"
Ref: "card"."attack_id" ?>? "attack"."attack_id"