mirror of
https://github.com/enpaul/kodak.git
synced 2024-11-11 00:57:00 +00:00
16 lines
384 B
Python
16 lines
384 B
Python
|
import datetime
|
||
|
import uuid
|
||
|
|
||
|
import peewee
|
||
|
|
||
|
|
||
|
INTERFACE = peewee.DatabaseProxy()
|
||
|
|
||
|
|
||
|
class ImageMonkModel(peewee.Model):
|
||
|
class Meta: # pylint: disable=too-few-public-methods,missing-class-docstring
|
||
|
database = INTERFACE
|
||
|
|
||
|
uuid = peewee.UUIDField(null=False, unique=True, default=uuid.uuid4)
|
||
|
created = peewee.DateTimeField(null=False, default=datetime.datetime.utcnow)
|