package top.tqx.demo_1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

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

@Data
@TableName("operation_log")
public class OperationLog implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long userId;
    
    private String username;
    
    private Integer operatorType;
    
    private String operationType;
    
    private String operationDesc;
    
    private Long targetId;
    
    private String targetType;
    
    private String result;
    
    private String detail;
    
    private String ipAddress;
    
    private String userAgent;
    
    private LocalDateTime createTime;
}
