fix(database): modified_at updated for every state change for Payment Attempts (#5312)

Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sandeep Kumar
2024-07-16 16:07:09 +05:30
committed by GitHub
parent 3951ac6578
commit 926dcd3a3c
50 changed files with 1524 additions and 242 deletions

View File

@ -1,10 +1,10 @@
use diesel::{AsChangeset, Identifiable, Insertable, Queryable};
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use time::PrimitiveDateTime;
use crate::{encryption::Encryption, enums, schema::user_authentication_methods};
#[derive(Clone, Debug, Identifiable, Queryable)]
#[diesel(table_name = user_authentication_methods)]
#[derive(Clone, Debug, Identifiable, Queryable, Selectable)]
#[diesel(table_name = user_authentication_methods, check_for_backend(diesel::pg::Pg))]
pub struct UserAuthenticationMethod {
pub id: String,
pub auth_id: String,