# Generated by Django 4.1.2 on 2022-12-17 10:43 import datetime from django.db import migrations, models import django.db.models.deletion import zitap.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Event', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('url', models.CharField(default=zitap.models.generate_random_url, max_length=6, unique=True)), ('name', models.CharField(max_length=255)), ('slot_interval', models.DurationField(default=datetime.timedelta(seconds=900))), ('created_at', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Participant', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('pw_hash', models.CharField(max_length=255)), ('slots', models.BinaryField()), ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='zitap.event')), ], ), migrations.CreateModel( name='Date', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateField()), ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='zitap.event')), ], ), ]