package com.cirle.scientific.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Calendar;

@Entity
@Table(name = "qkj_purchased_records")
@Data
@ApiModel
public class QkjPurchasedRecords implements Serializable {

	private static final long serialVersionUID = -1835731829979669761L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty(value = "主键id")
	private Long id;

	@ApiModelProperty(value = "用户memCard")
	private String memCard;

	@ApiModelProperty(value = "类型  1-精品课， 2-直播，3-会议，4-课件")
	private Integer objType;

	@ApiModelProperty(value = "对象id")
	private Long objId;// 对象id

	@ApiModelProperty(value = "订单id")
	private String orderId;// 订单id

	@ApiModelProperty(value = "购买时间")
	private Calendar oprTime;// 购买时间

	@ApiModelProperty(value = "失效时间")
	private Calendar endTime;// 失效时间

	@ApiModelProperty(value = "状态  是否有效  0：有效   1：失效")
	private Integer status;// 状态 是否有效 0：有效 1：失效

	@ApiModelProperty(value = "支付方式：1-线上微信支付  2-积分兑换 3-免费")
	private Integer payType;// 购买方式 0：线上购买 1：线下购买 2：线下赠送

	@ApiModelProperty(value = "销售人员id")
	private Long salesId = null;

	@ApiModelProperty(value = "是否打包购买  0：否  1：是")
	private Integer ispackage;

	@ApiModelProperty(value = "支付设备  0-未知  1-ios 2:Android 3-H5  4-小程序")
	private Integer paySource;

	@ApiModelProperty(value = "到期重新购买  0：否  1：是")
	private Integer againBuy = 0;
	
}
