mirror of
https://github.com/StefBuwalda/dashboard_test.git
synced 2025-10-30 11:19:58 +00:00
13 lines
295 B
Python
13 lines
295 B
Python
from mem import db
|
|
from datetime import datetime, timezone
|
|
|
|
|
|
class log(db.Model):
|
|
id = db.Column(db.Integer, primary_key=True)
|
|
dateCreated = db.Column(db.DateTime, nullable=False)
|
|
|
|
def __init__(self):
|
|
super().__init__()
|
|
|
|
self.dateCreated = datetime.now(timezone.utc)
|