OwlCyberSecurity - MANAGER
Edit File: 2022_08_22_101545_create_files_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('files', function (Blueprint $table) { $table->id(); $table->string('caption', 4000)->nullable(); $table->string('path', 1000)->nullable(); $table->string('extensions', 1000)->nullable(); $table->string('hash', 3000)->nullable(); $table->string('original_name', 1000); $table->integer('size')->nullable(); $table->integer('user_id')->nullable(); $table->integer('file_category_id'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('files'); } };