Custom images

This commit is contained in:
2025-04-16 14:51:06 +02:00
parent 02a12fd46e
commit b8152ba6cb
10 changed files with 53 additions and 41 deletions

View File

@@ -5,10 +5,12 @@ class Service(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, nullable=False)
url = db.Column(db.String, nullable=False)
icon = db.Column(db.String, nullable=False, default="google.png")
user_id = db.Column(db.Integer, db.ForeignKey("user.id"), nullable=False)
def __init__(self, name: str, url: str, user_id: int):
def __init__(self, name: str, url: str, user_id: int, icon: str):
self.name = name
self.url = url
self.user_id = user_id
self.icon = icon