mirror of
https://github.com/Alvin-Zilverstand/pokedex.git
synced 2026-12-01 02:17:51 +01:00
Add sample data to user_pokemon table
This commit is contained in:
1 parent
4ec771769d
commit
f51b3d6a83
1 file changed
+9
@@ -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