forked from admin/template
Обновить lesson0.sql
This commit is contained in:
+5
-5
@@ -1,4 +1,4 @@
|
|||||||
create table card (
|
CREATE TABLE card (
|
||||||
card_id int primary key
|
card_id int primary key
|
||||||
card_name text not null
|
card_name text not null
|
||||||
card_stage text not null
|
card_stage text not null
|
||||||
@@ -15,7 +15,7 @@ create table card (
|
|||||||
card_illustrator_id int not null
|
card_illustrator_id int not null
|
||||||
);
|
);
|
||||||
|
|
||||||
create table card_set (
|
CREATE TABLE card_set (
|
||||||
card_set_id int primary key foreign key
|
card_set_id int primary key foreign key
|
||||||
card_set_name text not null
|
card_set_name text not null
|
||||||
card_set_code text not null
|
card_set_code text not null
|
||||||
@@ -23,7 +23,7 @@ create table card_set (
|
|||||||
set_release_date date not null
|
set_release_date date not null
|
||||||
);
|
);
|
||||||
|
|
||||||
create table attack (
|
CREATE TABLE attack (
|
||||||
attack_id int primary key foreign key
|
attack_id int primary key foreign key
|
||||||
attack_name text not null
|
attack_name text not null
|
||||||
attack_base_damage text not null, check (attack_base_damage > 0)
|
attack_base_damage text not null, check (attack_base_damage > 0)
|
||||||
@@ -31,12 +31,12 @@ create table attack (
|
|||||||
attack_card_id int not null
|
attack_card_id int not null
|
||||||
);
|
);
|
||||||
|
|
||||||
create table element_type (
|
CREATE TABLE element_type (
|
||||||
element_type_id int primary key foreign key
|
element_type_id int primary key foreign key
|
||||||
element_type_name text not null
|
element_type_name text not null
|
||||||
);
|
);
|
||||||
|
|
||||||
create table illustrator (
|
CREATE TABLE illustrator (
|
||||||
illustrator_id int primary key foreign key
|
illustrator_id int primary key foreign key
|
||||||
illustrator_name text not null
|
illustrator_name text not null
|
||||||
);
|
);
|
||||||
Reference in New Issue
Block a user