package com.zhongshu.card.server.core.domain.payment;

import com.zhongshu.card.server.core.domain.base.SuperMain;
import com.zhongshu.card.server.core.domain.org.UserAccount;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;

/**
 * @author TRX
 * @date 2024/6/26
 */
@Data
@Builder
@Document
@AllArgsConstructor
@NoArgsConstructor
public class PaymentSetting extends SuperMain {

    @Schema(description = "用户信息")
    @DBRef(lazy = true)
    private UserAccount userAccount;

    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "支付密码")
    private String payPassWord;

    @Schema(description = "每天最大的支付金额")
    private BigDecimal maxPaymentAmount = BigDecimal.ZERO;

}
