<!-- Describe your changes in detail -->
- added `processor_merchant_id` and` created_by` column in `diesel_models` and `hyperswitch_domain_models`
- added migrations
- ~added backfilling `processor_merchant_id` column in migrations~ (Due to staggered release backfilling should be done at a later point after deployment is complete so it can't be done in the scope of this PR)
- populating these fields with default scenario values as mentions in [Motivation and Context](#motivation-and-context)
- removing `platform_merchant_id` column and population instances from `hyperswitch_domain_models`.
- created a macro `impl_enum_str!` to implement serialization and deserialization for any enum with singleton associated data.
  - for e.g 
  ```rust 
  CreatedBy::Api { merchant_id: merchant_32423 } 
  ```
   will be serialized to `Api:merchant_32423`
To implement this **search_filter** feature, you'll need to modify these architectural layers:


**1. Database Layer (Queries & Schema)**
   - `crates/diesel_models/src/payment_attempt.rs`
   - `crates/diesel_models/src/payment_intent.rs`
   - `crates/diesel_models/src/schema.rs`
   - ... and 2 more files

**2. Domain Models (Business Logic Types)**
   - `crates/hyperswitch_domain_models/src/payments.rs`
   - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs`
   - `crates/hyperswitch_domain_models/src/payments/payment_intent.rs`

**3. Core Business Logic**
   - `crates/router/src/core/payments/helpers.rs`
   - `crates/router/src/core/payments/operations/payment_approve.rs`
   - `crates/router/src/core/payments/operations/payment_cancel.rs`
   - ... and 11 more files

**4. Type Definitions**
   - `crates/common_utils/src/types.rs`
   - `crates/router/src/types/storage/payment_attempt.rs`

**5. Utils**
   - `crates/common_utils/src/macros.rs`
   - `crates/router/src/utils/user/sample_data.rs`

**6. Other**
   - `crates/storage_impl/src/mock_db/payment_attempt.rs`
   - `crates/storage_impl/src/payments/payment_attempt.rs`
   - `migrations/2025-03-21-091838_add_new_col_processor_mid_and_created_by/down.sql`
   - ... and 1 more files

**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (11 changes)
- Extend existing types with new fields (124 changes)
- Add conditional logic for feature flags or filtering (1 changes)
- Modify database queries (2 changes)

**Detailed Identifier Changes:**


Commit 6281ae06:
Files to modify:


**crates/common_utils/src/macros.rs**
  Modify existing code

**crates/common_utils/src/types.rs**
  Modify existing code

**crates/diesel_models/src/payment_attempt.rs**
  Modify existing code

**crates/diesel_models/src/payment_intent.rs**
  Modify existing code

**crates/diesel_models/src/schema.rs**
  Modify existing code

**crates/diesel_models/src/schema_v2.rs**
  Modify existing code

**crates/diesel_models/src/user/sample_data.rs**
  Modify existing code

**crates/hyperswitch_domain_models/src/payments.rs**
  Modify existing code

**crates/hyperswitch_domain_models/src/payments/payment_attempt.rs**
  Modify existing code

**crates/hyperswitch_domain_models/src/payments/payment_intent.rs**
  Modify existing code

**crates/router/src/core/payments/helpers.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_approve.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_cancel.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_capture.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_capture_v2.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_create.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_get.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_get_intent.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_reject.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_status.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_update_intent.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payments_incremental_authorization.rs**
  Modify existing code

**crates/router/src/core/payments/retry.rs**
  Modify existing code

**crates/router/src/core/utils.rs**
  Modify existing code

**crates/router/src/types/storage/payment_attempt.rs**
  Modify existing code

**crates/router/src/utils/user/sample_data.rs**
  Modify existing code

**crates/storage_impl/src/mock_db/payment_attempt.rs**
  Modify existing code

**crates/storage_impl/src/payments/payment_attempt.rs**
  Modify existing code
{"pr_number": 7768, "pr_title": "feat(vsaas): add processor_merchant_id and created_by column in payment_intents and payments_attempts for v1", "merged_at": "2025-04-22T08:56:56Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"database": ["crates/diesel_models/src/payment_attempt.rs", "crates/diesel_models/src/payment_intent.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs", "crates/diesel_models/src/user/sample_data.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/payments/payment_intent.rs"], "core_business": ["crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_approve.rs", "crates/router/src/core/payments/operations/payment_cancel.rs", "crates/router/src/core/payments/operations/payment_capture.rs", "crates/router/src/core/payments/operations/payment_capture_v2.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/operations/payment_get.rs", "crates/router/src/core/payments/operations/payment_get_intent.rs", "crates/router/src/core/payments/operations/payment_reject.rs", "crates/router/src/core/payments/operations/payment_status.rs", "crates/router/src/core/payments/operations/payment_update_intent.rs", "crates/router/src/core/payments/operations/payments_incremental_authorization.rs", "crates/router/src/core/payments/retry.rs", "crates/router/src/core/utils.rs"], "types": ["crates/common_utils/src/types.rs", "crates/router/src/types/storage/payment_attempt.rs"], "utils": ["crates/common_utils/src/macros.rs", "crates/router/src/utils/user/sample_data.rs"], "other": ["crates/storage_impl/src/mock_db/payment_attempt.rs", "crates/storage_impl/src/payments/payment_attempt.rs", "migrations/2025-03-21-091838_add_new_col_processor_mid_and_created_by/down.sql", "migrations/2025-03-21-091838_add_new_col_processor_mid_and_created_by/up.sql"]}, "change_types": {"structs_added": 1, "functions_added": 11, "enums_added": 2, "fields_added": 124, "imports_added": 2, "conditionals_added": 1, "database_queries": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}