package com.cpop.system.business.entity;

import com.cpop.core.base.entity.BaseEntity;
import com.cpop.core.base.entity.BaseInsertListener;
import com.cpop.core.base.entity.BaseUpdateListener;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 系统-店铺/校区表 实体类。
 *
 * @author DB
 * @since 2023-10-26
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(value = "cp_sys_store", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
public class Store extends BaseEntity implements Serializable {

    /**
     * 店铺/校区id
     */
    @Id
    private String id;

    /**
     * 店铺/校区名
     */
    private String storeName;

    /**
     * 店铺/校区地址
     */
    private String storeAddr;

    /**
     * 负责人
     */
    private String personCharge;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 是否有顾问
     */
    private Boolean haveCounselor;

    /**
     * 是否激活
     */
    private Boolean haveActive;

    /**
     * 品牌id
     */
    private String brandId;

    /**
     * 来源
     */
    private String sourceType;

    /**
     * 是否是测试
     */
    private Boolean isTest;

    /**
     * 微信商户id
     */
    private String wxMchId;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 签约id
     */
    private String signId;

    /**
     * 逻辑删除（0否1是）
     */
    @Column(isLogicDelete = true)
    private Boolean isDelete;

}
