comments
Comments — threaded discussions on any entity
Fields
Section titled “Fields”| Field | Type | Required | Description |
|---|---|---|---|
| orgId | string | Yes | Organization ID for multi-tenant isolation |
| programId | Id<"programs"> | Yes | Parent program reference |
| entityType | ”requirement” | “risk” | “task” | “skill” | “gate” | “integration” | Yes | |
| entityId | string | Yes | |
| authorId | Id<"users"> | Yes | |
| content | string | Yes | |
| parentId | Id<"comments"> | No |
Indexes
Section titled “Indexes”| Name | Fields |
|---|---|
| by_entity | entityType, entityId |
| by_org | orgId |