You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
543 B
12 lines
543 B
from django.db import models
|
|
import uuid
|
|
from . import ModelOperation
|
|
|
|
class ModelLog(models.Model):
|
|
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=True)
|
|
user = models.ForeignKey('CustomUser', blank=True, null=True, on_delete=models.SET_NULL)
|
|
model_id = models.UUIDField()
|
|
operation = models.CharField(choices=ModelOperation.choices, max_length=50)
|
|
date = models.DateTimeField()
|
|
model_name = models.CharField(max_length=50)
|
|
# store_id = models.CharField(max_length=200, blank=True, null=True)
|
|
|