generated from admin/template
aa
This commit is contained in:
@@ -12,7 +12,16 @@ Table card_set {
|
|||||||
card_set_release_date date [null]
|
card_set_release_date date [null]
|
||||||
card_set_total_cards int [null, check: `card_set_total_cards > 0`]
|
card_set_total_cards int [null, check: `card_set_total_cards > 0`]
|
||||||
}
|
}
|
||||||
|
Table pokemon {
|
||||||
|
pokemon_id int [pk, check: `card_hp > 0`]
|
||||||
|
pokemon_attack_id int [not null, ref: > attack.attack_id]
|
||||||
|
pokemon_attack_position int [null, check: `card_attack_position > 0`]
|
||||||
|
pokemon_height numeric
|
||||||
|
pokemon_weight numeric
|
||||||
|
}
|
||||||
|
Table trainer {
|
||||||
|
trainer_id int [pk, increment]
|
||||||
|
}
|
||||||
Table element_type {
|
Table element_type {
|
||||||
element_type_id int [pk, increment]
|
element_type_id int [pk, increment]
|
||||||
element_type_name text [not null, unique]
|
element_type_name text [not null, unique]
|
||||||
@@ -38,6 +47,7 @@ Table card {
|
|||||||
card_image_url text [null]
|
card_image_url text [null]
|
||||||
illustrator_id int [not null, ref: > illustrator.illustrator_id]
|
illustrator_id int [not null, ref: > illustrator.illustrator_id]
|
||||||
card_set_id int [not null, ref: > card_set.card_set_id]
|
card_set_id int [not null, ref: > card_set.card_set_id]
|
||||||
|
pokemon_id int [not null, ref: > pokemon.pokemon_id]
|
||||||
}
|
}
|
||||||
|
|
||||||
Table card_attack {
|
Table card_attack {
|
||||||
@@ -52,4 +62,4 @@ Table attack_energy_cost {
|
|||||||
attack_id int [not null, ref: > attack.attack_id]
|
attack_id int [not null, ref: > attack.attack_id]
|
||||||
element_type_id int [not null, ref: > element_type.element_type_id]
|
element_type_id int [not null, ref: > element_type.element_type_id]
|
||||||
energy_quantity int [not null, check: `energy_quantity > 0`]
|
energy_quantity int [not null, check: `energy_quantity > 0`]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user