package com.chushang.system.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chushang.common.mybatis.base.BaseEntity;
import com.chushang.system.entity.enums.LoginStatusEnum;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

/**
 * by zhaowenyuan create 2022/5/19 18:18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_login_info")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SysLoginInfo extends BaseEntity {

    @TableId(value = "info_id", type = IdType.ASSIGN_ID)
    private Long infoId;

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

    @TableField(value = "status")
    private LoginStatusEnum status;

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

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

    @TableField(value = "access_time")
    private LocalDateTime accessTime;

}
