# Generated by Django 3.2.17 on 2023-04-20 02:57 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('api', '0016_alter_activationkey_key_set'), ] operations = [ migrations.CreateModel( name='CustomerAddress', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('city', models.CharField(max_length=100)), ('line1', models.CharField(max_length=255)), ('line2', models.CharField(blank=True, max_length=255, null=True)), ('postal_code', models.SmallIntegerField()), ], ), migrations.AddField( model_name='activationkey', name='activations', field=models.SmallIntegerField(default=0), ), migrations.AddField( model_name='questionnaire', name='creation_date', field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), preserve_default=False, ), migrations.CreateModel( name='Customer', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('email', models.EmailField(max_length=254)), ('name', models.CharField(max_length=100)), ('address', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='api.customeraddress')), ], ), migrations.AddField( model_name='activationkey', name='customer', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='api.customer'), ), ]