Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
Comment holds the schema definition for the Comment entity, mirroring the `comments` table defined in sync/db.go. Note: unlike most other entities, `product` is nullable here (no NOT NULL in the original schema).
type Epic ¶
Epic holds the schema definition for the Epic entity, mirroring the `epics` table defined in sync/db.go.
type Feature ¶
Feature holds the schema definition for the Feature entity, mirroring the `features` table defined in sync/db.go.
type Goal ¶
Goal holds the schema definition for the Goal entity, mirroring the `goals` table defined in sync/db.go.
type Idea ¶
Idea holds the schema definition for the Idea entity, mirroring the `ideas` table defined in sync/db.go.
type IdeaEndorsement ¶
IdeaEndorsement holds the schema definition for the IdeaEndorsement entity, mirroring an idea's endorsements ("votes" in the Aha UI) as returned by GET /ideas/:idea_id/endorsements. Unlike Relationship, each endorsement carries Aha's own natural id, so this follows Comment's template (natural string PK, parent-ref column, flattened nested-object fields) rather than Relationship's synthetic-key/composite-unique-index shape.
func (IdeaEndorsement) Fields ¶
func (IdeaEndorsement) Fields() []ent.Field
Fields of the IdeaEndorsement.
func (IdeaEndorsement) Indexes ¶
func (IdeaEndorsement) Indexes() []ent.Index
Indexes of the IdeaEndorsement.
type IdeaOrganization ¶
IdeaOrganization holds the schema definition for the IdeaOrganization entity, mirroring GET /idea_organizations -- Aha's own CRM-style customer/account records, account-wide (not scoped to a single idea). email_domains is Aha's own authoritative domain-to-organization mapping; revenue and endorsements_count only appear on the single-GET response, so they're populated only when synced with SyncOptions.Detailed=true (the bulk list response omits them).
func (IdeaOrganization) Fields ¶
func (IdeaOrganization) Fields() []ent.Field
Fields of the IdeaOrganization.
func (IdeaOrganization) Indexes ¶
func (IdeaOrganization) Indexes() []ent.Index
Indexes of the IdeaOrganization.
type IdeaUser ¶
IdeaUser holds the schema definition for the IdeaUser entity, mirroring GET /idea_users -- voter identities, account-wide (not scoped to a single idea, like Comment/IdeaEndorsement are). idea_organizations membership is stored as a JSON array of light {id, name} refs rather than a join table: membership is small (0-2 orgs per sample seen) and only ever read alongside its parent IdeaUser row, matching the "JSON catch-all for less-critical relational data" convention already used by Comment.data.
type Initiative ¶
Initiative holds the schema definition for the Initiative entity, mirroring the `initiatives` table defined in sync/db.go. See /Users/johnwang/.claude/plans/sprightly-waddling-platypus.md.
type Product ¶
Product holds the schema definition for the Product entity, mirroring the `products` table defined in sync/db.go. No indexes on this table today.
type Relationship ¶
Relationship holds the schema definition for the Relationship entity, a generic directed-edge table for offline joins between entity types (`from_type`/`from_id` -> `rel_type` -> `to_type`/`to_id`), mirroring the `relationships` table defined in sync/db.go.
Unlike most other tables, this one has a surrogate `INTEGER PRIMARY KEY AUTOINCREMENT` id in the original schema, so no `field.String("id")` override here — Ent's default int-autoincrement ID matches it directly. Uniqueness is enforced via the composite index below (mirroring the original UNIQUE(from_type, from_id, rel_type, to_type, to_id) constraint), same pattern as visionstudio's initiativedependency.go et al.
func (Relationship) Indexes ¶
func (Relationship) Indexes() []ent.Index
Indexes of the Relationship.
type Release ¶
Release holds the schema definition for the Release entity, mirroring the `releases` table defined in sync/db.go.
type Requirement ¶
Requirement holds the schema definition for the Requirement entity, mirroring the `requirements` table defined in sync/db.go.
type SavedFilter ¶
SavedFilter holds the schema definition for the SavedFilter entity, mirroring the `saved_filters` table defined in sync/db.go. No `data` JSON column on this table. `created_at`/`updated_at` had `DEFAULT CURRENT_TIMESTAMP` in the original SQL; Ent v0.14 doesn't portably push that into DDL, so the default moves to the Go layer here (CreateFilter/UpdateFilter already set timestamps manually today, so this is like-for-like, not new behavior).
type SyncMeta ¶
SyncMeta holds the schema definition for the SyncMeta entity, mirroring the `sync_meta` table defined in sync/db.go. Original schema has a composite natural key (entity, product), no surrogate id column; Ent has no native composite-PK support for regular node schemas, so this uses the same workaround as Relationship: default int-autoincrement ID + a unique composite index. Table name is explicitly pinned via entsql.Annotation since Ent's default pluralization of "SyncMeta" would produce "sync_metas", not the existing "sync_meta".
func (SyncMeta) Annotations ¶
func (SyncMeta) Annotations() []schema.Annotation
Annotations of the SyncMeta.