package io.aiven.klaw.dao;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
// table name should be defined in SchedulerConfiguration too
@Table(name = "kwshedlock")
public class Shedlock {

  @Id private String name;

  @Column private Date lockUntil;

  @Column private Date lockedAt;

  @Column private String lockedBy;
}
