# Generated by Django 5.2.11 on 2026-04-13 22:21

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


class Migration(migrations.Migration):

    dependencies = [
        ('projects', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='AgentaZina',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('tips', models.CharField(choices=[('text', 'Teksts'), ('photo', 'Attēls'), ('audio', 'Audio'), ('document', 'Dokuments')], default='text', max_length=20)),
                ('saturs', models.TextField(blank=True)),
                ('fails', models.FileField(blank=True, null=True, upload_to='tg_mediji/')),
                ('izveidots', models.DateTimeField(auto_now_add=True)),
                ('klients', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='agenta_zinas', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Aģenta Ziņa',
                'verbose_name_plural': 'Aģenta Ziņas',
            },
        ),
        migrations.CreateModel(
            name='Uzdevums',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('tituls', models.CharField(max_length=255)),
                ('apraksts', models.TextField(blank=True)),
                ('statuss', models.CharField(choices=[('IDEJA', '💡 Ideja'), ('GAIDA', 'Gaida'), ('PROCESA', 'Procesā'), ('PABEIGTS', 'Pabeigts')], default='GAIDA', max_length=20)),
                ('feedback_prasits', models.BooleanField(default=False)),
                ('izveidots', models.DateTimeField(auto_now_add=True)),
                ('atjaunots', models.DateTimeField(auto_now=True)),
                ('klients', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='uzdevumi', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Uzdevums',
                'verbose_name_plural': 'Uzdevumi',
            },
        ),
    ]
