Skip to content

Commit c30a8b5

Browse files
lpi-tnCopilot
andauthored
Update welearn_database/data/models/corpus_related.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d116bec commit c30a8b5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

welearn_database/data/models/corpus_related.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ class CorpusNameEmbeddingModelLang(Base):
106106
__tablename__ = "corpus_name_embedding_model_lang"
107107
__table_args__ = {"schema": schema_name}
108108
__read_only__ = True
109-
source_name: Mapped[str] = mapped_column(primary_key=True)
110-
corpus_id: Mapped[UUID]
109+
source_name: Mapped[str] = mapped_column()
110+
corpus_id: Mapped[UUID] = mapped_column(primary_key=True)
111111
embedding_model_id: Mapped[UUID]
112112
title: Mapped[str]
113-
lang: Mapped[str]
113+
lang: Mapped[str] = mapped_column(primary_key=True)
114114
used_since: Mapped[datetime]
115115
category_id: Mapped[UUID]
116116

0 commit comments

Comments
 (0)