package com.bocloud.ims.entity.resource.f5;

import com.alibaba.fastjson.JSONObject;
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.GenericEntity;
import com.bocloud.entity.meta.PKStrategy;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 数据组
 *
 * @author lyy
 * @version 1.0
 * @date 2020/11/10 19:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table("bi_data_group")
public class BiDataGroup extends GenericEntity {
    @PK(value = PKStrategy.AUTO)
    private Long id; // ID
    @Column("type")
    private String type;
    @Column("records")
    private String records;
    @Column("vendor_id")
    private Long vendorId;
    @Column("partition_id")
    private Long partitionId;
    @IgnoreAll
    private List<JSONObject> allow;
    @IgnoreAll
    private String partitionName;
}
