diff --git a/database/migrations/2018_08_25_102000_create_uploads_table.php b/database/migrations/2018_08_25_102000_create_uploads_table.php
index <HASH>..<HASH> 100644
--- a/database/migrations/2018_08_25_102000_create_uploads_table.php
+++ b/database/migrations/2018_08_25_102000_create_uploads_table.php
@@ -11,6 +11,10 @@ class CreateUploadsTable extends Migration
         Schema::create('uploads', function (Blueprint $table) {
             $table->increments('id');
 
+            $table->unsignedBigInteger('file_id')->nullable();
+            $table->foreign('file_id')->references('id')->on('files')
+                ->onUpdate('restrict')->onDelete('cascade');
+
             $table->timestamps();
         });
     }
adds file_id in uploads table;