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-10-13
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("mk_consume_cashback")
public class MkConsumeCashback implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

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

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

    /**
     * 门店列表
     */
    private String shopIdList;

    /**
     * 适用用户 all全部用户 new新用户 vip会员
     */
    private String applicableUser;

    /**
     * 返现类型 percentage比例 fix固定
     */
    private String cashbackType;

    /**
     * 返现配置
     */
    private String cashbackStepList;

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

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

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

}
