risingwave_meta_model/
cdc_table_snapshot_split.rs1use sea_orm::entity::prelude::*;
16use sea_orm::{DeriveEntityModel, DeriveRelation, EnumIter};
17use serde::{Deserialize, Serialize};
18
19use crate::TableId;
20
21#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default, Serialize, Deserialize)]
22#[sea_orm(table_name = "cdc_table_snapshot_splits")]
23pub struct Model {
24 #[sea_orm(primary_key, auto_increment = false)]
25 pub table_id: TableId,
26 #[sea_orm(primary_key, auto_increment = false)]
27 pub split_id: i64,
28 pub left: Vec<u8>,
29 pub right: Vec<u8>,
30}
31#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
32pub enum Relation {}
33
34impl ActiveModelBehavior for ActiveModel {}