-- The shape of a track (how loud it is along its length), worked out the first time it is asked for and kept for the -- file it was worked out from: if the size or the date of the file change, it is worked out again. Empty peaks mean -- the file could not be decoded, so it is not tried at every request. CREATE TABLE track_peaks ( track_id INTEGER PRIMARY KEY REFERENCES tracks(id) ON DELETE CASCADE, size_bytes INTEGER NOT NULL, mtime_unix INTEGER NOT NULL, peaks BLOB NOT NULL, updated_at INTEGER NOT NULL );