mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
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>
46 lines
1.8 KiB
SQL
46 lines
1.8 KiB
SQL
/* message_capture_sessions and message_capture_entries: see the MySQL migration. */
|
|
CREATE TABLE IF NOT EXISTS message_capture_sessions (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
character_id BIGINT NOT NULL,
|
|
character_name TEXT NOT NULL DEFAULT '',
|
|
account_id INTEGER NOT NULL DEFAULT 0,
|
|
account_name TEXT NOT NULL DEFAULT '',
|
|
started_by_id INTEGER NOT NULL DEFAULT 0,
|
|
started_by TEXT NOT NULL DEFAULT '',
|
|
started_at BIGINT NOT NULL DEFAULT 0,
|
|
ends_at BIGINT NOT NULL DEFAULT 0,
|
|
ended_at BIGINT NOT NULL DEFAULT 0,
|
|
end_reason TEXT NOT NULL DEFAULT '',
|
|
to_server INTEGER NOT NULL DEFAULT 1,
|
|
to_client INTEGER NOT NULL DEFAULT 1,
|
|
only_messages TEXT NOT NULL DEFAULT '',
|
|
skip_messages TEXT NOT NULL DEFAULT '',
|
|
zone_id INTEGER NOT NULL DEFAULT 0,
|
|
instance_id INTEGER NOT NULL DEFAULT 0,
|
|
clone_id INTEGER NOT NULL DEFAULT 0,
|
|
zones TEXT NOT NULL DEFAULT '',
|
|
message_count BIGINT NOT NULL DEFAULT 0,
|
|
byte_count BIGINT NOT NULL DEFAULT 0,
|
|
dropped BIGINT NOT NULL DEFAULT 0
|
|
);
|
|
CREATE INDEX IF NOT EXISTS message_capture_sessions_character ON message_capture_sessions (character_id);
|
|
CREATE INDEX IF NOT EXISTS message_capture_sessions_account ON message_capture_sessions (account_id);
|
|
CREATE INDEX IF NOT EXISTS message_capture_sessions_started ON message_capture_sessions (started_at);
|
|
|
|
CREATE TABLE IF NOT EXISTS message_capture_entries (
|
|
session_id BIGINT NOT NULL,
|
|
seq INTEGER NOT NULL,
|
|
time_ms BIGINT NOT NULL,
|
|
direction INTEGER NOT NULL,
|
|
message_id INTEGER NOT NULL,
|
|
object_id BIGINT NOT NULL,
|
|
bits INTEGER NOT NULL,
|
|
dropped_before INTEGER NOT NULL DEFAULT 0,
|
|
zone_id INTEGER NOT NULL DEFAULT 0,
|
|
instance_id INTEGER NOT NULL DEFAULT 0,
|
|
clone_id INTEGER NOT NULL DEFAULT 0,
|
|
payload BLOB NOT NULL,
|
|
decoded TEXT NOT NULL DEFAULT '',
|
|
PRIMARY KEY (session_id, seq)
|
|
);
|