-- 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);

