package models import "time" type Analysis struct { ID int64 `json:"id"` RepoID int64 `json:"repo_id"` Type string `json:"type"` // "pr_description" | "code_review" BaseRef string `json:"base_ref"` HeadRef string `json:"head_ref"` Result string `json:"result"` CreatedAt time.Time `json:"created_at"` } type ReviewNote struct { ID int64 `json:"id"` AnalysisID int64 `json:"analysis_id"` Scope string `json:"scope"` // "overall" | "file" | "suggestion" ScopeKey string `json:"scope_key"` // empty for overall, filename for file, suggestion ID for suggestion Content string `json:"content"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }