package com.jwipc.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 公告用户,记录公告用户及阅读情况
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-01-31
 */
@Getter
@Setter
@TableName("msg_notice_user")
public class MsgNoticeUser implements Serializable {

    private static final long serialVersionUID = 1L;

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

    private Long noticeId;

    private Long userId;

    /**
     * 是否阅读【1：已阅读；0：未阅读】
     */
    private Integer readFlag;

    private LocalDateTime readTime;
}
