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

16 lines
382 B
Python
Raw Normal View History

import datetime
import uuid
import peewee
INTERFACE = peewee.DatabaseProxy()
2021-10-28 23:03:09 +00:00
class FresnelModel(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)