generated from admin/template
work-01, добавление кода из dbdiagram
This commit is contained in:
@@ -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" ?<? "card"."pokemon_id"
|
||||||
|
|
||||||
|
Ref: "artist"."artist_id" ?<? "card"."artist_id"
|
||||||
|
|
||||||
|
Ref: "card"."attack_id" ?>? "attack"."attack_id"
|
||||||
Reference in New Issue
Block a user