package com.czg.market.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.math.BigDecimal;
import java.time.LocalDateTime;


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

/**
 * 会员基础配置 实体类。
 *
 * @author zs
 * @since 2025-09-10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("tb_member_config")
public class TbMemberConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 提交生日/姓名
     */
    private Integer isSubmitInfo;

    /**
     * 方案列表
     */
    private String configList;

    /**
     * 条件开通条件项
     */
    private String conditionList;


    /**
     * 参与会员价门店
     */
    private String memberPriceShopIdList;

    /**
     * 是否享受会员价
     */
    private Integer isMemberPrice;

    /**
     * 每消费一元经验值
     */
    private Long costReward;

    /**
     * 每充值一元经验值
     */
    private Long rechargeReward;

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

    /**
     * 规则说明
     */
    private String remark;

    /**
     * 创建时间
     */
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime updateTime;

    private String openType;

    private String memberPriceShopType;
    private Long isOpen;

}
