import { ObjectId } from "mongoose";

export interface IAuditLog {

    _id?: ObjectId;

    userId: ObjectId;

    module:
        | "User"
        | "Role"
        | "FuelRequest"
        | "Approval"
        | "ExternalInvoice"
        | "LPG"
        | "PumpReading"
        | "FuelPump"
        | "FuelPrice"
        | "FuelType"
        | "VehicleConfig"
        | "VehicleAssignment"
        | "Dashboard"
        | "Report"
        | "Authentication";

    action:
        | "CREATE"
        | "UPDATE"
        | "DELETE"
        | "APPROVE"
        | "REJECT"
        | "LOGIN"
        | "LOGOUT"
        | "CLOSE";

    recordId?: ObjectId;

    description: string;

    ipAddress?: string;

    status:
        | "EXITOSO"
        | "FALLIDO";

    createdAt?: Date;

}