syntax = "proto3";

package activity;

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

import "google/protobuf/timestamp.proto";

// UserPoints message represents active session state for WebSocket management
message UserPoints {
  // User ID (primary key)
  string user_id = 1;
  
  // Session ID (unique)
  string session_id = 2;
  
  // Track ID currently being played
  int32 track_id = 3;
  
  // Session start time
  google.protobuf.Timestamp start_time = 4;
  
  // Last activity timestamp
  google.protobuf.Timestamp last_activity = 5;
  
  // Session status (active, paused)
  string status = 6;
  
  // Current point rate multiplier
  double point_rate = 7;
  
  // Number of active connections
  int32 active_connections = 8;
  
  // Creation timestamp
  google.protobuf.Timestamp created_at = 9;
  
  // Last update timestamp
  google.protobuf.Timestamp updated_at = 10;
}
