aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/fixtures/dev.sql
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-30 00:27:46 +0900
committernsfisis <nsfisis@gmail.com>2024-07-30 00:27:46 +0900
commit432593ddc20e4248c6fe134d13f9c25bad7e39f7 (patch)
treeb60ac9ce2102367f345110d451abe19e1b6219bf /backend/fixtures/dev.sql
parent7e2704c90ffba3612bd87ed342d4f310b0de78c0 (diff)
parent0908e5d2041ded22969da7d66ead59d5037d40dd (diff)
downloadphperkaigi-2025-albatross-432593ddc20e4248c6fe134d13f9c25bad7e39f7.tar.gz
phperkaigi-2025-albatross-432593ddc20e4248c6fe134d13f9c25bad7e39f7.tar.zst
phperkaigi-2025-albatross-432593ddc20e4248c6fe134d13f9c25bad7e39f7.zip
Merge branch 'feat/local-dev'
Diffstat (limited to 'backend/fixtures/dev.sql')
-rw-r--r--backend/fixtures/dev.sql37
1 files changed, 37 insertions, 0 deletions
diff --git a/backend/fixtures/dev.sql b/backend/fixtures/dev.sql
new file mode 100644
index 0000000..3549d86
--- /dev/null
+++ b/backend/fixtures/dev.sql
@@ -0,0 +1,37 @@
+INSERT INTO users
+(username, display_name, icon_path, is_admin)
+VALUES
+ ('a', 'TEST A', NULL, FALSE),
+ ('b', 'TEST B', NULL, FALSE),
+ ('c', 'TEST C', NULL, TRUE);
+
+INSERT INTO user_auths
+(user_id, auth_type)
+VALUES
+ (1, 'bypass'),
+ (2, 'bypass'),
+ (3, 'bypass');
+
+INSERT INTO problems
+(title, description)
+VALUES
+ ('TEST problem 1', 'This is TEST problem 1'),
+ ('TEST problem 2', 'This is TEST problem 2'),
+ ('TEST problem 3', 'This is TEST problem 3');
+
+INSERT INTO games
+(state, display_name, duration_seconds, problem_id)
+VALUES
+ ('waiting_entries', 'TEST game 1', 180, 1),
+ ('closed', 'TEST game 2', 180, 2),
+ ('finished', 'TEST game 3', 180, 3);
+
+INSERT INTO game_players
+(game_id, user_id)
+VALUES
+ (1, 1),
+ (1, 2),
+ (2, 1),
+ (2, 2),
+ (3, 1),
+ (3, 2);