<?php

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

class CreatePhotosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('photos', function (Blueprint $table) {
            $table->id();
            $table->string('code')->nullable();
            $table->string('status')->nullable();
            $table->string('author')->nullable();
            $table->string('category')->nullable();
            $table->string('aws_path')->nullable();
            $table->string('aws_rs_path')->nullable();
            $table->string('file_url')->nullable();
            $table->string('file_origin')->nullable();
            $table->string('file_convert')->nullable();
            $table->string('file_color')->nullable();
            $table->string('file_mix')->nullable();
            $table->string('file_result')->nullable();
            $table->integer('file_level')->default(0);
            $table->integer('assigned_id')->nullable();
            $table->integer('user_id')->default(1);
            $table->integer('rs_status')->default(0);
            $table->timestamps();
        });
    }

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