text: # Generated by Django 3.0.2 on 2020-09-28 16:57
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('auctions', '0001_initial'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Bid',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('value', models.IntegerField()),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='Category',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('category_name', models.CharField(max_length=100)),
              ],
          ),
          migrations.CreateModel(
              name='Listing',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=50)),
                  ('description', models.CharField(max_length=300)),
                  ('date_posted', models.DateField()),
                  ('picture_url', models.CharField(max_length=200)),
                  ('activity', models.BooleanField(default=True)),
                  ('starting_bid', models.IntegerField()),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='created_listings', to=settings.AUTH_USER_MODEL)),
                  ('bids', models.ManyToManyField(to='auctions.Bid')),
                  ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auctions.Category')),
                  ('watchers', models.ManyToManyField(related_name='watchings', to=settings.AUTH_USER_MODEL)),
                  ('winner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='Comment',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('content', models.CharField(max_length=300)),
                  ('date_posted', models.DateField()),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                  ('listing', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='auctions.Listing')),
              ],
          ),
      ]
  