package models import "time" // DomainResponseHeader stellt einen einzelnen HTTP-Response-Header dar, // den HAProxy für alle Antworten einer Domain mit `http-response set-header` // setzt. Mehrere Einträge pro Domain möglich; Name ist case-insensitive // unique (siehe Migration 0024). type DomainResponseHeader struct { ID int64 `gorm:"primaryKey" json:"id"` DomainID int64 `gorm:"column:domain_id" json:"domain_id"` Name string `gorm:"column:name" json:"name"` Value string `gorm:"column:value" json:"value"` Position int `gorm:"column:position" json:"position"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` } func (DomainResponseHeader) TableName() string { return "domain_response_headers" }