# Generated by Django 5.1.4 on 2024-12-29 13:38 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='City', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=150, unique=True, verbose_name='City')), ], options={ 'verbose_name_plural': 'Cities', }, ), migrations.CreateModel( name='Location', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('place', models.CharField(blank=True, max_length=250, verbose_name='Place')), ('city', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='places', to='gallery.city', verbose_name='City')), ], options={ 'verbose_name_plural': 'Locations', 'unique_together': {('place', 'city')}, }, ), ]