Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kaddyp/db_design_course
- Owner: Kaddyp
- Created: 2024-07-23T11:41:51.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-23T11:47:32.000Z (5 months ago)
- Last Synced: 2024-10-19T10:18:09.830Z (3 months ago)
- Topics: mysql, mysql2, sql, sql-injection, sql-server, sqlquery
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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.