Files
base-sql/works/lab-01/work2
T

36 lines
889 B
Plaintext

Table card {
card_id int [primary key]
card_name text [NOT NULL]
card_stage text [NOT NULL]
card_hp int [NOT NULL, check:`card_hp>0`]
card_num_pokedeks int [NOT NULL]
card_category text [NOT NULL]
card_weight numeric [NOT NULL, check:`card_weight>0`]
card_height numeric [NOT NULL, check:`card_height>0`]
card_retreat_cost int [NOT NULL]
card_year date
illustrator_id int [primary key]
}
Table card_set {
card_code_set int [ primary key]
card_set_name text [NOT NULL]
card_date date
}
Table attack {
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]
}