Here is my models file, simplified a bit for the question:
class Objects(IntEnum): USER = auto() TASK = auto() TASK_PARENT = auto() LOG_ENTRY