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.
Assistant
Let me check the current date to create a migration file with an appropriate timestamp.
Assistant
Now I'll create the migration directory and files for the invoice table. Based on the existing patterns, I'll create a new migration with the timestamp
2025-11-28-131040.First, let me create the up.sql file with the invoice table creation:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →