aboutsummaryrefslogtreecommitdiff
path: root/app/database.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/database.py')
-rw-r--r--app/database.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/database.py b/app/database.py
index c66f603..11ef840 100644
--- a/app/database.py
+++ b/app/database.py
@@ -61,3 +61,8 @@ class Network(db.Model):
return f"{self.description} ({self.subnet})"
def __str__(self):
return f"{self.description} ({self.subnet})"
+
+class EnrollRequest(db.Model):
+ id = Column(String, primary_key=True)
+ user = Column(String, ForeignKey('user.id'), nullable=False)
+ expires = Column(DateTime, nullable=False)