# generated by datamodel-codegen:
#   filename:  <stdin>

from __future__ import annotations

from pydantic import BaseModel


class App(BaseModel):
    name: str


class Dirs(BaseModel):
    data_dir: str
    logs_dir: str
    temp_dir: str
    out_dir: str
    data_path: str
    logs_path: str
    temp_path: str
    out_path: str
    app_log_path: str


class Common(BaseModel):
    app_log_path: str


class Db1(BaseModel):
    url: str
    host: str
    user: str
    passwd: str
    db: str
    port: int
    min_connections: int
    max_connections: int
    connect_timeout: int


class Mysql(BaseModel):
    db1: Db1


class Postgres(BaseModel):
    db1: Db1


class Model(BaseModel):
    app: App
    dirs: Dirs
    common: Common
    mysql: Mysql
    postgres: Postgres
