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_wx_upload_material")
public class WxUploadMaterialModel implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 3244533454198400652L;

	private Integer id;// int(10) NOT NULL AUTO_INCREMENT COMMENT 'ID',
	private String  m_type;// varchar(32) DEFAULT NULL COMMENT '素材类别(图片（image）、视频（video）、语音 （voice）、图文（news）,缩略图（thumb）)',
	private String  developid;// varchar(32) DEFAULT NULL COMMENT '开发者微信号',
	private String  url;// varchar(200) DEFAULT NULL COMMENT '媒体地址',
	private String  media_id;// varchar(80) DEFAULT NULL COMMENT '媒体id',
	private Integer created_by;// int(10) DEFAULT NULL COMMENT '创建人',
	private Date    created_at;// datetime DEFAULT NULL COMMENT '创建时间',
	private Integer updated_by;// int(10) DEFAULT NULL COMMENT '更新人',
	private Date    updated_at;// datetime DEFAULT NULL COMMENT '更新时间',
	private Integer orgId;// 项目Id
	private Integer sourceId;//来源单据Id
	private Integer isEnabled;//

	@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 String getM_type() {
		return m_type;
	}

	public void setM_type(String m_type) {
		this.m_type = m_type;
	}

	public String getDevelopid() {
		return developid;
	}

	public void setDevelopid(String developid) {
		this.developid = developid;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getMedia_id() {
		return media_id;
	}

	public void setMedia_id(String media_id) {
		this.media_id = media_id;
	}

	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 getOrgId() {
		return orgId;
	}

	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}

	public Integer getSourceId() {
		return sourceId;
	}

	public void setSourceId(Integer sourceId) {
		this.sourceId = sourceId;
	}

	public Integer getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(Integer isEnabled) {
		this.isEnabled = isEnabled;
	}

}
