package com.dk.mdm.model.pojo.core;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.dk.common.infrastructure.handler.TimestampTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.alibaba.fastjson.JSONObject;

import java.util.List;
import java.time.LocalDateTime;

/**
 *  锁定状态
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "t_user_locked", autoResultMap = true,schema="core")
@ApiModel(value="实体类：锁定状态", description="表名：t_user_locked")
public class UserLocked implements Serializable {

    /*
     * 数据库字段
     */

    /**
     * 用户ID
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    @ApiModelProperty(value = "用户ID")
    private Integer userId;


    /**
     * 锁定状态
     */
    @Excel(name = "锁定状态")
    @ApiModelProperty(value = "锁定状态")
    private Boolean isLocked;


    /**
     * 密码错误次数
     */
    @Excel(name = "密码错误次数")
    @ApiModelProperty(value = "密码错误次数")
    private Integer missCount;


    /**
     * 锁定时间
     */
    @Excel(name = "锁定时间")
    @ApiModelProperty(value = "锁定时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(typeHandler = TimestampTypeHandler.class)
    private LocalDateTime lockedTime;


    /*
     * 相关属性
     * @TableField(exist = false)
     */

    /*
     * 关联属性 + 查询条件
     * @TableField(exist = false)
     */


    private static final long serialVersionUID = 1L;

}
