fix(schema): expand knowledge source length

This commit is contained in:
langcaiye
2026-06-04 21:05:07 +08:00
committed by lyingbug
parent a12b6ff61b
commit 9e898ae72c
9 changed files with 77 additions and 6 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ type Knowledge struct {
// Description of the knowledge
Description string `json:"description"`
// Source of the knowledge (e.g. URL address for url type, "manual" for manual type)
Source string `json:"source"`
Source string `json:"source" gorm:"type:varchar(2048)"`
// Channel indicates through which channel the knowledge was ingested (web, api, browser_extension, wechat, etc.)
Channel string `json:"channel" gorm:"type:varchar(50);default:'web'"`
// Parse status of the knowledge