Add image fields for Appliance table
raw, normalized, thumbnail
This commit is contained in:
parent
6be6467f59
commit
0ff20eb753
2 changed files with 55 additions and 0 deletions
|
@ -57,10 +57,26 @@ class Appliance(Base):
|
|||
Human-friendly (and unique) name for the appliance.
|
||||
""")
|
||||
|
||||
appliance_type = sa.Column(sa.Integer(), nullable=True, doc="""
|
||||
Code indicating which "type" of appliance this is.
|
||||
""")
|
||||
|
||||
location = sa.Column(sa.String(length=255), nullable=True, doc="""
|
||||
Description of the appliance's physical location.
|
||||
""")
|
||||
|
||||
image_raw = sa.Column(sa.LargeBinary(), nullable=True, doc="""
|
||||
Byte sequence of the raw image, as uploaded.
|
||||
""")
|
||||
|
||||
image_normal = sa.Column(sa.LargeBinary(), nullable=True, doc="""
|
||||
Byte sequence of the normalized image, i.e. "reasonable" size.
|
||||
""")
|
||||
|
||||
image_thumbnail = sa.Column(sa.LargeBinary(), nullable=True, doc="""
|
||||
Byte sequence of the thumbnail image.
|
||||
""")
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue