haixunMaster/haixun-backend/internal/model/knowledge_graph/domain/entity/graph.go

26 lines
1018 B
Go
Raw Normal View History

2026-06-24 10:02:42 +00:00
package entity
import (
libkg "haixun-backend/internal/library/knowledge"
)
const CollectionName = "topic_knowledge_graphs"
type Graph struct {
ID string `bson:"_id"`
TenantID string `bson:"tenant_id"`
OwnerUID string `bson:"owner_uid"`
BrandID string `bson:"brand_id"`
2026-06-24 16:48:56 +00:00
TopicID string `bson:"topic_id,omitempty"`
2026-06-24 10:02:42 +00:00
LegacyPersonaID string `bson:"persona_id,omitempty"`
Seed string `bson:"seed"`
Nodes []libkg.Node `bson:"nodes"`
Edges []libkg.Edge `bson:"edges"`
BraveSources []libkg.BraveSource `bson:"brave_sources"`
2026-06-24 16:48:56 +00:00
ExpandStrategy string `bson:"expand_strategy,omitempty"`
2026-06-24 10:02:42 +00:00
PainTagCount int `bson:"pain_tag_count"`
GeneratedAt int64 `bson:"generated_at"`
CreateAt int64 `bson:"create_at"`
UpdateAt int64 `bson:"update_at"`
}