Index: database/migrations/2021_09_27_171107_create_users_table.php
===================================================================
--- database/migrations/2021_09_27_171107_create_users_table.php	(revision 194a35967c638db611da70bbf868d51cd9124ed2)
+++ database/migrations/2021_09_27_171107_create_users_table.php	(revision 120759b41a3ce01c1ab16d5c512103522ae5568f)
@@ -23,4 +23,5 @@
             $table->string('email')->unique();
             $table->string('mobile_number')->unique();
+            $table->string('avatar')->nullable();
             $table->integer('role_id')->unsigned();
             $table->foreign("role_id")->references("id")->on("roles");
Index: database/migrations/2021_09_29_121244_create_departments_table.php
===================================================================
--- database/migrations/2021_09_29_121244_create_departments_table.php	(revision 194a35967c638db611da70bbf868d51cd9124ed2)
+++ database/migrations/2021_09_29_121244_create_departments_table.php	(revision 120759b41a3ce01c1ab16d5c512103522ae5568f)
@@ -19,4 +19,5 @@
             $table->string("name");
             $table->string("code");
+            $table->string("location");
             $table->timestamps();
 
Index: database/migrations/2021_10_06_103305_create_documents_table.php
===================================================================
--- database/migrations/2021_10_06_103305_create_documents_table.php	(revision 120759b41a3ce01c1ab16d5c512103522ae5568f)
+++ database/migrations/2021_10_06_103305_create_documents_table.php	(revision 120759b41a3ce01c1ab16d5c512103522ae5568f)
@@ -0,0 +1,40 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateDocumentsTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('documents', function (Blueprint $table) {
+            $table->bigIncrements('id');
+            $table->string("arch_id")->unique();
+            $table->string("name");
+            $table->text("description");
+            $table->boolean("is_active")->default(false);
+            $table->integer("user_id")->unsigned();
+            $table->integer("department_id")->unsigned();
+            $table->timestamps();
+
+            $table->foreign("user_id")->references("id")->on("users")->onDelete("cascade")->onUpdate("cascade");
+            $table->foreign("department_id")->references("id")->on("departments")->onDelete("cascade")->onUpdate("cascade");
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::dropIfExists('documents');
+    }
+}
Index: database/migrations/2021_10_07_131654_create_add_last_seen_to_users_table.php
===================================================================
--- database/migrations/2021_10_07_131654_create_add_last_seen_to_users_table.php	(revision 120759b41a3ce01c1ab16d5c512103522ae5568f)
+++ database/migrations/2021_10_07_131654_create_add_last_seen_to_users_table.php	(revision 120759b41a3ce01c1ab16d5c512103522ae5568f)
@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateAddLastSeenToUsersTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('users', function (Blueprint $table) {
+            $table->timestamp('last_seen')->nullable();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('users', function (Blueprint $table) {
+            $table->timestamp('last_seen')->nullable();
+        });
+    }
+}
Index: database/migrations/2021_10_10_103309_create_files_table.php
===================================================================
--- database/migrations/2021_10_10_103309_create_files_table.php	(revision 120759b41a3ce01c1ab16d5c512103522ae5568f)
+++ database/migrations/2021_10_10_103309_create_files_table.php	(revision 120759b41a3ce01c1ab16d5c512103522ae5568f)
@@ -0,0 +1,34 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateFilesTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('files', function (Blueprint $table) {
+            $table->bigIncrements('id');
+            $table->bigInteger('document_id')->unsigned()->nullable();
+            $table->string("link");
+            $table->foreign("document_id")->references("id")->on("documents");
+            $table->timestamps();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::dropIfExists('files');
+    }
+}
