package com.gxwebsoft.shop.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 *
 * @author 科技小王子
 * @since 2025-12-03 13:47:42
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Coupon对象", description = "")
@TableName("shop_coupon")
public class Coupon implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "0满减  1折扣")
    private Integer type;

    private String title;

    @ApiModelProperty(value = "过期类型0领取计算  1固定时间")
    private Integer expireType;

    @ApiModelProperty(value = "起始金额")
    private BigDecimal startAmount;

    @ApiModelProperty(value = "抵扣金额")
    private BigDecimal reduceAmount;

    @ApiModelProperty(value = "折扣比例")
    private BigDecimal reduceRate;

    @ApiModelProperty(value = "过期天数")
    private Integer expireDay;

    @ApiModelProperty(value = "过期时间(固定)")
    private String expireEndDate;

    @ApiModelProperty(value = "状态, 0正常, 1冻结")
    private Integer status;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "注册时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

}
