text: # Generated by Django 3.2 on 2021-04-17 18:42
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='UavPost',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=200)),
                  ('description', models.TextField()),
                  ('image', models.ImageField(blank=True, upload_to='images/')),
                  ('date', models.DateField()),
                  ('Rotor_type', models.CharField(choices=[('BLDC', 'Electric motor'), ('IC', 'Internal combustion engine')], default='BLDC', max_length=4)),
                  ('RF_frequecy', models.DecimalField(decimal_places=2, max_digits=5)),
                  ('unit', models.CharField(choices=[('MHz', 'Mega Hertz'), ('GHz', 'Giga Hertz')], default='GHz', max_length=3)),
                  ('user_name', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='UavImages',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('images', models.FileField(upload_to='images/')),
                  ('image_info', models.CharField(default=None, max_length=300)),
                  ('post', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='uav.uavpost')),
              ],
          ),
          migrations.CreateModel(
              name='Comment',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('content', models.TextField()),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('post', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='uav.uavpost')),
                  ('user', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
      ]
  