package net.wicp.tams.app.duckula.controller.bean.models;

import java.util.Date;

import net.wicp.tams.common.annotation.TamsBean;
import net.wicp.tams.common.annotation.TamsCol;
import net.wicp.tams.common.constant.dic.YesOrNo;

/**
 *
 * This class was generated by MyBatis Generator. This class corresponds to the
 * database table sys_tenant
 */
@TamsBean(title = "租户管理")
public class SysTenant {

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column sys_tenant.id
	 * @mbg.generated
	 */
	private Long id;
	/**
	 * Database Column Remarks: 租户编码 This field was generated by MyBatis Generator. This field corresponds to the database column sys_tenant.code
	 * @mbg.generated
	 */
	@TamsCol(value = "租户编码", save = 1, query = -1, showWidth = 100)
	private String code;
	/**
	 * Database Column Remarks: 租户名 This field was generated by MyBatis Generator. This field corresponds to the database column sys_tenant.name
	 * @mbg.generated
	 */
	@TamsCol(value = "租户名", save = 1, query = 1, showWidth = 100)
	private String name;
	/**
	 * Database Column Remarks: 创建时间 This field was generated by MyBatis Generator. This field corresponds to the database column sys_tenant.create_name
	 * @mbg.generated
	 */
	private String createName;
	/**
	 * Database Column Remarks: 租户状态 This field was generated by MyBatis Generator. This field corresponds to the database column sys_tenant.status
	 * @mbg.generated
	 */
	@TamsCol(value = "租户状态", save = 1, query = 0, showWidth = 100, enumClass = YesOrNo.class)
	private String status;
	/**
	 * Database Column Remarks: 状态改变时间 This field was generated by MyBatis Generator. This field corresponds to the database column sys_tenant.status_time
	 * @mbg.generated
	 */
	private Date statusTime;
	/**
	 * Database Column Remarks: 操作原因 This field was generated by MyBatis Generator. This field corresponds to the database column sys_tenant.operate_reason
	 * @mbg.generated
	 */
	@TamsCol(value = "操作原因", save = 1, query = -1, showWidth = 100)
	private String operateReason;

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant
	 * @mbg.generated
	 */
	public SysTenant(Long id, String code, String name, String createName, String status, Date statusTime,
			String operateReason) {
		this.id = id;
		this.code = code;
		this.name = name;
		this.createName = createName;
		this.status = status;
		this.statusTime = statusTime;
		this.operateReason = operateReason;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant
	 * @mbg.generated
	 */
	public SysTenant() {
		super();
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column sys_tenant.id
	 * @return  the value of sys_tenant.id
	 * @mbg.generated
	 */
	public Long getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column sys_tenant.id
	 * @param id  the value for sys_tenant.id
	 * @mbg.generated
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column sys_tenant.code
	 * @return  the value of sys_tenant.code
	 * @mbg.generated
	 */
	public String getCode() {
		return code;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column sys_tenant.code
	 * @param code  the value for sys_tenant.code
	 * @mbg.generated
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column sys_tenant.name
	 * @return  the value of sys_tenant.name
	 * @mbg.generated
	 */
	public String getName() {
		return name;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column sys_tenant.name
	 * @param name  the value for sys_tenant.name
	 * @mbg.generated
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column sys_tenant.create_name
	 * @return  the value of sys_tenant.create_name
	 * @mbg.generated
	 */
	public String getCreateName() {
		return createName;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column sys_tenant.create_name
	 * @param createName  the value for sys_tenant.create_name
	 * @mbg.generated
	 */
	public void setCreateName(String createName) {
		this.createName = createName;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column sys_tenant.status
	 * @return  the value of sys_tenant.status
	 * @mbg.generated
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column sys_tenant.status
	 * @param status  the value for sys_tenant.status
	 * @mbg.generated
	 */
	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column sys_tenant.status_time
	 * @return  the value of sys_tenant.status_time
	 * @mbg.generated
	 */
	public Date getStatusTime() {
		return statusTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column sys_tenant.status_time
	 * @param statusTime  the value for sys_tenant.status_time
	 * @mbg.generated
	 */
	public void setStatusTime(Date statusTime) {
		this.statusTime = statusTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column sys_tenant.operate_reason
	 * @return  the value of sys_tenant.operate_reason
	 * @mbg.generated
	 */
	public String getOperateReason() {
		return operateReason;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column sys_tenant.operate_reason
	 * @param operateReason  the value for sys_tenant.operate_reason
	 * @mbg.generated
	 */
	public void setOperateReason(String operateReason) {
		this.operateReason = operateReason;
	}
}