Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions api_schemas/song_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ class SongRead(BaseSchema):
views: int


class SongEdit(BaseSchema):
id: int
title: str
author: str | None
melody: str | None
content: str
category_id: int


class SongCreate(BaseSchema):
title: str
author: str | None
Expand Down