albs_analytics/build_analitycs/build_analytics/models/db_config.py

10 lines
356 B
Python
Raw Normal View History

2023-02-27 19:51:53 +00:00
from pydantic import BaseModel, Field
class DbConfig(BaseModel):
name: str = Field(description="db name")
port: int = Field(description="db server port")
host: str = Field(description="db server ip/hostname")
username: str = Field(description="username to connect with")
password: str = Field(description="password to connect with1")