: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.22 on 2025-09-30 14:44
import django.db.models.deletion
import django.contrib.postgres.fields
from django.db import migrations, models
import posthog.models.utils
class Migration(migrations.Migration):
dependencies = [
("posthog", "0867_add_updated_at_to_feature_flags"),
("tasks", "0006_remove_workflowstage_agent_alter_task_workflow_and_more"),
]
operations = [
migrations.CreateModel(
name="SandboxSnapshot",
fields=[
(
"id",
models.UUIDField(
default=posthog.models.utils.uuid7, editable=False, primary_key=True, serialize=False
),
),
(
"external_id",
models.CharField(
blank=True, help_text="Snapshot ID from external provider.", max_length=255, unique=True
),
),
(
"repos",
django.contrib.postgres.fields.ArrayField(
base_field=models.CharField(max_length=255),
default=list,
help_text="List of repositories in format 'org/repo'",
size=None,
),
),
(
"metadata",
models.JSONField(blank=True, default=dict, help_text="Additional metadata for the snapshot."),
),
(
"status",
models.CharField(
choices=[("in_progress", "In Progress"), ("complete", "Complete"), ("error", "Error")],
default="in_progress",
max_length=20,
),
),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
(
"integration",
models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="snapshots",
to="posthog.integration",
),
),
],
options={
"db_table": "posthog_sandbox_snapshot",
"indexes": [
models.Index(fields=["integration", "status", "-created_at"], name="posthog_san_integra_93cdea_idx")
],
},
),
]