package be.seeseepuff.allowanceplanner.entity;

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

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

    @Column(nullable = false)
    private String name;

    @Column(nullable = false)
    private long reward;

    private Integer assigned;

    private String schedule;

    private Long completed;

    @Column(name = "next_run")
    private Long nextRun;
}
