laravel-comments 0.2.0

Comments for Laravel Rust models: threaded replies, moderation, reactions, and events, without N+1 queries.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The text of a comment before each edit.

use laravel::model::model;
use laravel::time::Timestamp;

/// The text a comment had before an edit, from the `comment_revisions` table.
#[model(table = "comment_revisions")]
pub struct CommentRevision {
    pub id: i64,
    pub comment_id: i64,
    /// The text before the edit.
    pub body: String,
    /// When the edit replaced it.
    pub created_at: Option<Timestamp>,
}