id(); $table->foreignId('user_id')->constrained()->cascadeOnDelete(); $table->morphs('attachable'); $table->string('kind')->default('general'); $table->string('disk')->default('public'); $table->string('path'); $table->string('original_name'); $table->string('mime_type')->nullable(); $table->unsignedBigInteger('size')->default(0); $table->text('caption')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('attachments'); } };