tomoya 2 gadi atpakaļ
vecāks
revīzija
d994d289e6

+ 3 - 3
backend/app/app/api/api_v1/endpoints/videos.py

@@ -21,12 +21,12 @@ def get_video_list(
     Retrieve items.
     """
     if crud.user.is_superuser(current_user):
-        items = crud.item.get_multi(db, skip=skip, limit=limit)
+        videos = crud.video.get_multi(db, skip=skip, limit=limit)
     else:
-        items = crud.item.get_multi_by_owner(
+        videos = crud.video.get_multi_by_owner(
             db=db, owner_id=current_user.id, skip=skip, limit=limit
         )
-    return items
+    return videos
 
 @router.post("/", response_model=schemas.Item)
 def upload_plot(

+ 11 - 0
backend/app/app/models/style.py

@@ -0,0 +1,11 @@
+from typing import TYPE_CHECKING
+
+from sqlalchemy import Column, ForeignKey, Integer, String
+from sqlalchemy.orm import relationship
+
+from app.db.base_class import Base
+
+class VideoStyle(Base):
+  id = Column(Integer, primary_key=True, index=True)
+  
+