Skip to content

Instantly share code, notes, and snippets.

@MrLotU
Last active April 24, 2020 09:40
Show Gist options
  • Save MrLotU/28f5ebc0cac1b85b84598bdbd22afd5d to your computer and use it in GitHub Desktop.
Save MrLotU/28f5ebc0cac1b85b84598bdbd22afd5d to your computer and use it in GitHub Desktop.
import functools
from datetime import datetime
from flask import request
from peewee import *
from playhouse.postgres_ext import *
class AuditModel(Model):
id = AutoField()
user = TextField()
action = TextField()
timestamp = DateTimeField()
metadata = BinaryJSONField()
abort = False
class Meta:
db_table = 'audits'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment