Skip to content

davidecavone/SupermarketManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ SuperMarketManager πŸ›’

SuperMarketManager is a simple Java application designed to simulate inventory management for a supermarket.

πŸ› Database Architecture πŸ›

The core strength of this project lies in its database design, which solves common errors by splitting entities:

  1. Product: Represents the catalog data (Barcode, Name, Price, Category).
  2. Inventory: Represents a specific batch of products located in the warehouse (Quantity, Expiration Date).

SQL Setup Script

To run this project, create a database named supermarket_db and execute the following SQL script:

-- 1. Product Catalog Table
CREATE TABLE IF NOT EXISTS product (
    barcode VARCHAR(50) PRIMARY KEY,
    name VARCHAR(100) NOT NULL,
    price DECIMAL(10, 2) NOT NULL,
    category VARCHAR(50) NOT NULL
);

About

A simple demonstrative hypotetic supermarket db manager made in Java and SQL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages