Changes File model.
This commit is contained in:
@@ -29,7 +29,10 @@ class Release(Entity):
|
|||||||
|
|
||||||
class File(Entity):
|
class File(Entity):
|
||||||
"""File that belongs to a release."""
|
"""File that belongs to a release."""
|
||||||
path = Field(UnicodeString(255))
|
history = OneToMany('RenameHistory')
|
||||||
|
path = Field(UnicodeString(255), nullable=False, unique=True)
|
||||||
|
# Subtitles can have multiple parts, too
|
||||||
|
part = Field(Integer)
|
||||||
release = ManyToOne('Release')
|
release = ManyToOne('Release')
|
||||||
# Let's remember the size so we know about offline media.
|
# Let's remember the size so we know about offline media.
|
||||||
size = Field(Integer)
|
size = Field(Integer)
|
||||||
|
|||||||
Reference in New Issue
Block a user