mirror of
https://github.com/Alvin-Zilverstand/pokedex.git
synced 2026-03-06 11:07:31 +01:00
Add sample data to user_pokemon table
This commit is contained in:
@@ -105,3 +105,12 @@ CREATE TABLE IF NOT EXISTS user_pokemon (
|
|||||||
PRIMARY KEY (user_id, pokemon_id),
|
PRIMARY KEY (user_id, pokemon_id),
|
||||||
FOREIGN KEY (pokemon_id) REFERENCES pokemon(id)
|
FOREIGN KEY (pokemon_id) REFERENCES pokemon(id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Insert sample data into the user_pokemon table
|
||||||
|
INSERT INTO user_pokemon (user_id, pokemon_id) VALUES
|
||||||
|
(1, 1),
|
||||||
|
(1, 2),
|
||||||
|
(2, 3),
|
||||||
|
(2, 4),
|
||||||
|
(3, 5),
|
||||||
|
(3, 6);
|
||||||
|
|||||||
Reference in New Issue
Block a user