feat: Add profile images taken from the nft
All checks were successful
Build Docker / Build Docker (push) Successful in 26s

This commit is contained in:
2024-06-14 16:10:18 +10:00
parent ab3ab6d7c4
commit ef40904945
2 changed files with 43 additions and 4 deletions

View File

@@ -12,13 +12,17 @@ db = SQLAlchemy()
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(40), unique=True)
profile_picture = db.Column(db.String(255), nullable=True)
def __str__(self):
return self.username
def get_user_id(self):
return self.id
def get_user_profile_picture(self):
return self.profile_picture
def check_password(self, password):
return password == 'valid'