package com.loan.system.domain.entity;

import lombok.*;

import javax.persistence.*;
import java.time.Instant;

@Entity
@Table(name = "sys_message")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysMessage extends BaseEntity{
    private static final long serialVersionUID = 23L;

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "message_title", length = 200)
    private String messageTitle;

    @Lob
    @Column(name = "message_content")
    private String messageContent;

    @Column(name = "message_type", length = 50)
    private String messageType;

    @Column(name = "read_status")
    private Byte readStatus;

    @Column(name = "related_id")
    private Long relatedId;

    @Column(name = "related_type", length = 50)
    private String relatedType;

    @Column(name = "create_time")
    private Instant createTime;

    @Column(name = "is_delete")
    private Boolean isDelete;

}