update user table
This commit is contained in:
@@ -14,3 +14,8 @@ preset:
|
||||
- "app/models/user.py"
|
||||
- "app/utils/s3.py"
|
||||
- "app/auth.py"
|
||||
|
||||
db_model:
|
||||
- "app/models/*"
|
||||
- "app/db.py"
|
||||
- "app/auth.py"
|
||||
@@ -17,3 +17,5 @@ wheels/
|
||||
.DS_Store
|
||||
|
||||
.git
|
||||
|
||||
prompts/
|
||||
|
||||
@@ -9,6 +9,8 @@ class User(Base, AutoID):
|
||||
google_id = Column(String, unique=True, index=True)
|
||||
email = Column(String, unique=True, index=True)
|
||||
name = Column(String)
|
||||
# 类似 Twitter 的 @code 唯一标识
|
||||
handle = Column(String, unique=True, index=True, nullable=True)
|
||||
avatar = Column(String)
|
||||
|
||||
created_at = Column(DateTime(timezone=True), server_default=func.now())
|
||||
|
||||
Reference in New Issue
Block a user