package com.pj.project.tb_message;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * Model: tb_message -- 通知消息
 * @author lsw 
 */
@Data
@Accessors(chain = true)
@TableName(TbMessage.TABLE_NAME)
@EqualsAndHashCode(callSuper = false)
public class TbMessage extends Model<TbMessage> implements Serializable {

	// ---------- 模块常量 ----------
	/**
	 * 序列化版本id 
	 */
	private static final long serialVersionUID = 1L;	
	/**
	 * 此模块对应的表名 
	 */
	public static final String TABLE_NAME = "tb_message";	
	/**
	 * 此模块对应的权限码 
	 */
	public static final String PERMISSION_CODE = "tb-message";
	public static final String PERMISSION_CODE_ADD = "tb-message-add";
	public static final String PERMISSION_CODE_EDIT = "tb-message-edit";
	public static final String PERMISSION_CODE_DEL = "tb-message-del";




	// ---------- 表中字段 ----------
	/**
	 *  
	 */
	@TableId(type = IdType.AUTO)
	private Long id;	

	/**
	 * 消息类型 
	 */
	private Integer types;	

	/**
	 * 跳转页面路径 
	 */
	private String url;

	/**
	 * 消息内容 
	 */
	private String contents;	

	/**
	 * 关联用户 
	 */
	private Long userId;	

	/**
	 * 状态(0=禁用,1=启用) 
	 */
	private Integer enable;	

	/**
	 * 是否已读(0=未读,1=已读) 
	 */
	private Integer isRead;	

	/**
	 * 创建时间 
	 */
	private Date createTime;





	


}
