Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/scripts/check-idor-model-coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def get_scoped_models() -> tuple[dict[str, set[str]], set[str], set[str], set[st
"DevStackImageTarget",
"DevStackImageAttempt",
"License",
"SandboxSenderTenantState", # instance-global mirror of the shared sandbox SES tenant state
# --- Deprecated ---
"Prompt",
"PromptSequence",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Generated by Django 5.2.18 on 2026-10-12 15:31

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("workflows", "0036_teamworkflowsconfig_email_utm_defaults"),
]

operations = [
migrations.CreateModel(
name="SandboxSenderTenantState",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("tenant_name", models.CharField(max_length=64, unique=True)),
(
"sending_status",
models.CharField(blank=True, db_default="", default="", max_length=32),
),
("synced_at", models.DateTimeField(blank=True, null=True)),
],
),
]
2 changes: 1 addition & 1 deletion products/workflows/backend/migrations/max_migration.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0036_teamworkflowsconfig_email_utm_defaults
0037_sandbox_sender_tenant_state
2 changes: 2 additions & 0 deletions products/workflows/backend/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from .hog_flow_optimization import HogFlowOptimization
from .hog_flow_revision import HogFlowRevision
from .hog_flow_schedule.hog_flow_schedule import HogFlowSchedule
from .sandbox_sender_tenant_state import SandboxSenderTenantState
from .team_workflows_config import TeamWorkflowsConfig
from .workflow_idea import WorkflowIdea
from .workflow_proposal import WorkflowProposal
Expand All @@ -15,6 +16,7 @@
"HogFlowRevision",
"HogFlowSchedule",
"HogFlowTemplate",
"SandboxSenderTenantState",
"TeamWorkflowsConfig",
"WorkflowIdea",
"WorkflowProposal",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django.db import models


class SandboxSenderTenantState(models.Model):
"""Instance-level mirror of the shared sandbox SES tenant; platform state, not tenant data, so no team_id."""

tenant_name = models.CharField(max_length=64, unique=True)
sending_status = models.CharField(max_length=32, blank=True, default="", db_default="")
synced_at = models.DateTimeField(null=True, blank=True)
Loading