feat: add avatar

This commit is contained in:
qixinbo
2026-03-29 17:47:28 +08:00
parent 7d72f31b5f
commit caed4e086f
6 changed files with 57 additions and 6 deletions
+1
View File
@@ -10,6 +10,7 @@ class User(Base):
username = Column(String, unique=True, index=True, nullable=False)
email = Column(String, unique=True, index=True, nullable=False)
hashed_password = Column(String, nullable=False)
avatar = Column(String, nullable=True) # Store avatar identifier or URL
is_active = Column(Boolean, default=True)
is_admin = Column(Boolean, default=False)
created_at = Column(DateTime(timezone=True), server_default=func.now())