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 BaseVerifyCode<M extends BaseVerifyCode<M>> extends Model<M> implements IBean {

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

	/**
	 * 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.Integer id) {
		set("id", id);
		return (M)this;
	}
	
	/**
	 * 自增id
	 */
	public java.lang.Integer getId() {
		return getInt("id");
	}

	/**
	 * 手机号
	 */
	public M setPhone(java.lang.String phone) {
		set("phone", phone);
		return (M)this;
	}
	
	/**
	 * 手机号
	 */
	public java.lang.String getPhone() {
		return getStr("phone");
	}

	/**
	 * 验证码
	 */
	public M setCode(java.lang.String code) {
		set("code", code);
		return (M)this;
	}
	
	/**
	 * 验证码
	 */
	public java.lang.String getCode() {
		return getStr("code");
	}

	/**
	 * 发送时间
	 */
	public M setSendTime(java.util.Date sendTime) {
		set("sendTime", sendTime);
		return (M)this;
	}
	
	/**
	 * 发送时间
	 */
	public java.util.Date getSendTime() {
		return get("sendTime");
	}

}
