package com.lesingle.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 系统日志实体
 */
@Data
@TableName("t_sys_log")
@Schema(description = "系统日志实体")
public class SysLog implements Serializable {

    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "操作")
    private String action;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "IP地址")
    private String ip;

    @Schema(description = "用户代理")
    @TableField("user_agent")
    private String userAgent;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;
}
