Activity Types Table
Component Detail
Data Layer
low complexity
mobile
0
Dependencies
4
Dependents
0
Entities
0
Integrations
Description
Drift ORM table definition and repository for the fixed activity type catalogue. Stores the canonical list of selectable activity types used in the Activity Form Screen's fixed selection list. Types are seeded from the backend at sync time and cached locally for full offline availability.
activity-types-table
Responsibilities
- Define the Drift table schema for activity type records including id, label, and sort order
- Provide read methods for the full activity type catalogue consumed by the form screen
- Support atomic cache refresh by clearing and re-seeding all types from backend data
Interfaces
getAllActivityTypes() → Future<List<ActivityType>>
upsertActivityType(ActivityTypesCompanion entry) → Future<void>
clearAndSeedTypes(List<ActivityType> types) → Future<void>
Relationships
Dependents (4)
Components that depend on this component