-- Site settings for managing hero and background images
CREATE TABLE IF NOT EXISTS site_settings (
    uuid                 UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    hero_image_url       TEXT,
    background_image_url TEXT,
    updated_at           TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);

-- Insert default settings with the previously hardcoded URLs
INSERT INTO site_settings (uuid, hero_image_url, background_image_url, updated_at)
VALUES (
    gen_random_uuid(),
    'https://avatars.mds.yandex.net/get-altay/1880524/2a0000016ef11d02f18395e01a44f0ddbdb7/XXL_height',
    'https://avatars.mds.yandex.net/get-altay/1880524/2a0000016ef11d02f18395e01a44f0ddbdb7/XXL_height',
    CURRENT_TIMESTAMP
) ON CONFLICT DO NOTHING;
