feat: scope articles by brand
This commit is contained in:
@@ -56,6 +56,7 @@ type Article struct {
|
||||
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
|
||||
WizardStateJson []byte `json:"wizard_state_json"`
|
||||
KolPromptID pgtype.Int8 `json:"kol_prompt_id"`
|
||||
BrandID int64 `json:"brand_id"`
|
||||
}
|
||||
|
||||
type ArticleTemplate struct {
|
||||
@@ -435,6 +436,21 @@ type KnowledgeChunksMetum struct {
|
||||
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
|
||||
}
|
||||
|
||||
type KnowledgeDeletedCleanupEvent struct {
|
||||
ID int64 `json:"id"`
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
KnowledgeItemID int64 `json:"knowledge_item_id"`
|
||||
Status string `json:"status"`
|
||||
AttemptCount int32 `json:"attempt_count"`
|
||||
AvailableAt pgtype.Timestamptz `json:"available_at"`
|
||||
LockedBy pgtype.Text `json:"locked_by"`
|
||||
LockedAt pgtype.Timestamptz `json:"locked_at"`
|
||||
LastError pgtype.Text `json:"last_error"`
|
||||
CompletedAt pgtype.Timestamptz `json:"completed_at"`
|
||||
CreatedAt pgtype.Timestamptz `json:"created_at"`
|
||||
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
|
||||
}
|
||||
|
||||
type KnowledgeGroup struct {
|
||||
ID int64 `json:"id"`
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
|
||||
Reference in New Issue
Block a user