Overview
Thefeedback table stores individual feedback items submitted for feature requests. Each feedback entry is associated with a request, an account, and optionally an opportunity.
Fields
Primary key. Auto-generated UUID for the feedback entry.
Foreign key reference to
requests.id. The request this feedback belongs to.Foreign key reference to
sfdc_accounts.id. The Salesforce account associated with this feedback.Foreign key reference to
sfdc_opportunities.id. The Salesforce opportunity associated with this feedback, if any.Detailed description of the feedback.
Foreign key reference to
users.id. The user who created this feedback entry.Timestamp with timezone when the feedback was created. Default:
now().Array of external URLs related to this feedback (e.g., support tickets, Slack threads). Default:
[].Optional URL-friendly identifier for the feedback within the request. Combined with
requestId for uniqueness.How this feedback was created. See Enums for possible values. Default:
manual.Additional metadata stored as JSON.
Enums
severity
Theseverity field uses the severity enum with the following values:
low- Minor inconvenience or nice-to-have featuremedium- Moderate impact on user experience or workflowhigh- Critical issue blocking important workflows or affecting revenue
feedback_creation_source
ThecreationSource field uses the feedback_creation_source enum with the following values:
manual- Feedback was manually entered by a useragent- Feedback was automatically created by an AI agent or automation
Relationships
Belongs to
- Request:
feedback.requestId→requests.id(cascade on delete) - User (creator):
feedback.creator→users.id - SFDC Account:
feedback.accountId→sfdc_accounts.id - SFDC Opportunity:
feedback.opportunityId→sfdc_opportunities.id(optional)
Indexes
Unique constraint on the combination of
requestId and slug.Composite index on
requestId and createdAt for efficient sorting of feedback within a request.B-tree index on
accountId for querying feedback by account.B-tree index on
creator for querying feedback by creator.