package ovh.herisson.Clyde.Tables;

import jakarta.persistence.*;

@Entity
public class Secretary {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int id;

    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "Users")
    private User user;
    private String faculty;

    public Secretary(User user, String faculty){
        this.user = user;
        this.faculty = faculty;
    }

    public Secretary() {}

    public int getId() {
        return id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getFaculty() {
        return faculty;
    }

    public void setFaculty(String faculty) {
        this.faculty = faculty;
    }
}
