summaryrefslogtreecommitdiff
path: root/spring-boot/10-role-based-security/src/main/resources/data.sql
diff options
context:
space:
mode:
Diffstat (limited to 'spring-boot/10-role-based-security/src/main/resources/data.sql')
-rw-r--r--spring-boot/10-role-based-security/src/main/resources/data.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/spring-boot/10-role-based-security/src/main/resources/data.sql b/spring-boot/10-role-based-security/src/main/resources/data.sql
new file mode 100644
index 0000000..5318008
--- /dev/null
+++ b/spring-boot/10-role-based-security/src/main/resources/data.sql
@@ -0,0 +1,5 @@
+INSERT INTO user_account (username, password, description) VALUES ('admin','$argon2id$v=19$m=16,t=2,p=1$YnJERWhhY0RxV1hGMFNWVg$OHRvhGZx1x9KqCoVZOfUD2TkJc+HQB5SamgYejw+K2Y', 'Admin user');
+INSERT INTO user_account (username, password, description) VALUES ('user1','$argon2id$v=19$m=16,t=2,p=1$YnJERWhhY0RxV1hGMFNWVg$OHRvhGZx1x9KqCoVZOfUD2TkJc+HQB5SamgYejw+K2Y', 'Normal user 1');
+
+INSERT INTO user_roles (user_id, role_name) VALUES (1, 'ADMIN');
+INSERT INTO user_roles (user_id, role_name) VALUES (2, 'USER'); \ No newline at end of file