Skip to content

Commit 442bed0

Browse files
fix(cads_info): add extra columns to cards_info struct (#813)
1 parent f14f87a commit 442bed0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

crates/storage_models/src/cards_info.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use diesel::{Identifiable, Queryable};
2+
use time::PrimitiveDateTime;
23

34
use crate::schema::cards_info;
45

@@ -14,4 +15,7 @@ pub struct CardInfo {
1415
pub bank_code_id: Option<String>,
1516
pub bank_code: Option<String>,
1617
pub country_code: Option<String>,
18+
pub date_created: PrimitiveDateTime,
19+
pub last_updated: Option<PrimitiveDateTime>,
20+
pub last_updated_provider: Option<String>,
1721
}

crates/storage_models/src/schema.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ diesel::table! {
5656
bank_code_id -> Nullable<Varchar>,
5757
bank_code -> Nullable<Varchar>,
5858
country_code -> Nullable<Varchar>,
59+
date_created -> Timestamp,
60+
last_updated -> Nullable<Timestamp>,
61+
last_updated_provider -> Nullable<Text>,
5962
}
6063
}
6164

0 commit comments

Comments
 (0)