package com.sonymusic.hierdispatcher.model;

import java.time.LocalDateTime;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import lombok.Data;

@Data
@Document(collection = "dra_lambda_audit_log")
public class DraLambdaAuditLog {
    /** Unique identifier for the audit log document. */
    @Id
    private String id;

    /** Creation timestamp for the audit record. */
    private LocalDateTime createdDate;

    /** Last update timestamp for the audit record. */
    private LocalDateTime updatedDate;

    /** Failure message when processing did not succeed. */
    private String errorMsg;

    /** Event type for the audit entry. */
    private EventType eventType;

    /** Serialized payload received from Kafka. */
    private String payload;

    /** Product identifier associated with this audit event. */
    private String productId;

    /** Number of retry attempts for this message. */
    private Integer retryCount;

    /** Processing status of the audit entry. */
    private String status;

    /** Track number associated with this message. */
    private String trackNo;

    /** Track extension associated with this message. */
    private String trackExt;
}
