package com.fkzy.warn.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author zhangjing
 * @date 2024/12/04 20:09
 * @description
 */
@Data
@TableName("t_authorization")
public class Authorization extends BaseField{
    /**
     * id
     */
    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 授权开始日期
     */
    @ApiModelProperty("授权开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startDate;
    /**
     * 授权截止日期
     */
    @ApiModelProperty("授权截止日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endDate;
    /**
     * 授权书id
     */
    @ApiModelProperty("授权书id")
    private Integer fileId;
    /**
     * 风险查询次数
     */
    @ApiModelProperty("风险查询次数")
    private Integer queryCount;

    /**
     * 被授权人
     */
    @ApiModelProperty("被授权人")
    private Integer userId;
}
