: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-07-01 11:04
import django.db.models.deletion
from django.db import migrations, models
import posthog.models.utils
class Migration(migrations.Migration):
dependencies = [
("notebooks", "0006_resourcenotebook_account_unique_constraint"),
("posthog", "1245_duckgres_sink_schema_state"),
]
operations = [
migrations.CreateModel(
name="NotebookNodeRun",
fields=[
(
"id",
models.UUIDField(
default=posthog.models.utils.uuid7,
editable=False,
primary_key=True,
serialize=False,
),
),
("node_id", models.CharField(max_length=128)),
(
"status",
models.CharField(
choices=[
("running", "running"),
("done", "done"),
("failed", "failed"),
],
default="running",
max_length=20,
),
),
("envelope", models.JSONField(blank=True, default=None, null=True)),
("result_id", models.UUIDField(blank=True, null=True)),
("error", models.TextField(blank=True, null=True)),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
(
"notebook",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="notebooks.notebook",
),
),
(
"team",
models.ForeignKey(
db_constraint=False, on_delete=django.db.models.deletion.CASCADE, to="posthog.team"
),
),
],
options={
"db_table": "posthog_notebooknoderun",
"indexes": [
models.Index(
fields=["team", "notebook", "node_id"],
name="posthog_not_team_id_764c87_idx",
)
],
},
),
]