diff --git a/controllers/album.py b/controllers/album.py index 464b2ec..b9d62a5 100644 --- a/controllers/album.py +++ b/controllers/album.py @@ -1,9 +1,11 @@ from fastapi import APIRouter, Depends, HTTPException from fastapi_utils.cbv import cbv from sqlalchemy.orm import Session + from models.album import get_all_albums, create_album, get_album_by_id, update_album, delete_album, AlbumException +from models.schemas import Album, CreateAndUpdateAlbum, PaginatedAlbum + from database import get_db -from schemas import Album, CreateAndUpdateAlbum, PaginatedAlbum router = APIRouter() diff --git a/models/album.py b/models/album.py index b663487..a13b886 100644 --- a/models/album.py +++ b/models/album.py @@ -3,7 +3,7 @@ from sqlalchemy.types import String, Integer, Float from database import Base from typing import List from sqlalchemy.orm import Session -from schemas import CreateAndUpdateAlbum +from models.schemas import CreateAndUpdateAlbum class Album(Base): diff --git a/schemas.py b/models/schemas.py similarity index 100% rename from schemas.py rename to models/schemas.py