generated from admin/template
Добавлена лаба 1 и 2
This commit is contained in:
@@ -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" <? "card"."illustrator_id"
|
||||
|
||||
Ref: "element_type"."element_type_id" <? "card"."element_type_id"
|
||||
|
||||
Ref: "attack_damage"."attack_damage" <? "card"."attack_damage"
|
||||
|
||||
Ref: "card_set"."card_set_id" <? "card"."card_set_id"
|
||||
|
||||
Ref: "attack_damage"."attack_damage" -? "card_attack"."card_attack_id"
|
||||
|
||||
Ref: "card"."card_id" -? "card_attack"."card_attack_id"
|
||||
Reference in New Issue
Block a user