package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.Date;

@Getter
@Setter
@Entity
@Table(name = "Instruksi_T")
public class Instruksi extends MedicalRecordTransaction {

	@Caption(value = "TanggalInput")
	@Column(name = "TanggalInput", nullable = false)
	private Date tanggalInput;

	@ManyToOne
	@JoinColumn(name = "ObjectPetugas")
	@Caption(value = "Dokter Petugas")
	private Pegawai petugas;

	@Column(name = "ObjectPetugas", insertable = false, updatable = false)
	private Integer petugasId;

	@ManyToOne
	@JoinColumn(name = "ObjectRuanganFk")
	@Caption(value = " Ruangan")
	private Ruangan Ruangan;

	@Column(name = "ObjectRuanganFk", insertable = false, updatable = false)
	private Integer RuanganId;

	@Caption(value = "instruksi")
	@Column(name = "instruksi", nullable = false)
	private String instruksi;

}
