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 java.io.Serial;

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

/**
 * 充值优惠券修改 实体类。
 *
 * @author zs
 * @since 2025-10-22
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("mk_redemption_config")
public class MkRedemptionConfig implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 名称
     */
    private String name;

    private BigDecimal amount;


    /**
     * 券信息
     */
    private String couponInfoList;
    /**
     * 库存
     */
    private Integer stock;

    /**
     * 总数
     */
    private Integer total;

    /**
     * 可用开始时间
     */
    private LocalDateTime startTime;

    /**
     * 可用结束时间
     */
    private LocalDateTime endTime;

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

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

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

    /**
     * 是否启用
     */
    private Integer isEnable;
    @Column(ignore = true)
    private int status;

    private Integer type;

}
