forked from kompetenzinventar/ki-backend
add token auth
This commit is contained in:
@ -24,6 +24,12 @@ class User(db.Model):
|
||||
skills = relationship("UserSkill", back_populates="user")
|
||||
languages = relationship("UserLanguage", back_populates="user")
|
||||
|
||||
def to_dict(self):
|
||||
return {
|
||||
"id": self.id,
|
||||
"nickname": self.nickname
|
||||
}
|
||||
|
||||
|
||||
class Token(db.Model):
|
||||
__tablename__ = "token"
|
||||
|
Reference in New Issue
Block a user