package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 管理端消息接收者
 * </p>
 *
 * @author XKF
 * @since 2025-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("MSGRECEIVER")
@ApiModel(value="Msgreceiver对象", description="管理端消息接收者")
public class Msgreceiver extends Model<Msgreceiver> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "消息ID")
    private Long autoid;

    @ApiModelProperty(value = "用户ID")
    @TableField("MANAGERID")
    private Long managerid;

    @ApiModelProperty(value = "消息状态 - 1：未阅读 2：已阅读 3：已删除")
    @TableField("READSTATUS")
    private Integer readstatus;

    @ApiModelProperty(value = "接收用户类型 - 1:管理端用户 2:终端用户")
    @TableField("RECEIVERTYPE")
    private Integer receivertype;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATETIME")
    private Date updatetime;


    @Override
    public Serializable pkVal() {
        return this.autoid;
    }

}
