From a4c30b05573e0d985d21ea6c24aa701227bc3330 Mon Sep 17 00:00:00 2001 From: Zayden Jung Date: Sun, 17 May 2026 22:35:05 +0800 Subject: [PATCH] update user table --- .cliprepo.yaml | 5 +++++ .gitignore | 4 +++- app/models/user.py | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.cliprepo.yaml b/.cliprepo.yaml index 2cab984..bc510a8 100644 --- a/.cliprepo.yaml +++ b/.cliprepo.yaml @@ -13,4 +13,9 @@ preset: - "app/models/base.py" - "app/models/user.py" - "app/utils/s3.py" + - "app/auth.py" + + db_model: + - "app/models/*" + - "app/db.py" - "app/auth.py" \ No newline at end of file diff --git a/.gitignore b/.gitignore index bd42a08..1133ab4 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,6 @@ wheels/ .DS_Store -.git \ No newline at end of file +.git + +prompts/ diff --git a/app/models/user.py b/app/models/user.py index e9ed6bc..91b6490 100644 --- a/app/models/user.py +++ b/app/models/user.py @@ -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())