# Generated by Django 5.2.11 on 2026-02-15 15:23

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0022_patternmitigationautosettings'),
    ]

    operations = [
        migrations.AddField(
            model_name='message',
            name='delivered_ts',
            field=models.BigIntegerField(blank=True, help_text='Delivery timestamp (unix ms) when known.', null=True),
        ),
        migrations.AddField(
            model_name='message',
            name='read_by_identifier',
            field=models.CharField(blank=True, help_text='Identifier that read this message (service-native value).', max_length=255, null=True),
        ),
        migrations.AddField(
            model_name='message',
            name='read_source_service',
            field=models.CharField(blank=True, choices=[('signal', 'Signal'), ('whatsapp', 'WhatsApp'), ('xmpp', 'XMPP'), ('instagram', 'Instagram')], help_text='Service that reported the read receipt.', max_length=255, null=True),
        ),
        migrations.AddField(
            model_name='message',
            name='read_ts',
            field=models.BigIntegerField(blank=True, help_text='Read timestamp (unix ms) when known.', null=True),
        ),
        migrations.AddField(
            model_name='message',
            name='receipt_payload',
            field=models.JSONField(blank=True, default=dict, help_text='Raw normalized delivery/read receipt metadata.'),
        ),
        migrations.AlterField(
            model_name='messageevent',
            name='source_system',
            field=models.CharField(choices=[('signal', 'Signal'), ('whatsapp', 'WhatsApp'), ('xmpp', 'XMPP'), ('instagram', 'Instagram'), ('workspace', 'Workspace'), ('ai', 'AI')], default='signal', help_text='System that produced this event record.', max_length=32),
        ),
        migrations.AlterField(
            model_name='personidentifier',
            name='service',
            field=models.CharField(choices=[('signal', 'Signal'), ('whatsapp', 'WhatsApp'), ('xmpp', 'XMPP'), ('instagram', 'Instagram')], max_length=255),
        ),
        migrations.AlterField(
            model_name='workspaceconversation',
            name='platform_type',
            field=models.CharField(choices=[('signal', 'Signal'), ('whatsapp', 'WhatsApp'), ('xmpp', 'XMPP'), ('instagram', 'Instagram')], default='signal', help_text='Primary transport for this conversation (reuses SERVICE_CHOICES).', max_length=255),
        ),
    ]
