package com.sqx.modules.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class TbCouponLog {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)

    @ApiModelProperty("平台优惠券记录表")
    private Long id;

    @ApiModelProperty("优惠券id")
    private Long couponId;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private Integer createSysUserId;

    @ApiModelProperty("优惠券名称")
    private String couponName;

    @ApiModelProperty("优惠券图片")
    private String couponPicture;

    @ApiModelProperty("有效期天数")
    private Integer endDate;

    @ApiModelProperty("优惠券可使用订单最低金额")
    private BigDecimal minMoney;

    @ApiModelProperty("优惠券可使用商品类型")
    private String goodsType;

    @ApiModelProperty("购买此优惠券需要积分数")
    private Integer needIntegral;


    @ApiModelProperty("优惠券金额")
    private BigDecimal money;


    @ApiModelProperty("所属商铺 0为总后台发布的优惠券")
    private Long shopId;

    @ApiModelProperty("状态:0-待审核，1-发布，2-撤销")
    private Integer state;

    @ApiModelProperty("用户名")
    @TableField(exist = false)
    private String username;

}
