schema

package
v1.49.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyticsEvent added in v1.35.0

type AnalyticsEvent struct{ ent.Schema }

AnalyticsEvent holds the schema definition for the AnalyticsEvent entity.

func (AnalyticsEvent) Fields added in v1.35.0

func (AnalyticsEvent) Fields() []ent.Field

Fields of the AnalyticsEvent.

func (AnalyticsEvent) Indexes added in v1.35.0

func (AnalyticsEvent) Indexes() []ent.Index

Indexes of the AnalyticsEvent.

type ApprovalRule added in v1.12.0

type ApprovalRule struct {
	ent.Schema
}

ApprovalRule holds the schema definition for the ApprovalRule entity.

func (ApprovalRule) Edges added in v1.12.0

func (ApprovalRule) Edges() []ent.Edge

Edges of the ApprovalRule.

func (ApprovalRule) Fields added in v1.12.0

func (ApprovalRule) Fields() []ent.Field

Fields of the ApprovalRule.

func (ApprovalRule) Indexes added in v1.12.0

func (ApprovalRule) Indexes() []ent.Index

Indexes of the ApprovalRule.

type BacklogActivityNote added in v1.46.0

type BacklogActivityNote struct {
	ent.Schema
}

BacklogActivityNote is an append-only, per-item log of free-form notes that ANY session can post — with or without STAPLER_SESSION_UUID, and regardless of whether that session is linked to the item. It is the ungated sibling of BacklogProgressNote, not an extension of it: report_progress's official AC-status audit trail (BacklogProgressNote, ProgressNoteData) stays structurally separate from this anyone-can-post note, so an ungated write can never be confused with — or accidentally clobber — the role-gated tools' data. See project_plans/backlog-item-activity-log/decisions/ADR-001-sibling-table-not-extend-progress-note.md for the full rationale. This table is never written by report_progress, submit_review_verdict, or any other role-gated tool.

func (BacklogActivityNote) Edges added in v1.46.0

func (BacklogActivityNote) Edges() []ent.Edge

func (BacklogActivityNote) Fields added in v1.46.0

func (BacklogActivityNote) Fields() []ent.Field

func (BacklogActivityNote) Indexes added in v1.46.0

func (BacklogActivityNote) Indexes() []ent.Index

type BacklogItem added in v1.35.0

type BacklogItem struct {
	ent.Schema
}

BacklogItem holds the schema definition for the BacklogItem entity.

func (BacklogItem) Edges added in v1.35.0

func (BacklogItem) Edges() []ent.Edge

Edges of the BacklogItem.

func (BacklogItem) Fields added in v1.35.0

func (BacklogItem) Fields() []ent.Field

Fields of the BacklogItem.

func (BacklogItem) Indexes added in v1.35.0

func (BacklogItem) Indexes() []ent.Index

