content: package ahmetcetinkaya.HRMSProjectBackend.entities.concretes;
  
  import java.time.LocalDate;
  import java.time.LocalDateTime;
  import javax.persistence.*;
  import javax.validation.constraints.NotBlank;
  import javax.validation.constraints.NotNull;
  import javax.validation.constraints.PastOrPresent;
  import javax.validation.constraints.Size;
  import lombok.*;
  
  @Data
  @NoArgsConstructor
  @AllArgsConstructor
  @Builder
  @ToString
  @EqualsAndHashCode
  @Entity
  @Table(name = "job_seeker_cv_educations")
  public class JobSeekerCVEducation {
      @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 = "job_seeker_cv_id")
      @ManyToOne
      private JobSeekerCV jobSeekerCV;
  
      @NotBlank
      @Size(max = 100)
      @Column(name = "school_name")
      private String schoolName;
  
      @NotBlank
      @Size(max = 100)
      @Column(name = "department_name")
      private String departmentName;
  
      @NotNull
      @PastOrPresent
      @Column(name = "start_date")
      private LocalDate startDate;
  
      @PastOrPresent
      @Column(name = "graduation_date")
      private LocalDate graduationDate;
  }