1
0
mirror of https://github.com/enpaul/kodak.git synced 2024-11-13 10:07:04 +00:00
kodak/dehance/database/thumbnail.py

12 lines
290 B
Python
Raw Normal View History

import peewee
2021-05-02 22:12:04 +00:00
from dehance.database._shared import DehanceModel
from dehance.database.image import ImageRecord
2021-05-02 22:12:04 +00:00
class ThumbnailRecord(DehanceModel):
parent = peewee.ForeignKeyField(ImageRecord)
width = peewee.IntegerField(null=False)
height = peewee.IntegerField(null=False)