package be.seeseepuff.allowanceplanner.entity;

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

@Entity
@Table(name = "allowances")
@Getter
@Setter
public class Allowance {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;

    @Column(name = "user_id", nullable = false)
    private int userId;

    @Column(nullable = false)
    private String name;

    @Column(nullable = false)
    private long target;

    @Column(nullable = false)
    private long balance = 0;

    @Column(nullable = false)
    private double weight;

    private Integer colour;
}
