From c6d624e15454731dc76f2a88f73e4671a2aff93c Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Wed, 2 Feb 2022 21:21:19 -0600 Subject: [PATCH] lock getting char_xml behind gm 9 --- app/models.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/models.py b/app/models.py index b003014..b24764b 100644 --- a/app/models.py +++ b/app/models.py @@ -1010,3 +1010,21 @@ class Reports(db.Model): def delete(self): db.session.delete(self) 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()