feat: initial KosmoConnect platform v0.1
Includes: - Backend services: ingestion (:8001), weather API (:8002), gateway (:8003), billing (:8004) with BTCPay integration - Shared asyncpg pool, TimescaleDB hypertable, Redis, Mosquitto MQTT - React frontend: Dashboard (MapLibre) and Messaging (chat UI) - Bridge daemon for Pi + Meshtastic (Serial/TCP T-Deck support) - Production Docker Compose, Nginx reverse proxy, ops scripts - DEPLOY.md with step-by-step deployment guide
This commit is contained in:
20
backend/migrations/002_seed_test_users.sql
Normal file
20
backend/migrations/002_seed_test_users.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
-- Seed test users and subscriptions for local gateway development
|
||||
-- Run manually when setting up a fresh dev environment
|
||||
|
||||
INSERT INTO users (id, email)
|
||||
VALUES
|
||||
('11111111-1111-1111-1111-111111111111', 'test@kosmoconnect.local'),
|
||||
('22222222-2222-2222-2222-222222222222', 'guardian@kosmoconnect.local')
|
||||
ON CONFLICT (id) DO NOTHING;
|
||||
|
||||
INSERT INTO subscriptions (id, user_id, plan_type, message_quota, valid_from, valid_until, is_active)
|
||||
VALUES
|
||||
('aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa', '11111111-1111-1111-1111-111111111111', 'wanderer', 50, NOW(), NOW() + INTERVAL '1 year', true),
|
||||
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', '22222222-2222-2222-2222-222222222222', 'guardian', 500, NOW(), NOW() + INTERVAL '1 year', true)
|
||||
ON CONFLICT DO NOTHING;
|
||||
|
||||
INSERT INTO allowed_nodes (id, user_id, mesh_node_id, nickname)
|
||||
VALUES
|
||||
('cccccccc-cccc-cccc-cccc-cccccccccccc', '22222222-2222-2222-2222-222222222222', '!a1b2c3d4', 'Base Camp'),
|
||||
('dddddddd-dddd-dddd-dddd-dddddddddddd', '22222222-2222-2222-2222-222222222222', '!b2c3d4e5', 'Lookout')
|
||||
ON CONFLICT DO NOTHING;
|
||||
Reference in New Issue
Block a user