package com.yonge.cooleshow.biz.dal.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 java.io.Serializable;
import java.util.Date;

import com.yonge.cooleshow.biz.dal.enums.coupon.CouponInventoryEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 优惠券库存变化
 * </p>
 *
 * @author Eric
 * @since 2022-09-05
 */
@Getter
@Setter
@TableName("coupon_inventory")
@ApiModel(value = "CouponInventory对象", description = "优惠券库存变化")
public class CouponInventory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("发放ID")
    @TableId(value = "id_", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户ID")
    @TableField("user_id_")
    private Long userId;

    @ApiModelProperty("优惠券ID")
    @TableField("coupon_id_")
    private Long couponId;

    @ApiModelProperty("数据类型")
    @TableField("data_type_")
    private CouponInventoryEnum dataType;

    @ApiModelProperty("变化量")
    @TableField("number_")
    private Integer number;

    @ApiModelProperty("备注")
    @TableField("remark_")
    private String remark;

    @ApiModelProperty("启禁状态")
    @TableField("status_")
    private Integer status;

    @ApiModelProperty("创建时间")
    @TableField("created_time_")
    private Date createdTime;


}
