Book₀: isbn=ISBN₀, title="Kotlin Guide", price=Money₀ Customer₀: name="Alice", email="
[email protected]" Customer₁: name="Bob", email="
[email protected]" Inventory₀: book=Book₀, stock=1, reserved=0 Order₀: customer=Customer₀, status=Pending OrderItem₀: book=Book₀, quantity=1, order=Order₀ Order₁: customer=Customer₁, status=Pending OrderItem₁: book=Book₀, quantity=1, order=Order₁ // 問題:在庫1冊に対して2件の注文(計2冊)が存在 // どちらも確定されると在庫がマイナスになる