From 41b068b6d48f9d82babd1cfce3520ad0b28be861 Mon Sep 17 00:00:00 2001
From: Kamal Wickramanayake <kamal@inbox.lk>
Date: Sat, 20 Jun 2026 18:25:56 +0530
Subject: Added Spring Boot role based security sample application

---
 spring-boot/10-role-based-security/src/main/resources/data.sql | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 spring-boot/10-role-based-security/src/main/resources/data.sql

(limited to 'spring-boot/10-role-based-security/src/main/resources/data.sql')

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
-- 
cgit v1.2.3

