A comprehensive relational database schema designed for modern e-commerce platforms. This schema provides robust support for product management, inventory tracking, and customizable product attributes.
-
Product Management
- Detailed product information storage
- Brand and category organization
- Multiple product images support
- Custom product attributes
-
Inventory Control
- SKU-based tracking
- Stock quantity management
- Multiple variation support (color, size)
-
Flexible Categorization
- Hierarchical category structure
- Multiple category assignments
- Brand management
-
Product Variations
- Color options with hex values
- Size categories and options
- Custom attribute support
| Table | Description |
|---|---|
brand |
Stores brand information with logos |
product_category |
Manages hierarchical product categories |
product |
Core product information and pricing |
product_image |
Handles multiple product images |
| Table | Description |
|---|---|
color |
Color options with hex values |
size_category |
Categories for different size types |
size_option |
Specific size options per category |
product_variation |
Links products with color and size |
product_item |
SKU-level inventory tracking |
| Table | Description |
|---|---|
attribute_category |
Organizes attribute types |
attribute_type |
Defines data types for attributes |
product_attribute |
Stores product-specific attributes |
- Clone the repository:
git clone https://github.com/Miltonnare/DatabaseEccomrce.git- Navigate to the project directory:
cd DatabaseEccomrce- Import the schema into your MySQL database:
mysql -u your_username -p your_database < ecommerce.sql- Products can have multiple categories (Many-to-Many)
- Each product can have multiple variations (One-to-Many)
- Product variations link to specific colors and sizes
- Each variation can have multiple SKUs for inventory tracking
- Custom attributes can be assigned to any product
This project is part of the PLP database assignment. Contributions are welcome from team members. Please ensure you:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is part of the PLP Database Assignment. All rights reserved.
Developed with β€οΈ by the PLP_peer_to_peer_learning_group_149