mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
20 lines
530 B
Python
20 lines
530 B
Python
import re
|
|
import unicodedata
|
|
import logging
|
|
import types
|
|
|
|
from django.db import models
|
|
|
|
class AuthAPIKey(models.Model):
|
|
|
|
name = models.CharField("Service Name", max_length=200)
|
|
url = models.CharField("Service URL", max_length=200, blank=True)
|
|
active = models.BooleanField(default=True)
|
|
key = models.CharField("API Key", max_length=200)
|
|
|
|
class AuthAPILog(models.Model):
|
|
|
|
access_datetime = models.DateTimeField()
|
|
key = models.ForeignKey(AuthAPIKey)
|
|
url = models.CharField("Accessed URL", max_length=200)
|