b31d8d0096
- 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.
27 lines
479 B
Go
27 lines
479 B
Go
package domain
|
|
|
|
import "time"
|
|
|
|
type PromptRuleGroup struct {
|
|
ID int64
|
|
TenantID int64
|
|
Name string
|
|
SortOrder int
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type PromptRule struct {
|
|
ID int64
|
|
TenantID int64
|
|
GroupID *int64
|
|
Name string
|
|
PromptContent string
|
|
Scene *string
|
|
DefaultTone *string
|
|
DefaultWordCount *int
|
|
Status string
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|