syntax = "proto3";

package activity;

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

import "google/protobuf/timestamp.proto";

// Playlist message represents a playlist
message Playlist {
  // Playlist ID
  int32 playlist_id = 1;
  
  // Created by user ID
  string created_by = 2;
  
  // Playlist title
  string title = 3;
  
  // Playlist description
  string description = 4;
  
  // Cover image URL
  string cover_image = 5;
  
  // Is official playlist
  bool is_official = 6;
  
  // Is public playlist
  bool is_public = 7;
  
  // Creation timestamp
  google.protobuf.Timestamp created_at = 8;
}

// PlaylistTrack message represents a track in a playlist
message PlaylistTrack {
  // Entry ID
  int32 entry_id = 1;
  
  // Playlist ID
  int32 playlist_id = 2;
  
  // Track ID
  int32 track_id = 3;
  
  // Position in playlist
  int32 position = 4;
  
  // Date added to playlist
  google.protobuf.Timestamp added_at = 5;
}
