text: # Generated by Django 3.2.5 on 2021-08-05 08:26
  
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
      ]
  
      operations = [
          migrations.CreateModel(
              name='Category',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('category', models.CharField(max_length=45, unique=True)),
              ],
          ),
          migrations.CreateModel(
              name='Scale',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('type', models.IntegerField()),
                  ('scaleImg', models.ImageField(default='initial.jpg', upload_to='moods')),
              ],
          ),
          migrations.CreateModel(
              name='User',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('username', models.CharField(max_length=100)),
                  ('password', models.CharField(max_length=45)),
              ],
          ),
          migrations.CreateModel(
              name='Profile',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('image', models.ImageField(default='initial.jpg', upload_to='profileImgs')),
                  ('user', models.OneToOneField(default=0, on_delete=django.db.models.deletion.CASCADE, to='cognativeApp.user')),
              ],
          ),
          migrations.CreateModel(
              name='Post',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=200, unique=True)),
                  ('slug', models.SlugField(default=True, max_length=200)),
                  ('content', models.TextField()),
                  ('createdOn', models.DateField(auto_now_add=True)),
                  ('updatedOn', models.DateField(auto_now=True)),
                  ('anxiety', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='anxietyLevel', to='cognativeApp.scale')),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='poster', to='cognativeApp.user')),
                  ('depression', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='depressionLevel', to='cognativeApp.scale')),
                  ('pain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='painLevel', to='cognativeApp.scale')),
                  ('type', models.ManyToManyField(related_name='categories', to='cognativeApp.Category')),
              ],
              options={
                  'ordering': ['-createdOn'],
              },
          ),
      ]
  