Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

example of uuid (#25380)

Asuka Minato649242f82bae
diff --git a/api/models/dataset.py b/api/models/dataset.py
index 38b5c74de15..07f3eb18db8 100644
--- a/api/models/dataset.py
+++ b/api/models/dataset.py
@@ -49,7 +49,7 @@ class Dataset(Base):
INDEXING_TECHNIQUE_LIST = ["high_quality", "economy", None]
PROVIDER_LIST = ["vendor", "external", None]
- id = mapped_column(StringUUID, server_default=sa.text("uuid_generate_v4()"))
+ id: Mapped[str] = mapped_column(StringUUID, server_default=sa.text("uuid_generate_v4()"))
tenant_id: Mapped[str] = mapped_column(StringUUID)
name: Mapped[str] = mapped_column(String(255))
description = mapped_column(sa.Text, nullable=True)