1
0
This commit is contained in:
2024-04-23 12:34:10 +03:00
parent caae24d260
commit 18f2160c27
3 changed files with 9 additions and 4 deletions

View File

@@ -1,6 +1,9 @@
use chrono::Utc;
#[derive(Clone, sqlx::FromRow)]
pub struct Log {
pub id: super::LongId,
pub user_id: super::ShortId,
pub action: String,
pub created_at: chrono::NaiveDateTime,
pub created_at: chrono::DateTime<Utc>,
}

View File

@@ -1,8 +1,9 @@
use super::ShortId;
use chrono::Utc;
#[derive(Clone, sqlx::FromRow)]
pub struct Message {
pub id: super::LongId,
pub user_id: ShortId,
pub user_id: super::ShortId,
pub content: String,
pub created_at: chrono::NaiveDateTime,
pub created_at: chrono::DateTime<Utc>,
}

View File

@@ -1,3 +1,4 @@
#[derive(Clone, sqlx::FromRow)]
pub struct Secret {
pub id: super::ShortId,
pub user_id: super::ShortId,