generated from Dicken/dickendock
Commit 6: Adminbereich (TanStack Router, 8 Menüpunkte, Scan-Logs)
This commit is contained in:
@@ -58,3 +58,16 @@ export const categories = sqliteTable("categories", {
|
||||
createdAt: text("created_at").notNull(),
|
||||
updatedAt: text("updated_at").notNull(),
|
||||
});
|
||||
|
||||
/**
|
||||
* Protokoll jedes Scan-Versuchs (Geräte-Netzwerk-Scan oder FritzBox-Scan),
|
||||
* angezeigt im Adminbereich unter "Logs".
|
||||
*/
|
||||
export const scanLogs = sqliteTable("scan_logs", {
|
||||
id: text("id").primaryKey(),
|
||||
type: text("type").notNull(), // "device" | "fritzbox"
|
||||
targetId: text("target_id"), // Geräte-ID bei type "device", sonst null
|
||||
level: text("level").notNull(), // "info" | "error"
|
||||
message: text("message").notNull(),
|
||||
createdAt: text("created_at").notNull(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user