diff options
author | Cara Salter <cara@devcara.com> | 2022-10-07 08:27:07 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-10-07 08:27:07 -0400 |
commit | bbdb97213ff7e486b18753a6052b2c6de7b36f86 (patch) | |
tree | 84cbda8065e1afa524bb4c516bcd42ff6d7ed6e0 /app/database.py | |
parent | f9b99ce66f56995a29709e9bf24750dab9430767 (diff) | |
download | nccd-bbdb97213ff7e486b18753a6052b2c6de7b36f86.tar.gz nccd-bbdb97213ff7e486b18753a6052b2c6de7b36f86.zip |
WIP: Peer enrolling
Diffstat (limited to 'app/database.py')
-rw-r--r-- | app/database.py | 5 |
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) |