From c0650ee888786d09e9ec30f53f11fc0924836634 Mon Sep 17 00:00:00 2001 From: vlad1winstavki_1 Date: Tue, 8 Sep 2026 07:29:57 +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/sqllab1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/sqllab1 | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/works/sqllab1 b/works/sqllab1 index 9a3da30..25cfa07 100644 --- a/works/sqllab1 +++ b/works/sqllab1 @@ -18,7 +18,15 @@ table card_set { set_total_cards int [null, check: `set_total_cards > 0` ] card_set_id int [not null, increment] } - +table pockemon { + pockemon_name text [not null] + pockemon_id int [pk, increment] + pockemon_hp int [not null, check: `pockemon_hp > 0`] + pockemon_release_date date [null] + pockemon_inge_url text [null] + pockemon_base_attack int [null, check: `pockemon_base_attack > 0`] + +} table attack { attack_name text [not null] attack_base_damage int [null, check: `attack_base_damge >= 0`] @@ -52,4 +60,15 @@ table attack_energy_cost { attack_id int [not null, ref: > attack.attack_id] element_type_id int [not null, ref: >element_type.element_type_id] energy_quality int [not null, check: `energy_quality > 0`] -} \ No newline at end of file +} + + + +Ref: "pockemon"."pockemon_id" "pockemon"."pockemon_name" + +Ref: "card"."card_hp" <> "pockemon"."pockemon_hp" \ No newline at end of file