id(); $table->string('name', 256); $table->string('path', 1024)->nullable(); $table->nestedSet(); $table->boolean('is_folder'); $table->string('mimetype')->nullable(); $table->integer('size')->nullable(); $table->timestamps(); $table->foreignIdFor(\App\Models\User::class, 'created_by'); $table->foreignIdFor(\App\Models\User::class, 'updated_by'); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('files'); } };