mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
feat: add cache for api_key and mca tables (#1212)
This commit is contained in:
@ -4,7 +4,7 @@ use time::PrimitiveDateTime;
|
||||
|
||||
use crate::schema::api_keys;
|
||||
|
||||
#[derive(Debug, Clone, Identifiable, Queryable)]
|
||||
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, Identifiable, Queryable)]
|
||||
#[diesel(table_name = api_keys, primary_key(key_id))]
|
||||
pub struct ApiKey {
|
||||
pub key_id: String,
|
||||
@ -78,7 +78,7 @@ impl From<ApiKeyUpdate> for ApiKeyUpdateInternal {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, AsExpression, PartialEq)]
|
||||
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, AsExpression, PartialEq)]
|
||||
#[diesel(sql_type = diesel::sql_types::Text)]
|
||||
pub struct HashedApiKey(String);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user