<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class MpCompleteVideoTask extends Model
{
    protected $table = 'mp_complete_video_tasks';
    
    protected $fillable = [
        'anime_id',
        'episode_id',
        'generate_json',
        'generate_status',
        'complete_video_url',
        'error_message',
        'created_at',
        'updated_at'
    ];

    protected $casts = [
        'generate_json' => 'array',
    ];

    // 状态常量
    const STATUS_PROCESSING = '执行中';
    const STATUS_SUCCESS = '执行成功';
    const STATUS_FAILED = '执行失败';
}
