package org.cs.mgr.user.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.cs.core.model.BaseEntity;

@Entity
@Table(name="app_msg_record")
public class MsgRecord extends BaseEntity{

	
	/**
	 * 系统消息阅读记录
	 */
	private static final long serialVersionUID = 3926715534715568632L;
	
	private Integer msgId;//消息ID 
	private Integer userId;
	
	@Id
	@SequenceGenerator(name="sequenceGenerator",sequenceName="USER_SEQ")
	@GeneratedValue(generator="sequenceGenerator",strategy=GenerationType.SEQUENCE)
	@Column(name = "id", unique = true, nullable = false, precision = 11, scale = 0)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	
	@Column(name="msg_id")
	public Integer getMsgId() {
		return msgId;
	}
	public void setMsgId(Integer msgId) {
		this.msgId = msgId;
	}
	
	@Column(name="user_id")
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
}
