package com.yida.data.common.core.entity.screen;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 校园大数据仪表盘数据中心-基础建设Entity
 *
 * @author ZYJ
 * @date 2023-04-19 16:52:15
 */
@Data
@TableName("edu_school_dashboard_data_base")
public class EduSchoolDashboardDataBase implements Serializable {

    private static final long serialVersionUID = 4012887985974912015L;

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

    /**
     * 创建人id
     */
    @ApiModelProperty(value = "创建人id")
    @TableField(value = "create_id", fill = FieldFill.INSERT)
    private Long createId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_date", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;

    /**
     * 最后修改人id
     */
    @ApiModelProperty(value = "最后修改人id")
    @TableField(value = "update_id", fill = FieldFill.UPDATE)
    private Long updateId;

    /**
     * 最后修改时间
     */
    @ApiModelProperty(value = "最后修改时间")
    @TableField(value = "update_date", fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateDate;

    /**
     * 删除标识. 0: 未删除, 1: 已删除
     */
    @ApiModelProperty(value = "删除标识. 0: 未删除, 1: 已删除")
    @TableField("del_flag")
    @TableLogic(value = "0", delval = "1")
    private Integer delFlag;

    /**
     * 数据中心id
     */
    @ApiModelProperty(value = "数据中心id")
    private Long dataId;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    @TableField("label")
    private String label;

    /**
     * 数量+单位
     */
    @ApiModelProperty(value = "数量+单位")
    @TableField("unit")
    private String unit;

    /**
     * 图标
     */
    @ApiModelProperty(value = "图标")
    @TableField("icon")
    private String icon;

}