package com.softwarebr.nunu.entity.user;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.time.LocalDateTime;

/**
 * @date 2020-02-27 13:36:08
 * @author lilin
 */

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name="u_refund_info")
@Builder
public class RefundInfo {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty(value = "id", required = true, example = "1")
	private Long id;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
	private LocalDateTime createDate;

	@ApiModelProperty(value = "订单id", required = true, example = "")
	private Long orderId;

	@ApiModelProperty(value = "活动id", required = true, example = "")
	private Long activityId;

	@ApiModelProperty(value = "用户id", required = true, example = "")
	private Long memberId;

	@ApiModelProperty(value = "退款原因", required = true, example = "")
	private String reason;

	@ApiModelProperty(value = "凭证图片", required = true, example = "")
	@Column(length = Integer.MAX_VALUE)
	private String voucherPicture;

	@ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
	private Integer verify;

	@ApiModelProperty(value = "审核备注", required = true, example = "")
	private String verifyRemark;

}