package domain

import "time"

// AppSettings is the single admin-editable runtime settings document
// ({_id:"app"}, §4.8). Env vars are the defaults; these override where the
// spec marks them overridable.
type AppSettings struct {
	ID                      string    `bson:"_id" json:"-"`
	BrandingName            string    `bson:"brandingName" json:"brandingName"`
	AtomizerBaseURLOverride string    `bson:"atomizerBaseUrlOverride" json:"atomizerBaseUrlOverride"`
	HideCompetingClaims     bool      `bson:"hideCompetingClaims" json:"hideCompetingClaims"`
	DefaultPollIntervalSec  int       `bson:"defaultPollIntervalSec" json:"defaultPollIntervalSec"`
	DefaultCustomerBudget   float64   `bson:"defaultCustomerBudget" json:"defaultCustomerBudget"`
	UpdatedAt               time.Time `bson:"updatedAt" json:"updatedAt"`
	Version                 int64     `bson:"version" json:"version"`
}
