Skip to main content

app.insights

Business & Governance References

The app.insights table tracks individual, granular bullet-point facts derived from approved agent analyses and reports.


Schema Field Definition

Field NameTypeDescription
idUUID (Primary Key)Unique identifier generated via uuid.uuid4.
analysis_idUUID (Foreign Key, Required)References the parent analysis report (app.analyses.id).
contentTEXT (Required)The natural language fact or finding.
source_labelVARCHAR(255) (Optional)User-facing origin description (e.g. Quick Insight: spotify_streams_2026.csv).
assumptionsTEXT (Optional)Any baseline parameters or context flags used in query reasoning.
limitationsTEXT (Optional)Constraints (e.g., date ranges or missing categories).
insight_metadataJSON (Optional)Metadata payload tracking validation rules or custom tags.
is_verifiedBOOLEAN (Default: False)Verified status flag (requires Steward or Admin confirmation).
is_publishedBOOLEAN (Default: False)Controls if the insight is displayed on the main platform feed.
created_atTIMESTAMPTimestamp when the insight was distilled.
updated_atTIMESTAMPLast updated timestamp.
ownerUUID (Foreign Key)References the app.user_groups.id owning the insight.
created_byUUID (Foreign Key)References the app.users.id who distilled the insight.
updated_byUUID (Foreign Key)References the app.users.id who modified the metadata.
reviewed_byUUID (Foreign Key)References the app.users.id (Steward/Admin) who verified/published the fact.
owner_idUUID (Optional)Polymorphic owner ID link.
owner_typeVARCHAR(50) (Optional)Polymorphic owner type (user or group).

Governance Workflow

  1. Draft: Ingested/analyzed insights start as unverified (is_verified = False) drafts.
  2. Steward Review: A Steward logs in, reviews assumptions and limits, and toggles is_verified to True.
  3. Publish: When is_published is set True, the fact feeds onto the shared platform dashboard.