add function to be able to delete names

This commit is contained in:
2025-08-21 12:31:31 +02:00
parent c74500adfd
commit a0eddece86
8 changed files with 305 additions and 40 deletions

View File

@@ -24,3 +24,8 @@ CREATE TABLE sightings (
-- Create indexes for better performance on foreign key lookups
CREATE INDEX idx_sightings_client_uuid ON sightings(client_uuid);
CREATE INDEX idx_sightings_camera_id ON sightings(camera_id);
CREATE TABLE banned_names (
name TEXT PRIMARY KEY NOT NULL,
banned_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);