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.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 资源池、可用区关联表
 * 
 * @ClassName: PoolGroupZone.java
 * @Description:
 *
 * @author: ymh
 * @date: 2021年4月16日 下午5:23:55
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@Table("pool_group_zone")
public class PoolGroupZone extends Generic {

	@PK(value = PKStrategy.AUTO)
	private Long id;// ID

	@Column("vendor_id")
	private Long vendorId;

	@Column("pool_group_id")
	private Long poolGroupId;

	@Column("region_id")
	private String regionId;

	@Column("zone_id")
	private String zoneId;

	@Column("checked")
	private Boolean checked;

	@IgnoreAll
	private String regionName;
	@IgnoreAll
	private String zoneName;
	@IgnoreAll
	private Long zoneRealId;
	@IgnoreAll
	private String diskCategory;

}
