UI-Anpassungen
Dieser Commit ist enthalten in:
committet von
Server Deploy
Ursprung
7d67557be4
Commit
ef153789cc
@ -596,6 +596,23 @@ function createTables() {
|
||||
logger.info('Migration: claude_instructions Spalte zu coding_directories hinzugefuegt');
|
||||
}
|
||||
|
||||
// Coding Verbrauchsdaten
|
||||
db.exec(`
|
||||
CREATE TABLE IF NOT EXISTS coding_usage (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
directory_id INTEGER NOT NULL,
|
||||
timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
cpu_percent REAL,
|
||||
memory_mb REAL,
|
||||
disk_read_mb REAL,
|
||||
disk_write_mb REAL,
|
||||
network_recv_mb REAL,
|
||||
network_sent_mb REAL,
|
||||
process_count INTEGER,
|
||||
FOREIGN KEY (directory_id) REFERENCES coding_directories(id) ON DELETE CASCADE
|
||||
)
|
||||
`);
|
||||
|
||||
// Kontakte
|
||||
db.exec(`
|
||||
CREATE TABLE IF NOT EXISTS contacts (
|
||||
@ -641,6 +658,8 @@ function createTables() {
|
||||
CREATE INDEX IF NOT EXISTS idx_knowledge_entries_category ON knowledge_entries(category_id);
|
||||
CREATE INDEX IF NOT EXISTS idx_knowledge_attachments_entry ON knowledge_attachments(entry_id);
|
||||
CREATE INDEX IF NOT EXISTS idx_coding_directories_position ON coding_directories(position);
|
||||
CREATE INDEX IF NOT EXISTS idx_coding_usage_directory ON coding_usage(directory_id);
|
||||
CREATE INDEX IF NOT EXISTS idx_coding_usage_timestamp ON coding_usage(timestamp);
|
||||
CREATE INDEX IF NOT EXISTS idx_contacts_company ON contacts(company);
|
||||
CREATE INDEX IF NOT EXISTS idx_contacts_tags ON contacts(tags);
|
||||
`);
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren