package mongodb

import (
	"time"

	v1alpha1 "github.com/pfeifferj/container-mom-go/pkg/apis/containermom/v1alpha1"
)

// MongoDeployment represents a deployment stored in MongoDB
type MongoDeployment struct {
	ID             string                        `bson:"_id"`
	Name           string                        `bson:"name"`
	Namespace      string                        `bson:"namespace"`
	SourceType     string                        `bson:"sourceType"`
	GitURL         string                        `bson:"gitUrl"`
	ContainerImage string                        `bson:"containerImage"`
	Regions        []string                      `bson:"regions"`
	Domain         v1alpha1.DomainSpec           `bson:"domain"`
	UseWildcard    bool                          `bson:"useWildcard"`
	Subdomain      string                        `bson:"subdomain"`
	Status         string                        `bson:"status"`
	CreatedAt      time.Time                     `bson:"createdAt"`
	UpdatedAt      time.Time                     `bson:"updatedAt"`
	Env            []v1alpha1.EnvVar             `bson:"env"`
	Resources      v1alpha1.ResourceRequirements `bson:"resources"`
}
