# Generated by Django 6.0.7 on 2026-07-22 13:42 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='PotholeDetection', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uploaded_image', models.ImageField(upload_to='road_detection/uploads/')), ('result_image', models.ImageField(blank=True, null=True, upload_to='road_detection/results/')), ('detection_count', models.IntegerField(default=0)), ('confidence_threshold', models.FloatField(default=0.25)), ('created_at', models.DateTimeField(auto_now_add=True)), ('notes', models.TextField(blank=True)), ('image_lat', models.FloatField(blank=True, null=True)), ('image_lon', models.FloatField(blank=True, null=True)), ('detections_data', models.JSONField(blank=True, null=True)), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Pothole Detection', 'verbose_name_plural': 'Pothole Detections', 'ordering': ['-created_at'], }, ), ]