import alembic, even through too early
This commit is contained in:
+2
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user