new feature: order by reference times.

This commit is contained in:
TonyChyi
2022-06-30 22:04:57 +08:00
parent 33142bb470
commit 74f04c3ce0
5 changed files with 76 additions and 3 deletions

View File

@@ -14,6 +14,10 @@ pub struct Model {
/// records
#[sea_orm(indexed, column_type = "Text", unique)]
pub message: String,
/// hot
#[sea_orm(default_value = "0")]
pub hot: i64,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]