JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "2019_05_21_135544_create_links_table.php"

Full Path: /home/markqprx/iniasli.pro/database/migrations/2019_05_21_135544_create_links_table.php
File size: 1.34 KB
MIME-type: text/x-php
Charset: utf-8

<?php

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

class CreateLinksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('links', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title', 150)->nullable();
            $table->string('hash', 10)->index()->unique();
            $table->string('alias', 50)->index()->nullable();
            $table->text('long_url');
            $table->integer('user_id')->nullable()->index();
            $table->integer('domain_id')->index()->nullable();
            $table->string('password')->nullable()->index();
            $table->boolean('disabled')->default(0)->index();
            $table->timestamp('expires_at')->nullable()->index();
            $table->text('description')->nullable();
            $table->string('type', 30)->index();
            $table->integer('type_id')->index()->nullable();
            $table->timestamp('created_at')->index()->nullable();
            $table->timestamp('updated_at')->index()->nullable();
        });
    }

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