72
Total Data Layer
53
Low Complexity
16
Medium Complexity
3
High Complexity
8
Shared

Data Layer components manage data persistence, storage operations, and data access patterns throughout the application.

Sessions Table

Data repository for active user sessions and their associated opaque refresh tokens. Persists session state across requests to support silen...

medium shared Email & Password Login
Refresh Tokens Table

Stores rotating refresh tokens linked to sessions. Each token rotation invalidates the previous token; revocation of a session cascades to a...

medium Role-Based Access Control
Users Table

Canonical PostgreSQL table storing all user account data: personal fields, language preference, photo URL, and organization memberships. Mir...

medium shared Profile Data & Settings
Organization Memberships Table

Drift-backed local cache and PostgreSQL server table for user-to-organization join records. Stores role, membership status (active/suspended...

low Profile Switching
Profile Share Links Table

Database table tracking active and expired profile share link metadata including hashed token, object storage key, originating user ID, expi...

low Share Profile
Activities Table

Drift ORM table definition and repository for activity records. Stores all activity logs including type reference, date, duration, optional ...

medium Simple Activity Logging
Activity Types Table

Drift ORM table definition and repository for the fixed activity type catalogue. Stores the canonical list of selectable activity types used...

low Simple Activity Logging
Activity Attachments Table

Drift DAO for the activity_attachments table, storing file references, MIME types, upload status, and parent activity foreign keys. Supports...

medium Activity Registration Wizard
Calendar Sync Preferences Repository

Persists the user's calendar sync opt-in state, selected calendar IDs, and sync direction preferences using Drift local storage. Exposes rea...

low Calendar Sync
Proxy Activity Repository

Data-access layer for activity records that carry dual user references. Provides typed queries for coordinator proxy history, mentor attribu...

medium Coordinator Proxy Reporting
Events Table

Local Drift table and corresponding backend PostgreSQL table storing event records. All rows are keyed by organization ID for strict tenant ...

low Event Creation
Event Participants Table

Database table and repository layer storing participant records that link users or contacts to events. Enforces uniqueness constraints to pr...

low Event Sign-up
Expense Claims Table

Expense Claims Table

low Travel Expense Registration
Expense Items Table

Expense Items Table

low Travel Expense Registration
Expense Receipts Table

PostgreSQL table storing receipt image references linked to individual expense items. Each record holds the object storage key, presigned UR...

low Receipt Photo Upload
Expense Type Config Repository

Data access layer that reads and caches expense type definitions stored as JSON in the module_configurations table, scoped per organization....

low Expense Types & Requirements
Declarations Table

Declarations Table

low Confidentiality Declarations
Contacts Table

Drift table definition for offline-first local storage of contact records inside the SQLCipher-encrypted local database. Provides typed DAO ...

low shared Contact List & Search
Contact Detail Repository

Drift-based local data access layer for reading and writing a single contact record together with its related entities. Provides the reactiv...

low Contact Detail & Edit
Caregiver Contacts Table

Drift table storing caregiver and next-of-kin records as a one-to-many child of the contacts table. Queried reactively alongside the parent ...

low Caregiver & Next-of-Kin
Notes Table

Drift DAO and table definition for the local SQLite notes store. Provides reactive queries filtered by user and supports the mutation outbox...

low Notes List
Note Attachments Table

Drift table definition and repository for note_attachments records. Each row stores a reference to a note (note_id), the local file path for...

low Note Editor
Statistics Query Repository

Drift DAO (Data Access Object) that encapsulates all SQL queries needed to aggregate activity statistics for a single user. Returns strongly...

low Personal Activity Statistics
Bufdir Reports Table

PostgreSQL repository for persisting generated Bufdir reports with full metadata including reporting period, organization scope, generation ...

medium Bufdir Report Generation
Export Logs Table

Database repository and access layer for the export_logs table. Records every export attempt with the exporting user ID, organization ID, re...

low Bufdir Export
Accounting Integration Logs Table

Persists a complete audit trail of every integration event emitted by the Accounting API Connector and Expense Batch Dispatcher. Records pus...

low Accounting System Integration
Assignment Reads Table

Records read receipt and delivery confirmation events for each assignment, capturing event type (delivered, acknowledged, read), actor, and ...

low Encrypted Assignment Dispatch
Assignments Table

Persists encrypted assignment records including the ciphertext blob, sender and recipient metadata, dispatch timestamp, and current lifecycl...

medium Encrypted Assignment Dispatch
Assignment Status Tracking Table

Data layer adapter for the assignment_status_tracking table. Records per-assignment milestone events (e.g. threshold reached at count 3 or 1...

low Assignment Threshold Tracking
Notifications Table

Backend repository managing persistence and querying of notification records in the notifications table. Supports paginated inbox retrieval,...

medium Push Notifications
Push Tokens Table

Backend repository managing CRUD operations against the push_tokens table. Supports one token record per user per device to enable multi-dev...

low Push Notifications
Message Dispatch Logs Table

Persists a durable audit record for every outbound email and SMS, capturing channel, recipient, template, provider message ID, status, and t...

low Email/SMS Notifications
Notification Cooldown Log Table

Notification Cooldown Log Table

low Notification Scenarios
Notification Rules Table

Notification Rules Table

medium Notification Scenarios
Scenario Registry Table

Scenario Registry Table

low Notification Scenarios
Notification Settings Table

Drift table definition and repository mirroring the notification_settings PostgreSQL table. Stores one preferences row per user with a versi...

low Notification Settings
Referrals Table

PostgreSQL table that persists referral records containing referrer_user_id, nullable invitee_user_id (populated when sign-up completes), si...

low Invite Link & QR Sharing
Course Enrollments Table

Repository for course enrollment records linking users to courses. Persists enrollment state, supports offline mutation outbox pattern, and ...

low Course Registration
Courses Table

Repository and local cache adapter for course records. Reads course data from the shared PostgreSQL backend via REST and caches for offline ...

low Course Registration
Certificates Table

Repository adapter for the certificates table. Manages certificate CRUD operations and provides query methods used by both the mobile servic...

low Digital Peer Mentor Certificate
Workshop Participants Table

Data component representing the workshop_participants join table that links users to workshop sessions. Manages participant enrollment recor...

low Career Workshops
Annual Summaries Table

PostgreSQL repository for persisted annual summary records, one row per user per year. Stores the aggregated payload as structured columns t...

low Annual Summary (Wrapped)
Badges Table

PostgreSQL table storing badge definitions as declarative trigger rules. Each row defines a badge type, its artwork asset reference, display...

low Achievement Badges
User Achievements Table

PostgreSQL table recording awarded badges per user with a timestamp and reference to the triggering entity. Acts as the persistent state for...

low Achievement Badges
Calculation Models Table

Database table storing per-organization impact calculation parameters. Each row represents one tenant's model with fields for hourly value r...

low Advantage Calculator (Real-Time)
Resource Links Cache Table (Drift)

Drift table providing offline-first local storage for the external link catalogue fetched from the backend. Stores link entries with categor...

low External Resource Links
Resource Links Table (PostgreSQL)

PostgreSQL table storing the org-configurable external resource link catalogue. Each row belongs to one organization and optionally targets ...

low External Resource Links
ID Mapping Store

Drift table and DAO that persists client-generated temporary UUID to server-assigned permanent ID mappings. Records entity type alongside ea...

medium Offline Data Support
Local Database (Drift + SQLCipher)

Encrypted local SQLite database managed by Drift (Flutter's type-safe ORM). Provides full CRUD for all core entities - activities, contacts,...

high shared Offline Data Support
Mutation Outbox

Persistent table and access layer that records every pending write with its operation type, entity type, payload, retry count, and status. A...

high Offline Data Support
Sync State Provider

Riverpod AsyncNotifier that holds and broadcasts sync state (pending mutation count, last sync timestamp, dead-letter count, and in-progress...

low Background Sync
Feed Events Table

Dedicated PostgreSQL table (feed_events) storing normalized event rows generated by the Feed Service. Each row captures the organization con...

low Activity Feed
Users Repository

Data access layer encapsulating all PostgreSQL queries against the users table and its joins with organization_memberships. Provides typed q...

low User CRUD
User Roles Table

User Roles Table

low shared Role Assignment
Activity Flags Table

Database table storing flag records for both automated duplicate detections and manual flags. Each record links to the activities table, car...

low Activity Flagging
Expense Claims Approval Repository

Data access layer for expense approval workflow operations against the expense_claims, expense_items, expense_receipts, and declarations tab...

low Expense Approval Queue
Auto-Approval Rules Table

Database table storing per-tenant auto-approval rule configuration as structured rows with type, operator, and value columns. Scoped by orga...

low Auto-Approval Rules
Expense Summary Repository

Data access layer that reads from the materialized expense_summary_snapshots table for pre-aggregated figures and executes ad-hoc queries ag...

medium Reimbursement Overview
Export Logs Table

Database component managing the export_logs table, which tracks every Bufdir export job across its full lifecycle. Stores triggering user, o...

low shared Bufdir Export
Organizations Table

PostgreSQL data component managing the organizations table with row-level tenant isolation enforced at the API layer. Stores organization pr...

medium shared Organization Settings
Organization Labels Drift Cache

Local Drift table on the Flutter client that stores the resolved label map received during session bootstrap. Enables the Label Resolution S...

low Custom Terminology
Organization Labels Table

PostgreSQL table storing key-value label overrides scoped to organization ID. Each row represents one overridden label key for one organizat...

low Custom Terminology
Module Configurations Table

PostgreSQL repository layer for the module_configurations table, scoped by organization ID and area ID. Provides typed read/write access for...

low Feature Toggles
Organization Hierarchy Repository

Data access layer for organization hierarchy queries against the organizations and organization_memberships tables. Wraps recursive CTE Post...

high Multi-Organization Hierarchy
Organization Memberships Table

PostgreSQL table storing the many-to-many relationship between users and organizations. Holds role, primary-membership flag, and join timest...

low shared Member Associations
Portal Integration Configurations Table

Stores per-organization external portal integration settings including connection type (OAuth 2.0 or API key), encrypted credential referenc...

medium External Portal Integration
Portal Sync Logs Table

Append-only event log of all sync operations performed by the External Portal Connector. Each row captures the event type, source record ide...

low External Portal Integration
Accounting Integration Logs Table

Persistent log of every accounting system delivery attempt per organization. Stores request payloads, HTTP response codes, retry counts, err...

medium Accounting API
Security Metrics Cache

Short-TTL server-side cache scoped per tenant for computed security metric aggregates, preventing repeated expensive queries on each dashboa...

low Security Dashboard
Audit Logs Table

PostgreSQL table storing the immutable, chronological trail of all security-relevant events. Schema includes event_type, actor_id, actor_rol...

medium Audit Log
Leads Table

PostgreSQL table that persists all qualified booking form submissions as lead records. Stores the prospect's contact details, organization m...

low Booking Form
ToS Acceptances Table

Database table storing immutable records of Terms of Service acceptance events. Each row captures the organization, the accepting user, the ...

low Terms of Service