package com.czg.account.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.io.Serializable;
import java.time.LocalDateTime;

import java.io.Serial;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 通讯录联系人列表 实体类。
 *
 * @author ww
 * @since 2025-11-27
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("bk_contact_list")
public class BkContactList implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 暂无意义
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 店铺
     */
    private Long shopId;

    /**
     * 电话号码
     */
    private String phone;
    /**
     * 昵称
     */
    @Column(ignore = true)
    private String nickName;

    /**
     * 历史订单数
     */
    @Column(ignore = true)
    private Integer orderNum;

    /**
     * 取消数
     */
    @Column(ignore = true)
    private Integer cancelNum;

    /**
     * 最后一次预约时间
     */
    @Column(ignore = true)
    private LocalDateTime lastBookingTime;

}
