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

import java.util.Date;

/**
 *
 * This class was generated by MyBatis Generator.
 * This class corresponds to the database table sys_tenant_rela
 */
public class SysTenantRela {

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column sys_tenant_rela.id
	 * @mbg.generated
	 */
	private Long id;
	/**
	 * Database Column Remarks: 主租户id This field was generated by MyBatis Generator. This field corresponds to the database column sys_tenant_rela.tenant_main
	 * @mbg.generated
	 */
	private Long tenantMain;
	/**
	 * Database Column Remarks: 从租户id This field was generated by MyBatis Generator. This field corresponds to the database column sys_tenant_rela.tenant_rela
	 * @mbg.generated
	 */
	private Long tenantRela;
	/**
	 * Database Column Remarks: 关系类型：is:拥有  has：管理 This field was generated by MyBatis Generator. This field corresponds to the database column sys_tenant_rela.rela_type
	 * @mbg.generated
	 */
	private String relaType;
	/**
	 * Database Column Remarks: 关系租户状态 This field was generated by MyBatis Generator. This field corresponds to the database column sys_tenant_rela.status
	 * @mbg.generated
	 */
	private String status;
	/**
	 * Database Column Remarks: 状态改变时间 This field was generated by MyBatis Generator. This field corresponds to the database column sys_tenant_rela.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_rela.operate_reason
	 * @mbg.generated
	 */
	private String operateReason;

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	public SysTenantRela(Long id, Long tenantMain, Long tenantRela, String relaType, String status, Date statusTime,
			String operateReason) {
		this.id = id;
		this.tenantMain = tenantMain;
		this.tenantRela = tenantRela;
		this.relaType = relaType;
		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_rela
	 * @mbg.generated
	 */
	public SysTenantRela() {
		super();
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column sys_tenant_rela.id
	 * @return  the value of sys_tenant_rela.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_rela.id
	 * @param id  the value for sys_tenant_rela.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_rela.tenant_main
	 * @return  the value of sys_tenant_rela.tenant_main
	 * @mbg.generated
	 */
	public Long getTenantMain() {
		return tenantMain;
	}

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

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column sys_tenant_rela.tenant_rela
	 * @return  the value of sys_tenant_rela.tenant_rela
	 * @mbg.generated
	 */
	public Long getTenantRela() {
		return tenantRela;
	}

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

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column sys_tenant_rela.rela_type
	 * @return  the value of sys_tenant_rela.rela_type
	 * @mbg.generated
	 */
	public String getRelaType() {
		return relaType;
	}

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

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column sys_tenant_rela.status
	 * @return  the value of sys_tenant_rela.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_rela.status
	 * @param status  the value for sys_tenant_rela.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_rela.status_time
	 * @return  the value of sys_tenant_rela.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_rela.status_time
	 * @param statusTime  the value for sys_tenant_rela.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_rela.operate_reason
	 * @return  the value of sys_tenant_rela.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_rela.operate_reason
	 * @param operateReason  the value for sys_tenant_rela.operate_reason
	 * @mbg.generated
	 */
	public void setOperateReason(String operateReason) {
		this.operateReason = operateReason;
	}
}