feat(migrations): Harden task audit tracking and optimize article templates
- Added migration to harden task audit tracking by modifying audit_logs and related tables. - Introduced operator_id to several tables for better tracking of actions. - Updated article_templates with new prompt templates for various article types, enhancing content generation. - Created prompt_rules and schedule_tasks tables to manage content generation rules and scheduling. - Added foreign key constraints to articles for better data integrity.
This commit is contained in:
@@ -126,7 +126,7 @@ func (s *WorkspaceService) TemplateCards(ctx context.Context) ([]TemplateCard, e
|
||||
TemplateKey: row.TemplateKey,
|
||||
TemplateName: row.TemplateName,
|
||||
OriginType: row.OriginType,
|
||||
PromptVisibility: row.PromptVisibility,
|
||||
PromptVisibility: effectivePromptVisibility(&row, actor.TenantID),
|
||||
}
|
||||
_ = json.Unmarshal(row.CardConfigJSON, &card.CardConfigJSON)
|
||||
cards = append(cards, card)
|
||||
|
||||
Reference in New Issue
Block a user