package com.palmnest.model.notice;

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

@Entity
@Table(name = "tb_app_notice_record")
public class AppNoticeRecordModel implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1117349763096659169L;

    /**
     *
     */

    private Integer id;//主键ID
    private Integer  nId;//公告id
    private String  department;//部门
    private Integer  userId;//用户id
    private String  name;// 名称
    private String  telephone;//电话
    private Integer  type;//   类型  默认0未读 ，1已读
    private Integer orgId;
    private Integer publicObj;
    private String  createTime;
    private String  openId;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "ID", unique = true, nullable = false)
    public Integer getId() {
        return id;
    }

    @Column(name = "publicObj")
    public Integer getPublicObj() {
        return publicObj;
    }
    @Column(name = "openId")
    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public void setPublicObj(Integer publicObj) {
        this.publicObj = publicObj;
    }
    @Column(name = "createTime")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    @Column(name = "n_id")
    public Integer getnId() {
        return nId;
    }
    @Column(name = "orgId")
    public Integer getOrgId() {
        return orgId;
    }

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

    public void setnId(Integer nId) {
        this.nId = nId;
    }
    @Column(name = "department")
    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }
    @Column(name = "userId")
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Column(name = "telephone")
    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }
    @Column(name = "type")
    public Integer getType() {
        return type;
    }

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