package com.honey.honey.model;

import jakarta.persistence.*;
import lombok.*;

@Entity
@Table(name = "db_users_b")
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserB {

    @Id
    @Column(name = "id")
    private Integer id;

    @Column(name = "balance_a", nullable = false)
    @Builder.Default
    private Long balanceA = 0L;

    @Column(name = "balance_b", nullable = false)
    @Builder.Default
    private Long balanceB = 0L;

    @Column(name = "deposit_total", nullable = false)
    @Builder.Default
    private Long depositTotal = 0L;

    @Column(name = "deposit_count", nullable = false)
    @Builder.Default
    private Integer depositCount = 0;

    @Column(name = "withdraw_total", nullable = false)
    @Builder.Default
    private Long withdrawTotal = 0L;

    @Column(name = "withdraw_count", nullable = false)
    @Builder.Default
    private Integer withdrawCount = 0;

    /** When true, the user cannot create any payout request (blocked on backend). */
    @Column(name = "withdrawals_disabled", nullable = false)
    @Builder.Default
    private Boolean withdrawalsDisabled = false;
}


