otter-space-sdk/pkg/models/config.go
SoXX e53fd2c9a5
All checks were successful
Gitea Build Check / Build (pull_request) Successful in 3m1s
Gitea Build Check / Build (push) Successful in 2m49s
feat(migration): added migration toggle
2024-11-06 10:55:47 +01:00

14 lines
497 B
Go

package models
type DatabaseConfig struct {
Endpoint string `env:"DB_ENDPOINT,required"`
Username string `env:"DB_USERNAME,required"`
Password string `env:"DB_PASSWORD,required,unset"`
Database string `env:"DB_DATABASE,required"`
Port int `env:"DB_PORT,required" envDefault:"5432"`
SSL bool `env:"DB_SSL,required" envDefault:"true"`
Timezone string `env:"DB_TIMEZONE,required" envDefault:"Europe/Berlin"`
Debug bool `env:"DB_DEBUG" envDefault:"false"`
Migrate bool
}