Badges Table
Component Detail
Data Layer
low complexity
backend
0
Dependencies
3
Dependents
0
Entities
0
Integrations
Description
PostgreSQL table storing badge definitions as declarative trigger rules. Each row defines a badge type, its artwork asset reference, display name, description, and the structured trigger condition evaluated by the Badge Award Service rule engine.
badges-table
Responsibilities
- Store badge definitions with declarative trigger rule expressions
- Provide badge catalogue for gallery rendering and rule engine evaluation
- Store SVG asset bundle references for client-side artwork resolution
- Support querying all active badge definitions for catalogue endpoints
Interfaces
findAll() → Promise<BadgeDefinition[]>
findById(badgeId) → Promise<BadgeDefinition>
findByTriggerType(triggerType) → Promise<BadgeDefinition[]>
create(badge: CreateBadgeDto) → Promise<BadgeDefinition>
Relationships
Dependents (3)
Components that depend on this component