# Generated by Django 2.2.5 on 2019-10-30 09:57

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


class Migration(migrations.Migration):

    dependencies = [
        ('message', '0001_initial'),
        ('user_profile', '0001_initial'),
        ('chats', '0002_auto_20191028_2209'),
        ('attach', '0001_initial'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='attachment',
            name='chat_id',
        ),
        migrations.RemoveField(
            model_name='attachment',
            name='message_id',
        ),
        migrations.RemoveField(
            model_name='attachment',
            name='user_id',
        ),
        migrations.AddField(
            model_name='attachment',
            name='chat',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='attachment_chat', to='chats.Chat'),
        ),
        migrations.AddField(
            model_name='attachment',
            name='message',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='attachment_message', to='message.Message'),
        ),
        migrations.AddField(
            model_name='attachment',
            name='user',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='attachment_user', to='user_profile.User'),
        ),
    ]
