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 = "requesters",schema = "main")
public class Requesters {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	@NotNull
	private String name;
	
	@NotNull
	private int status;

	@NonNull
	@Column(columnDefinition = "timestamp without time zone NOT NULL default now()")
	private Date createdat;
	
	@NonNull
	@Column(columnDefinition = "timestamp without time zone NOT NULL default now()")
	private Date modifiedat;
	
	private String dsc;
	
	private String contactname;
	
	private String contactphone;
	
	private String contactemail;
	
	private String contactother;
	
	private Integer requestertypepar;
	
	public Requesters() {
		super();
	}

	public Requesters(Integer id, @NotNull String name, @NotNull int status, Date createdat, Date modifiedat,
			String dsc, String contactname, String contactphone, String contactemail, String contactother,
			Integer requestertypepar) {
		super();
		this.id = id;
		this.name = name;
		this.status = status;
		this.createdat = createdat;
		this.modifiedat = modifiedat;
		this.dsc = dsc;
		this.contactname = contactname;
		this.contactphone = contactphone;
		this.contactemail = contactemail;
		this.contactother = contactother;
		this.requestertypepar = requestertypepar;
	}

	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 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;
	}

	public String getDsc() {
		return dsc;
	}

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

	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 String getContactother() {
		return contactother;
	}

	public void setContactother(String contactother) {
		this.contactother = contactother;
	}

	public Integer getRequestertypepar() {
		return requestertypepar;
	}

	public void setRequestertypepar(Integer requestertypepar) {
		this.requestertypepar = requestertypepar;
	}

	
}
