custom id prefix and payload length

This commit is contained in:
2026-05-18 22:24:22 +08:00
parent 333dd9dd35
commit abcdea2645
3 changed files with 37 additions and 14 deletions
+4
View File
@@ -5,6 +5,10 @@ from .base import AutoID, Base
class User(Base, AutoID):
__tablename__ = "users"
# 自定义配置
# _id_prefix_len = 4
# _id_payload_len = 16
google_id = Column(String, unique=True, index=True)
email = Column(String, unique=True, index=True)