feat: publish n96 segments

This commit is contained in:
2024-11-15 18:26:23 +00:00
parent 9fdc1defaa
commit 0da9bd996f
26 changed files with 278 additions and 75 deletions

View File

@ -1,6 +1,7 @@
use chrono::{DateTime, Utc};
use sqlx::{FromRow, Type};
use std::fmt::{Display, Formatter};
use uuid::Uuid;
#[derive(Debug, Clone, FromRow)]
pub struct User {
@ -37,7 +38,7 @@ impl Display for UserStreamState {
#[derive(Debug, Clone, Default, FromRow)]
pub struct UserStream {
pub id: u64,
pub id: Uuid,
pub user_id: u64,
pub starts: DateTime<Utc>,
pub ends: Option<DateTime<Utc>>,