Indexes of the BacklogItem. public_id does not need its own index.Fields("public_id") entry — its Unique() field definition above already makes ent generate a unique index over that column; an explicit entry here would be a second, redundant, non-unique index over the same column (same convention as session/ent/schema/session_summary.go's session_id).

type BacklogItemDependency added in v1.43.0

type BacklogItemDependency struct {
	ent.Schema
}

BacklogItemDependency is an explicit join row recording that blocked_id (the dependent) may not be dequeued/started until blocker_id (the blocker) reaches a resolved status (done). See domain.TransitionGuard for the resolved-status check and cycle-detection at write time in AddBacklogItemDependency.

func (BacklogItemDependency) Edges added in v1.43.0

func (BacklogItemDependency) Edges() []ent.Edge

Edges of the BacklogItemDependency.

func (BacklogItemDependency) Fields added in v1.43.0

func (BacklogItemDependency) Fields() []ent.Field

Fields of the BacklogItemDependency.

func (BacklogItemDependency) Indexes added in v1.43.0

func (BacklogItemDependency) Indexes() []ent.Index

Indexes of the BacklogItemDependency.

type BacklogProgressNote added in v1.38.0

type BacklogProgressNote struct {
	ent.Schema
}

BacklogProgressNote is an append-only log of every report_progress call made against a backlog item's acceptance criteria. Unlike BacklogItem.AcceptanceCriteria (which stores only the *current* note per criterion, overwritten on each call), this table preserves the full history so a reviewer can see the entire timeline of notes reported across a work session, not just the latest one per criterion.

func (BacklogProgressNote) Edges added in v1.38.0

func (BacklogProgressNote) Edges() []ent.Edge

func (BacklogProgressNote) Fields added in v1.38.0

func (BacklogProgressNote) Fields() []ent.Field

func (BacklogProgressNote) Indexes added in v1.38.0

func (BacklogProgressNote) Indexes() []ent.Index

type BacklogStatusEvent added in v1.35.0

type BacklogStatusEvent struct {
	ent.Schema
}

BacklogStatusEvent is an append-only log of backlog item status transitions.

func (BacklogStatusEvent) Edges added in v1.35.0

func (BacklogStatusEvent) Edges() []ent.Edge

func (BacklogStatusEvent) Fields added in v1.35.0

func (BacklogStatusEvent) Fields() []ent.Field

func (BacklogStatusEvent) Indexes added in v1.35.0

func (BacklogStatusEvent) Indexes() []ent.Index

type BacklogStuckState added in v1.38.0

type BacklogStuckState struct {
	ent.Schema
}

BacklogStuckState is a durable, resolve-in-place record of a single stuck condition for a backlog item.

Resolve-in-place model: there is exactly one row per (item_id, reason) pair at all times, enforced by the plain 2-column unique index below. A stuck condition that clears sets resolved_at (the row becomes "closed" but is not deleted). If the same (item_id, reason) condition recurs later, the SAME row is reopened in place — resolved_at and notified_at are cleared and first_detected_at is reset to the new onset time — rather than inserting a second row. Episode/occurrence history (multiple rows per pair over time) is intentionally NOT retained; see ADR-001 "Durable Stuck-State Storage Model" for the rationale (a plain unique index cannot be an OnConflictColumns target for an append-only design on SQLite, since NULLs are distinct).

func (BacklogStuckState) Edges added in v1.38.0

func (BacklogStuckState) Edges() []ent.Edge

Edges of the BacklogStuckState.

func (BacklogStuckState) Fields added in v1.38.0

func (BacklogStuckState) Fields() []ent.Field

Fields of the BacklogStuckState.

func (BacklogStuckState) Indexes added in v1.38.0

func (BacklogStuckState) Indexes() []ent.Index

Indexes of the BacklogStuckState.

type ClassificationAnalytics added in v1.12.0

type ClassificationAnalytics struct {
	ent.Schema
}

ClassificationAnalytics holds the schema definition for the ClassificationAnalytics entity.

func (ClassificationAnalytics) Edges added in v1.12.0

func (ClassificationAnalytics) Edges() []ent.Edge

Edges of the ClassificationAnalytics.

func (ClassificationAnalytics) Fields added in v1.12.0

func (ClassificationAnalytics) Fields() []ent.Field

Fields of the ClassificationAnalytics.

func (ClassificationAnalytics) Indexes added in v1.12.0

func (ClassificationAnalytics) Indexes() []ent.Index

Indexes of the ClassificationAnalytics.

type ClaudeMetadata

type ClaudeMetadata struct {
	ent.Schema
}

ClaudeMetadata holds the schema definition for the ClaudeMetadata entity.

func (ClaudeMetadata) Edges

func (ClaudeMetadata) Edges() []ent.Edge

Edges of the ClaudeMetadata.

func (ClaudeMetadata) Fields

func (ClaudeMetadata) Fields() []ent.Field

Fields of the ClaudeMetadata.

type ClaudeSession

type ClaudeSession struct {
	ent.Schema
}

ClaudeSession holds the schema definition for the ClaudeSession entity.

func (ClaudeSession) Edges

func (ClaudeSession) Edges() []ent.Edge

Edges of the ClaudeSession.

func (ClaudeSession) Fields

func (ClaudeSession) Fields() []ent.Field

Fields of the ClaudeSession.

type DiffStats

type DiffStats struct {
	ent.Schema
}

DiffStats holds the schema definition for the DiffStats entity.

func (DiffStats) Edges

func (DiffStats) Edges() []ent.Edge

Edges of the DiffStats.

func (DiffStats) Fields

func (DiffStats) Fields() []ent.Field

Fields of the DiffStats.

type ErrorEvent added in v1.35.0

type ErrorEvent struct{ ent.Schema }

ErrorEvent holds the schema definition for the ErrorEvent entity.

func (ErrorEvent) Fields added in v1.35.0

func (ErrorEvent) Fields() []ent.Field

Fields of the ErrorEvent.

func (ErrorEvent) Indexes added in v1.35.0

func (ErrorEvent) Indexes() []ent.Index

Indexes of the ErrorEvent.

type EscapeEvent added in v1.35.0

type EscapeEvent struct{ ent.Schema }

EscapeEvent holds the schema for a terminal escape sequence observation.

func (EscapeEvent) Fields added in v1.35.0

func (EscapeEvent) Fields() []ent.Field

func (EscapeEvent) Indexes added in v1.35.0

func (EscapeEvent) Indexes() []ent.Index

type HandoffSummary added in v1.49.0

type HandoffSummary struct{ ent.Schema }

HandoffSummary holds the schema definition for the HandoffSummary entity — an automatically-generated, durably-persisted handoff summary for a session. Deliberately has no Edges() method: session_id is a plain (non-edge) unique string field, not an edge.From(...).Unique().Required() back to Session, so this row survives Session row deletion by construction (ADR-001/ADR-002 — see implementation/plan.md's Pattern Decisions "ent persistence shape" row).

func (HandoffSummary) Fields added in v1.49.0

func (HandoffSummary) Fields() []ent.Field

Fields of the HandoffSummary.

func (HandoffSummary) Indexes added in v1.49.0

func (HandoffSummary) Indexes() []ent.Index

Indexes of the HandoffSummary. session_id does not need its own index.Fields("session_id") entry — its Unique() field definition above already makes ent generate a unique index over that column; an explicit entry here would be a second, redundant, non-unique index over the same column.

type ItemSession added in v1.35.0

type ItemSession struct {
	ent.Schema
}

ItemSession holds the schema definition for the ItemSession entity.

func (ItemSession) Edges added in v1.35.0

func (ItemSession) Edges() []ent.Edge

Edges of the ItemSession.

func (ItemSession) Fields added in v1.35.0

func (ItemSession) Fields() []ent.Field

Fields of the ItemSession.

func (ItemSession) Indexes added in v1.35.0

func (ItemSession) Indexes() []ent.Index

Indexes of the ItemSession.

type ItemSource added in v1.35.0

type ItemSource struct {
	ent.Schema
}

ItemSource holds the schema definition for the ItemSource entity.

func (ItemSource) Edges added in v1.35.0

func (ItemSource) Edges() []ent.Edge

Edges of the ItemSource.

func (ItemSource) Fields added in v1.35.0

func (ItemSource) Fields() []ent.Field

Fields of the ItemSource.

func (ItemSource) Indexes added in v1.35.0

func (ItemSource) Indexes() []ent.Index

Indexes of the ItemSource.

type PipelineMode added in v1.38.0

type PipelineMode struct{ ent.Schema }

PipelineMode holds the schema definition for the PipelineMode entity.

func (PipelineMode) Edges added in v1.38.0

func (PipelineMode) Edges() []ent.Edge

Edges of the PipelineMode.

func (PipelineMode) Fields added in v1.38.0

func (PipelineMode) Fields() []ent.Field

Fields of the PipelineMode.

func (PipelineMode) Indexes added in v1.38.0

func (PipelineMode) Indexes() []ent.Index

Indexes of the PipelineMode.

type Project added in v1.23.0

type Project struct {
	ent.Schema
}

Project holds the schema definition for the Project entity.

func (Project) Edges added in v1.23.0

func (Project) Edges() []ent.Edge

Edges of the Project.

func (Project) Fields added in v1.23.0

func (Project) Fields() []ent.Field

Fields of the Project.

func (Project) Indexes added in v1.23.0

func (Project) Indexes() []ent.Index

Indexes of the Project.

type ReviewVerdict added in v1.35.0

type ReviewVerdict struct {
	ent.Schema
}

ReviewVerdict holds the schema definition for the ReviewVerdict entity.

func (ReviewVerdict) Edges added in v1.35.0

func (ReviewVerdict) Edges() []ent.Edge

Edges of the ReviewVerdict.

func (ReviewVerdict) Fields added in v1.35.0

func (ReviewVerdict) Fields() []ent.Field

Fields of the ReviewVerdict.

func (ReviewVerdict) Indexes added in v1.35.0

func (ReviewVerdict) Indexes() []ent.Index

Indexes of the ReviewVerdict.

type Session

type Session struct {
	ent.Schema
}

Session holds the schema definition for the Session entity.

func (Session) Edges

func (Session) Edges() []ent.Edge

Edges of the Session.

func (Session) Fields

func (Session) Fields() []ent.Field

Fields of the Session.

func (Session) Indexes

func (Session) Indexes() []ent.Index

Indexes of the Session.

type SessionGoal added in v1.35.0

type SessionGoal struct{ ent.Schema }

SessionGoal holds the schema definition for the SessionGoal entity. Stores the current goal, status, and task tree for a session (1:1 per session).

func (SessionGoal) Edges added in v1.35.0

func (SessionGoal) Edges() []ent.Edge

Edges of the SessionGoal.

func (SessionGoal) Fields added in v1.35.0

func (SessionGoal) Fields() []ent.Field

Fields of the SessionGoal.

func (SessionGoal) Indexes added in v1.35.0

func (SessionGoal) Indexes() []ent.Index

Indexes of the SessionGoal.

type SessionSummary added in v1.41.0

type SessionSummary struct{ ent.Schema }

SessionSummary holds the schema definition for the SessionSummary entity — an automatically-generated, durably-persisted completion summary for a session. Deliberately has no Edges() method: session_id is a plain (non-edge) unique string field, not an edge.From(...).Unique().Required() back to Session, so this row survives Session row deletion by construction (ADR-001/ADR-002 — see implementation/plan.md's Pattern Decisions "ent persistence shape" row).

func (SessionSummary) Fields added in v1.41.0

func (SessionSummary) Fields() []ent.Field

Fields of the SessionSummary.

func (SessionSummary) Indexes added in v1.41.0

func (SessionSummary) Indexes() []ent.Index

Indexes of the SessionSummary. session_id does not need its own index.Fields("session_id") entry — its Unique() field definition above already makes ent generate a unique index over that column; an explicit entry here would be a second, redundant, non-unique index over the same column.

type Shell added in v1.35.0

type Shell struct {
	ent.Schema
}

Shell holds the schema definition for the Shell entity. A Shell is an independent sibling tmux session attached to a parent Session. Each shell is named {parentPrefix}_shell_{shellUUID} in tmux.

func (Shell) Edges added in v1.35.0

func (Shell) Edges() []ent.Edge

Edges of the Shell.

func (Shell) Fields added in v1.35.0

func (Shell) Fields() []ent.Field

Fields of the Shell.

func (Shell) Indexes added in v1.35.0

func (Shell) Indexes() []ent.Index

Indexes of the Shell.

type SourceSyncEvent added in v1.35.0

type SourceSyncEvent struct {
	ent.Schema
}

SourceSyncEvent holds the schema definition for the SourceSyncEvent entity.

func (SourceSyncEvent) Edges added in v1.35.0

func (SourceSyncEvent) Edges() []ent.Edge

Edges of the SourceSyncEvent.

func (SourceSyncEvent) Fields added in v1.35.0

func (SourceSyncEvent) Fields() []ent.Field

Fields of the SourceSyncEvent.

func (SourceSyncEvent) Indexes added in v1.35.0

func (SourceSyncEvent) Indexes() []ent.Index

Indexes of the SourceSyncEvent.

type Tag

type Tag struct {
	ent.Schema
}

Tag holds the schema definition for the Tag entity.

func (Tag) Edges

func (Tag) Edges() []ent.Edge

Edges of the Tag.

func (Tag) Fields

func (Tag) Fields() []ent.Field

Fields of the Tag.

func (Tag) Indexes

func (Tag) Indexes() []ent.Index

Indexes of the Tag.

type TriggerFireEvent added in v1.43.0

type TriggerFireEvent struct {
	ent.Schema
}

TriggerFireEvent holds the schema definition for the TriggerFireEvent entity. One audit row per trigger evaluation attempt (fired/no-match/rejected), modeled on SourceSyncEvent — see project_plans/webhook-triggers/implementation/plan.md Epic 1.2.

func (TriggerFireEvent) Edges added in v1.43.0

func (TriggerFireEvent) Edges() []ent.Edge

Edges of the TriggerFireEvent.

func (TriggerFireEvent) Fields added in v1.43.0

func (TriggerFireEvent) Fields() []ent.Field

Fields of the TriggerFireEvent.

func (TriggerFireEvent) Indexes added in v1.43.0

func (TriggerFireEvent) Indexes() []ent.Index

Indexes of the TriggerFireEvent.

type Workflow added in v1.35.0

type Workflow struct{ ent.Schema }

Workflow holds the schema definition for the Workflow entity.

func (Workflow) Edges added in v1.35.0

func (Workflow) Edges() []ent.Edge

Edges of the Workflow.

func (Workflow) Fields added in v1.35.0

func (Workflow) Fields() []ent.Field

Fields of the Workflow.

func (Workflow) Indexes added in v1.35.0

func (Workflow) Indexes() []ent.Index

Indexes of the Workflow.

type Worktree

type Worktree struct {
	ent.Schema
}

Worktree holds the schema definition for the Worktree entity.

func (Worktree) Edges

func (Worktree) Edges() []ent.Edge

Edges of the Worktree.

func (Worktree) Fields

func (Worktree) Fields() []ent.Field

Fields of the Worktree.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL