package com.sptg.estate.api.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 门禁卡黑名单实体类
 * @author xuanyan
 * @date 2020/7/8 9:53
 */
@Setter
@Getter
@TableName(value = "estate_access_black_card")
public class AccessBlackCard {

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

    /**
     * 门禁卡id
     */
    @TableField(value = "l_card_id")
    private Long cardId;

    /**
     * 卡号
     */
    @TableField(value = "s_card_no")
    private String cardNo;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "t_create_date")
    private Date createDate;

    /**
     * 描述
     */
    @TableField(value = "s_describe")
    private String describe;
}
