package com.honey.honey.dto;

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

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AdminUserDto {
    private Integer id;
    private String screenName;
    private Long telegramId;
    private String telegramName;
    private Long balanceA;
    private Long balanceB;
    private Long depositTotal;
    private Integer depositCount;
    private Long withdrawTotal;
    private Integer withdrawCount;
    private Integer dateReg;
    private Integer dateLogin;
    private Integer banned;
    private String countryCode;
    private String languageCode;
    private Integer referralCount; // Total referrals across all levels
    private Long totalCommissionsEarned; // Total commissions earned from referrals
    /** Profit in tickets (bigint): depositTotal - withdrawTotal */
    private Long profit;
    /** USD from db_users_b: depositTotal (tickets/1000) */
    private BigDecimal depositTotalUsd;
    /** USD from db_users_b: withdrawTotal (tickets/1000) */
    private BigDecimal withdrawTotalUsd;
    /** USD from db_users_b: profit (tickets/1000) */
    private BigDecimal profitUsd;
}

