mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2025-10-12 10:08:02 +00:00
Fix reports
Add currency report make reports use json storage Make tables nicer
This commit is contained in:
@@ -981,14 +981,21 @@ class Server(db.Model):
|
||||
db.session.commit()
|
||||
|
||||
|
||||
class ItemReports(db.Model):
|
||||
__tablename__ = 'item_reports'
|
||||
class Reports(db.Model):
|
||||
__tablename__ = 'reports'
|
||||
|
||||
data = db.Column(
|
||||
JSON(),
|
||||
nullable=False
|
||||
)
|
||||
|
||||
report_type = db.Column(
|
||||
db.VARCHAR(35),
|
||||
nullable=False,
|
||||
primary_key=True,
|
||||
autoincrement=False
|
||||
)
|
||||
|
||||
date = db.Column(
|
||||
db.Date(),
|
||||
primary_key=True,
|
||||
|
Reference in New Issue
Block a user