package com.ikon.projectmanagement.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import java.util.UUID;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.JdbcTypeCode;
import org.hibernate.type.SqlTypes;

@Entity
@Table(name = "employees")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Employee {

    @Id
    @Column(unique = true)
    private String empId;

    @JdbcTypeCode(SqlTypes.UUID)
    private UUID accountId;

    private String name;
    private String email;
    private String organizationEmail;

    @Column(name = "\"role\"")
    private String role;

    private String grade;
    private Boolean active;

    private String highestQualification;
    private String joiningDate;
    private String confirmationDate;
}
