package de.szut.casino.user;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@Entity
@NoArgsConstructor
public class UserEntity {
    @Id
    @GeneratedValue
    private Long id;
    @Column(unique = true)
    private String keycloakId;
    private String username;
    private float balance;

    public UserEntity(String keycloakId, String username, float balance) {
        this.keycloakId = keycloakId;
        this.username = username;
        this.balance = balance;
    }
}
