models: Add headers to separate model categories

master
Felix Stupp 3 years ago
parent 4c0b111620
commit 133ab9e612
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -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)

Loading…
Cancel
Save