generated from admin/template
лаба
This commit is contained in:
@@ -0,0 +1,32 @@
|
|||||||
|
сущность:card
|
||||||
|
card_id: int (PK)
|
||||||
|
card_name: text (NOT NULL)
|
||||||
|
card_hp: int (NOT NULL)
|
||||||
|
card_set: date (FK card_set.card_set_id)
|
||||||
|
card_weigt_kg: numeric (NOT NULL)
|
||||||
|
card_height_m: numeric (NOT NULL)
|
||||||
|
card_attack_dammage: int (FK attack.attack_id)
|
||||||
|
card_element_id: int (FK element.element_id)
|
||||||
|
illustrator_id: int (FK illustrator.illustrator_id)
|
||||||
|
card_rare text: (NOT NULL)
|
||||||
|
card_retreatcost numeric: (NOT NULL)
|
||||||
|
CHECK(card_hp > 0,card_weigt_kg > 0,card_height_m > 0)
|
||||||
|
сущность: illustrator
|
||||||
|
illustrator_id: int (PK)
|
||||||
|
illustrator_name: text (NOT NULL)
|
||||||
|
CHECK(illustrator_id > 0)
|
||||||
|
сущность:element
|
||||||
|
element_id: int (PK,)
|
||||||
|
element_type_name text (NOT NULL)
|
||||||
|
сущность: attack
|
||||||
|
attack_id: int (PK)
|
||||||
|
attack_damage: int (NOT NULL)
|
||||||
|
attack_type_name: text (NOT NULL)
|
||||||
|
attack_energy: int (NOT NULL)
|
||||||
|
attack_damage_modifier: text
|
||||||
|
сущность:card_set
|
||||||
|
card_set_id: int (PK)
|
||||||
|
card_set: date (NOT NULL)
|
||||||
|
card_set_name: text (NOT NULL)
|
||||||
|
card_set_quantitycard: int (NOT NULL)
|
||||||
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
fun main(){
|
||||||
|
val trenerName ="Эш Кетчуп"
|
||||||
|
val regionName =" Канто"
|
||||||
|
val title1 ="Значков"
|
||||||
|
val title2 ="Покемонов в Покедексе"
|
||||||
|
val value1 ='8'
|
||||||
|
val value2 ="150"
|
||||||
|
println( "=== БАЗА ДАННЫХ ТРЕНЕРОВ ===")
|
||||||
|
println("Тренер: $trenerName")
|
||||||
|
println("Родной регион:$regionName")
|
||||||
|
print("Значков: $value1 | ")
|
||||||
|
print("Покемонов в Покедексе: $value2")
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user