laravel_comments/revisions.rs
1//! The text of a comment before each edit.
2
3use laravel::model::model;
4use laravel::time::Timestamp;
5
6/// The text a comment had before an edit, from the `comment_revisions` table.
7#[model(table = "comment_revisions")]
8pub struct CommentRevision {
9 pub id: i64,
10 pub comment_id: i64,
11 /// The text before the edit.
12 pub body: String,
13 /// When the edit replaced it.
14 pub created_at: Option<Timestamp>,
15}