Files
tout-doux/app/models/base.py
T
klemek d7fbac6cf4
Python Lint CI / ruff-format-check (push) Successful in 56s
Python Lint CI / ty (push) Successful in 56s
Python Lint CI / ruff (push) Successful in 1m2s
feat: task
2026-07-03 19:55:03 +02:00

12 lines
331 B
Python

import tortoise
import tortoise.models
class AbstractModel(tortoise.models.Model):
id = tortoise.fields.UUIDField(primary_key=True)
created_at = tortoise.fields.DatetimeField(auto_now_add=True, null=False)
updated_at = tortoise.fields.DatetimeField(auto_now=True, null=False)
class Meta:
abstract = True