-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from zy7y/develop
Develop
- Loading branch information
Showing
14 changed files
with
114 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.2.4" | ||
__version__ = "0.2.5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,11 @@ | ||
from datetime import datetime | ||
from typing import Optional | ||
|
||
from sqlmodel import Column, DateTime, Field, SQLModel, func | ||
from sqlmodel import JSON, Field, SQLModel | ||
|
||
|
||
class SysMenu(SQLModel, table=True): | ||
__tablename__ = 'sys_menu' | ||
id: Optional[int] = Field(default=None, primary_key=True, description="主键") | ||
status: int = Field(default=1, description="状态 1有效 9 删除 5选中") | ||
created: datetime = Field(nullable=True, | ||
description="创建时间", | ||
default_factory=datetime.utcnow) | ||
modified: datetime = Field(default=None, | ||
description="更新时间", | ||
sa_column=Column(DateTime(), | ||
onupdate=func.now())) | ||
name: Optional[str] = Field(default=None, | ||
max_length=20, | ||
nullable=True, | ||
description="名称") | ||
icon: Optional[str] = Field(default=None, | ||
max_length=100, | ||
nullable=True, | ||
description="菜单图标") | ||
path: Optional[str] = Field(default=None, | ||
max_length=128, | ||
nullable=True, | ||
description="菜单url") | ||
type: int = Field(default=..., | ||
description="菜单类型 0目录 1组件 2按钮 3数据", | ||
index=True) | ||
component: Optional[str] = Field(default=None, | ||
max_length=128, | ||
nullable=True, | ||
description="组件地址") | ||
pid: Optional[int] = Field(default=None, nullable=True, description="父id") | ||
identifier: Optional[str] = Field(default=None, | ||
max_length=30, | ||
nullable=True, | ||
description="权限标识 user:add") | ||
api: Optional[str] = Field(default=None, | ||
max_length=128, | ||
nullable=True, | ||
description="接口地址") | ||
method: Optional[str] = Field(default=None, | ||
max_length=10, | ||
nullable=True, | ||
description="接口请求方式") | ||
class Aerich(SQLModel, table=True): | ||
__tablename__ = 'aerich' | ||
aerich_id: Optional[int] = Field(default=None, primary_key=True) | ||
version: str = Field(default=..., max_length=255) | ||
app: str = Field(default=..., max_length=100) | ||
content: dict = Field(default=..., sa_type=JSON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.