Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
20 changes: 20 additions & 0 deletions data/schema.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-- create database pokedex;
use pokedex;
CREATE TABLE Pokemon(
pokemon_ID INT PRIMARY KEY NOT NULL,
pokemon_image blob,
pokemon_type varchar(50),
pokemon_name varchar(50)
);

CREATE TABLE Types (
type_ID INT PRIMARY KEY NOT NULL,
type_name varchar(50)
);
CREATE TABLE Poke_Type (
pokeType_ID INT PRIMARY KEY NOT NULL,
pokemon_ID INT NOT NULL,
FOREIGN KEY (pokemon_ID) REFERENCES Pokemon(pokemon_ID),
type_ID INT NOT NULL,
FOREIGN KEY (type_ID) REFERENCES Types(type_ID)
);
Loading