# Generated by Django 5.1.4 on 2026-04-06 03:08 import django.contrib.gis.db.models.fields import uuid from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Challenge', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('title', models.CharField(max_length=255)), ('description', models.TextField(blank=True, default='')), ('status', models.CharField(choices=[('active', 'Active'), ('closed', 'Closed')], db_index=True, default='active', max_length=20)), ('region', django.contrib.gis.db.models.fields.PolygonField(geography=True, srid=4326)), ('region_centroid', django.contrib.gis.db.models.fields.PointField(geography=True, srid=4326)), ('max_submissions', models.PositiveIntegerField(blank=True, null=True)), ('submission_count', models.PositiveIntegerField(default=0)), ('expires_at', models.DateTimeField(blank=True, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ], options={ 'db_table': 'challenges', }, ), migrations.CreateModel( name='ChallengeParticipant', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('joined_at', models.DateTimeField(auto_now_add=True)), ], options={ 'db_table': 'challenge_participants', }, ), ]