1
0
mirror of https://github.com/enpaul/kodak.git synced 2024-11-11 00:57:00 +00:00
kodak/fresnel_lens/database/thumbnail.py

12 lines
300 B
Python
Raw Normal View History

import peewee
2021-10-28 23:03:09 +00:00
from fresnel_lens.database._shared import FresnelModel
from fresnel_lens.database.image import ImageRecord
2021-10-28 23:03:09 +00:00
class ThumbnailRecord(FresnelModel):
parent = peewee.ForeignKeyField(ImageRecord)
width = peewee.IntegerField(null=False)
height = peewee.IntegerField(null=False)