add `/<uuid> route + backend handling

This commit is contained in:
2025-08-02 19:11:39 +02:00
parent 9badb4a4ad
commit 96a9ab361a
10 changed files with 116 additions and 50 deletions

View File

@@ -1,5 +1,5 @@
-- Insert test users
INSERT INTO user (uuid, name) VALUES
-- Insert test clients
INSERT INTO client (uuid, name) VALUES
('550e8400-e29b-41d4-a716-446655440001', 'Alice Johnson'),
('550e8400-e29b-41d4-a716-446655440002', 'Bob Smith'),
('550e8400-e29b-41d4-a716-446655440003', 'Carol Williams'),
@@ -16,7 +16,7 @@ INSERT INTO camera (uuid, desc, name) VALUES
('750e8400-e29b-41d4-a716-446655440006', 'Rooftop panoramic view', 'Rooftop Cam');
-- Insert test sightings
INSERT INTO sightings (user_uuid, sighted_at, camera_id) VALUES
INSERT INTO sightings (client_uuid, sighted_at, camera_id) VALUES
('550e8400-e29b-41d4-a716-446655440001', '2025-08-01 09:15:30', '750e8400-e29b-41d4-a716-446655440001'),
('550e8400-e29b-41d4-a716-446655440001', '2025-08-01 14:22:45', '750e8400-e29b-41d4-a716-446655440002'),
('550e8400-e29b-41d4-a716-446655440002', '2025-08-01 11:08:12', '750e8400-e29b-41d4-a716-446655440003'),