# Generated by Django 3.1.3 on 2020-12-10 20:21 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='Offer', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(default='Tytuł oferty', max_length=50, verbose_name='Title')), ('price', models.DecimalField(decimal_places=2, max_digits=10)), ('date_added', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Offer_Category', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=50)), ], options={ 'verbose_name': 'Category', 'verbose_name_plural': 'Categories', }, ), migrations.CreateModel( name='Offer_Stats', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('offer', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='camper.offer', verbose_name='')), ], ), migrations.AddField( model_name='offer', name='category', field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='camper.offer_category'), ), migrations.AddField( model_name='offer', name='created_by_id', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]