Add services and SSH keys.
[cas.git] / src / ssh_keys / models.py
diff --git a/src/ssh_keys/models.py b/src/ssh_keys/models.py
new file mode 100644 (file)
index 0000000..960a5ec
--- /dev/null
@@ -0,0 +1,11 @@
+from django.conf import settings
+from django.db import models
+
+
+class SSHKey(models.Model):
+    user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
+    key = models.TextField()
+    created_at = models.DateTimeField(auto_now_add=True)
+
+    class Meta:
+        ordering = ['created_at']