1
0
mirror of https://github.com/enpaul/kodak.git synced 2024-09-21 08:13:54 +00:00
kodak/dehance/database/thumbnail.py

12 lines
290 B
Python

import peewee
from dehance.database._shared import DehanceModel
from dehance.database.image import ImageRecord
class ThumbnailRecord(DehanceModel):
parent = peewee.ForeignKeyField(ImageRecord)
width = peewee.IntegerField(null=False)
height = peewee.IntegerField(null=False)