revolt_database/models/safety_reports/
model.rs

1use revolt_models::v0::{ReportStatus, ReportedContent};
2
3auto_derived!(
4    /// User-generated platform moderation report
5    pub struct Report {
6        /// Unique Id
7        #[serde(rename = "_id")]
8        pub id: String,
9        /// Id of the user creating this report
10        pub author_id: String,
11        /// Reported content
12        pub content: ReportedContent,
13        /// Additional report context
14        pub additional_context: String,
15        /// Status of the report
16        #[serde(flatten)]
17        pub status: ReportStatus,
18        /// Additional notes included on the report
19        #[serde(default)]
20        pub notes: String,
21    }
22);