<?php

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

return new class () extends Migration {
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('video_texts', function (Blueprint $table) {
            $table->id();
            $table->foreignId('embed_video_id');
            $table->string('header')->nullable();
            $table->mediumText('body')->nullable();
            $table->string('link')->nullable();
            $table->string('link_text')->nullable();
            $table->integer('start_time')->nullable();
            $table->integer('length')->nullable();
            $table->integer('offsetX')->nullable();
            $table->integer('offsetY')->nullable();
            $table->string('header_size')->nullable();
            $table->timestamps();
        });
    }

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