<?php

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

class CreateXxxinfoTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('xxxinfo', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->charset = 'utf8';
            $table->collation = 'utf8_unicode_ci';
            $table->increments('id');
            $table->string('title', 1024)->unique('ix_xxxinfo_title');
            $table->string('tagline', 1024);
            $table->binary('plot', 65535)->nullable();
            $table->string('genre');
            $table->string('director')->nullable();
            $table->string('actors', 2500);
            $table->text('extras', 65535)->nullable();
            $table->text('productinfo', 65535)->nullable();
            $table->text('trailers', 65535)->nullable();
            $table->string('directurl', 2000);
            $table->string('classused', 20)->default('');
            $table->boolean('cover')->default(0);
            $table->boolean('backdrop')->default(0);
            $table->timestamps();
        });
    }

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