- Introduce OrderItems entity with persistence capabilities.
- Establish a one-to-many relationship between Orders and OrderItems.
- Update Orders entity to reflect the relationship change.
- Create a Flyway migration script to create the order_items table and drop the jsonb items column from the orders table.
- Implement endpoints to retrieve a single order by ID.
- Implement endpoints to retrieve all orders for a specific customer.
- Enhance OrdersRepository to support querying orders by customer ID.
- Add corresponding methods in OrdersService for order retrieval.
- Add OrdersController for handling order creation requests.
- Create NewOrderDTO and OrderItems DTOs for order data.
- Define Orders model with persistence capabilities.
- Implement OrdersService for business logic of order creation.
- Introduce OrdersStatus enum for order states.
- Create OrdersRepository for data access.
- Add Flyway migration script to create the orders table.