Table card { set_id int [pk, not null] element_id int [primary key] card_id int [primary key] card_stage text [NOT NULL] card_num_pokedeks int [NOT NULL] card_category text [NOT NULL] card_year date illustrator_id int [primary key] card_rare text [not null] card_type text card_image_url text [not null] } Table card_set { set_id int [pk, not null] card_code_set int [ primary key] card_set_name text [NOT NULL] card_date date } Table attack { element_id int [primary key] attack_id int [primary key] attack_name text [NOT NULL] damage int [NOT NULL, check:`damage>0`] text_effect_attack text [NOT NULL] attack_modificator text } Table element_type { element_id int [primary key] element_name text [NOT NULL] } Table illustrator { illustrator_id int [primary key] illustrator_name text [NOT NULL] } Table card_attack { attack_id int [NOT NULL] card_id int [NOT NULL] card_attack_id int [pk] } Table element_attack { attack_id int [NOT NULL] element_id int [NOT NULL] cost int [NOT NULL] element_attack_id int [pk] } Table trainer { trainer_id int [pk] triner_name text trainer_class text illustrator_id int [pk] } Table energy { energy_id int [pk] energy_name text [pk] energy_give int energy_type text illustrator_id int [pk] } table pokemon { card_id in [pk] pokemon_category text sub_type_id text pokemon_evolution_for text pokemon_id int [pk] pokemon_name text [not null] pokemon_stage text [NOT NULL] pokemon_hp int [NOT NULL, check:`pokemon_hp>0`] card_num_pokedeks int [NOT NULL] pokemon_weight numeric [NOT NULL, check:`pokemon_weight>0`] pokemon_height numeric [NOT NULL, check:`pokemon_height>0`] pokemon_retreat_cost int pokemon_pokedex_id int illustrator_id int [pk] } Ref: "card"."illustrator_id" -? "illustrator"."illustrator_id" Ref: "element_type"."element_id" - "attack"."element_id" Ref: "element_type"."element_id" - "card"."element_id" Ref: "card_attack"."attack_id" > "attack"."attack_id" Ref: "card_attack"."card_id" ?> "card"."card_id" Ref: "element_attack"."attack_id" > "attack"."attack_id" Ref: "element_attack"."element_id" ?> "element_type"."element_id" Ref: "card"."set_id" - "card_set"."set_id" Ref: "trainer"."illustrator_id" ?<>? "card"."illustrator_id" Ref: "energy"."illustrator_id" ?<>? "card"."illustrator_id" Ref: "pokemon"."illustrator_id" ?<>? "card"."illustrator_id"