# Generated by Django 5.2 on 2025-08-25 11:07

import django.core.validators
import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('icict_attendance', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='FeedbackConfiguration',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('feedback_enabled', models.BooleanField(default=True, help_text='Whether feedback collection is enabled')),
                ('feedback_message', models.TextField(default="We value your feedback! Please share your thoughts about today's session.", help_text='Message shown to participants on feedback form')),
                ('allow_anonymous_feedback', models.BooleanField(default=True, help_text='Allow participants to submit feedback anonymously')),
                ('require_attendance', models.BooleanField(default=False, help_text='Require participants to have attended the day before giving feedback')),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('current_feedback_day', models.ForeignKey(blank=True, help_text='Current day for which feedback is being collected', null=True, on_delete=django.db.models.deletion.SET_NULL, to='icict_attendance.attendanceday')),
            ],
            options={
                'verbose_name': 'Feedback Configuration',
                'verbose_name_plural': 'Feedback Configuration',
            },
        ),
        migrations.CreateModel(
            name='WorkshopFeedback',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('participant_name', models.CharField(help_text='Name of the participant', max_length=255)),
                ('participant_email', models.EmailField(help_text='Email address of the participant', max_length=254)),
                ('session_type', models.CharField(choices=[('workshop', 'AI Skills Building Workshop'), ('conference', '7th ICICT 2025 Conference'), ('general', 'General Event Feedback')], default='workshop', max_length=20)),
                ('overall_rating', models.IntegerField(choices=[(1, '1 - Poor'), (2, '2 - Fair'), (3, '3 - Good'), (4, '4 - Very Good'), (5, '5 - Excellent')], help_text='Overall rating of the session', validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(5)])),
                ('content_quality', models.IntegerField(choices=[(1, '1 - Poor'), (2, '2 - Fair'), (3, '3 - Good'), (4, '4 - Very Good'), (5, '5 - Excellent')], help_text='Quality of content presented', validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(5)])),
                ('presenter_effectiveness', models.IntegerField(choices=[(1, '1 - Poor'), (2, '2 - Fair'), (3, '3 - Good'), (4, '4 - Very Good'), (5, '5 - Excellent')], help_text='Effectiveness of the presenter/speaker', validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(5)])),
                ('venue_facilities', models.IntegerField(choices=[(1, '1 - Poor'), (2, '2 - Fair'), (3, '3 - Good'), (4, '4 - Very Good'), (5, '5 - Excellent')], help_text='Quality of venue and facilities', validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(5)])),
                ('what_liked_most', models.TextField(blank=True, help_text="What did you like most about today's session?", null=True)),
                ('suggestions_improvement', models.TextField(blank=True, help_text='What suggestions do you have for improvement?', null=True)),
                ('additional_topics', models.TextField(blank=True, help_text='What additional topics would you like to see covered?', null=True)),
                ('general_comments', models.TextField(blank=True, help_text='Any other comments or feedback', null=True)),
                ('submitted_at', models.DateTimeField(auto_now_add=True)),
                ('ip_address', models.GenericIPAddressField(blank=True, null=True)),
                ('is_anonymous', models.BooleanField(default=False, help_text='Whether feedback was submitted anonymously')),
                ('attendance_day', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='feedbacks', to='icict_attendance.attendanceday')),
                ('registrant', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='feedbacks', to='icict_attendance.icictregistrant')),
            ],
            options={
                'verbose_name': 'Workshop Feedback',
                'verbose_name_plural': 'Workshop Feedbacks',
                'ordering': ['-submitted_at'],
            },
        ),
    ]
