generated from admin/template
Обновить works/lab-01/Readme.md
This commit is contained in:
+37
-32
@@ -2,64 +2,69 @@
|
|||||||
|
|
||||||
* **Студент:** [Жукаускайте Елизавета]
|
* **Студент:** [Жукаускайте Елизавета]
|
||||||
* **Вариант / Карточка:** [Например: #025 Pikachu]
|
* **Вариант / Карточка:** [Например: #025 Pikachu]
|
||||||
|
|
||||||
---
|
|
||||||
Table card {
|
Table card {
|
||||||
card_id int [primary key]
|
card_id int [primary key]
|
||||||
card_stage text
|
card_hp int [check:`card_hp>0`]
|
||||||
card_name text
|
card_stage text [unique]
|
||||||
card_rare text
|
card_name text [not null]
|
||||||
card_weight numeric
|
card_rare text [unique]
|
||||||
card_height numeric
|
card_weight numeric [not null,check:`card_weight>0`]
|
||||||
card_element_type_id int
|
card_height numeric [not null,check:`card_height>0`]
|
||||||
card_element_type_name text
|
card_element_type_id int [primary key]
|
||||||
card_number numeric
|
card_element_type_name text [not null]
|
||||||
card_retreat_cost numeric
|
card_number numeric [unique]
|
||||||
|
card_retreat_cost numeric [not null]
|
||||||
card_date_of_release date
|
card_date_of_release date
|
||||||
illusrator_id text
|
illusrator_id text [not null]
|
||||||
card_set_id int [not null]
|
card_set_id int [not null]
|
||||||
|
card_attack text
|
||||||
}
|
}
|
||||||
Table artist{
|
Table artist{
|
||||||
illustrator_id int
|
illustrator_id int [primary key]
|
||||||
illustrator_name text
|
illustrator_name text [not null]
|
||||||
|
|
||||||
}
|
}
|
||||||
Table card_set{
|
Table card_set{
|
||||||
card_set_name text
|
card_set_name text [not null]
|
||||||
card_set_id int [primary key]
|
card_set_id int [primary key]
|
||||||
card_set_code text
|
card_set_code text [unique]
|
||||||
card_set_total_cards int
|
card_set_total_cards int [check:` card_set_total_cards>0`]
|
||||||
card_set_release_date date
|
card_set_release_date date [not null]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Table element_type{
|
Table element_type{
|
||||||
element_type_id int
|
element_type_id int [unique]
|
||||||
element_type_name text
|
element_type_name text [unique]
|
||||||
}
|
}
|
||||||
|
|
||||||
Table attack_energy{
|
Table attack_energy{
|
||||||
attack_id int [primary key]
|
attack_id int [unique]
|
||||||
}
|
}
|
||||||
|
|
||||||
Table card_attack{
|
Table card_attack{
|
||||||
attack_id int
|
attack_id int [primary key]
|
||||||
attack_name text
|
attack_name text [not null]
|
||||||
attack_base_damage text
|
attack_base_damage int [check: `attack_base_damage>0`]
|
||||||
attack_effect text
|
attack_effect text [not null]
|
||||||
attack_card_id int
|
attack_card_id int [unique]
|
||||||
|
attack_dmg int [check: `attack_dmg>0`]
|
||||||
|
attack_damage_modifier text [not null]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Ref: "card"."illusrator_id" ?<>? "artist"."illustrator_id"
|
|
||||||
|
|
||||||
Ref: "card"."card_set_id" ?> "card_set"."card_set_id"
|
|
||||||
|
|
||||||
Ref: "card"."card_element_type_id" ?<>? "element_type"."element_type_id"
|
Ref: "card"."illusrator_id" > "artist"."illustrator_id"
|
||||||
|
|
||||||
Ref: "card_attack"."attack_id" ?>? "card"."card_id"
|
|
||||||
|
|
||||||
Ref: "attack_energy"."attack_id" ?<? "card_attack"."attack_id"
|
Ref: "card"."card_set_id" > "card_set"."card_set_id"
|
||||||
|
|
||||||
|
Ref: "card_attack"."attack_card_id" ?- "attack_energy"."attack_id"
|
||||||
|
|
||||||
|
|
||||||
|
Ref: "card_attack"."attack_dmg" ?>? "card_attack"."attack_card_id"
|
||||||
|
|
||||||
|
Ref: "card"."card_element_type_id" ?-? "element_type"."element_type_id"
|
||||||
Reference in New Issue
Block a user