# Generated by Django 5.2.7 on 2026-02-16 13:14

import django.db.models.deletion
import django.utils.timezone
import retour_client.adapters
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='ConversationClaude',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('utilisateur', models.CharField(max_length=150)),
                ('role', models.CharField(choices=[('user', 'Utilisateur'), ('assistant', 'Assistant')], max_length=10)),
                ('message', models.TextField()),
                ('date_creation', models.DateTimeField(default=django.utils.timezone.now)),
                ('session_id', models.CharField(db_index=True, max_length=100)),
            ],
            options={
                'verbose_name': 'Conversation Claude',
                'verbose_name_plural': 'Conversations Claude',
                'ordering': ['id'],
            },
        ),
        migrations.CreateModel(
            name='RetourClient',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date_ajout', models.DateTimeField(auto_now_add=True)),
                ('statut', models.CharField(choices=[('A', 'En attente'), ('E', 'En cours'), ('T', 'Traité par Revolucy'), ('V', 'Retour validé'), ('Z', 'Demande V2')], default='A', max_length=1)),
                ('type', models.CharField(choices=[('N', 'Non classé'), ('Q', 'Question'), ('B', 'Bug'), ('A', 'Amélioration')], default='N', max_length=1)),
                ('lien_url', models.URLField(max_length=300)),
                ('utilisateur', models.CharField(default='Inconnu', max_length=100)),
                ('image', models.ImageField(blank=True, null=True, upload_to=retour_client.adapters.image_upload_to)),
                ('titre', models.CharField(max_length=100)),
                ('description', models.TextField()),
                ('priorite', models.CharField(choices=[('C', 'Critique'), ('N', 'Normal'), ('B', 'Non Urgent')], default='N', max_length=1)),
                ('navigateur', models.CharField(blank=True, max_length=100, null=True)),
            ],
            options={
                'verbose_name': 'Retour Client',
                'verbose_name_plural': 'Retours Client',
            },
        ),
        migrations.CreateModel(
            name='ReponseBug',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date_ajout', models.DateTimeField(auto_now_add=True)),
                ('reponse', models.TextField()),
                ('repondant', models.CharField(choices=[('R', 'Revolucy'), ('C', 'Client')], max_length=1)),
                ('temps_passe', models.DecimalField(blank=True, decimal_places=2, max_digits=5, null=True)),
                ('piece_jointe', models.FileField(blank=True, null=True, upload_to='retourclient_pj')),
                ('retour_client', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='retour_client', to='retour_client.retourclient')),
            ],
            options={
                'verbose_name': 'Retour Client',
                'verbose_name_plural': 'Retours Client',
            },
        ),
    ]
