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.time.LocalDateTime;

import java.io.Serial;

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

/**
 * 充值配置表 实体类。
 *
 * @author zs
 * @since 2025-09-16
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("mk_shop_recharge")
public class MkShopRecharge implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 主店id
     */
    private Long masterShopId;

    /**
     * 可用分店id
     */
    private String shopIdList;

    /**
     * all 全部可用 part部分门店可用
     */
    private String useType;

    /**
     * 是否自定义金额
     */
    private Integer isCustom;

    /**
     * 充值并下单
     */
    private Integer isOrder;

    /**
     * 充值说明
     */
    private String remark;

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

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

    /**
     * 是否开启
     */
    private Integer isEnable;

}
