mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-22 13:37:21 +00:00
remove Audit model
This commit is contained in:
parent
b0e76ce691
commit
ba0c4801df
@ -1010,21 +1010,3 @@ class Reports(db.Model):
|
|||||||
def delete(self):
|
def delete(self):
|
||||||
db.session.delete(self)
|
db.session.delete(self)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
class Audit(db.Model):
|
|
||||||
__tablename__ = 'audit'
|
|
||||||
|
|
||||||
data = db.Column(
|
|
||||||
JSON(),
|
|
||||||
nullable=False,
|
|
||||||
primary_key=True
|
|
||||||
)
|
|
||||||
|
|
||||||
def save(self):
|
|
||||||
db.session.add(self)
|
|
||||||
db.session.commit()
|
|
||||||
db.session.refresh(self)
|
|
||||||
|
|
||||||
def delete(self):
|
|
||||||
db.session.delete(self)
|
|
||||||
db.session.commit()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user