From a7b0bc1dd0672bb9bb44d7c47b589cf5768700e0 Mon Sep 17 00:00:00 2001 From: salfetka5 Date: Mon, 7 Sep 2026 08:38:41 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20works/lab-01/lesson1=5Fresult.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/lab-01/lesson1_result.txt | 51 ++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 20 deletions(-) diff --git a/works/lab-01/lesson1_result.txt b/works/lab-01/lesson1_result.txt index 1bc8f4d..c5ff2c4 100644 --- a/works/lab-01/lesson1_result.txt +++ b/works/lab-01/lesson1_result.txt @@ -1,30 +1,41 @@ Сущность: card -- card_id: INT -- card_name: TEXT -- stage: TEXT -- hp: INT or NUMERIC -- pokedex_number: INT -- category: TEXT -- height: numeric -- weight: numeric -- retreact_cost: INT or NUMERIC -- release_date: DATE +- card_id: INT [primary key, auto_increment] +- card_name: TEXT UNIQUE NOT NULL +- stage: TEXT NOT NULL +- hp: INT or NUMERIC NOT NULL CHECK +- pokedex_number: INT UNIQUE NOT NULL +- category: TEXT NOT NULL +- height: numeric NOT NULL +- weight: numeric NOT NULL +- retreat_cost: INT or NUMERIC +- release_date: DATE NOT NULL + +- illustrator_name: TEXT [foreign key references illustrator(illustrator_name)] NOT NULL +- set_id: INT [foreign key references card_set(set_id)] NOT NULL + + +CONSTRAINT check_hp CHECK (hp > 0) +CONSTAINT check_antropometrics CHECK (height > 0 AND weight > 0) + Сущность card_set -- set_name: TEXT -- set_code: INT -- card_amount: INT -- release_date: DATE +- set_id: INT [primary key, auto_increment] +- set_name: TEXT UNIQUE NOT NULL +- set_code: INT NOT NULL +- card_amount: INT NOT NULL +- release_date: DATE NOT NULL Сущность: attack -- attack_name: TEXT -- base_damage: TEXT -- text_effect: TEXT +- attack_id: INT [primary key, auto_increment] +- attack_name: TEXT NOT NULL +- base_damage: TEXT NOT NULL +- text_effect: TEXT Сущность: element_type: -- element_name: TEXT +- element_id: INT [primary key, auto_increment] +- element_name: TEXT NOT NULL Сущность: illustrator -- illustrator_name: TEXT - +- illustrator_id: INT [primary key, auto_increment] +- illustrator_name: TEXT NOT NULL UNIQUE \ No newline at end of file