package com.rf.psychological.wxpay.model;

import com.rf.psychological.base.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Description:支付日志
 * @Author: zsf
 * @Date: 2022/6/22
 */
@Entity
@Data
@EqualsAndHashCode(callSuper=false)
@NoArgsConstructor
@Table(name = "t_payment_info")
@org.hibernate.annotations.Table(appliesTo = "t_payment_info", comment = "支付日志信息表")
@DynamicUpdate
public class PaymentInfo extends BaseEntity {

    @Column(name = "order_no", columnDefinition = "varchar(50) comment '商品订单编号'")
    private String orderNo;//商品订单编号

    @Column(name = "transaction_id", columnDefinition = "varchar(50) comment '支付系统交易编号'")
    private String transactionId;//支付系统交易编号

    @Column(name = "payment_type", columnDefinition = "varchar(20) comment '支付类型'")
    private String paymentType;//支付类型

    @Column(name = "trade_type", columnDefinition = "varchar(20) comment '交易类型'")
    private String tradeType;//交易类型

    @Column(name = "trade_state", columnDefinition = "varchar(20) comment '交易状态'")
    private String tradeState;//交易状态

    @Column(name = "payer_total", columnDefinition = "int(11) comment '支付金额'")
    private Integer payerTotal;//支付金额(分)

    @Column(name = "content", columnDefinition = "varchar(500) comment '通知参数'")
    private String content;//通知参数

    @Column(name = "create_time", columnDefinition = "varchar(20) comment '创建时间'")
    private String createTime;//创建时间
}
