INSERT INTO users (username, password, email, firstName, lastName, fullName, phone, avatarUrl, role, staffRole, primaryStoreId, loyaltyPoints, active, tokenVersion)
SELECT 'ai.bot',
       '$2a$10$mE0D/HrnCuqFeEqMy0NJwuy2jkoRYjQ7GrKcc/7QQ0r2AqnZTvyGq',
       'bot@petshop.com',
       'AI',
       'Bot',
       'AI Bot',
       '000-000-0000',
       'https://images.petshop.local/users/bot.webp',
       'STAFF',
       'CUSTOMER_SERVICE',
       NULL,
       0,
       1,
       0
FROM DUAL
WHERE NOT EXISTS (
    SELECT 1
    FROM users
    WHERE username = 'ai.bot'
);
