diff --git a/server/entertainment_decider/models.py b/server/entertainment_decider/models.py index 5930e56..87e5521 100644 --- a/server/entertainment_decider/models.py +++ b/server/entertainment_decider/models.py @@ -70,6 +70,9 @@ class CollectionStats: #### +## Tag & Selection Score's + + class Tag(db.Entity): id: int = orm.PrimaryKey(int, auto=True) @@ -83,6 +86,9 @@ class Tag(db.Entity): _media_list: Iterable[MediaElement] = orm.Set(lambda: MediaElement) +## Element <-> Collection Linking + + class MediaCollectionLink(db.Entity): collection: MediaCollection = orm.Required(lambda: MediaCollection) @@ -106,6 +112,9 @@ class MediaCollectionLink(db.Entity): natural_order = (season, episode, element_release_date, element_id) # unusuable due to ponyorm, see https://github.com/ponyorm/pony/issues/612 +## Media Elements + + class MediaElement(db.Entity): id: int = orm.PrimaryKey(int, auto=True) @@ -207,6 +216,9 @@ class MediaUriMapping(db.Entity): element: MediaElement = orm.Required(MediaElement) +## Media Collections + + class MediaCollection(db.Entity): id: int = orm.PrimaryKey(int, auto=True)