tp done
This commit is contained in:
13
src/app/schemas/genre.py
Normal file
13
src/app/schemas/genre.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
class GenreBase(BaseModel):
|
||||
label: str
|
||||
|
||||
|
||||
class GenreCreate(GenreBase):
|
||||
pass
|
||||
|
||||
|
||||
class GenreRead(GenreBase):
|
||||
id: int
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
Reference in New Issue
Block a user