Add Product record to represent product details
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
package com.example.productaffinity.domain.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
// Represents a product detail
|
||||||
|
public record Product(String id, String name, BigDecimal price, boolean availability) {
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user