package backend

import (
	"context"
)

type DatabaseConfig struct {
	Name             string `json:"name"`
	TargetPath       string `json:"targetPath"`
	ModelPackagePath string `json:"modelPackagePath"`
}

type ProjectConfig struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

type Settings struct {
	Theme                   string           `json:"theme"`
	Language                string           `json:"language"`
	Notifications           bool             `json:"notifications"`
	AutoStart               bool             `json:"autoStart"`
	MysqlModelPath          string           `json:"mysqlModelPath"`
	DefaultQueryPackagePath string           `json:"defaultQueryPackagePath"`
	ModelBasePath           string           `json:"modelBasePath"`
	SwaggerFilePath         string           `json:"swaggerFilePath"`
	Databases               []DatabaseConfig `json:"databases"`
	Projects                []ProjectConfig  `json:"projects"`
}

type App struct {
	ctx      context.Context
	settings Settings
}
