Last active
April 24, 2020 09:40
-
-
Save MrLotU/28f5ebc0cac1b85b84598bdbd22afd5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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