mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat: add a domain type for customer_id (#4705)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -392,7 +392,8 @@ impl UniqueConstraints for diesel_models::Customer {
|
||||
fn unique_constraints(&self) -> Vec<String> {
|
||||
vec![format!(
|
||||
"customer_{}_{}",
|
||||
self.customer_id, self.merchant_id
|
||||
self.customer_id.get_string_repr(),
|
||||
self.merchant_id
|
||||
)]
|
||||
}
|
||||
fn table_name(&self) -> &str {
|
||||
|
||||
Reference in New Issue
Block a user