id(); $table->foreignId('user_id')->nullable()->constrained()->onDelete('cascade'); // optional user $table->string('title'); $table->string('artist')->nullable(); $table->string('file_path'); // path in storage $table->enum('type', ['public','private'])->default('private'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('music'); } };