risingwave_meta_model/
exactly_once_iceberg_sink.rs1use sea_orm::entity::prelude::*;
16use sea_orm::{DeriveEntityModel, DeriveRelation, EnumIter};
17
18use crate::{Epoch, SinkId};
19#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)]
20#[sea_orm(table_name = "exactly_once_iceberg_sink_metadata")]
21pub struct Model {
22 #[sea_orm(primary_key, auto_increment = false)]
23 pub sink_id: SinkId,
24 #[sea_orm(primary_key, auto_increment = false)]
25 pub end_epoch: Epoch,
26 pub start_epoch: Epoch,
27 pub metadata: ::prost::alloc::vec::Vec<u8>,
28 pub snapshot_id: i64,
29 pub committed: bool,
30}
31
32impl ActiveModelBehavior for ActiveModel {}
33
34#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
35pub enum Relation {}