58b98ab5ed
Adds nullable storage fields + availability column on tracks, remote source/source_id identity on albums/artists, TrackRepository.materialize() and get_or_create_remote() repos — groundwork for on-demand YTM library (placeholders saved without audio, materialized in-place on first play). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
389 B
Python
20 lines
389 B
Python
"""Album domain entity."""
|
|
|
|
import datetime as dt
|
|
import uuid
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass(frozen=True, slots=True)
|
|
class Album:
|
|
id: uuid.UUID
|
|
title: str
|
|
artist_id: uuid.UUID
|
|
year: int | None
|
|
cover_path: str | None
|
|
musicbrainz_id: str | None
|
|
source: str | None
|
|
source_id: str | None
|
|
created_at: dt.datetime
|
|
updated_at: dt.datetime
|