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.6 KB
Raw Blame
# Generated by Django 4.2.15 on 2024-12-20 15:14

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

import posthog.models.utils


class Migration(migrations.Migration):
    dependencies = [
        ("posthog", "0535_alter_hogfunction_type"),
        ("ee", "0019_remove_conversationcheckpointblob_unique_checkpoint_blob_and_more"),
    ]

    operations = [
        migrations.CreateModel(
            name="CoreMemory",
            fields=[
                (
                    "id",
                    models.UUIDField(
                        default=posthog.models.utils.UUIDT, editable=False, primary_key=True, serialize=False
                    ),
                ),
                (
                    "text",
                    models.TextField(default="", help_text="Dumped core memory where facts are separated by newlines."),
                ),
                ("initial_text", models.TextField(default="", help_text="Scraped memory about the business.")),
                (
                    "scraping_status",
                    models.CharField(
                        blank=True,
                        choices=[("pending", "Pending"), ("completed", "Completed"), ("skipped", "Skipped")],
                        max_length=20,
                        null=True,
                    ),
                ),
                ("scraping_started_at", models.DateTimeField(null=True)),
                ("team", models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to="posthog.team")),
            ],
            options={
                "abstract": False,
            },
        ),
    ]