# Generated by Django 3.2.25 on 2026-04-17 21:47

from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Vote',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('voter_hash', models.CharField(db_index=True, max_length=64)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
                ('candidat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='nominations.candidat')),
                ('categorie', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='nominations.categorie')),
                ('evenement', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='nominations.evenement')),
            ],
            options={
                'unique_together': {('voter_hash', 'categorie')},
            },
        ),
    ]
