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.9 KB
Raw Blame
# Generated by Django 5.2.13 on 2026-05-01 16:32

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

import posthog.models.utils


class Migration(migrations.Migration):
    dependencies = [
        ("posthog", "1133_alter_integration_kind"),
        ("signals", "0023_signalscoutrun_summary"),
    ]

    operations = [
        migrations.CreateModel(
            name="SignalProjectProfile",
            fields=[
                (
                    "id",
                    models.UUIDField(
                        default=posthog.models.utils.uuid7,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("computed_at", models.DateTimeField(auto_now_add=True)),
                ("expires_at", models.DateTimeField()),
                ("source_version", models.CharField(max_length=40)),
                ("payload", models.JSONField(blank=True, default=dict)),
                (
                    "team",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="signal_project_profiles",
                        to="posthog.team",
                    ),
                ),
            ],
            options={
                "verbose_name": "Signal project profile",
                "verbose_name_plural": "Signal project profiles",
                "default_manager_name": "all_teams",
                "indexes": [
                    models.Index(
                        fields=["team", "-computed_at"],
                        name="signal_proj_profile_recent_idx",
                    )
                ],
            },
            managers=[
                ("all_teams", django.db.models.manager.Manager()),
            ],
        ),
    ]