mirror of
https://github.com/enpaul/kodak.git
synced 2025-09-19 05:31:58 +00:00
Rename project to imagemuck
This commit is contained in:
15
imagemuck/database/_shared.py
Normal file
15
imagemuck/database/_shared.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import datetime
|
||||
import uuid
|
||||
|
||||
import peewee
|
||||
|
||||
|
||||
INTERFACE = peewee.DatabaseProxy()
|
||||
|
||||
|
||||
class ImageMuckModel(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)
|
Reference in New Issue
Block a user