package com.storlead.sales.pojo.entity.customer;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 公告阅读表
 * </p>
 *
 * @author YPZ
 * @since 2024-10-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bulletin_read")
@ApiModel(value="BulletinReadEntity对象", description="公告阅读表")
public class BulletinReadEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公告已读id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "公告id")
    @TableField("bulletin_id")
    private Long bulletinId;

    @ApiModelProperty(value = "用户id")
    @TableField("read_user_id")
    private Long readUserId;

    @ApiModelProperty(value = "是否已读 0未读 1已读")
    @TableField("has_read")
    private Boolean hasRead;

    @ApiModelProperty(value = "前拥有者")
    @TableField("former_owner_by")
    private Long formerOwnerBy;


}
