blob: 7ebf7c177d234bb60ee59563bdaa4af2acfb145e [file] [log] [blame]
xiukira687b9cb2025-05-29 15:15:02 +08001package com.g9.g9backend.pojo;
2
xiukirad0a7a082025-06-05 16:28:08 +08003import com.baomidou.mybatisplus.annotation.IdType;
xiukira687b9cb2025-05-29 15:15:02 +08004import com.baomidou.mybatisplus.annotation.TableId;
5import lombok.*;
6
7import java.util.Date;
8
9/**
10 * Notification 实体类,表示通知的数据模型
11 *
12 * @author hcy
13 */
14@Data
15@AllArgsConstructor
16@NoArgsConstructor
17public class Notification {
18
xiukirad0a7a082025-06-05 16:28:08 +080019 @TableId(type = IdType.AUTO)
xiukira687b9cb2025-05-29 15:15:02 +080020 private int notificationId;
21
22 private int userId;
23
24 private String type;
25
26 private String title;
27
28 private String content;
29
30 private Date createAt;
31
32 private boolean isRead;
33
34 private int triggeredBy;
35
36 private int relatedId;
37}