package com.honey.honey.model;

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

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

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

    @Column(name = "screen_name", nullable = false, length = 75)
    @Builder.Default
    private String screenName = "-";

    /** Unix registration time (seconds); kept in sync with db_users_a.date_reg on signup. */
    @Column(name = "date_reg", nullable = false)
    @Builder.Default
    private Integer dateReg = 0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    @Column(name = "to_referer_5", nullable = false)
    @Builder.Default
    private Long toReferer5 = 0L;
}


