text: # Generated by Django 3.2 on 2021-09-28 08:54
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  import tinymce.models
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='BlogPost',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=150)),
                  ('image', models.ImageField(upload_to='post/')),
                  ('post', tinymce.models.HTMLField()),
                  ('post_date', models.DateTimeField(auto_now_add=True)),
                  ('avatar', models.ImageField(upload_to='avatars/')),
              ],
          ),
          migrations.CreateModel(
              name='healthservices',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('healthservices', models.CharField(max_length=100)),
              ],
          ),
          migrations.CreateModel(
              name='neighbourhood',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('neighbourhood', models.CharField(max_length=100)),
              ],
          ),
          migrations.CreateModel(
              name='Profile',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('avatar', models.ImageField(upload_to='avatars/')),
                  ('description', tinymce.models.HTMLField()),
                  ('name', models.CharField(max_length=100)),
                  ('email', models.EmailField(max_length=254)),
                  ('neighbourhood', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='neighbours.neighbourhood')),
                  ('username', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='notifications',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=100)),
                  ('notification', tinymce.models.HTMLField()),
                  ('priority', models.CharField(choices=[('Informational', 'Informational'), ('High Priority', 'High Priority')], default='Informational', max_length=15)),
                  ('post_date', models.DateTimeField(auto_now_add=True)),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                  ('neighbourhood', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='neighbours.neighbourhood')),
              ],
          ),
          migrations.CreateModel(
              name='Health',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('logo', models.ImageField(upload_to='healthlogo/')),
                  ('name', models.CharField(max_length=100)),
                  ('email', models.EmailField(max_length=254)),
                  ('contact', models.IntegerField()),
                  ('address', models.CharField(max_length=100)),
                  ('healthservices', models.ManyToManyField(to='neighbours.healthservices')),
                  ('neighbourhood', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='neighbours.neighbourhood')),
              ],
          ),
          migrations.CreateModel(
              name='Comment',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('comment', models.CharField(max_length=300)),
                  ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='neighbours.blogpost')),
                  ('username', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='Business',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('logo', models.ImageField(upload_to='businesslogo/')),
                  ('description', tinymce.models.HTMLField()),
                  ('name', models.CharField(max_length=100)),
                  ('email', models.EmailField(max_length=254)),
                  ('address', models.CharField(max_length=100)),
                  ('contact', models.IntegerField()),
                  ('neighbourhood', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='neighbours.neighbourhood')),
                  ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.AddField(
              model_name='blogpost',
              name='neighbourhood',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='neighbours.neighbourhood'),
          ),
          migrations.AddField(
              model_name='blogpost',
              name='username',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
          ),
          migrations.CreateModel(
              name='Authorities',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=100)),
                  ('email', models.EmailField(max_length=254)),
                  ('contact', models.IntegerField()),
                  ('address', models.CharField(max_length=100)),
                  ('neighbourhood', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='neighbours.neighbourhood')),
              ],
          ),
      ]
  