syntax = "proto3";

package stats;

option go_package = "github.com/echofi-ai/schema/v2/types/stats";

// UserStatistics message represents user statistics
message UserStatistics {
  // User ID
  string user_id = 1;

  // Total points earned
  double total_points = 2;

  // Total listening time in seconds
  int32 total_listening_seconds = 3;

  // Number of unique songs played
  int32 unique_songs_played = 4;

  // Total number of plays
  int32 total_plays = 5;

  // Last calculation date (Unix seconds)
  int64 last_calculated = 6;
}
