# Generated by Django 5.1.5 on 2025-02-07 13:56

import uuid

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


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0008_alter_ai_user_alter_group_user_and_more'),
    ]

    operations = [
        migrations.AlterField(
            model_name='chatsession',
            name='identifier',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.personidentifier'),
        ),
        migrations.AlterField(
            model_name='manipulation',
            name='ai',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.ai'),
        ),
        migrations.AlterField(
            model_name='manipulation',
            name='group',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.group'),
        ),
        migrations.AlterField(
            model_name='manipulation',
            name='persona',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.persona'),
        ),
        migrations.CreateModel(
            name='Message',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('ts', models.BigIntegerField()),
                ('sender_uuid', models.CharField(max_length=255)),
                ('text', models.TextField(blank=True, null=True)),
                ('session', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.chatsession')),
            ],
            options={
                'ordering': ['ts'],
            },
        ),
    ]
