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.CouponCategoryEnum;
import com.yonge.cooleshow.biz.dal.enums.coupon.CouponUseStateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 优惠券发放
 * </p>
 *
 * @author Eric
 * @since 2022-09-02
 */
@Getter
@Setter
@TableName("coupon_issue")
@ApiModel(value = "CouponIssue对象", description = "优惠券发放")
public class CouponIssue 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("client_type_")
    private String clientType;

    @ApiModelProperty("使用状态")
    @TableField("use_state_")
    private CouponUseStateEnum useState;

    @ApiModelProperty("使用时间")
    @TableField("use_time_")
    private Long useTime;

    @ApiModelProperty("使用类型")
    @TableField("use_type_")
    private CouponCategoryEnum useType;

    @ApiModelProperty("订单编号")
    @TableField("order_no_")
    private String orderNo;

    @ApiModelProperty("生效时间")
    @TableField("start_time_")
    private Long startTime;

    @ApiModelProperty("失效时间")
    @TableField("end_time_")
    private Long endTime;

    @ApiModelProperty("发放方式")
    @TableField("issue_way_")
    private String issueWay;

    @ApiModelProperty("发放人")
    @TableField("issuer_")
    private Long issuer;

    @ApiModelProperty("发放时间")
    @TableField("issue_time_")
    private Long issueTime;

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

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

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


}
