# `PhoenixKit.Migrations.Postgres.V45`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.164/lib/phoenix_kit/migrations/postgres/v45.ex#L1)

PhoenixKit V45 Migration: E-commerce Shop Module

This migration creates the foundation for the Shop module.

## Tables
- `phoenix_kit_shop_categories` - Product categories with nesting support
- `phoenix_kit_shop_products` - Products (physical and digital)
- `phoenix_kit_shop_shipping_methods` - Shipping options with constraints
- `phoenix_kit_shop_carts` - Shopping carts for users and guests
- `phoenix_kit_shop_cart_items` - Cart contents with price snapshots
- `phoenix_kit_payment_options` - Payment methods for checkout

## Future Tables
- `phoenix_kit_shop_variants` - Product variants (size, color)
- `phoenix_kit_shop_inventory` - Inventory tracking

## Settings
- shop_enabled - Enable/disable shop module
- shop_currency - Default currency (USD)
- shop_tax_enabled - Enable tax calculations
- shop_tax_rate - Default tax rate percentage
- shop_inventory_tracking - Enable inventory tracking

# `down`

Rollback the V45 migration.

# `up`

Run the V45 migration.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
