sova_auth/entity/reset_token.rs
1use sea_orm::entity::prelude::*;
2
3#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
4#[sea_orm(table_name = "auth_password_reset_tokens")]
5pub struct Model {
6 #[sea_orm(primary_key)]
7 pub email: String,
8 pub token_hash: String,
9 pub created_at: DateTimeUtc,
10}
11
12#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
13pub enum Relation {}
14
15impl ActiveModelBehavior for ActiveModel {}