package com.alterdekim.hearthhack.entity;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "hero_xp")
public class HeroXP {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(nullable = false)
    private Long userId;

    @Column(nullable = false)
    private Integer classId;

    @Column(nullable = false)
    private Integer level;

    @Column(nullable = false)
    private Integer currXp;

    @Column(nullable = false)
    private Integer maxXp;

    @Column(nullable = false)
    private Long nextRewardId;
}
