12 lines
331 B
Python
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
|