diff --git a/works/lab-01/лаба 1.txt b/works/lab-01/лаба 1.txt new file mode 100644 index 0000000..c86805e --- /dev/null +++ b/works/lab-01/лаба 1.txt @@ -0,0 +1,58 @@ + +Table card { + card_id text [primary key] + card_hp int [not null] + card_set date [not null] + card_weight_kg numeric [not null] + card_height_kg numeric [not null] + card_element text [not null] + card_illustrator text [not null] + card_rare text [not null] + card_retreatcoast int [default: 1] + illustrator_id int [not null] + element_type_id int [not null] + attack_damage text [not null] + card_set_id int [not null] +} + +Table illustrator { + illustrator_id int [primary key] + illustrator_name text +} + +Table element_type { + element_type_id int [primary key] + element_type_name text +} + + Table attack_damage { + attack_damage int [primary key] + attack_type_name text [not null] + attack_energy text [not null] +} + + Table card_set { + card_set_id int [primary key] + card_set_name text [not null] + card_set_date date [not null] + card_set_count int [not null] + } +Table card_attack { + card_attack_id int [primary key] + card_id int [not null] + attack_id int [not null] +} + + + +Ref: "illustrator"."illustrator_id"