<?php

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

class CreateFaceSwapJobsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('face_swap_jobs', function (Blueprint $table) {
			$table->id();
			$table->string('code');
			$table->string('source_path');
			$table->string('target_path');
			$table->string('output_path');
			$table->string('status')->default('pending');
			$table->text('error')->nullable();
			$table->timestamps();
        });
    }

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