feat: add governed public knowledge retrieval
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
from datetime import date, datetime
|
||||
from typing import Any
|
||||
|
||||
from sqlalchemy import JSON, BigInteger, Date, DateTime, String, Text
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from app.model.base import Base
|
||||
|
||||
|
||||
class FinKnowledgeMeta(Base):
|
||||
__tablename__ = "fin_knowledge_meta"
|
||||
|
||||
id: Mapped[int] = mapped_column(BigInteger, primary_key=True)
|
||||
knowledge_type: Mapped[str] = mapped_column(String(32))
|
||||
title: Mapped[str] = mapped_column(String(256))
|
||||
source_file: Mapped[str | None] = mapped_column(String(256))
|
||||
minio_path: Mapped[str | None] = mapped_column(String(512))
|
||||
milvus_collection: Mapped[str] = mapped_column(String(64))
|
||||
version: Mapped[str | None] = mapped_column(String(16))
|
||||
effective_date: Mapped[date | None] = mapped_column(Date)
|
||||
expire_date: Mapped[date | None] = mapped_column(Date)
|
||||
content_text: Mapped[str] = mapped_column(Text)
|
||||
tags: Mapped[list[Any] | None] = mapped_column(JSON)
|
||||
reviewer_id: Mapped[int | None] = mapped_column(BigInteger)
|
||||
review_status: Mapped[str] = mapped_column(String(16))
|
||||
status: Mapped[str] = mapped_column(String(16))
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime)
|
||||
updated_at: Mapped[datetime] = mapped_column(DateTime)
|
||||
Reference in New Issue
Block a user