# Generated by Django 5.0.3 on 2026-05-27 10:41

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


class Migration(migrations.Migration):

    dependencies = [
        ('bengkel', '0032_bengkel_master_qr_token'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='MaklumBalasPenganjur',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('rating', models.PositiveSmallIntegerField(default=5)),
                ('komen', models.TextField(blank=True, help_text='Ulasan bertulis peserta terhadap pengurusan acara')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('bengkel', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='maklum_balas', to='bengkel.bengkel')),
                ('penganjur', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rating_diterima', to=settings.AUTH_USER_MODEL)),
                ('peserta', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rating_diberikan', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Maklum Balas Penganjur',
                'verbose_name_plural': 'Maklum Balas Penganjur',
                'ordering': ['-created_at'],
                'unique_together': {('bengkel', 'peserta')},
            },
        ),
    ]
