//! The one-time drop of the music before Cotton Music (owner, 4 Nov 2026: //! old tables and UI go). The object's `drop_old_music` act reads these //! lists through the boundary (`music.lists`); a phone's own copy runs the //! same drop in its kit keep (cotton-tools `kit_keep`, KEEP_RULE 8). use serde_json::{json, Value}; /// The table Cotton Music's rows begin in: one held, the old music stays. pub const SONG: &str = "song"; /// The tables the old music held rows in, each tombstoned whole. pub const OLD_TABLES: [&str; 6] = ["track", "music_album", "playlist", "playlist_track", "artist", "listen"]; /// The old tables Cotton Music has none of: their definitions go. pub const GONE_TABLES: [&str; 3] = ["track", "playlist", "playlist_track"]; /// The old tables Cotton Music keeps by id in a new shape: the kit's laid whole. pub const RESHAPED_TABLES: [&str; 3] = ["music_album", "artist", "listen"]; /// The tool laid whole over the held one. pub const MUSIC_TOOL: &str = "music"; /// The lists as the Worker reads them. pub fn lists() -> Value { json!({ "song": SONG, "old": OLD_TABLES, "gone": GONE_TABLES, "reshaped": RESHAPED_TABLES, "tool": MUSIC_TOOL, }) }