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 = "mobile",length = 11)
    private String  mobile;

    @Column(name = "user_role",length = 20)
    private String userRole;

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

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

    @Column(name = "step_name", length = 50)
    private String stepName;

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

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

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

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

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

}