package com.jzdsh.auto.model.base;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;

/**
 * Generated by JFinal, do not modify this file.
 */
@SuppressWarnings({"serial", "unchecked"})
public abstract class BaseMessage<M extends BaseMessage<M>> extends Model<M> implements IBean {

	/**
	 * 表名
	 */
	public static final String TableName = "message";

	/**
	 * select fields from tablename 根据查询字段自动构建select 语句
	 */
	public static String SelectFrom(String fields){
		return String.format("select %s from %s ",fields,TableName);
	}



	/**
	 * 自增id
	 */
	public M setId(java.lang.Long id) {
		set("id", id);
		return (M)this;
	}
	
	/**
	 * 自增id
	 */
	public java.lang.Long getId() {
		return getLong("id");
	}

	/**
	 * 系统消息/平台通知/支付消息
	 */
	public M setTitle(java.lang.String title) {
		set("title", title);
		return (M)this;
	}
	
	/**
	 * 系统消息/平台通知/支付消息
	 */
	public java.lang.String getTitle() {
		return getStr("title");
	}

	/**
	 * 消息内容
	 */
	public M setContent(java.lang.String content) {
		set("content", content);
		return (M)this;
	}
	
	/**
	 * 消息内容
	 */
	public java.lang.String getContent() {
		return getStr("content");
	}

	/**
	 * 用户id
	 */
	public M setUserId(java.lang.Integer userId) {
		set("userId", userId);
		return (M)this;
	}
	
	/**
	 * 用户id
	 */
	public java.lang.Integer getUserId() {
		return getInt("userId");
	}

	/**
	 * 商家id
	 */
	public M setStoreId(java.lang.Integer storeId) {
		set("storeId", storeId);
		return (M)this;
	}
	
	/**
	 * 商家id
	 */
	public java.lang.Integer getStoreId() {
		return getInt("storeId");
	}

	/**
	 * 是否已读(0否,1是) default 0
	 */
	public M setIsRead(java.lang.String isRead) {
		set("isRead", isRead);
		return (M)this;
	}
	
	/**
	 * 是否已读(0否,1是) default 0
	 */
	public java.lang.String getIsRead() {
		return getStr("isRead");
	}

	/**
	 * 创建时间
	 */
	public M setCreateTime(java.util.Date createTime) {
		set("createTime", createTime);
		return (M)this;
	}
	
	/**
	 * 创建时间
	 */
	public java.util.Date getCreateTime() {
		return get("createTime");
	}

}
