text: from django.db import models
  from sitecheck.models import SiteCheck
  import uuid
  
  ### API client state
  class ApiClientState(models.Model):
      sleep_until = models.DateTimeField(null=True)
      max_concurrent_assessments = models.IntegerField()
  
  ### requestlog
  class RequestLog(models.Model):
      sitecheck = models.ForeignKey('sitecheck.SiteCheck', related_name="requestlogs", null=True, on_delete=models.PROTECT)
      datetime = models.DateTimeField(auto_now_add=True)
      uuid = models.UUIDField(default=uuid.uuid4, editable=False)
      request_url = models.CharField(max_length=1000)
      request_headers = models.TextField()
      request_body = models.TextField(null=True)
      response_code = models.IntegerField(null=True)
      response_headers = models.TextField(null=True)
      response_body = models.TextField(null=True)
  
      def __str__(self):
          return "%s: %s - %s" % (self.id, self.request_url, self.datetime)
  
      class Meta:
          ordering = ['-datetime']
  
  