CREATE TABLE `courseProgress` (
	`id` int AUTO_INCREMENT NOT NULL,
	`userId` int NOT NULL,
	`courseLevel` varchar(50) NOT NULL,
	`currentSlide` int NOT NULL DEFAULT 1,
	`completedSlides` text,
	`lastAccessed` timestamp NOT NULL DEFAULT (now()),
	`createdAt` timestamp NOT NULL DEFAULT (now()),
	CONSTRAINT `courseProgress_id` PRIMARY KEY(`id`)
);
--> statement-breakpoint
ALTER TABLE `courseProgress` ADD CONSTRAINT `courseProgress_userId_users_id_fk` FOREIGN KEY (`userId`) REFERENCES `users`(`id`) ON DELETE no action ON UPDATE no action;