mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-25 08:14:38 +02:00
feat(mukke): add month/day fields and auto-set date from file timestamp
Adds month and day columns to songs schema. On upload, extracts the file's lastModified date to pre-fill year/month/day. Upload form and SongEditor now show all three date fields. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8a88838300
commit
c1f632693d
9 changed files with 119 additions and 24 deletions
|
|
@ -8,6 +8,8 @@ export interface Song {
|
|||
genre: string | null;
|
||||
trackNumber: number | null;
|
||||
year: number | null;
|
||||
month: number | null;
|
||||
day: number | null;
|
||||
duration: number | null;
|
||||
storagePath: string;
|
||||
coverArtPath: string | null;
|
||||
|
|
@ -59,6 +61,8 @@ export interface CreateSongDto {
|
|||
genre?: string;
|
||||
trackNumber?: number;
|
||||
year?: number;
|
||||
month?: number;
|
||||
day?: number;
|
||||
bpm?: number;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue