/
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
|
use chrono::Utc;
|
||||||
|
|
||||||
|
#[derive(Clone, sqlx::FromRow)]
|
||||||
pub struct Log {
|
pub struct Log {
|
||||||
pub id: super::LongId,
|
pub id: super::LongId,
|
||||||
pub user_id: super::ShortId,
|
pub user_id: super::ShortId,
|
||||||
pub action: String,
|
pub action: String,
|
||||||
pub created_at: chrono::NaiveDateTime,
|
pub created_at: chrono::DateTime<Utc>,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
use super::ShortId;
|
use chrono::Utc;
|
||||||
|
|
||||||
|
#[derive(Clone, sqlx::FromRow)]
|
||||||
pub struct Message {
|
pub struct Message {
|
||||||
pub id: super::LongId,
|
pub id: super::LongId,
|
||||||
pub user_id: ShortId,
|
pub user_id: super::ShortId,
|
||||||
pub content: String,
|
pub content: String,
|
||||||
pub created_at: chrono::NaiveDateTime,
|
pub created_at: chrono::DateTime<Utc>,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#[derive(Clone, sqlx::FromRow)]
|
||||||
pub struct Secret {
|
pub struct Secret {
|
||||||
pub id: super::ShortId,
|
pub id: super::ShortId,
|
||||||
pub user_id: super::ShortId,
|
pub user_id: super::ShortId,
|
||||||
|
|||||||
Reference in New Issue
Block a user