package com.magistr.app.model;

import jakarta.persistence.*;

@Entity
@Table(name="specialties")
public class Speciality extends LifecycleEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name="name", nullable = false)
    private String specialityName;

    @Column(name="specialty_code",nullable = false)
    private String specialityCode;

    public Speciality() {}

    public Speciality(Long id, String specialityName, String specialityCode) {
        this.id = id;
        this.specialityName = specialityName;
        this.specialityCode = specialityCode;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSpecialityName() {
        return specialityName;
    }

    public void setSpecialityName(String specialityName) {
        this.specialityName = specialityName;
    }

    public String getSpecialityCode() {
        return specialityCode;
    }

    public void setSpecialityCode(String specialityCode) {
        this.specialityCode = specialityCode;
    }
}
