risingwave_meta_model/
compaction_config.rsuse risingwave_pb::hummock::CompactionConfig as PbCompactionConfig;
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
use crate::CompactionGroupId;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize, Default)]
#[sea_orm(table_name = "compaction_config")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub compaction_group_id: CompactionGroupId,
pub config: CompactionConfig,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}
crate::derive_from_blob!(CompactionConfig, PbCompactionConfig);