-- ============================================================
-- SEED DATA för quiXzoom Token System
-- ============================================================

-- Skapa test-zoomer
INSERT INTO zoomers (id, name, email, phone, status, capabilities)
VALUES (
    '550e8400-e29b-41d4-a716-446655440000',
    'Demo Zoomer',
    'demo@quixzoom.com',
    '+46701234567',
    'active',
    '["video", "photo"]'
);

-- Skapa test-område
INSERT INTO areas (id, name, country, city, priority, status)
VALUES (
    '550e8400-e29b-41d4-a716-446655440001',
    'Stockholm City',
    'SE',
    'Stockholm',
    0.8,
    'active'
);

-- Skapa prissättning för olika mission-typer
-- 1 QZ TOKEN = *** USD
INSERT INTO mission_pricing (mission_type, base_price_qz_token, base_price_usd, complexity_multiplier, min_price_qz_token, max_price_qz_token, country_code, city)
VALUES 
    ('verify', 2.5, 2.5, 1.0, 0.5, 100.0, 'SE', 'Stockholm'),
    ('explore', 5.0, 5.0, 1.2, 1.0, 150.0, 'SE', 'Stockholm'),
    ('document', 3.5, 3.5, 1.1, 0.75, 120.0, 'SE', 'Stockholm'),
    ('diversify', 4.0, 4.0, 1.3, 1.0, 200.0, 'SE', 'Stockholm');

-- Skapa test-mission
INSERT INTO missions (id, mission_id, type, area_id, status, priority, instructions)
VALUES (
    '550e8400-e29b-41d4-a716-446655440002',
    'mission_demo_001',
    'verify',
    '550e8400-e29b-41d4-a716-446655440001',
    'pending',
    0.7,
    '["Fotografera fasad", "Kontrollera skador", "Dokumentera med GPS"]'
);

-- Skapa test-objekt
INSERT INTO objects (id, object_id, type, subtype, status, verification_status, confidence)
VALUES (
    '550e8400-e29b-41d4-a716-446655440003',
    'street_lamp_001',
    'street_lamp',
    'LED',
    'active',
    'unverified',
    0.0
);
