# Generated by Django 4.2.7 on 2024-04-26 14:24

from django.db import migrations, models
import django.db.models.deletion
import django_better_admin_arrayfield.models.fields
import location_field.models.plain


class Migration(migrations.Migration):

    dependencies = [
        ('agenda_culturel', '0055_alter_recurrentimport_name'),
    ]

    operations = [
        migrations.CreateModel(
            name='Place',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(help_text='Name of the place', verbose_name='Name')),
                ('address', models.CharField(help_text='Address of this place', verbose_name='Address')),
                ('location', location_field.models.plain.PlainLocationField(max_length=63)),
                ('aliases', django_better_admin_arrayfield.models.fields.ArrayField(base_field=models.CharField(max_length=512), blank=True, help_text='Alternative names or addresses used to match a place with a description form an event.', null=True, size=None, verbose_name='Alternative names')),
            ],
            options={
                'verbose_name': 'Place',
                'verbose_name_plural': 'Places',
            },
        ),
        migrations.AlterField(
            model_name='event',
            name='location',
            field=models.CharField(default='', help_text='Address of the event in case its not available in the already known places (free form)', max_length=512, verbose_name='Location (free form)'),
        ),
        migrations.AddField(
            model_name='event',
            name='exact_location',
            field=models.ForeignKey(help_text='Address of the event', null=True, on_delete=django.db.models.deletion.SET_NULL, to='agenda_culturel.place', verbose_name='Location'),
        ),
    ]
