package com.dji.sample.manage.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

@TableName(value = "login_log")
@Data
public class LoginLogEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField(value = "user_id")
    private String userId;

    @TableField(value = "username")
    private String username;

    @TableField(value = "message")
    private String message;

    @TableField(value = "success")
    private boolean success;

    @TableField(value = "ip_address")
    private String ipAddress;

    @TableField(value = "user_agent")
    private String userAgent;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Long createTime;

}
