package cn.cslg.report.entity;

import cn.cslg.report.common.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 无效记录表
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "PATENT_REFERENCES")
public class References extends BaseEntity<References> {
    /**
     * 专利号
     */
     @TableField(value = "PATENT_NO")
     private String patentNo;





    @Schema(description = "参考资料名")
    @TableField(value = "REFERENCES_NAME")
    private String referencesName;

    /**
     * 无效申请人ID
     */
    @Schema(description = "文件路径")
    @TableField(value = "FILE_URL")
    private String fileUrl;



    @Schema(description = "创建时间")
    @TableField(value = "CREATE_TIME")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;


    @Schema(description = "解释说明")
    @TableField(value = "REFERENCES_EXPLAIN")
    private String referencesExplain;

    /**
     * 文件名
     */
    @Schema(description = "文件名")
    @TableField(value = "FILE_NAME")
    private String fileName;


    /**
     * 每页条数
     */
    @Schema(description = "每页条数")
    @TableField(exist = false)
    private Integer size;

    /**
     * 当前页数
     */
    @Schema(description = "当前页数")
    @TableField(exist = false)
    private Integer current;

    /**
     * 数据总数
     */
    @Schema(description = "数据总数")
    @TableField(exist = false)
    private Integer total;

}
