Skip to content

This setup provides a foundational schema for managing an e-commerce system's inventory, customer information, orders, payments, and shipping details. The initial data helps illustrate how each table is used and interconnected within the databas

Notifications You must be signed in to change notification settings

anjalig18/e-commerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

E-COMMERCE

Developed by Anjali Gupta


Quick Links


Overview

This document outlines the structure and initial data setup for an e-commerce database named mydb. The database includes tables for product inventory, customer data, orders, payments, and shipping information. Each table has been populated with sample data to illustrate the functionality.


Features

ProductInventory Table

Product Management: Stores information about each product, including its unique ID, name, description, price, and available stock quantity.

Inventory Tracking: Allows for easy tracking of product quantities to manage stock levels efficiently.

CustomerData Table

Customer Information: Holds comprehensive details about customers, including their unique ID, name, email, phone number, and address.

Contact Management: Facilitates communication with customers through stored contact information.

OrderData Table

Order Tracking: Records each order's unique ID, customer ID, order date, total amount, and current status (e.g., Shipped, Delivered, Pending, Processing).

Customer Orders: Links orders to customers to track purchase history and order details.

Payment Table

Payment Processing: Captures payment details for each order, including order ID, customer ID, payment date, amount, transaction ID, and payment status.

Transaction Management: Ensures secure and accurate payment tracking with transaction IDs and status indicators.

ShippingInformation Table

Shipping Management: Contains shipping details such as order ID, shipping date, tracking number, delivery date, and shipping address.

Order Fulfillment: Tracks shipping progress and delivery status to ensure timely fulfillment of orders.


Repository Structure

└── e-commerce/
    ├── E-Commerce.sql
    ├── ER diagram.png
    └── README.md

Getting Started

Requirements

Ensure you have this installed on your system:

  • SQL Workbench: version 8.0

Running-e-commerce

Running an E-Commerce SQL Script in SQL Workbench

Download and Install SQL Workbench:

  1. Download SQL Workbench:
  1. Install SQL Workbench:
  • Follow the installation instructions specific to your operating system.

Set Up Database Connection:

  1. Open SQL Workbench:
  • Launch the SQL Workbench application.
  1. Configure the Database Driver:
  • Go to File > Manage Drivers.
  • Add the appropriate JDBC driver for your database (e.g., MySQL, PostgreSQL).
  1. Add a New Connection Profile:
  • Click New to add a new connection profile.
  • Enter connection details (e.g., URL, username, password) for your e-commerce database.

Open the SQL Script File:

  1. Open SQL Script:
  • Click on File > Open SQL Script or press Ctrl+O.
  • Browse to and select the SQL script file for your e-commerce database.

Run the SQL Script:

  1. Display SQL Script Contents:
  • The contents of the SQL script file will be displayed in the query editor.
  1. Execute the Script:
  • Click on the Run Script button (green arrow) or press Ctrl+Enter to execute the script.
  • Monitor the Messages tab for any errors or successful execution messages.

Creating an ERD for the E-Commerce Database using Reverse Engineering

Install MySQL Workbench (if using MySQL):

  1. Download MySQL Workbench:

Set Up Database Connection in MySQL Workbench:

  1. Open MySQL Workbench:
  • Launch MySQL Workbench.
  1. Connect to Database:
  • Click on Database > Connect to Database or use the + button to add a new connection.
  • Enter connection details for your e-commerce database (hostname, port, username, password) and connect.

Reverse Engineer Database to Create ERD:

  1. Start Reverse Engineering Wizard:
  • After connecting, go to Database > Reverse Engineer to start the reverse engineering wizard.
  1. Select Database:
  • Select the e-commerce database you want to reverse engineer.
  • Follow the steps in the wizard:
    • Select the schemas you want to include.
    • Choose the objects to import (tables, views, routines).
  1. Execute Reverse Engineering:
  • Click Execute to start the reverse engineering process.
  1. Generate ERD:
  • Once the process is complete, MySQL Workbench will generate the ERD for the e-commerce database.
  • The ERD will be displayed in the MySQL Workbench window.
  • You can adjust the layout, edit table properties, and add notes as needed.
  1. Save the ERD:
  • Click on File > Save or Save As to save the ERD.

About

This setup provides a foundational schema for managing an e-commerce system's inventory, customer information, orders, payments, and shipping details. The initial data helps illustrate how each table is used and interconnected within the databas

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published