package com.izouma.zhirongip.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@ApiModel(value = "消息")
@Where(clause = "del = 0")
public class Information extends BaseEntity {

    @ApiModelProperty(value = "接收人")
    private Long receiveUserId;

    @Column(columnDefinition = "TEXT")
    @ApiModelProperty(value = "内容")
    private String content;

    private Long messageId;

    private boolean isRead;
}
