package com.cool.store.entity.wallet;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

/**
 * 钱包支付订单
 */
@Table(name = "zxjp_wallet_payment_order")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class WalletPaymentOrderDO {
    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 门店id
     */
    @Column(name = "store_id")
    private String storeId;

    /**
     * 预支付id
     */
    @Column(name = "payment_id")
    private String paymentId;

    /**
     * 订单类型，0充值 1提现
     */
    @Column(name = "type")
    private Integer type;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 过期时间
     */
    @Column(name = "expire_time")
    private String expireTime;

    /**
     * 订单状态:1-成功 2-失败 3-支付中 4-撤销
     */
    @Column(name = "order_status")
    private Integer orderStatus;

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

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