Ignore:
Timestamp:
10/21/21 23:45:59 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
4b7e2d3
Parents:
6b95845
Message:

added fileTypes controller, notifications, excel export, edited views

Location:
database/migrations
Files:
2 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • database/migrations/2021_09_27_171107_create_users_table.php

    r6b95845 rc6b84df  
    2020            $table->string('surname');
    2121            $table->string('username')->unique();
    22             $table->string('password');
    2322            $table->string('email')->unique();
    2423            $table->string('phone_number')->unique();
     
    3029            $table->boolean('is_confirmed')->default(false);
    3130            $table->boolean('is_forgot_password')->default(false);
     31            $table->integer("created_by")->unsigned();
    3232            $table->integer('security_code')->nullable();
    3333            $table->string('verify_token')->nullable();
    34             $table->integer("created_by")->unsigned();
     34            $table->string('password');
    3535            $table->rememberToken();
    3636            $table->timestamps();
  • database/migrations/2021_10_06_103305_create_folders_table.php

    r6b95845 rc6b84df  
    55use Illuminate\Support\Facades\Schema;
    66
    7 class CreateDocumentsTable extends Migration
     7class CreateFoldersTable extends Migration
    88{
    99    /**
     
    1414    public function up()
    1515    {
    16         Schema::create('documents', function (Blueprint $table) {
     16        Schema::create('folders', function (Blueprint $table) {
    1717            $table->bigIncrements('id');
    1818            $table->string("arch_id")->unique();
    1919            $table->string("name");
    20             $table->text("description");
     20            $table->text("note")->nullable();
     21            $table->string("location");
    2122            $table->integer("user_id")->unsigned();
    2223            $table->integer("department_id")->unsigned();
    23             $table->boolean("is_important")->default(true);
     24            $table->boolean("is_important")->default(false);
    2425            $table->timestamps();
    2526
     
    3637    public function down()
    3738    {
    38         Schema::dropIfExists('documents');
     39        Schema::dropIfExists('folders');
    3940    }
    4041}
  • database/migrations/2021_10_10_103309_create_files_table.php

    r6b95845 rc6b84df  
    1616        Schema::create('files', function (Blueprint $table) {
    1717            $table->bigIncrements('id');
    18             $table->bigInteger('document_id')->unsigned();
     18            $table->bigInteger('folder_id')->unsigned();
    1919            $table->string("name");
    2020            $table->string("location");
    21             $table->foreign("document_id")->references("id")->on("documents");
     21            $table->foreign("folder_id")->references("id")->on("folders");
    2222            $table->timestamps();
    2323        });
Note: See TracChangeset for help on using the changeset viewer.