id(); $table->unsignedBigInteger('user_id')->nullable(); $table->unsignedBigInteger('course_id')->nullable(); $table->string('enrollment_type')->nullable();//subscription or lifetime $table->timestamp('expiry_date')->nullable(); $table->timestamps(); $table->index('user_id'); $table->index('course_id'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('enrollments'); } };