initial commit
This commit is contained in:
11
core/apps/common/models.py
Normal file
11
core/apps/common/models.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import uuid
|
||||
from django.db import models
|
||||
|
||||
|
||||
class BaseModel(models.Model):
|
||||
id = models.UUIDField(primary_key=True, editable=False, unique=True, db_index=True, default=uuid.uuid4)
|
||||
created_at = models.DateField(auto_now_add=True)
|
||||
updated_at = models.DateField(auto_now=True)
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
Reference in New Issue
Block a user