Ignore:
Timestamp:
10/23/21 04:03:46 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
b39afb5
Parents:
c6b84df
Message:

bug fixes, edited export, added fileSeeder for DB testing

Location:
database/migrations
Files:
3 edited

Legend:

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

    rc6b84df r4b7e2d3  
    1616        Schema::create('departments', function (Blueprint $table) {
    1717            $table->increments('id');
    18             $table->integer("user_id")->unsigned();
    1918            $table->string("name");
    2019            $table->string("code");
     20            $table->integer("user_id")->unsigned();
    2121            $table->string("location");
     22            $table->integer("no_of_folders")->default(0);
    2223            $table->timestamps();
    2324
  • database/migrations/2021_10_06_103305_create_folders_table.php

    rc6b84df r4b7e2d3  
    2020            $table->text("note")->nullable();
    2121            $table->string("location");
     22            $table->integer("no_of_files")->default(0);
    2223            $table->integer("user_id")->unsigned();
    2324            $table->integer("department_id")->unsigned();
  • database/migrations/2021_10_21_144552_create_file_types_table.php

    rc6b84df r4b7e2d3  
    1616        Schema::create('file_types', function (Blueprint $table) {
    1717            $table->increments('id');
    18             $table->string("mimes")->default('mimes:');
     18            $table->string("mimes")->default('jpg,jpeg,png,pdf,docx,xls,xlsx,txt,ppt,pptx');
    1919            $table->integer("max_size");
    2020            $table->integer("user_id")->unsigned();
Note: See TracChangeset for help on using the changeset viewer.