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 = "strategiesdet",schema = "main")
public class Strategiesdet {
	
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;
	
	@NotNull
	private int strategyid;
	
	@NotNull
	private int status;
	
	private Integer applicationid;
	
	private Integer facilityid;
	
	private Integer supplierid;
	
	private Integer channelid;
	
	private Integer positionid;
	
	private Integer resourceid;
	
	private String name;
	
	@NotNull
	private String dsc;
	
	@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 Integer supplieridusr;

	
	public Strategiesdet() {
		super();
	}

	public Strategiesdet(int id, @NotNull int strategyid, @NotNull int status, Integer applicationid,
			Integer facilityid, Integer supplierid, Integer channelid, Integer positionid, Integer resourceid,
			String name, @NotNull String dsc, Date createdat, Date modifiedat, Integer supplieridusr) {
		super();
		this.id = id;
		this.strategyid = strategyid;
		this.status = status;
		this.applicationid = applicationid;
		this.facilityid = facilityid;
		this.supplierid = supplierid;
		this.channelid = channelid;
		this.positionid = positionid;
		this.resourceid = resourceid;
		this.name = name;
		this.dsc = dsc;
		this.createdat = createdat;
		this.modifiedat = modifiedat;
		this.supplieridusr = supplieridusr;
	}

	public int getId() {
		return id;
	}

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

	public int getStrategyid() {
		return strategyid;
	}

	public void setStrategyid(int strategyid) {
		this.strategyid = strategyid;
	}

	public int getStatus() {
		return status;
	}

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

	public Integer getApplicationid() {
		return applicationid;
	}

	public void setApplicationid(Integer applicationid) {
		this.applicationid = applicationid;
	}

	public Integer getFacilityid() {
		return facilityid;
	}

	public void setFacilityid(Integer facilityid) {
		this.facilityid = facilityid;
	}

	public Integer getSupplierid() {
		return supplierid;
	}

	public void setSupplierid(Integer supplierid) {
		this.supplierid = supplierid;
	}

	public Integer getChannelid() {
		return channelid;
	}

	public void setChannelid(Integer channelid) {
		this.channelid = channelid;
	}

	public Integer getPositionid() {
		return positionid;
	}

	public void setPositionid(Integer positionid) {
		this.positionid = positionid;
	}

	public Integer getResourceid() {
		return resourceid;
	}

	public void setResourceid(Integer resourceid) {
		this.resourceid = resourceid;
	}

	public String getName() {
		return name;
	}

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

	public String getDsc() {
		return dsc;
	}

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

	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 Integer getSupplieridusr() {
		return supplieridusr;
	}

	public void setSupplieridusr(Integer supplieridusr) {
		this.supplieridusr = supplieridusr;
	}

	
}
