Code source de apptax.log.models

# coding: utf8
from flask_sqlalchemy import SQLAlchemy

from utils_flask_sqla.serializers import serializable

from . import db


@serializable
[docs] class TaxhubAdminLog(db.Model):
[docs] __tablename__ = "taxhub_admin_log"
[docs] __table_args__ = {"schema": "taxonomie"}
[docs] id = db.Column(db.Integer, primary_key=True)
[docs] action_time = db.Column(db.DateTime, default=db.func.now(), nullable=False)
[docs] id_role = db.Column(db.Integer, primary_key=True)
[docs] object_type = db.Column(db.Unicode)
[docs] object_id = db.Column(db.Integer, primary_key=True)
[docs] object_repr = db.Column(db.Unicode)
[docs] change_type = db.Column(db.Unicode)
[docs] change_message = db.Column(db.Unicode)