mirror of
https://github.com/enpaul/kodak.git
synced 2025-09-19 05:31:58 +00:00
Add initial database schema and infrastructure components
This commit is contained in:
11
imagemonk/database/thumbnail.py
Normal file
11
imagemonk/database/thumbnail.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import peewee
|
||||
|
||||
from imagemonk.database._shared import ImageMonkModel
|
||||
from imagemonk.database.image import ImageRecord
|
||||
|
||||
|
||||
class ThumbnailRecord(ImageMonkModel):
|
||||
|
||||
parent = peewee.ForeignKeyField(ImageRecord)
|
||||
width = peewee.IntegerField(null=False)
|
||||
height = peewee.IntegerField(null=False)
|
Reference in New Issue
Block a user