# Generated by Django 3.0.10 on 2021-01-19 17:08

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='AudioDocument',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nome', models.CharField(blank=True, max_length=255, verbose_name='Nome do Áudio')),
                ('file', models.FileField(upload_to='audio/', verbose_name='File')),
                ('filename', models.CharField(blank=True, max_length=255, verbose_name='Nome do Arquivo')),
                ('size', models.BigIntegerField(null=True, verbose_name='Tamanho Arquivo')),
                ('mime', models.CharField(blank=True, max_length=255, verbose_name='MIME Type')),
                ('ext', models.CharField(blank=True, max_length=255, verbose_name='Extensão')),
                ('data_upload', models.DateTimeField(auto_now_add=True, verbose_name='Data de Upload')),
                ('data_atualizacao', models.DateTimeField(auto_now=True, verbose_name='Data de Atualização')),
                ('foi_transcrito', models.BooleanField(default=False, verbose_name='Foi Transcrito')),
                ('user', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='audiodocs', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Documento de Audio',
                'verbose_name_plural': 'Documentos de Audio',
                'ordering': ('data_upload',),
            },
        ),
        migrations.CreateModel(
            name='ProcessedAudio',
            fields=[
                ('audiodoc', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='processedaudio', serialize=False, to='audios.AudioDocument')),
                ('texto', models.TextField(default=None, null=True, verbose_name='Texto Transcrito')),
                ('file_wc', models.FileField(upload_to='wc/', verbose_name='Wordcloud')),
                ('data_criacao', models.DateTimeField(auto_now_add=True, verbose_name='Data de Criação')),
                ('data_atualizacao', models.DateTimeField(auto_now=True, verbose_name='Data de Atualização')),
            ],
            options={
                'verbose_name': 'Texto Processado',
                'verbose_name_plural': 'Textos Processados',
                'ordering': ('data_criacao',),
            },
        ),
        migrations.CreateModel(
            name='TermoFreqData',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('termo', models.CharField(blank=True, max_length=255, verbose_name='Termo')),
                ('qtd', models.IntegerField(blank=True, verbose_name='Qtd')),
                ('pdoc', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='mais_frequentes', to='audios.ProcessedAudio')),
            ],
        ),
    ]
