// Database Configuration Package for Jovvix Quiz Application
//
// Author: Molla Samser (Founder, RSK World)
// Designer & Tester: Rima Khatun
// Website: https://rskworld.in
// Contact: hello@rskworld.in | +91 93305 39277
// Address: Nutanhat, Mongolkote, Purba Burdwan, West Bengal, India, 713147

package config

// DBConfig type of db config object
type DBConfig struct {
	Host           string `envconfig:"DB_HOST" validate:"required"`
	Port           int    `envconfig:"DB_PORT" validate:"required"`
	Username       string `envconfig:"DB_USERNAME" validate:"required"`
	Password       string `envconfig:"DB_PASSWORD" validate:"required"`
	Db             string `envconfig:"DB_NAME" validate:"required"`
	QueryString    string `envconfig:"DB_QUERYSTRING"`
	MigrationDir   string `required:"true" envconfig:"MIGRATION_DIR" validate:"required"`
	Dialect        string `required:"true" envconfig:"DB_DIALECT" validate:"required"`
	SQLiteFilePath string `envconfig:"SQLITE_FILEPATH"`
}
