package com.czg.market.vo;

import com.czg.market.dto.CouponInfoDTO;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Administrator
 */
@Data
public class MkRedemptionConfigVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

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

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

    /**
     * 赠送金额
     */
    private List<CouponInfoDTO> couponInfoList;
    /**
     * 优惠券数量
     */
    private int couponNum;

    /**
     * 库存
     */
    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;

    @Column(ignore = true)
    private Integer status;

    private BigDecimal amount;
    private Integer type;
}
