-- V2__seed_users.sql
-- Insert akun Guardian dan User default (password sudah di-hash BCrypt)
-- guardian123 → BCrypt hash
-- user123     → BCrypt hash

INSERT INTO users (email, password, role, connected_to)
VALUES (
    'guardian@walkguide.com',
    '$2a$10$N.zmdr9k7uOCQb376NoUnuTJ8iAt6Z5EHsM8lE9lBOsl7iAt6WKGK',  -- guardian123
    'ROLE_GUARDIAN',
    NULL  -- akan di-update setelah user dibuat
)
ON CONFLICT (email) DO NOTHING;

INSERT INTO users (email, password, role, connected_to)
VALUES (
    'user@walkguide.com',
    '$2a$10$TJ.zmdr9k7uOCQb376NoUnuTJ8iAt6Z5EHsM8lE9lBOsl7iAt6WK',  -- user123
    'ROLE_USER',
    NULL
)
ON CONFLICT (email) DO NOTHING;