package com.fs.hospital580.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 问诊单聊天记录信息
 * </p>
 *
 * @author zhangqin
 * @since 2025-09-28
 */
@Getter
@Setter
@TableName("fs_store_hospital580_prescription_chat_scrm")
@ApiModel(value = "FsStoreHospital580PrescriptionChatScrmEntity对象", description = "问诊单聊天记录信息")
public class Hospital580PrescriptionChatScrmEntity extends Model<Hospital580PrescriptionChatScrmEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("聊天表主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("聊天记录信息json数组")
    @TableField("content")
    private String content;


    @ApiModelProperty("处方id")
    @TableField("pre_id")
    private Long preId;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
