package com.bocloud.ims.entity.resource.azure.db;

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.meta.PKStrategy;
import lombok.Getter;
import lombok.Setter;

/**
 * @Company: 博云 www.bocloud.com
 * @ClassName: DbVnetRule
 * @Description:
 * @author: zhenpingLi/李振平
 * @date: 2021/5/20 16:53
 */
@Getter
@Setter
@Table("db_vnet_rule")
public class DbVnetRule {

    @PK(value = PKStrategy.AUTO)
    private Long id; // ID
    @Column("uuid")
    private String uuid;
    @Column("name")
    private String name;
    @Column("type")
    private String type;
    @Column("ignore_missing_vnet_service_endpoint")
    private Boolean ignoreMissingVnetServiceEndpoint;
    @Column("database_server_id")
    private Long databaseServerId;
    @Column("vpc_id")
    private Long vpcId;
    @Column("subnet_id")
    private Long subnetId;
    @IgnoreAll
    private String subnetName;
    @IgnoreAll
    private String vpcName;
    @IgnoreAll
    private String subnetCidr;

}