mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-09 17:57:06 +08:00
feat: data permission
This commit is contained in:
@@ -17,6 +17,7 @@ class CoreDatasource(SQLModel, table=True):
|
||||
create_time: datetime = Field(sa_column=Column(DateTime(timezone=False), nullable=True))
|
||||
create_by: int = Field(sa_column=Column(BigInteger()))
|
||||
status: str = Field(max_length=64, nullable=True)
|
||||
num: str = Field(max_length=256, nullable=True)
|
||||
|
||||
|
||||
class CoreTable(SQLModel, table=True):
|
||||
@@ -51,6 +52,7 @@ class CreateDatasource(BaseModel):
|
||||
create_time: Optional[datetime] = None
|
||||
create_by: int = 0
|
||||
status: str = ''
|
||||
num: str = ''
|
||||
tables: List[CoreTable] = []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user