product_service

command
v0.0.0-...-01a1143 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 14 Imported by: 0

README

Product Service

Overview

The product-service handles product management, including creating, retrieving, updating, and deleting products. Inventory stock levels are also managed here.

Database Structure

The products are stored in the products table:

Column Type Description
id UUID Unique identifier for the product
name TEXT Product name
Description TEXT Product Description
price FLOAT Product price
stock INTEGER Available stock for the product
created_at TIMESTAMP Product creation timestamp
updated_at TIMESTAMP Last product update timestamp

Event Consumption

  • ProductCreated: Consumed when a new product is added.
  • InventoryUpdated: Consumed when product stock is updated.

API Endpoints

For more details on the API, refer to the API Endpoints.


Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL