Simple API for connecting bots.
[redakcja.git] / src / redakcja / api / models.py
diff --git a/src/redakcja/api/models.py b/src/redakcja/api/models.py
new file mode 100644 (file)
index 0000000..797aa6d
--- /dev/null
@@ -0,0 +1,10 @@
+from django.conf import settings
+from django.db import models
+from rest_framework.authtoken.models import Token as TokenBase
+
+
+class Token(TokenBase):
+    last_seen_at = models.DateTimeField(blank=True, null=True)
+    api_version = models.IntegerField(choices=[
+        (1, '1'),
+    ])