Files
FitTrack_GarminSync/specs/003-loginimprovements-use-the/data-model.md

878 B

Data Model: Garmin Login Improvements

Entity: GarminCredentials

Represents the stored Garmin authentication information.

Attributes:

  • garmin_username (string): The Garmin Connect account username (email).
  • garmin_password_plaintext (string): The plaintext password for the Garmin Connect account.
  • access_token (string): The Garmin Connect access token.
  • access_token_secret (string): The Garmin Connect access token secret.
  • token_expiration_date (datetime): The expiration date and time of the access token.

Relationships:

  • Stored in centralDB.

Validation Rules:

  • garmin_username and garmin_password_plaintext are required for initial login.
  • access_token, access_token_secret, and token_expiration_date are generated upon successful Garmin authentication and are required for subsequent token refreshes and sync operations.