Skip to content

Khalil Abdellah March 2#20

Open
cv-net wants to merge 1 commit intocode-differently:mainfrom
cv-net:main
Open

Khalil Abdellah March 2#20
cv-net wants to merge 1 commit intocode-differently:mainfrom
cv-net:main

Conversation

@cv-net
Copy link
Copy Markdown

@cv-net cv-net commented Mar 3, 2021

No description provided.

Copy link
Copy Markdown
Contributor

@kburd kburd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work so far, Next step is to render the pokemon data on the frontend

SELECT * FROM PokeTypes;
SELECT * FROM Pokemon;

INSERT INTO PokeTypes VALUES (1, 'normal'), (2, 'fire'), (3, 'water'), (4, 'electric'), (5, 'grass'), (6, 'ice'), (7, 'fighting'), (8, 'poison'), (9, 'ground'), (10, 'flying'), (11, 'psychic'), (12, 'bug'), (13, 'rock'), (14, 'ghost'), (15, 'dragon'), (16, 'dark'), (17, 'steel'), (18, 'fairy');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We generally don't include insertion statements in the schema

FOREIGN KEY (PokemonID) REFERENCES Pokemon(ID),
FOREIGN KEY (Type1) REFERENCES PokeTypes(ID),
FOREIGN KEY (Type2) REFERENCES PokeTypes(ID)
); No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove one of the two sql files, they both hold the same data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants