Skip to content

Commit

Permalink
Cria o model
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielhrlima committed Aug 1, 2024
1 parent 8329e4c commit 6b2f573
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/model/watchLaterModel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import uuid
from sqlalchemy import Boolean, Column, String
from sqlalchemy.orm import Session
from database import Base
from domain.watchLaterSchema import WatchLaterCreate
from fastapi import HTTPException

class WatchLater(Base):
__tablename__ = 'watch_later'
id = Column(String, primary_key = True, index = True, default = lambda: str(uuid.uuid4()))
user_id =Column(String, index= True, nullable = False)
video_id = Column(String, index= True, nullable = False)
status = Column(Boolean, default = True)


0 comments on commit 6b2f573

Please sign in to comment.