14 lines
349 B
Python
14 lines
349 B
Python
from __future__ import annotations
|
|
|
|
import uuid
|
|
|
|
from django.db import models
|
|
|
|
|
|
class TimestampedModel(models.Model):
|
|
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
|
created_at = models.DateTimeField(auto_now_add=True)
|
|
updated_at = models.DateTimeField(auto_now=True)
|
|
|
|
class Meta:
|
|
abstract = True
|