mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-27 15:07:14 +00:00
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>
This commit is contained in:
19
migrations/dlu/mysql/61_ai_suggestions.sql
Normal file
19
migrations/dlu/mysql/61_ai_suggestions.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
/* The dashboard's staff-side AI moderator helper: every suggestion asked for, with who asked, the model and tokens, kept with the item it is about. Drafts for staff only. */
|
||||
CREATE TABLE IF NOT EXISTS ai_suggestions (
|
||||
id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
kind VARCHAR(32) NOT NULL,
|
||||
item_id BIGINT NOT NULL,
|
||||
fingerprint CHAR(64) NOT NULL,
|
||||
requested_by_id INT UNSIGNED NOT NULL DEFAULT 0,
|
||||
requested_by VARCHAR(64) NOT NULL DEFAULT '',
|
||||
created_at BIGINT NOT NULL,
|
||||
model VARCHAR(100) NOT NULL DEFAULT '',
|
||||
input_tokens INT UNSIGNED NOT NULL DEFAULT 0,
|
||||
output_tokens INT UNSIGNED NOT NULL DEFAULT 0,
|
||||
status TINYINT NOT NULL DEFAULT 0,
|
||||
suggestion TEXT NULL,
|
||||
error TEXT NULL,
|
||||
context MEDIUMTEXT NULL,
|
||||
INDEX ai_suggestions_item (kind, item_id, id),
|
||||
INDEX ai_suggestions_time (created_at)
|
||||
);
|
||||
Reference in New Issue
Block a user