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,11 +1,13 @@
use diesel::{AsChangeset, Identifiable, Insertable, Queryable};
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use serde::{self, Deserialize, Serialize};
use serde_json;
use crate::schema::authentication;
#[derive(Clone, Debug, Eq, PartialEq, Identifiable, Queryable, Serialize, Deserialize)]
#[diesel(table_name = authentication, primary_key(authentication_id))]
#[derive(
Clone, Debug, Eq, PartialEq, Identifiable, Queryable, Selectable, Serialize, Deserialize,
)]
#[diesel(table_name = authentication, primary_key(authentication_id), check_for_backend(diesel::pg::Pg))]
pub struct Authentication {
pub authentication_id: String,
pub merchant_id: String,