feat: handle duplicate ID and name for Product and CategoryAggregate

This commit is contained in:
Aravinth Manivannan 2024-07-15 17:52:18 +05:30
parent a3a947fd89
commit 13e913e661
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -10,7 +10,10 @@ pub type InventoryDBResult<V> = Result<V, InventoryDBError>;
#[derive(Debug, Display, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
pub enum InventoryDBError {
DuplicateCategoryName,
DuplicateCategoryID,
DuplicateStoreName,
DuplicateStoreID,
DuplicateProductName,
DuplicateProductID,
InternalError,
}