package com.optix.android.domain.model

/**
 * Immutable audit record describing a single tool execution attempt.
 * Constructed with secret-free params by the recorder.
 */
data class AuditLogEntry(
    val id: Long = 0,
    val toolName: String,
    val toolDisplayName: String,
    val params: Map<String, String> = emptyMap(),  // secrets already stripped
    val target: String? = null,
    val userId: String? = null,
    val timestamp: Long = System.currentTimeMillis(),
    val success: Boolean = false,
    val errorMessage: String? = null,
    val durationMs: Long = 0,
)
