package com.rj.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 客户管理表
 * </p>
 *
 * @author 李中华 ,spllzh
 * @since 2025-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("customer_management")
@Schema(description="客户管理表")
public class CustomerManagement implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键，UUID")
    @TableId("id")
    private String id;

    @Schema(description = "租户ID")
    @TableField("tenant_id")
    private String tenantId;

    @Schema(description = "客户姓名")
    @TableField("customer_name")
    private String customerName;

    @Schema(description = "性别")
    @TableField("gender")
    private String gender;

    @Schema(description = "年龄")
    @TableField("age")
    private Integer age;

    @Schema(description = "联系方式")
    @TableField("contact")
    private String contact;

    @Schema(description = "所属门店ID")
    @TableField("dealership_id")
    private String dealershipId;

    @Schema(description = "所属门店名称")
    @TableField("dealership_name")
    private String dealershipName;

    @Schema(description = "所属销售ID")
    @TableField("sales_id")
    private String salesId;

    @Schema(description = "所属销售名称")
    @TableField("sales_name")
    private String salesName;

    @Schema(description = "录音条数")
    @TableField("recording_count")
    private Integer recordingCount;

    @Schema(description = "阶段")
    @TableField("stage")
    private String stage;

    @Schema(description = "信息卡")
    @TableField("info_card")
    private String infoCard;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "详细地址")
    @TableField("detailed_address")
    private String detailedAddress;

    @Schema(description = "销售电话")
    @TableField("sales_phone")
    private String salesPhone;

    @Schema(description = "联系客户次数")
    @TableField("contact_count")
    private Integer contactCount;

    @Schema(description = "正面照片URL")
    @TableField("front_photo_url")
    private String frontPhotoUrl;

    @Schema(description = "侧面照片URL")
    @TableField("side_photo_url")
    private String sidePhotoUrl;

    @Schema(description = "生活照URL")
    @TableField("life_photo_url")
    private String lifePhotoUrl;

    @Schema(description = "操作类型")
    @TableField("operation_type")
    private String operationType;

    @Schema(description = "客户来源")
    @TableField("customer_source")
    private String customerSource;

    @TableField(exist = false)
    private String  scenario;
}
