Sindbad~EG File Manager

Current Path : /proc/self/cwd/common/Database/migrations/
Upload File :
Current File : //proc/self/cwd/common/Database/migrations/2018_06_02_143319_create_user_file_entry_table.php

<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserFileEntryTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_file_entry', function(Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->unsigned()->index();
            $table->integer('file_entry_id')->unsigned()->index();
            $table->boolean('owner')->default(0)->index();
            $table->text('permissions')->nullable();
            $table->timestamps();

            $table->unique(['file_entry_id', 'user_id']);

            $table->collation = config('database.connections.mysql.collation');
            $table->charset = config('database.connections.mysql.charset');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('user_file_entry');
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists