package com.ai.da.mapper.primary.entity;

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

import java.io.Serializable;
import java.util.Date;

/**
 * 账户登入日志
 *
 * @author yl
 * @since 2022-09-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_account_login_log")
public class AccountLoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 账户id
     */
    private Long accountId;

    /**
     * ip
     */
    private String ip;

    /**
     * ip地址
     */
    private String ipAddr;

    /**
     * 创建时间
     */
    private Date createDate;

    public AccountLoginLog() {
    }

    public AccountLoginLog(Long accountId, String ip, Date createDate) {
        this.accountId = accountId;
        this.ip = ip;
        this.createDate = createDate;
    }
}
