package com.ruoyi.usernotice.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseTimeEntity;
import com.ruoyi.usernotice.enums.UserNoticeEntityType;
import lombok.Data;

/**
 * C端用户通知对象 tb_user_notice
 *
 * @author ruoyi
 * @date 2025-04-21
 */
@Data
@TableName("tb_user_notice")
public class UserNotice extends BaseTimeEntity {

    private static final long serialVersionUID=1L;

    /**
     * 主键ID
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 所属用户Id
     */
    private Long userId;
    /**
     * 标题
     */
    private String title;
    /**
     * 内容
     */
    private String content;
    /**
     * 状态：0-未读，1-已读
     */
    private Boolean status;
    /**
     * 实体ID
     */
    private Long entityId;
    /**
     * 实体类型
     */
    private UserNoticeEntityType entityType;

}
