# Generated by Django 3.1.5 on 2021-01-25 10:47 import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cookbook', '0101_storage_path'), ] operations = [ migrations.CreateModel( name='Supermarket', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, unique=True, validators=[django.core.validators.MinLengthValidator(1)])), ('description', models.TextField(blank=True, null=True)), ], ), migrations.CreateModel( name='SupermarketCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, unique=True, validators=[django.core.validators.MinLengthValidator(1)])), ('description', models.TextField(blank=True, null=True)), ], ), migrations.AddField( model_name='food', name='description', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='storage', name='method', field=models.CharField(choices=[('DB', 'Dropbox'), ('NEXTCLOUD', 'Nextcloud'), ('LOCAL', 'Local')], default='DB', max_length=128), ), migrations.AddField( model_name='food', name='supermarket_category', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='cookbook.supermarketcategory'), ), ]