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.

2.0 KB
Raw Blame
# Generated by Django 4.2.28 on 2026-03-06 09:47

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

import posthog.models.utils


class Migration(migrations.Migration):
    dependencies = [
        ("posthog", "1047_dashboard_quick_filter_ids"),
        ("ee", "0039_add_sandbox_fields_to_conversation"),
    ]

    operations = [
        migrations.CreateModel(
            name="SCIMRequestLog",
            fields=[
                (
                    "id",
                    models.UUIDField(
                        default=posthog.models.utils.uuid7,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("request_method", models.CharField(max_length=10)),
                ("request_path", models.CharField(max_length=512)),
                ("request_headers", models.JSONField(default=dict)),
                ("request_body", models.JSONField(blank=True, null=True)),
                ("response_status", models.SmallIntegerField()),
                ("response_body", models.JSONField(blank=True, null=True)),
                ("identity_provider", models.CharField(max_length=20)),
                ("duration_ms", models.IntegerField(blank=True, null=True)),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                (
                    "organization_domain",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="scim_request_logs",
                        to="posthog.organizationdomain",
                    ),
                ),
            ],
            options={
                "ordering": ["-created_at", "-id"],
                "indexes": [
                    models.Index(
                        fields=["organization_domain", "-created_at"],
                        name="ee_scimrequ_organiz_3d32e0_idx",
                    )
                ],
            },
        ),
    ]