final db models wip
This commit is contained in:
@@ -8,16 +8,6 @@ pub trait BaseModelDataOps: Sized {
|
||||
self
|
||||
}
|
||||
|
||||
fn set_base_created_at(mut self, time: i64) -> Self {
|
||||
self.get_base_data_mut().created_at = time;
|
||||
self
|
||||
}
|
||||
|
||||
fn set_base_modified_at(mut self, time: i64) -> Self {
|
||||
self.get_base_data_mut().modified_at = time;
|
||||
self
|
||||
}
|
||||
|
||||
fn add_base_comment(mut self, comment_id: u32) -> Self {
|
||||
self.get_base_data_mut().comments.push(comment_id);
|
||||
self
|
||||
|
Reference in New Issue
Block a user