Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.6 KB
Raw Blame
# Generated by Django 5.2.17 on 2026-10-02 11:07

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

import posthog.uuidt


class Migration(migrations.Migration):
    dependencies = [
        ("conversations", "0074_teamconversationsticketconfig"),
        ("posthog", "1391_organization_provisioning"),
    ]

    operations = [
        migrations.CreateModel(
            name="PurgedTicketThread",
            fields=[
                (
                    "id",
                    models.UUIDField(
                        default=posthog.uuidt.uuid7,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("thread_key", models.CharField(max_length=1024)),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                (
                    "team",
                    models.ForeignKey(
                        db_constraint=False,
                        db_index=False,
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
                        to="posthog.team",
                    ),
                ),
            ],
            options={
                "db_table": "posthog_conversations_purged_ticket_thread",
                "constraints": [
                    models.UniqueConstraint(
                        fields=("team", "thread_key"),
                        name="unique_purged_thread_per_team",
                    )
                ],
            },
        ),
    ]