Skip to content

Commit

Permalink
modify the file src/database/entities/batch_transfer.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
GylmarGonzalez committed Dec 16, 2024
1 parent b91302d commit f34963e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/database/entities/batch_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub struct Model {
pub created_at: i64,
pub updated_at: i64,
pub expiration: Option<i64>,
pub exact_expiry: Option<bool>,
pub min_confirmations: u8,
}

Expand All @@ -32,6 +33,7 @@ pub enum Column {
CreatedAt,
UpdatedAt,
Expiration,
ExactExpiry,
MinConfirmations,
}

Expand Down Expand Up @@ -62,6 +64,7 @@ impl ColumnTrait for Column {
Self::CreatedAt => ColumnType::BigInteger.def(),
Self::UpdatedAt => ColumnType::BigInteger.def(),
Self::Expiration => ColumnType::BigInteger.def().null(),
Self::ExactExpiry => ColumnType::Boolean.def().null(),
Self::MinConfirmations => ColumnType::SmallInteger.def(),
}
}
Expand Down

0 comments on commit f34963e

Please sign in to comment.