import alembic, even through too early

This commit is contained in:
2026-05-18 22:49:04 +08:00
parent d457c07f40
commit 4a48982412
7 changed files with 339 additions and 2 deletions
+2 -2
View File
@@ -56,9 +56,9 @@ class AutoID:
不再需要手动定义任何 prefix,全自动根据 __tablename__ 编码生成
支持子类自定义长度
"""
# 默认配置(如果子类不定义,则使用这些默认值)
# 默认配置
_id_prefix_len = 3 # 前缀长度
_id_payload_len = 22 # 主体长度ULID 转 Base62 最大约 22 位)
_id_payload_len = 22 # 主体长度
@classmethod
def id_length(cls) -> int: