mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
refactor(router): move db models into separate crate and refactoring around it (#125)
This commit is contained in:
34
crates/storage_models/src/locker_mock_up.rs
Normal file
34
crates/storage_models/src/locker_mock_up.rs
Normal file
@ -0,0 +1,34 @@
|
||||
use diesel::{Identifiable, Insertable, Queryable};
|
||||
|
||||
use crate::schema::locker_mock_up;
|
||||
|
||||
#[derive(Clone, Debug, Eq, Identifiable, Queryable, PartialEq)]
|
||||
#[diesel(table_name = locker_mock_up)]
|
||||
pub struct LockerMockUp {
|
||||
pub id: i32,
|
||||
pub card_id: String,
|
||||
pub external_id: String,
|
||||
pub card_fingerprint: String,
|
||||
pub card_global_fingerprint: String,
|
||||
pub merchant_id: String,
|
||||
pub card_number: String,
|
||||
pub card_exp_year: String,
|
||||
pub card_exp_month: String,
|
||||
pub name_on_card: Option<String>,
|
||||
pub nickname: Option<String>,
|
||||
pub customer_id: Option<String>,
|
||||
pub duplicate: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Default, Insertable, router_derive::DebugAsDisplay)]
|
||||
#[diesel(table_name = locker_mock_up)]
|
||||
pub struct LockerMockUpNew {
|
||||
pub card_id: String,
|
||||
pub external_id: String,
|
||||
pub card_fingerprint: String,
|
||||
pub card_global_fingerprint: String,
|
||||
pub merchant_id: String,
|
||||
pub card_number: String,
|
||||
pub card_exp_year: String,
|
||||
pub card_exp_month: String,
|
||||
}
|
||||
Reference in New Issue
Block a user