feat: add tenant-scoped rule and permission management

This commit is contained in:
wren
2026-05-21 22:03:08 +08:00
parent a2c2bf1969
commit 1f1bccf3b3
193 changed files with 64463 additions and 1771 deletions
@@ -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)