feat: switch base delivery to awx task logs

This commit is contained in:
mac
2026-07-23 18:36:24 +08:00
parent c2a3bbbdc0
commit a934380c9c
20 changed files with 1638 additions and 1243 deletions
-12
View File
@@ -16,18 +16,6 @@ const (
TaskCanceled = "canceled"
)
type DeploymentTarget struct {
ID uint64 `gorm:"primaryKey" json:"id"`
Name string `gorm:"size:128;not null;uniqueIndex" json:"name"`
TargetType string `gorm:"size:32;not null;index" json:"target_type"`
AWXInventoryID uint64 `gorm:"not null" json:"awx_inventory_id"`
AWXTemplateID uint64 `gorm:"not null" json:"awx_template_id"`
Enabled bool `gorm:"not null;default:true;index" json:"enabled"`
Metadata string `gorm:"type:json" json:"metadata"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type ResourceQuota struct {
ID uint64 `gorm:"primaryKey" json:"id"`
BusinessLineID uint64 `gorm:"not null;uniqueIndex:idx_resource_quota_scope,priority:1" json:"business_line_id"`