Files
DarkflameServer/migrations/dlu/sqlite/44_ai_suggestions.sql
Aaron Kimbrell e213a7aeff feat: web dashboard and playground work
The NexusDashboard-parity dashboard (dDashboardServer) and everything built on it on the experimental branch:
accounts, characters, properties and moderation tools, permissions shared with in-game slash commands, economy
reports, World 3D and property 3D views with client scenery, scheduled events (features, vanity changes, live
events, announcements, restarts), vanity files and events, the CDClient browser, the message inspector with saved
captures, chat filter tools, community challenges, live ops, the AI moderator helper, and the server-side changes
they need.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:30:43 -05:00

20 lines
782 B
SQL

/* AI moderator helper suggestions (staff only). See the MySQL migration. */
CREATE TABLE IF NOT EXISTS ai_suggestions (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
kind TEXT NOT NULL,
item_id BIGINT NOT NULL,
fingerprint TEXT NOT NULL,
requested_by_id INTEGER NOT NULL DEFAULT 0,
requested_by TEXT NOT NULL DEFAULT '',
created_at BIGINT NOT NULL,
model TEXT NOT NULL DEFAULT '',
input_tokens INTEGER NOT NULL DEFAULT 0,
output_tokens INTEGER NOT NULL DEFAULT 0,
status INTEGER NOT NULL DEFAULT 0,
suggestion TEXT NULL,
error TEXT NULL,
context TEXT NULL
);
CREATE INDEX IF NOT EXISTS ai_suggestions_item ON ai_suggestions (kind, item_id, id);
CREATE INDEX IF NOT EXISTS ai_suggestions_time ON ai_suggestions (created_at);