mirror of
https://github.com/versia-pub/activitypub.git
synced 2026-03-13 10:59:17 +01:00
[feat] db code?
This commit is contained in:
parent
8469b236a7
commit
4d4e3ed794
8 changed files with 106 additions and 92 deletions
|
|
@ -1,5 +1,6 @@
|
|||
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.10
|
||||
|
||||
use chrono::Utc;
|
||||
use sea_orm::entity::prelude::*;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
||||
|
|
@ -10,9 +11,12 @@ pub struct Model {
|
|||
pub title: Option<String>,
|
||||
pub content: String,
|
||||
pub local: bool,
|
||||
pub created_at: String,
|
||||
pub updated_at: Option<String>,
|
||||
pub reblog_id: Option<String>,
|
||||
#[sea_orm(column_type = "Timestamp")]
|
||||
pub created_at: chrono::DateTime<Utc>,
|
||||
#[sea_orm(column_type = "Timestamp")]
|
||||
pub updated_at: Option<chrono::DateTime<Utc>>,
|
||||
#[sea_orm(column_type = "Timestamp")]
|
||||
pub reblog_id: Option<chrono::DateTime<Utc>>,
|
||||
pub content_type: String,
|
||||
pub visibility: String,
|
||||
pub reply_id: Option<String>,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.10
|
||||
|
||||
use chrono::Utc;
|
||||
use sea_orm::entity::prelude::*;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
||||
|
|
@ -13,12 +14,15 @@ pub struct Model {
|
|||
pub url: String,
|
||||
pub public_key: String,
|
||||
pub private_key: Option<String>,
|
||||
pub last_refreshed_at: String,
|
||||
#[sea_orm(column_type = "Timestamp")]
|
||||
pub last_refreshed_at: chrono::DateTime<Utc>,
|
||||
pub local: bool,
|
||||
pub follower_count: i32,
|
||||
pub following_count: i32,
|
||||
pub created_at: String,
|
||||
pub updated_at: Option<String>,
|
||||
#[sea_orm(column_type = "Timestamp")]
|
||||
pub created_at: chrono::DateTime<Utc>,
|
||||
#[sea_orm(column_type = "Timestamp")]
|
||||
pub updated_at: Option<chrono::DateTime<Utc>>,
|
||||
pub following: Option<String>,
|
||||
pub followers: Option<String>,
|
||||
pub inbox: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue