custom id prefix and payload length
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user