# Generated by Django 3.0.8 on 2020-08-07 02:40

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='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='Listing',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100, unique=True)),
                ('currentPrice', models.DecimalField(decimal_places=2, max_digits=12)),
                ('description', models.TextField()),
                ('isActive', models.BooleanField()),
                ('imageUrl', models.URLField()),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='listings', to='auctions.Category')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='listings', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('comment', models.TextField()),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Bid',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amount', models.DecimalField(decimal_places=2, max_digits=12)),
                ('listing', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bids', to='auctions.Listing')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bids', to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]

a4068cec1c3468be1d8d9388fba64f529e02bf16
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    dependencies = [('auctions', '0001_initial')]
    operations = [migrations.CreateModel(name='Category', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('name', models.CharField(max_length=50,
        unique=True))]), migrations.CreateModel(name='Listing', fields=[(
        'id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('title', models.CharField(
        max_length=100, unique=True)), ('currentPrice', models.DecimalField
        (decimal_places=2, max_digits=12)), ('description', models.
        TextField()), ('isActive', models.BooleanField()), ('imageUrl',
        models.URLField()), ('category', models.ForeignKey(on_delete=django
        .db.models.deletion.CASCADE, related_name='listings', to=
        'auctions.Category')), ('user', models.ForeignKey(on_delete=django.
        db.models.deletion.CASCADE, related_name='listings', to=settings.
        AUTH_USER_MODEL))]), migrations.CreateModel(name='Comment', fields=
        [('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('comment', models.TextField(
        )), ('user', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, related_name='comments', to=settings.AUTH_USER_MODEL))]),
        migrations.CreateModel(name='Bid', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('amount', models.DecimalField(decimal_places=2, max_digits
        =12)), ('listing', models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, related_name='bids', to='auctions.Listing')), (
        'user', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, related_name='bids', to=settings.AUTH_USER_MODEL))])]

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='Category', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('name', models.CharField(max_length=50,
        unique=True))]), migrations.CreateModel(name='Listing', fields=[(
        'id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('title', models.CharField(
        max_length=100, unique=True)), ('currentPrice', models.DecimalField
        (decimal_places=2, max_digits=12)), ('description', models.
        TextField()), ('isActive', models.BooleanField()), ('imageUrl',
        models.URLField()), ('category', models.ForeignKey(on_delete=django
        .db.models.deletion.CASCADE, related_name='listings', to=
        'auctions.Category')), ('user', models.ForeignKey(on_delete=django.
        db.models.deletion.CASCADE, related_name='listings', to=settings.
        AUTH_USER_MODEL))]), migrations.CreateModel(name='Comment', fields=
        [('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('comment', models.TextField(
        )), ('user', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, related_name='comments', to=settings.AUTH_USER_MODEL))]),
        migrations.CreateModel(name='Bid', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('amount', models.DecimalField(decimal_places=2, max_digits
        =12)), ('listing', models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, related_name='bids', to='auctions.Listing')), (
        'user', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, related_name='bids', to=settings.AUTH_USER_MODEL))])]

# Generated by Django 3.0.8 on 2020-08-07 02:40

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='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='Listing',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100, unique=True)),
                ('currentPrice', models.DecimalField(decimal_places=2, max_digits=12)),
                ('description', models.TextField()),
                ('isActive', models.BooleanField()),
                ('imageUrl', models.URLField()),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='listings', to='auctions.Category')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='listings', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('comment', models.TextField()),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Bid',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amount', models.DecimalField(decimal_places=2, max_digits=12)),
                ('listing', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bids', to='auctions.Listing')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bids', to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
