16 lines
464 B
Python
16 lines
464 B
Python
from django.db import models
|
|
|
|
import uuid
|
|
|
|
|
|
class Hit(models.Model):
|
|
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
|
path = models.CharField(max_length=255)
|
|
parameters = models.JSONField(default=dict)
|
|
session_id = models.CharField(max_length=255)
|
|
ip_address = models.GenericIPAddressField(max_length=255)
|
|
user_agent = models.CharField(max_length=255)
|
|
date_created = models.DateTimeField(auto_now_add=True)
|
|
|
|
|