: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
# Generated by Django 4.2.29 on 2026-04-13 07:54
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import posthog.utils
import posthog.models.utils
class Migration(migrations.Migration):
dependencies = [
("posthog", "1094_oauth_provisioning_fields"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("conversations", "0029_ticket_email_config_index"),
]
operations = [
migrations.CreateModel(
name="TicketView",
fields=[
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True, null=True)),
(
"id",
models.UUIDField(
default=posthog.models.utils.uuid7,
editable=False,
primary_key=True,
serialize=False,
),
),
(
"short_id",
models.CharField(
blank=True,
default=posthog.utils.generate_short_id,
max_length=12,
),
),
("name", models.CharField(max_length=400)),
("filters", models.JSONField(default=dict)),
(
"created_by",
models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
to=settings.AUTH_USER_MODEL,
),
),
(
"team",
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="posthog.team"),
),
],
options={
"db_table": "posthog_conversations_tickets_views",
"indexes": [
models.Index(
fields=["team_id", "-created_at"],
name="conv_ticket_view_team_idx",
)
],
"unique_together": {("team", "short_id")},
},
),
]