Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kaddyp/db_design_course

DB Design for ecommerce platform
https://github.com/kaddyp/db_design_course

mysql mysql2 sql sql-injection sql-server sqlquery

Last synced: about 2 months ago
JSON representation

DB Design for ecommerce platform

Awesome Lists containing this project

README

        

Designing a database for courses with categories involves creating tables that can efficiently store information about courses and their associated categories. Below is a basic design with essential tables and their relationships:

Tables
Category
Course
CourseCategory (junction table for many-to-many relationship between Course and Category)
Table Definitions
Category Table
` category_id (Primary Key)
name (Category name)
description (Category description)`
Course Table
course_id (Primary Key)
title (Course title)
description (Course description)
start_date (Course start date)
end_date (Course end date)
instructor (Course instructor name)
CourseCategory Table
course_id (Foreign Key referencing Course)
category_id (Foreign Key referencing Category)
Relationships
A Course can belong to multiple Categories.
A Category can have multiple Courses.