package com.haha.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("t_coupon_template")
public class CouponTemplate implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String couponName;

    private Integer couponType;

    private String couponDesc;

    private BigDecimal discountValue;

    private BigDecimal minAmount;

    private BigDecimal maxDiscount;

    private Integer totalCount;

    private Integer remainCount;

    private Integer receiveLimit;

    private Integer validType;

    private LocalDateTime validStartTime;

    private LocalDateTime validEndTime;

    private Integer validDays;

    private Integer applyScope;

    private Integer productScope;

    private Long activityId;

    private Integer status;

    private Long creatorId;

    private String creatorName;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Integer deleted;

    @TableField(exist = false)
    private String typeLabel;

    @TableField(exist = false)
    private String validTypeLabel;

    @TableField(exist = false)
    private String statusLabel;

    @TableField(exist = false)
    private String statusColor;
}
