package com.bocloud.ims.entity.resource;

import com.bocloud.entity.annotations.Column;
import com.bocloud.entity.annotations.IgnoreAll;
import com.bocloud.entity.annotations.PK;
import com.bocloud.entity.annotations.Table;
import com.bocloud.entity.bean.Generic;
import com.bocloud.entity.meta.PKStrategy;

import lombok.Data;

/**
 * 租户-云平台授权表
 * 
 * @author wangyu
 * @version 1.0
 * @since 2017年12月8日
 *
 */
@Table("tenant_provider")
@Data
public class TenantProvider extends Generic {

	@PK(PKStrategy.AUTO)
	private Long id;// ID
	@Column("tenant_id")
	private Long tenantId;// 租户ID
	@Column("vendor_id")
	private Long vendorId;// 云平台ID
	@Column("project_name")
	private String projectName;// 云平台ID

	@IgnoreAll
	private String tenantUuid;

	public TenantProvider() {
		super();
	}

	/**
	 * @param tenantId
	 * @param vendorId
	 */
	public TenantProvider(Long tenantId, Long vendorId) {
		super();
		this.tenantId = tenantId;
		this.vendorId = vendorId;
	}

}
