init
This commit is contained in:
15
home/models.py
Normal file
15
home/models.py
Normal 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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user