CREATE DATABASE online_learning_platform;
USE online_learning_platform;
CREATE TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
email VARCHAR(100) UNIQUE NOT NULL,
password VARCHAR(255) NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE courses (
id INT AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(255) NOT NULL,
description TEXT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE quizzes (
id INT AUTO_INCREMENT PRIMARY KEY,
course_id INT NOT NULL,
question TEXT NOT NULL,
option_a VARCHAR(255) NOT NULL,
option_b VARCHAR(255) NOT NULL,
option_c VARCHAR(255) NOT NULL,
option_d VARCHAR(255) NOT NULL,
correct_option CHAR(1) NOT NULL,
FOREIGN KEY (course_id) REFERENCES courses(id) ON DELETE CASCADE
);-
Notifications
You must be signed in to change notification settings - Fork 0
zdemirgithub/online-learning-platform
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Online Learning Platform Stack: PHP, MySQL, JavaScript An online learning management system for creating and managing courses, with features like quizzes and progress tracking.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published