Allow null store in inventory

This commit is contained in:
2026-03-05 11:03:47 -07:00
parent e57e4e11d8
commit d9689612f8

View File

@@ -22,7 +22,7 @@ public class Inventory {
private Product product;
@ManyToOne
@JoinColumn(name = "store_id", nullable = false)
@JoinColumn(name = "store_id", nullable = true)
private Store store;
@Column(nullable = false)