package com.storlead.sales.pojo.entity.customer;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 通用评论表
 * </p>
 *
 * @author YPZ
 * @since 2024-05-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("record_comment")
@ApiModel(value="RecordCommentEntity对象", description="通用评论表")
public class RecordCommentEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "目标评论id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "主业务ID")
    @TableField("record_id")
    private Long recordId;

    @ApiModelProperty(value = "评论类型，对应ResourceTypeEnum（10:客户、11线索、20:联系人、30:商机、40:订单、50:回款、60:退款、70:费用、80:任务、90:跟进、100:工单、120：公告）")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "评论人ID")
    @TableField("staff_id")
    private Long staffId;

    @ApiModelProperty(value = "顶级评论ID")
    @TableField("top_id")
    private Integer topId;

    @ApiModelProperty(value = "父级评论ID")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "评价详情")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "评分(1-5)")
    @TableField("score")
    private Integer score;


}
