risingwave_meta_model/
hummock_time_travel_version.rs1use risingwave_pb::hummock::PbHummockVersion;
16use sea_orm::entity::prelude::*;
17use sea_orm::{DeriveEntityModel, DeriveRelation, EnumIter};
18
19use crate::HummockVersionId;
20
21#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)]
22#[sea_orm(table_name = "hummock_time_travel_version")]
23pub struct Model {
24 #[sea_orm(primary_key, auto_increment = false)]
25 pub version_id: HummockVersionId,
26 pub version: HummockVersion,
27}
28
29impl ActiveModelBehavior for ActiveModel {}
30
31#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
32pub enum Relation {}
33
34crate::derive_from_blob!(HummockVersion, PbHummockVersion);