Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

1.0 KB
Raw Blame
-- Seed test data for integration tests
-- Run AFTER GORM has migrated the schema (i.e., after API starts)

-- Test user
INSERT INTO users (id, email, api_key, timezone, subscription_name, created_at, updated_at)
VALUES (
    'test-user-id',
    '[email protected]',
    'test-user-api-key',
    'UTC',
    'pro-monthly',
    NOW(),
    NOW()
) ON CONFLICT (id) DO NOTHING;

-- Test user for API key rotation tests (isolated to avoid mutating the shared test user)
INSERT INTO users (id, email, api_key, timezone, subscription_name, created_at, updated_at)
VALUES (
    'rotate-test-user-id',
    '[email protected]',
    'rotate-test-api-key',
    'UTC',
    'pro-monthly',
    NOW(),
    NOW()
) ON CONFLICT (id) DO NOTHING;

-- System user (for event queue auth)
INSERT INTO users (id, email, api_key, timezone, subscription_name, created_at, updated_at)
VALUES (
    'system-user-id',
    '[email protected]',
    'system-user-api-key',
    'UTC',
    'pro-monthly',
    NOW(),
    NOW()
) ON CONFLICT (id) DO NOTHING;