package com.gxwebsoft.common.system.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 消息记录表
 *
 * @author 科技小王子
 * @since 2023-10-08 13:22:21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "Notice对象", description = "消息记录表")
@TableName("sys_notice")
public class Notice implements Serializable {
    private static final long serialVersionUID = 1L;

  @Schema(description = "ID")
  @TableId(value = "notice_id", type = IdType.AUTO)
  private Integer noticeId;

  @Schema(description = "消息类型")
  private String type;

  @Schema(description = "标题")
  private String title;

  @Schema(description = "图标")
  private String icon;

  @Schema(description = "颜色")
  private String color;

  @Schema(description = "内容")
  private String content;

  @Schema(description = "备注")
  private String comments;

  @Schema(description = "消息来源")
  private String source;

  @Schema(description = "来源记录ID")
  private Integer sourceId;

  @Schema(description = "路由地址")
  private String path;

  @Schema(description = "是否已查阅")
  private Integer isRead;

  @Schema(description = "渠道, 0发送 1回复")
  private Integer channel;

  @Schema(description = "任务状态")
  private Integer progress;

  @Schema(description = "用户ID")
  private Integer userId;

  @Schema(description = "状态, 0待处理, 1已完成")
  private Integer status;

  @Schema(description = "是否删除, 0否, 1是")
  @TableLogic
  private Integer deleted;

  @Schema(description = "租户id")
  private Integer tenantId;

  @Schema(description = "注册时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  @Schema(description = "修改时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;

  @Schema(description = "开发者名称")
  @TableField(exist = false)
  private String nickname;

  @Schema(description = "开发者头像")
  @TableField(exist = false)
  private String avatar;

}
