package com.palmnest.model.notice;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 组织架构L1 - ArticleCensusModel
 *
 * @author: jiangyong
 * @email: jiangyong@avic-s.com
 * @date: 2019/12/14 11:34
 */
@Entity
@Table(name = "tb_article_census")
public class ArticleCensusModel implements Serializable {

	private static final long serialVersionUID = -2132740725076130141L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID", unique = true, nullable = false)
	private Integer id;//主键ID
	@Column(name = "art_id")
	private Integer artId;//文章id或者notice_id
	@Column(name = "org_id")
	private Integer orgId;//项目ID
	@Column(name = "count")
	private Integer count;//阅读量
	@Column(name = "reader_id")
	private Integer readerId;//阅读者id
	@Column(name = "reader_type")
	private Integer readerType;//阅读者类型 1:游客 2:普通用户
	@Column(name = "platform_type")
	private Integer platformType;//平台类型:1:PC 2:微信 3:h5 4:安卓 5:ios
	@Column(name = "day_info")
	private String  dayInfo;//日期 年-月-日
	@Column(name = "type")
	private Integer type;//类型:0:按日统计 1:按月统计 2:按年统计
	@Column(name = "enabled")
	private Integer enabled;//是否计入统计:0-不计入;1-计入
	@Column(name = "created_by")
	private Integer createdBy; //创建人
	@Column(name = "created_at")
	private Date    createdAt; //创建时间
	@Column(name = "updated_by")
	private Integer updatedBy; //修改人
	@Column(name = "updated_at")
	private Date    updatedAt; //修改时间

	public Integer getId() {
		return id;
	}

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

	public Integer getArtId() {
		return artId;
	}

	public void setArtId(Integer artId) {
		this.artId = artId;
	}

	public Integer getOrgId() {
		return orgId;
	}

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

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Integer getReaderId() {
		return readerId;
	}

	public void setReaderId(Integer readerId) {
		this.readerId = readerId;
	}

	public Integer getReaderType() {
		return readerType;
	}

	public void setReaderType(Integer readerType) {
		this.readerType = readerType;
	}

	public Integer getPlatformType() {
		return platformType;
	}

	public void setPlatformType(Integer platformType) {
		this.platformType = platformType;
	}

	public String getDayInfo() {
		return dayInfo;
	}

	public void setDayInfo(String dayInfo) {
		this.dayInfo = dayInfo;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getEnabled() {
		return enabled;
	}

	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}

	public Integer getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(Integer createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public Integer getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(Integer updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

}
