mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-12 06:55:49 +08:00
🐛 修复数据表创建
This commit is contained in:
parent
2032056bb5
commit
92b010f0a9
@ -45,7 +45,7 @@ def with_session(
|
||||
|
||||
|
||||
# https://github.com/tiangolo/sqlmodel/issues/264
|
||||
class BaseIDModel(SQLModel, registry=registry()):
|
||||
class BaseIDModel(SQLModel):
|
||||
id: Optional[int] = Field(default=None, primary_key=True, title='序号')
|
||||
|
||||
@classmethod
|
||||
|
Loading…
x
Reference in New Issue
Block a user