diff --git a/lesson0.sql b/lesson0.sql index ea787cb..3801b15 100644 --- a/lesson0.sql +++ b/lesson0.sql @@ -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 ); \ No newline at end of file