diff --git a/uy.txt b/uy.txt index 034b84e..5231e4d 100644 --- a/uy.txt +++ b/uy.txt @@ -1,24 +1,34 @@ Сущность - card --name: TEXT --height: NUMERIC --weight: NUMERIC --card_hp: INT --rarity: TEXT +-card_id: int (not null, unique) +-card_name: TEXT (not null) +-card_hp: NUMERIC (not null, check) +-Height: NUMERIC (not null, check) +-weight: NUMERIC (not null, check) +-rarity: TEXT (not null) + +CONSTRAINT hp check (hp > 0) +CONSTRAINT Height check (Height > 0) Сущность - cars_set --releaced date: DATE --set_name: TEXT --set_code: INT +-set_id: int (not null, unique) +-set_releaced date: DATE (not null) +-set_name: TEXT (not null) +-set_code: INT (not null, unique) Сущность: - attack --attack_name: TEXT --attack_base_damage: text +-attack_id: int (not null) +-attack_name: TEXT (not null, ) +-attack_base_damage: text (not null) -attack_effect: TEXT +CONSTRAINT attack_base_damage check (attack > 0) + Сущность - element_type --element_type_name: TEXT +-element_type_name: TEXT (not null) +-element_type_id: int (not null) Сущность: - illustrator --illustrator_name: TEXT +-illustrator_name: TEXT (not null) +-illustrator_id: int (not null)