feat: add data models for Track, Show, ShowTrack

Made-with: Cursor
This commit is contained in:
cottongin
2026-03-12 01:18:20 -04:00
parent 38dda5dda0
commit 537d9ecd8b

30
src/ntr_fetcher/models.py Normal file
View File

@@ -0,0 +1,30 @@
from dataclasses import dataclass
from datetime import datetime
@dataclass(frozen=True)
class Track:
id: int
title: str
artist: str
permalink_url: str
artwork_url: str | None
duration_ms: int
license: str
liked_at: datetime
raw_json: str
@dataclass(frozen=True)
class Show:
id: int
week_start: datetime
week_end: datetime
created_at: datetime
@dataclass(frozen=True)
class ShowTrack:
show_id: int
track_id: int
position: int