package com.eitc.patient.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eitc.common.core.domain.EitcBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * ChatHistory
 *
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("聊天历史记录")
@TableName("erm_chat_history")
public class ChatHistory extends EitcBaseEntity {

    @TableField(value = "app_user_id")
    @ApiModelProperty(value = "发送人id", name = "appUserId")
    private String appUserId;

    @TableField(value = "app_user_phone")
    @ApiModelProperty(value = "发送消息的人的电话", name = "appUserPhone")
    private String appUserPhone;

    @TableField(value = "chat_history")
    @ApiModelProperty(value = "聊天记录", name = "chatHistory")
    private String chatHistory;

    @TableField(value = "user_id")
    @ApiModelProperty(value = "医生ID", name = "userId")
    private String userId;

    @TableField(value = "user_phone")
    @ApiModelProperty(value = "接收消息人的电话", name = "userPhone")
    private String userPhone;

    @TableField(value = "is_read")
    @ApiModelProperty(value = "是否已读（1已读 0 未读）", name = "isRead")
    private Integer isRead;

}
