package com.dacrt.SBIABackend.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.springframework.lang.NonNull;

@Entity
@Table(name = "suppliers",schema = "main")
public class Suppliers {
	
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	@NotNull
	private String name;
	
	@NotNull
	private int status;
	
	@NotNull
	private String ref;
	
	private String ruc;
	
	private String contractinfo;
	
	private String suppliertypepar; 
	private String dsc; 
	private String relatedcompanyyesnopar; 
	private String dataprocyesnopar; 
	private String bcpdrpyesnopar; 
	private int rtocontractual; 
	private String rtoperiodpar; 
	private int rpocontractual; 
	private String apoperiodpar;
	private String contactname;
	private String contactphone;
	private String contactemail;
	private int atttime;
	private String atttimeperiodpar;
	private int responsetime;
	private String responsetimeperriodpar;
	private Integer supportlinepar;
	private String solutionsupportpar;
	@NotNull
	@Column(columnDefinition = "timestamp without time zone NOT NULL default now()")
	private Date createdat;
	
	@NotNull
	@Column(columnDefinition = "timestamp without time zone NOT NULL default now()")
	private Date modifiedat;
	
	public Suppliers(Integer id, @NotNull String name, @NotNull int status, @NotNull String ref, String ruc,
			String contractinfo, String suppliertypepar, String dsc, String relatedcompanyyesnopar,
			String dataprocyesnopar, String bcpdrpyesnopar, int rtocontractual, String rtoperiodpar, int rpocontractual,
			String apoperiodpar, String contactname, String contactphone, String contactemail, int atttime,
			String atttimeperiodpar, int responsetime, String responsetimeperriodpar, Integer supportlinepar,
			String solutionsupportpar, @NotNull Date createdat, @NotNull Date modifiedat) {
		super();
		this.id = id;
		this.name = name;
		this.status = status;
		this.ref = ref;
		this.ruc = ruc;
		this.contractinfo = contractinfo;
		this.suppliertypepar = suppliertypepar;
		this.dsc = dsc;
		this.relatedcompanyyesnopar = relatedcompanyyesnopar;
		this.dataprocyesnopar = dataprocyesnopar;
		this.bcpdrpyesnopar = bcpdrpyesnopar;
		this.rtocontractual = rtocontractual;
		this.rtoperiodpar = rtoperiodpar;
		this.rpocontractual = rpocontractual;
		this.apoperiodpar = apoperiodpar;
		this.contactname = contactname;
		this.contactphone = contactphone;
		this.contactemail = contactemail;
		this.atttime = atttime;
		this.atttimeperiodpar = atttimeperiodpar;
		this.responsetime = responsetime;
		this.responsetimeperriodpar = responsetimeperriodpar;
		this.supportlinepar = supportlinepar;
		this.solutionsupportpar = solutionsupportpar;
		this.createdat = createdat;
		this.modifiedat = modifiedat;
	}

	

	public Suppliers() {
		super();
		// TODO Auto-generated constructor stub
	}



	public Integer getId() {
		return id;
	}


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


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public int getStatus() {
		return status;
	}


	public void setStatus(int status) {
		this.status = status;
	}

	public String getSuppliertypepar() {
		return suppliertypepar;
	}

	public void setSuppliertypepar(String suppliertypepar) {
		this.suppliertypepar = suppliertypepar;
	}

	public String getDsc() {
		return dsc;
	}

	public void setDsc(String dsc) {
		this.dsc = dsc;
	}

	public String getRelatedcompanyyesnopar() {
		return relatedcompanyyesnopar;
	}

	public void setRelatedcompanyyesnopar(String relatedcompanyyesnopar) {
		this.relatedcompanyyesnopar = relatedcompanyyesnopar;
	}

	public String getDataprocyesnopar() {
		return dataprocyesnopar;
	}

	public void setDataprocyesnopar(String dataprocyesnopar) {
		this.dataprocyesnopar = dataprocyesnopar;
	}

	public String getBcpdrpyesnopar() {
		return bcpdrpyesnopar;
	}

	public void setBcpdrpyesnopar(String bcpdrpyesnopar) {
		this.bcpdrpyesnopar = bcpdrpyesnopar;
	}

	public int getRtocontractual() {
		return rtocontractual;
	}

	public void setRtocontractual(int rtocontractual) {
		this.rtocontractual = rtocontractual;
	}

	public String getRtoperiodpar() {
		return rtoperiodpar;
	}

	public void setRtoperiodpar(String rtoperiodpar) {
		this.rtoperiodpar = rtoperiodpar;
	}

	public int getRpocontractual() {
		return rpocontractual;
	}

	public void setRpocontractual(int rpocontractual) {
		this.rpocontractual = rpocontractual;
	}

	public String getApoperiodpar() {
		return apoperiodpar;
	}

	public void setApoperiodpar(String apoperiodpar) {
		this.apoperiodpar = apoperiodpar;
	}

	public String getRef() {
		return ref;
	}

	public void setRef(String ref) {
		this.ref = ref;
	}

	public String getRuc() {
		return ruc;
	}

	public void setRuc(String ruc) {
		this.ruc = ruc;
	}

	public String getContractinfo() {
		return contractinfo;
	}

	public void setContractinfo(String contractinfo) {
		this.contractinfo = contractinfo;
	}

	public String getContactname() {
		return contactname;
	}

	public void setContactname(String contactname) {
		this.contactname = contactname;
	}

	public String getContactphone() {
		return contactphone;
	}

	public void setContactphone(String contactphone) {
		this.contactphone = contactphone;
	}

	public String getContactemail() {
		return contactemail;
	}

	public void setContactemail(String contactemail) {
		this.contactemail = contactemail;
	}

	public int getAtttime() {
		return atttime;
	}

	public void setAtttime(int atttime) {
		this.atttime = atttime;
	}

	public String getAtttimeperiodpar() {
		return atttimeperiodpar;
	}

	public void setAtttimeperiodpar(String atttimeperiodpar) {
		this.atttimeperiodpar = atttimeperiodpar;
	}

	public int getResponsetime() {
		return responsetime;
	}

	public void setResponsetime(int responsetime) {
		this.responsetime = responsetime;
	}

	public String getResponsetimeperriodpar() {
		return responsetimeperriodpar;
	}

	public void setResponsetimeperriodpar(String responsetimeperriodpar) {
		this.responsetimeperriodpar = responsetimeperriodpar;
	}

	public Integer getSupportlinepar() {
		return supportlinepar;
	}

	public void setSupportlinepar(Integer supportlinepar) {
		this.supportlinepar = supportlinepar;
	}

	public String getSolutionsupportpar() {
		return solutionsupportpar;
	}

	public void setSolutionsupportpar(String solutionsupportpar) {
		this.solutionsupportpar = solutionsupportpar;
	}

	public Date getCreatedat() {
		return createdat;
	}

	public void setCreatedat(Date createdat) {
		this.createdat = createdat;
	}

	public Date getModifiedat() {
		return modifiedat;
	}

	public void setModifiedat(Date modifiedat) {
		this.modifiedat = modifiedat;
	}

}