package com.jasamedika.medifirst2000.entities;

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

import javax.persistence.*;
import javax.validation.constraints.NotNull;

import static javax.persistence.GenerationType.SEQUENCE;

/**
 * class DataRekapPenjualan
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "RM_DataRekapPenjualan_M")
public class DataRekapPenjualan extends BaseMaster {

	@NotNull(message = "NoReg tidak boleh kosong")
	@Column(name = "NoReg", nullable = false, length = 100)
	@Caption(value = "NoReg")
	private String noReg;

	@NotNull(message = "Rs tidak boleh kosong")
	@Column(name = "Rs", nullable = false, length = 100)
	@Caption(value = "Rs")
	private String rs;

	@NotNull(message = "Inap tidak boleh kosong")
	@Column(name = "Inap", nullable = false, length = 100)
	@Caption(value = "Inap")
	private String inap;

	@NotNull(message = "NoResep tidak boleh kosong")
	@Column(name = "NoResep", nullable = false, length = 100)
	@Caption(value = "NoResep")
	private String noResep;

	@NotNull(message = "WaktuLayanan tidak boleh kosong")
	@Column(name = "WaktuLayanan", nullable = false, length = 100)
	@Caption(value = "WaktuLayanan")
	private String waktuLayanan;

	@NotNull(message = "NamaPasien tidak boleh kosong")
	@Column(name = "NamaPasien", nullable = false, length = 100)
	@Caption(value = "NamaPasien")
	private String namaPasien;

	@NotNull(message = "JenisKelamin tidak boleh kosong")
	@Column(name = "JenisKelamin", nullable = false, length = 100)
	@Caption(value = "JenisKelamin")
	private String jenisKelamin;

	@NotNull(message = "Umur tidak boleh kosong")
	@Column(name = "Umur", nullable = false, length = 100)
	@Caption(value = "Umur")
	private String umur;

	@NotNull(message = "Dokter tidak boleh kosong")
	@Column(name = "Dokter", nullable = false, length = 100)
	@Caption(value = "Dokter")
	private String dokter;

	@NotNull(message = "UnitLayanan tidak boleh kosong")
	@Column(name = "UnitLayanan", nullable = false, length = 100)
	@Caption(value = "UnitLayanan")
	private String unitLayanan;

	@NotNull(message = "JumlahResep tidak boleh kosong")
	@Column(name = "JumlahResep", nullable = false, length = 100)
	@Caption(value = "JumlahResep")
	private String jumlahResep;

	@NotNull(message = "Harga tidak boleh kosong")
	@Column(name = "Harga", nullable = false, length = 100)
	@Caption(value = "Harga")
	private String harga;

	@NotNull(message = "Diskon tidak boleh kosong")
	@Column(name = "Diskon", nullable = false, length = 100)
	@Caption(value = "Diskon")
	private String diskon;

	@NotNull(message = "Jasa tidak boleh kosong")
	@Column(name = "Jasa", nullable = false, length = 100)
	@Caption(value = "Jasa")
	private String jasa;

	@NotNull(message = "Embalace tidak boleh kosong")
	@Column(name = "Embalace", nullable = false, length = 100)
	@Caption(value = "Embalace")
	private String embalace;

	@NotNull(message = "Ppn tidak boleh kosong")
	@Column(name = "Ppn", nullable = false, length = 100)
	@Caption(value = "Ppn")
	private String ppn;

	@NotNull(message = "Total tidak boleh kosong")
	@Column(name = "Total", nullable = false, length = 100)
	@Caption(value = "Total")
	private String total;

	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "public.RM_DataRekapPenjualan_M")
	@SequenceGenerator(name = "public.RM_DataRekapPenjualan_M", sequenceName = "public.RM_DataRekapPenjualan_M", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

}