content: package ahmetcetinkaya.HRMSProjectBackend.entities.concretes;
  
  import ahmetcetinkaya.HRMSProjectBackend.core.entities.User;
  import java.time.LocalDateTime;
  import javax.persistence.*;
  import javax.validation.constraints.NotNull;
  import javax.validation.constraints.PastOrPresent;
  import lombok.*;
  
  @Data
  @NoArgsConstructor
  @AllArgsConstructor
  @Builder
  @ToString
  @EqualsAndHashCode
  @Entity
  @Table(name = "company_staff_verifications")
  public class CompanyStaffVerification {
      @NotNull
      @Column(name = "created_at", columnDefinition = "Date default CURRENT_DATE")
      private final LocalDateTime createdAt = LocalDateTime.now();
  
      @Column(name = "id")
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private int id;
  
      @NotNull
      @JoinColumn(name = "user_id")
      @OneToOne()
      private User user;
  
      @NotNull
      @Column(name = "is_approved", columnDefinition = "boolean default false")
      private boolean isApproved = false;
  
      @NotNull
      @PastOrPresent
      @Column(name = "approval_date")
      private LocalDateTime approvalDate;
  }