: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 5.2.14 on 2026-08-04
import django.db.models.deletion
from django.db import migrations, models
import posthog.uuidt
class Migration(migrations.Migration):
dependencies = [
("posthog", "1279_drop_duckgresserverteam_table"),
("tasks", "0082_task_client_provenance"),
]
operations = [
migrations.CreateModel(
name="TaskCommentActivity",
fields=[
(
"id",
models.UUIDField(default=posthog.uuidt.uuid7, editable=False, primary_key=True, serialize=False),
),
("activity_at", models.DateTimeField()),
("read_at", models.DateTimeField(blank=True, null=True)),
(
"kind",
models.CharField(
choices=[
("mention", "Mention"),
("thread_reply", "Thread reply"),
("owned_item_comment", "Owned item comment"),
],
max_length=32,
),
),
(
"comment",
models.ForeignKey(
db_constraint=False,
db_index=False,
on_delete=django.db.models.deletion.CASCADE,
related_name="+",
to="posthog.comment",
),
),
(
"root_comment",
models.ForeignKey(
db_constraint=False,
db_index=False,
on_delete=django.db.models.deletion.CASCADE,
related_name="+",
to="posthog.comment",
),
),
(
"task",
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name="+", to="tasks.task"),
),
(
"team",
models.ForeignKey(
db_constraint=False,
on_delete=django.db.models.deletion.CASCADE,
related_name="+",
to="posthog.team",
),
),
(
"user",
models.ForeignKey(
db_constraint=False,
on_delete=django.db.models.deletion.CASCADE,
related_name="+",
to="posthog.user",
),
),
],
options={
"db_table": "posthog_task_comment_activity",
"indexes": [
models.Index(fields=["team", "user", "activity_at", "id"], name="task_comment_activity_feed"),
models.Index(
condition=models.Q(("read_at__isnull", True)),
fields=["team", "user"],
name="task_comment_activity_unread",
),
],
"constraints": [
models.UniqueConstraint(fields=("team", "user", "comment"), name="task_comment_activity_unique")
],
},
),
]