Index: database/migrations/2021_09_27_171107_create_users_table.php
===================================================================
--- database/migrations/2021_09_27_171107_create_users_table.php	(revision ea7b12a15d1afa472a54d5b8c75c55917907862e)
+++ database/migrations/2021_09_27_171107_create_users_table.php	(revision c6b84df06586305606df5b76204a64cdc63b09a2)
@@ -20,5 +20,4 @@
             $table->string('surname');
             $table->string('username')->unique();
-            $table->string('password');
             $table->string('email')->unique();
             $table->string('phone_number')->unique();
@@ -30,7 +29,8 @@
             $table->boolean('is_confirmed')->default(false);
             $table->boolean('is_forgot_password')->default(false);
+            $table->integer("created_by")->unsigned();
             $table->integer('security_code')->nullable();
             $table->string('verify_token')->nullable();
-            $table->integer("created_by")->unsigned();
+            $table->string('password');
             $table->rememberToken();
             $table->timestamps();
Index: database/migrations/2021_10_06_103305_create_documents_table.php
===================================================================
--- database/migrations/2021_10_06_103305_create_documents_table.php	(revision ea7b12a15d1afa472a54d5b8c75c55917907862e)
+++ 	(revision )
@@ -1,40 +1,0 @@
-<?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->integer("user_id")->unsigned();
-            $table->integer("department_id")->unsigned();
-            $table->boolean("is_important")->default(true);
-            $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_06_103305_create_folders_table.php
===================================================================
--- database/migrations/2021_10_06_103305_create_folders_table.php	(revision c6b84df06586305606df5b76204a64cdc63b09a2)
+++ database/migrations/2021_10_06_103305_create_folders_table.php	(revision c6b84df06586305606df5b76204a64cdc63b09a2)
@@ -0,0 +1,41 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateFoldersTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('folders', function (Blueprint $table) {
+            $table->bigIncrements('id');
+            $table->string("arch_id")->unique();
+            $table->string("name");
+            $table->text("note")->nullable();
+            $table->string("location");
+            $table->integer("user_id")->unsigned();
+            $table->integer("department_id")->unsigned();
+            $table->boolean("is_important")->default(false);
+            $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('folders');
+    }
+}
Index: database/migrations/2021_10_10_103309_create_files_table.php
===================================================================
--- database/migrations/2021_10_10_103309_create_files_table.php	(revision ea7b12a15d1afa472a54d5b8c75c55917907862e)
+++ database/migrations/2021_10_10_103309_create_files_table.php	(revision c6b84df06586305606df5b76204a64cdc63b09a2)
@@ -16,8 +16,8 @@
         Schema::create('files', function (Blueprint $table) {
             $table->bigIncrements('id');
-            $table->bigInteger('document_id')->unsigned();
+            $table->bigInteger('folder_id')->unsigned();
             $table->string("name");
             $table->string("location");
-            $table->foreign("document_id")->references("id")->on("documents");
+            $table->foreign("folder_id")->references("id")->on("folders");
             $table->timestamps();
         });
Index: database/migrations/2021_10_21_091521_create_notifications_table.php
===================================================================
--- database/migrations/2021_10_21_091521_create_notifications_table.php	(revision c6b84df06586305606df5b76204a64cdc63b09a2)
+++ database/migrations/2021_10_21_091521_create_notifications_table.php	(revision c6b84df06586305606df5b76204a64cdc63b09a2)
@@ -0,0 +1,35 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateNotificationsTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('notifications', function (Blueprint $table) {
+            $table->uuid('id')->primary();
+            $table->string('type');
+            $table->morphs('notifiable');
+            $table->text('data');
+            $table->timestamp('read_at')->nullable();
+            $table->timestamps();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::dropIfExists('notifications');
+    }
+}
Index: database/migrations/2021_10_21_144552_create_file_types_table.php
===================================================================
--- database/migrations/2021_10_21_144552_create_file_types_table.php	(revision c6b84df06586305606df5b76204a64cdc63b09a2)
+++ database/migrations/2021_10_21_144552_create_file_types_table.php	(revision c6b84df06586305606df5b76204a64cdc63b09a2)
@@ -0,0 +1,36 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateFileTypesTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('file_types', function (Blueprint $table) {
+            $table->increments('id');
+            $table->string("mimes")->default('mimes:');
+            $table->integer("max_size");
+            $table->integer("user_id")->unsigned();
+            $table->timestamps();
+
+            $table->foreign("user_id")->references("id")->on("users")->onDelete("cascade")->onUpdate("cascade");
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::dropIfExists('file_types');
+    }
+}
