aboutsummaryrefslogtreecommitdiff
path: root/app/database.py
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-10-07 08:27:07 -0400
committerCara Salter <cara@devcara.com>2022-10-07 08:27:07 -0400
commitbbdb97213ff7e486b18753a6052b2c6de7b36f86 (patch)
tree84cbda8065e1afa524bb4c516bcd42ff6d7ed6e0 /app/database.py
parentf9b99ce66f56995a29709e9bf24750dab9430767 (diff)
downloadnccd-bbdb97213ff7e486b18753a6052b2c6de7b36f86.tar.gz
nccd-bbdb97213ff7e486b18753a6052b2c6de7b36f86.zip
WIP: Peer enrolling
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)