package com.tzy.pojo.app;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.Data;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2022-02-16 
 */

@Table ( name ="app_user_card_record" )
@Data
public class AppUserCardRecord  implements Serializable {

	private static final long serialVersionUID =  3320507948676542909L;

   	@Column(name = "id" )
	private Long id;

	/**
	 * 用户id
	 */
   	@Column(name = "user_id" )
	private Long userId;

	/**
	 * 订单id
	 */
   	@Column(name = "order_id" )
	private Long orderId;

	/**
	 * 订单编码
	 */
   	@Column(name = "order_no" )
	private String orderNo;

	/**
	 * 卡券id
	 */
   	@Column(name = "card_id" )
	private Long cardId;

	/**
	 * 卡券名称
	 */
   	@Column(name = "card_name" )
	private String cardName;

	/**
	 * 卡券编码
	 */
   	@Column(name = "card_no" )
	private String cardNo;

	/**
	 * 原价
	 */
   	@Column(name = "original_price" )
	private String originalPrice;

	/**
	 * 特价
	 */
   	@Column(name = "special_price" )
	private String specialPrice;

	/**
	 * 优惠价格
	 */
   	@Column(name = "discount" )
	private String discount;

	/**
	 * 备注
	 */
   	@Column(name = "remark" )
	private String remark;

	/**
	 * 状态：0=未使用，1=已使用，2=已过期
	 */
   	@Column(name = "status" )
	private String status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

	/**
	 * 过期时间
	 */
   	@Column(name = "expiry_time" )
	private Date expiryTime;

}
