syntax = "proto3";

package stats;

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

import "google/protobuf/timestamp.proto";

// 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
  google.protobuf.Timestamp last_calculated = 6;
}
