package com.izouma.dingdong.domain;

import io.swagger.annotations.ApiModel;
import lombok.*;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = false)
@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Where(clause = "enabled = 1")
@ApiModel(value = "支付表", description = "支付表")
public class FeeRecord extends BaseEntity {
    /*
    mch_order_no
    mch_refund_no
     */
    private String mchNo;

    private Integer totalFee;

    private String channel;

    private String feeType;

    /*
    支付订单是否退款
     */
    private Boolean isRefund;

    /*
    支付true 退款false
     */
    private Boolean isPay;

    private LocalDateTime dateTime;

    private String orderId;

    @Column(nullable = false)
    private Boolean enabled = true;

}
