Add migrations

This commit is contained in:
2020-10-08 14:08:50 +02:00
parent 98d8c2e5d8
commit 7ee52c758b
10 changed files with 779 additions and 141 deletions

15
models/config_model.go Normal file
View File

@@ -0,0 +1,15 @@
package models
type Config struct {
// Set the environment: staging or production
APP_ENVIRONMENT string `env:"APP_ENVIRONMENT" envDefault:"staging"`
// Database settings
DB_HOST string `env:"DB_HOST" envDefault:"localhost"`
DB_PORT uint16 `env:"DB_PORT" envDefault:"8081"`
DB_USER string `env:"DB_USER" envDefault:"web"`
DB_PASSWORD string `env:"DB_PASSWORD" envDefault:"example"`
DB_DATABASE string `env:"DB_DATABASE" envDefault:"web"`
DB_MAXCONNECTIONS uint `env:"DB_MAXCONNECTIONS" envDefault:"5"`
}