diff --git a/fff.txt b/fff.txt index d54bcee..e97f94e 100644 --- a/fff.txt +++ b/fff.txt @@ -1,24 +1,33 @@ 1) Сущность - Card --Name: TEXT --Height: numeric --Weight: numeric --Attack name: TEXT --rarity: text +-Name: TEXT (not null,unique) +-Height: numeric (not null,) +-Weight: numeric (not null,) +-Attack name: TEXT (not null, unique) +-rarity: text (not null) -stage: int +-card_id: int (not null, unique) +-card_hp: int (not null) + +CONSTRAINT Height CHECK (height > 0) +CONSTRAINT card_hp CHECK (hp > 0) 2) Сущность: Card_set -set_name: text -relaced date : date +-set_name: text (not null, unique) +-relaced date : date (not null) +-set_id: int (not null, unique) +-set_code: int (not null) 3) Сущность: attack -attack name: text -attack base damage: int -attack effect: text +-attack name: text (not null, unique) +-attack base damage: int (not null) +-attack effect: text + +CONSTRAINT attack base damage CHECK (att > 0) 4) Сущность: element type -element type name: text +-element type name: text (not null) +-element_type_id: int (not null) 5) Сущность: illustrator -illustrator name: text - - +-illustrator name: text (not null) +-illustrator_id: int (not null) \ No newline at end of file