From ee9b796b7da3a30bcb85c0b569d48ed0842f07bd Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Sat, 4 Jul 2020 23:18:11 +0200 Subject: [PATCH] Add PublicDomain model --- app/models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/models.py b/app/models.py index 8c15f2a9..dea94e1f 100644 --- a/app/models.py +++ b/app/models.py @@ -1610,3 +1610,9 @@ class Notification(db.Model, ModelMixin): # whether user has marked the notification as read read = db.Column(db.Boolean, nullable=False, default=False) + + +class PublicDomain(db.Model, ModelMixin): + """SimpleLogin domains that all users can use""" + + domain = db.Column(db.String(128), unique=True, nullable=False)