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::{Identifiable, Insertable, Queryable};
use diesel::{Identifiable, Insertable, Queryable, Selectable};
use serde::{Deserialize, Serialize};
use crate::{enums, schema::routing_algorithm};
#[derive(Clone, Debug, Identifiable, Insertable, Queryable, Serialize, Deserialize)]
#[diesel(table_name = routing_algorithm, primary_key(algorithm_id))]
#[derive(Clone, Debug, Identifiable, Insertable, Queryable, Selectable, Serialize, Deserialize)]
#[diesel(table_name = routing_algorithm, primary_key(algorithm_id), check_for_backend(diesel::pg::Pg))]
pub struct RoutingAlgorithm {
pub algorithm_id: String,
pub profile_id: String,