package cn.reghao.bnt.web.admin.model.po;

import cn.reghao.bnt.web.util.BaseEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import jakarta.persistence.Entity;
import jakarta.persistence.Table;

/**
 * @author reghao
 * @date 2024-02-05 09:25:39
 */
@NoArgsConstructor
@Setter
@Getter
@Table(name = "sys_user_message")
@Entity
public class UserMessage extends BaseEntity {
    private String title;
    private String content;
    private Boolean unread;
    private Integer userId;

    public UserMessage(Integer userId, String title, String content) {
        this.title = title;
        this.content = content;
        this.unread = true;
        this.userId = userId;
    }
}
