This commit is contained in:
2024-07-20 11:36:35 +02:00
commit 74b43cd8fa
81 changed files with 3131 additions and 0 deletions

15
home/models.py Normal file
View File

@@ -0,0 +1,15 @@
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)