Files
boc/quixzoom-token-system/seed.sql
T
Bernt 58ca4e68db feat(boc): Complete Business Operations Center v1.0
- Go backend API with full CRUD for all modules (CRM, Sales, Finance, HR, Legal, Marketing, Support, Purchase, Inventory, Projects, Automation, Analytics)
- Rust analytics service with parallel report generation
- C runtime with POSIX shared memory IPC
- PostgreSQL schema with 30+ tables, full migrations
- Redis cache, sessions, pub/sub
- Kafka event streaming with Zookeeper
- WebSocket hub for real-time updates
- Automation engine with cron jobs, workflows, event triggers
- JWT authentication, multi-tenant from start
- Docker Compose with all services
- Nginx reverse proxy with rate limiting
- Integration tests passing
- Feature gap analysis against Fortnox/Odoo/Visma

Refs: BOC-001
2026-07-12 12:41:35 +00:00

59 lines
1.7 KiB
SQL

-- ============================================================
-- 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
);