# Generated by Django 2.2.1 on 2020-03-20 04:16

import datetime
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('webmap', '0017_folder_created'),
    ]

    operations = [
        migrations.CreateModel(
            name='PinIcon',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('icon', models.ImageField(upload_to='icons')),
            ],
            options={
                'verbose_name_plural': 'Pin icons',
            },
        ),
        migrations.AlterModelOptions(
            name='category',
            options={'verbose_name': 'custom category', 'verbose_name_plural': 'Custom Categories'},
        ),
        migrations.AddField(
            model_name='category',
            name='owner',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterField(
            model_name='basemap',
            name='name',
            field=models.CharField(max_length=40, unique=True, validators=[django.core.validators.RegexValidator('^[A-Z][a-zA-Z0-9 ]*$', 'Must start with A-Z and contain only letters, numbers and space.')]),
        ),
        migrations.AlterField(
            model_name='cartooverlay',
            name='name',
            field=models.CharField(max_length=40, unique=True, validators=[django.core.validators.RegexValidator('^[A-Z][a-zA-Z0-9 ]*$', 'Must start with A-Z and contain only letters, numbers and space.')]),
        ),
        migrations.AlterField(
            model_name='category',
            name='pin_icon',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.PROTECT, to='webmap.PinIcon'),
        ),
        migrations.AlterField(
            model_name='folder',
            name='created',
            field=models.DateTimeField(default=datetime.datetime(2020, 3, 20, 4, 16, 33, 158545, tzinfo=utc), editable=False),
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('colorBlind', models.BooleanField(default=False)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
