# Generated by Django 5.2.9 on 2026-01-01 11:46

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


class Migration(migrations.Migration):

    dependencies = [
        ('chat', '0008_conversationvisibility_is_muted'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='ChatAppearance',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('bg_type', models.CharField(choices=[('default', 'Default'), ('color', 'Solid Color'), ('gradient', 'Gradient'), ('image', 'Image')], default='default', max_length=10)),
                ('bg_color', models.CharField(blank=True, max_length=7, null=True)),
                ('bg_gradient_start', models.CharField(blank=True, max_length=7, null=True)),
                ('bg_gradient_end', models.CharField(blank=True, max_length=7, null=True)),
                ('bg_image', models.ImageField(blank=True, null=True, upload_to='chat_backgrounds/')),
                ('bg_image_position', models.JSONField(blank=True, default=dict)),
                ('message_bg_sent', models.CharField(blank=True, max_length=7, null=True)),
                ('message_bg_received', models.CharField(blank=True, max_length=7, null=True)),
                ('message_text_sent', models.CharField(blank=True, max_length=7, null=True)),
                ('message_text_received', models.CharField(blank=True, max_length=7, null=True)),
                ('display_mode', models.CharField(choices=[('comfortable', 'Comfortable'), ('compact', 'Compact')], default='comfortable', max_length=12)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('conversation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='appearances', to='chat.conversation')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='chat_appearances', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'indexes': [models.Index(fields=['user', 'conversation'], name='chat_chatap_user_id_c03ffa_idx')],
                'unique_together': {('user', 'conversation')},
            },
        ),
    ]
