package com.palmnest.model.notice;

import java.io.Serializable;
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;

@Entity
@Table(name = "tb_notice_subgroup")
public class NoticeSubGroupModel implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2616065251282971092L;
	private Integer id;//主键id
	private Integer  type;//类型：1-公告;2-微信模板;3-短信;4-邮件;
	private Integer  source_id;//来源id
	private Integer  dept_group_type;//部门/分组:1-部门;2-分组;
	private Integer  dept_group_id;//部门id/分组id
	private String  dept_group_name;//部门名/分组名
	private Integer  created_by;//创建人
	private Date  created_at;//创建时间
	private Integer  updated_by;//修改人
	private Date updated_at;//修改时间
	private Integer enabled;//是否有效，1-是；0-否；
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getSource_id() {
		return source_id;
	}
	public void setSource_id(Integer source_id) {
		this.source_id = source_id;
	}
	public Integer getDept_group_type() {
		return dept_group_type;
	}
	public void setDept_group_type(Integer dept_group_type) {
		this.dept_group_type = dept_group_type;
	}
	public Integer getDept_group_id() {
		return dept_group_id;
	}
	public void setDept_group_id(Integer dept_group_id) {
		this.dept_group_id = dept_group_id;
	}
	public String getDept_group_name() {
		return dept_group_name;
	}
	public void setDept_group_name(String dept_group_name) {
		this.dept_group_name = dept_group_name;
	}
	public Integer getCreated_by() {
		return created_by;
	}
	public void setCreated_by(Integer created_by) {
		this.created_by = created_by;
	}
	public Date getCreated_at() {
		return created_at;
	}
	public void setCreated_at(Date created_at) {
		this.created_at = created_at;
	}
	public Integer getUpdated_by() {
		return updated_by;
	}
	public void setUpdated_by(Integer updated_by) {
		this.updated_by = updated_by;
	}
	public Date getUpdated_at() {
		return updated_at;
	}
	public void setUpdated_at(Date updated_at) {
		this.updated_at = updated_at;
	}
	public Integer getEnabled() {
		return enabled;
	}
	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}
	
	

}
