prorm API Reference
    Preparing search index...

    Interface AuditLog

    Represents a single audit log entry

    interface AuditLog {
        id: number;
        tableName: string;
        action: "UPDATE" | "DELETE" | "CREATE";
        recordId: string | number;
        oldValues?: Record<string, any>;
        newValues?: Record<string, any>;
        userId?: string | number;
        timestamp: Date;
        ipAddress?: string;
    }
    Index
    id: number

    Unique identifier for the audit log entry

    tableName: string

    Name of the table that was modified

    action: "UPDATE" | "DELETE" | "CREATE"

    Type of action performed (CREATE, UPDATE, DELETE)

    recordId: string | number

    Primary key identifier of the affected record

    oldValues?: Record<string, any>

    Previous state of the record (for UPDATE/DELETE)

    newValues?: Record<string, any>

    New state of the record (for CREATE/UPDATE)

    userId?: string | number

    ID of the user who made the change

    timestamp: Date

    Timestamp of when the change occurred

    ipAddress?: string

    IP address of the client that made the change