Skip to content

Commit

Permalink
reverted some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucobaco committed Feb 8, 2023
1 parent a84656c commit a6ffe0a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions movie_library/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,41 @@
from datetime import datetime


# Define the Movie dataclass
@dataclass
class Movie:
# Unique identifier for the movie
_id: str
# Title of the movie
title: str
# Director of the movie
director: str
# Year the movie was released
year: int
# List of actors in the movie
cast: list[str] = field(default_factory=list)
# List of series the movie belongs to
series: list[str] = field(default_factory=list)
# The date the movie was last watched
last_watched: datetime = None
# User-assigned rating for the movie
rating: int = 0
# List of tags to categorize the movie
tags: list[str] = field(default_factory=list)
# A brief description of the movie
description: str = None
# Link to the video for the movie
video_link: str = None


# Define the User dataclass
@dataclass
class User:
# Unique identifier for the user
_id: str
# Email address of the user
email: str
# Hashed password for the user
password: str
# List of movies in the user's watchlist
movies: list[str] = field(default_factory=list)

0 comments on commit a6ffe0a

Please sign in to comment.