Create the up.sql and down.sql migration files for the invoice table in the hyperswitch…
- User
Create the up.sql and down.sql migration files for the invoice table in the hyperswitch codebase.
Based on the task description, the invoice table should have:
- id (PK)
- subscription_id
- connector_subscription_id
- merchant_id
- profile_id
- merchant_connector_id
- payment_intent_id (unique)
- payment_method_id
- customer_id
- amount
- currency
- status
- provider_name
- metadata
- created_at
- modified_at
And should include indexes:
- idx_payment_intent_id
- idx_subscription_id
- idx_merchant_customer
The table should be placed in the migrations directory with a timestamp-based naming convention.
Assistant
I'll help you create the up.sql and down.sql migration files for the invoice table in the hyperswitch codebase. First, I need to understand the project structure to determine where to place these files.
Let me explore the codebase to find the migrations directory and understand the existing structure.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.