18 lines
451 B
Python
18 lines
451 B
Python
from ApiLayers.AllConfigs import HostConfig
|
|
|
|
|
|
class Database:
|
|
HOST: str = HostConfig.MAIN_HOST
|
|
PORT: int = 5434
|
|
SQL: str = "postgresql+psycopg2"
|
|
USERNAME: str = "berkay_wag_user"
|
|
PASSWORD: str = "berkay_wag_user_password"
|
|
DATABASE_NAME: str = "wag_database"
|
|
DATABASE_URL: str = f"{SQL}://{USERNAME}:{PASSWORD}@{HOST}:{PORT}/{DATABASE_NAME}"
|
|
|
|
|
|
class PaginateConfig:
|
|
DEFAULT_SIZE = 10
|
|
MIN_SIZE = 10
|
|
MAX_SIZE = 50
|