# Generated by Django 2.2.7 on 2021-04-01 22:59

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('back_for_face', '0013_auto_20210402_0456'),
    ]

    operations = [
        migrations.CreateModel(
            name='Door',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('door_name', models.CharField(max_length=200, null=True)),
            ],
        ),
        migrations.RenameField(
            model_name='qr',
            old_name='qr',
            new_name='qr_string',
        ),
        migrations.RemoveField(
            model_name='currentuser',
            name='door_id',
        ),
        migrations.RemoveField(
            model_name='qr',
            name='door_id',
        ),
        migrations.RemoveField(
            model_name='qr',
            name='user_id',
        ),
        migrations.AddField(
            model_name='qr',
            name='user',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='back_for_face.User'),
        ),
        migrations.AddField(
            model_name='currentuser',
            name='door',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='back_for_face.Door'),
        ),
        migrations.AddField(
            model_name='qr',
            name='door',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='back_for_face.Door'),
        ),
    ]
