ff2747eb7785ad4f822b379b83077153498504d9 / frogue / src / entities / ap_notes.rs
Raw
//! `SeaORM` Entity for ActivityPub notes.
use sea_orm::entity::prelude::*;
use serde::Serialize;
#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, Serialize)]
#[sea_orm(table_name = "ap_notes")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
#[sea_orm(unique)]
pub uuid: Uuid,
pub actor_id: i64,
pub content_md: String,
pub content_html: String,
pub created_at: DateTimeWithTimeZone,
}
impl ActiveModelBehavior for ActiveModel {}