mirror of
https://github.com/StefBuwalda/dashboard_test.git
synced 2025-10-30 19:29:58 +00:00
Added logs for each ping. Contains no data yet and estimates 15.7 mil rows a year. Considering adding log aggregation. Moved some folders and files into mem folder due to circular import.
This commit is contained in:
10
models.py
10
models.py
@@ -1,6 +1,12 @@
|
||||
from app import db
|
||||
from mem import db
|
||||
from datetime import datetime, timezone
|
||||
|
||||
|
||||
class logs(db.Model):
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user