feat:tutorial_videos 테이블 마이그레이션 추가
사용자 매뉴얼 영상 자동 생성 기능을 위한 DB 테이블 생성 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?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('tutorial_videos', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('tenant_id');
|
||||
$table->unsignedBigInteger('user_id');
|
||||
$table->string('title', 500)->nullable();
|
||||
$table->string('status', 50)->default('pending');
|
||||
$table->tinyInteger('progress')->unsigned()->default(0);
|
||||
$table->string('current_step', 100)->nullable();
|
||||
$table->json('screenshots')->nullable();
|
||||
$table->json('analysis_data')->nullable();
|
||||
$table->json('slides_data')->nullable();
|
||||
$table->string('output_path', 500)->nullable();
|
||||
$table->string('gcs_path', 500)->nullable();
|
||||
$table->decimal('cost_usd', 8, 4)->default(0);
|
||||
$table->text('error_message')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->index('tenant_id');
|
||||
$table->index(['user_id', 'status']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tutorial_videos');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user