package com.fabledsword.minstrel.cache.db.entities

import androidx.room.Entity

/**
 * Ordered membership of tracks within a playlist. Mirrors
 * `flutter_client/lib/cache/db.dart`'s `CachedPlaylistTracks` Drift table.
 * Composite PK so the same track can only appear once per playlist;
 * `position` carries the ordering.
 */
@Entity(
    tableName = "cached_playlist_tracks",
    primaryKeys = ["playlistId", "trackId"],
)
data class CachedPlaylistTrackEntity(
    val playlistId: String,
    val trackId: String,
    val position: Int = 0,
)
