Added dashboard per user functionality

This commit is contained in:
2025-04-16 08:50:52 +02:00
parent bc9b26a205
commit f53d50ef7a
4 changed files with 14 additions and 17 deletions

View File

@@ -8,6 +8,8 @@ class User(db.Model, UserMixin):
password = db.Column(db.String(150), nullable=False)
is_admin = db.Column(db.Boolean, default=False)
services = db.relationship("Service", backref="user", lazy="joined")
def __init__(self, username: str, password: str, is_admin: bool = False):
self.username = username
self.password = password