Skip to content

Commit bd4ea39

Browse files
committed
[UNCAIM-177][haoran]test: bulk upload test user
1 parent f35860a commit bd4ea39

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
DO $$
2+
DECLARE
3+
i INT := 1;
4+
user_count INT := 10;
5+
BEGIN
6+
WHILE i <= user_count LOOP
7+
INSERT INTO public.user (name, email, password, salt, active)
8+
VALUES ('Test User', CONCAT('user', i, '@test.com'), ?, ?, true);
9+
i := i + 1;
10+
END LOOP;
11+
END $$;

0 commit comments

Comments
 (0)