Обновить lesson0.sql

This commit is contained in:
2026-10-01 12:46:11 +00:00
parent 8d71bc14d7
commit 69b0e14555
+5 -5
View File
@@ -1,4 +1,4 @@
create table card (
CREATE TABLE card (
card_id int primary key
card_name text not null
card_stage text not null
@@ -15,7 +15,7 @@ create table card (
card_illustrator_id int not null
);
create table card_set (
CREATE TABLE card_set (
card_set_id int primary key foreign key
card_set_name text not null
card_set_code text not null
@@ -23,7 +23,7 @@ create table card_set (
set_release_date date not null
);
create table attack (
CREATE TABLE attack (
attack_id int primary key foreign key
attack_name text not null
attack_base_damage text not null, check (attack_base_damage > 0)
@@ -31,12 +31,12 @@ create table attack (
attack_card_id int not null
);
create table element_type (
CREATE TABLE element_type (
element_type_id int primary key foreign key
element_type_name text not null
);
create table illustrator (
CREATE TABLE illustrator (
illustrator_id int primary key foreign key
illustrator_name text not null
);