feat(gateway): add debug logging with file storage and retention feat(gateway): add audit logging for user actions feat(gateway): add request ID tracking and rate limit headers feat(gateway): add model aliases and load balancing strategies feat(gateway): add config hot-reload via SIGHUP feat(gateway): add CORS support feat(gateway): add data export API and dashboard endpoints feat(gateway): add dashboard pages for audit and debug logs feat(gateway): add concurrent request limiting per token feat(gateway): add streaming timeout support feat(gateway): add migration support for new schema fields
14 lines
483 B
SQL
14 lines
483 B
SQL
CREATE TABLE debug_log (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
request_id TEXT NOT NULL,
|
|
timestamp INTEGER NOT NULL,
|
|
token_name TEXT DEFAULT '',
|
|
model TEXT DEFAULT '',
|
|
provider TEXT DEFAULT '',
|
|
request_body TEXT DEFAULT '',
|
|
response_body TEXT DEFAULT '',
|
|
request_headers TEXT DEFAULT '',
|
|
response_status INTEGER DEFAULT 0
|
|
);
|
|
CREATE INDEX idx_debug_request_id ON debug_log(request_id);
|
|
CREATE INDEX idx_debug_timestamp ON debug_log(timestamp);
|