package com.common.entity;


import lombok.Data;

import java.time.LocalDateTime;

@Data
public class AppLogEntity {
    private Long id;

    // ES元数据字段
    private String esIndex;
    private String esType = "_doc";
    private String esId;
    private Float esScore = 1.0f;

    // 日志内容字段
    private Long dtTime;
    private Long collectTime;
    private String logType;
    private String traceId;
    private String method;
    private String appName;
    private String ip;
    private String className;
    private String env;
    private String content;
    private String threadName;
    private String logLevel;
    private String seq;
    private Long indexedAt;

    // 分区字段
    private LocalDateTime logDate;

    // 系统字段
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}