package cn.lihongjie.coal.noticeStatus.entity;

import cn.lihongjie.coal.base.entity.CommonEntity;
import cn.lihongjie.coal.notice.entity.NoticeEntity;
import cn.lihongjie.coal.user.entity.UserEntity;

import jakarta.persistence.Entity;
import jakarta.persistence.ManyToOne;

import lombok.Data;

import java.time.LocalDateTime;

@Data
@Entity
public class NoticeStatusEntity extends CommonEntity {

    @ManyToOne
    private UserEntity sender;

    @ManyToOne
    private UserEntity user;
    @ManyToOne()
    private NoticeEntity notice;

    private Boolean read;

    private Boolean delete;


    private LocalDateTime readTime;
    private LocalDateTime sendTime;
    private LocalDateTime deleteTime;

}
