mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-18 23:10:51 +01:00
zwischenstand
This commit is contained in:
22
src-tauri/src/crdt/log.rs
Normal file
22
src-tauri/src/crdt/log.rs
Normal file
@ -0,0 +1,22 @@
|
||||
// src/entities/crdt_log.rs
|
||||
use sea_orm::entity::prelude::*;
|
||||
|
||||
#[sea_orm(table_name = "crdt_log")]
|
||||
pub struct Model {
|
||||
#[sea_orm(primary_key, auto_increment = true)]
|
||||
pub id: i64,
|
||||
pub hlc_timestamp: String,
|
||||
pub op_type: String,
|
||||
pub table_name: String,
|
||||
pub row_pk: String, // Wird als JSON-String gespeichert
|
||||
#[sea_orm(nullable)]
|
||||
pub column_name: Option<String>,
|
||||
#[sea_orm(nullable)]
|
||||
pub value: Option<String>,
|
||||
#[sea_orm(nullable)]
|
||||
pub old_value: Option<String>,
|
||||
}
|
||||
|
||||
pub enum Relation {}
|
||||
|
||||
impl ActiveModelBehavior for ActiveModel {}
|
||||
Reference in New Issue
Block a user