package com.izouma.nineth.domain;

import com.izouma.nineth.enums.PayMethod;
import com.izouma.nineth.enums.WithdrawStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class WithdrawApply extends BaseEntity {
    private Long userId;

    private BigDecimal amount;

    @Enumerated(EnumType.STRING)
    @Column(length = 20)
    private WithdrawStatus status;

    private String reason;

    private String withdrawId;

    private String channel;

    private LocalDateTime finishTime;
}
