text: # Generated by Django 3.2.3 on 2021-06-01 12:45
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  import django_extensions.db.fields
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      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=25, unique=True)),
                  ('slug', django_extensions.db.fields.AutoSlugField(blank=True, editable=False, populate_from='name')),
                  ('_openweather_id', models.IntegerField(blank=True, null=True)),
              ],
              options={
                  'verbose_name': 'город',
                  'verbose_name_plural': 'города',
              },
          ),
          migrations.CreateModel(
              name='Subscription',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('hook_url', models.CharField(blank=True, max_length=255)),
                  ('reminding_time_period', models.IntegerField(choices=[(0, 'No reminding'), (3600, 'Every 1 hour'), (10800, 'Every 3 hour'), (21600, 'Every 6 hour'), (43200, 'Every 12 hour'), (86400, 'Every 24 hour')], default=0)),
                  ('city', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='city', to='weather.city')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='subscription', to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'verbose_name': 'подписка',
                  'verbose_name_plural': 'подписки',
              },
          ),
      ]
  