# Generated by Django 6.0.1 on 2026-03-11 05:11

import uuid
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='TranscriptionTask',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('file_url', models.URLField(max_length=1024, verbose_name='文件链接')),
                ('task_id', models.CharField(blank=True, max_length=100, null=True, verbose_name='听悟任务ID')),
                ('status', models.CharField(choices=[('PENDING', '等待中'), ('PROCESSING', '处理中'), ('SUCCEEDED', '成功'), ('FAILED', '失败')], default='PENDING', max_length=20, verbose_name='状态')),
                ('transcription', models.TextField(blank=True, null=True, verbose_name='逐字稿')),
                ('summary', models.TextField(blank=True, null=True, verbose_name='AI总结')),
                ('error_message', models.TextField(blank=True, null=True, verbose_name='错误信息')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '转写任务',
                'verbose_name_plural': '转写任务',
                'ordering': ['-created_at'],
            },
        ),
    ]
