feat: add tenant-scoped rule and permission management
This commit is contained in:
@@ -14,6 +14,7 @@ class LeauditRagDataset(BaseModel):
|
||||
name: Mapped[str] = mapped_column(String(255), comment="知识库名称")
|
||||
description: Mapped[str] = mapped_column(Text, default="", comment="知识库描述")
|
||||
area: Mapped[str] = mapped_column(String(50), default="", comment="地区")
|
||||
tenantCode: Mapped[str | None] = mapped_column("tenant_code", String(64), comment="所属租户编码")
|
||||
isPublic: Mapped[bool] = mapped_column("is_public", Boolean, default=False)
|
||||
isDefault: Mapped[bool] = mapped_column("is_default", Boolean, default=False)
|
||||
collectionName: Mapped[str] = mapped_column("collection_name", String(100), unique=True)
|
||||
|
||||
Reference in New Issue
Block a user