generated from admin/template
Добавить works/lesson1
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
Table card {
|
||||
card_id int [pk]
|
||||
card_pokemon_id int
|
||||
card_description text
|
||||
card_number_in_set text
|
||||
card_rarity text
|
||||
card_set_id int [not null]
|
||||
card_illustrator_id int [not null]
|
||||
card_height_m numeric
|
||||
card_weight_kg numeric
|
||||
card_hp int
|
||||
card_attack_id int
|
||||
card_retreat_cost int
|
||||
}
|
||||
Table card_set {
|
||||
card_set_id int [pk]
|
||||
card_set_name text
|
||||
card_set_year date
|
||||
}
|
||||
Table attack {
|
||||
attack_id int [pk]
|
||||
attack_name text
|
||||
attack_base_damage text
|
||||
}
|
||||
Table element_type {
|
||||
element_type_id int [pk]
|
||||
element_type_name text
|
||||
}
|
||||
Table card_attack {
|
||||
card_attack_id int [pk]
|
||||
card_id int [not null]
|
||||
attack_id int [not null]
|
||||
}
|
||||
Table attack_energy_cost {
|
||||
attack_energy_cost_id int [pk]
|
||||
attack_id int [not null]
|
||||
element_type_id int [not null]
|
||||
energy_quantity int
|
||||
}
|
||||
Table illustrator {
|
||||
illustrator_id int [pk]
|
||||
illustrator_name text
|
||||
}
|
||||
Ref: card.card_illustrator_id > illustrator.illustrator_id
|
||||
Ref: card.card_set_id > card_set.card_set_id
|
||||
Ref: card_attack.card_id > card.card_id
|
||||
Ref: card_attack.attack_id > attack.attack_id
|
||||
Ref: attack_energy_cost.attack_id > attack.attack_id
|
||||
Ref: attack_energy_cost.element_type_id > element_type.element_type_id
|
||||
Reference in New Issue
Block a user