feat:video_generations 테이블 마이그레이션 추가 (YouTube Shorts AI)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-15 08:46:34 +09:00
parent f3ab7525e2
commit d97130fc3a

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('video_generations', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('tenant_id');
$table->unsignedBigInteger('user_id');
$table->string('keyword', 255);
$table->string('title', 500)->nullable();
$table->json('scenario')->nullable();
$table->string('status', 50)->default('pending');
$table->tinyInteger('progress')->unsigned()->default(0);
$table->string('current_step', 100)->nullable();
$table->json('clips_data')->nullable();
$table->string('output_path', 500)->nullable();
$table->decimal('cost_usd', 8, 4)->default(0);
$table->text('error_message')->nullable();
$table->timestamps();
$table->index(['tenant_id', 'user_id']);
$table->index('status');
});
}
public function down(): void
{
Schema::dropIfExists('video_generations');
}
};