createdby-fix

This commit is contained in:
2023-11-30 11:27:06 +03:00
parent 685988c219
commit 1362eaa125
4 changed files with 7 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ class User(Base):
# preferred_username = Column(String, nullable=False)
picture = Column(String)
revoked_timestamp = Column(Integer)
roles = Column(JSON)
roles = Column(String, default="author, reader")
signup_methods = Column(String, default="magic_link_login")
created_at = Column(Integer, default=lambda: int(time.time()))
updated_at = Column(Integer, default=lambda: int(time.time()))