-- src/main/resources/data.sql
#
INSERT INTO tb_role (id, name)
SELECT 1, 'ROLE_USER'
WHERE NOT EXISTS (SELECT 1 FROM tb_role WHERE id = 1);

INSERT INTO tb_role (id, name)
SELECT 2, 'ROLE_MODERATOR'
WHERE NOT EXISTS (SELECT 1 FROM tb_role WHERE id = 2);

INSERT INTO tb_role (id, name)
SELECT 3, 'ROLE_ADMIN'
WHERE NOT EXISTS (SELECT 1 FROM tb_role WHERE id = 3);

INSERT INTO autoflow.tb_user (id, username, email, password) VALUES (1, 'admin', 'admin123@naver.com', '$2a$10$Nqkjg2IpDoTzrbHEgZGiceSOBXy1f6jI7AC/JIIuaLOLs.3FcODdm');
INSERT INTO autoflow.tb_user (id, username, email, password) VALUES (2, 'test', 'test@naver.com', '$2a$10$LJ/Ln/tP976l/z6RO3o1AuT/BQDHEHO7D7wA.YFIHbdGDI3B5avju');
INSERT INTO autoflow.tb_user (id, username, email, password) VALUES (3, 'testuser', 'test@example.com', '$2a$10$iSpdIsx17F7qrHLhkRAtWe79QqZYUmKWkyAJsp1FwIXQV.Jb6e6ym');
INSERT INTO autoflow.tb_user (id, username, email, password) VALUES (4, 'cuuva', 'cuuva@cuuva.com', '$2a$10$bVqcCLeCATq8GIO29H53qep3ALXA.qtXZrtVqXpXcik1vDrsSFZwC');
