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