
    "i~                     X    d dl mZ d dlmZ d dlmZmZ  G d de      Zedefd       Zy)	    )	lru_cache)computed_field)BaseSettingsSettingsConfigDictc                   6   e Zd ZU dZeed<   dZeed<   dZeed<   dZeed<   d	Z	eed
<   dZ
eed<   dZeed<   dZeed<   dZeed<   dZeed<   dZeed<   dZeed<   dZeed<   dZeed<    eddd      Zeed ee   fd!              Zeed efd"              Zd%d$Zy#)&SettingszHospitality Orders Moduleapp_namedevelopmentapp_environmentzHpostgresql+psycopg2://postgres:postgres@ordini-db:5432/orders_managementdatabase_urlz+http://localhost:3300,http://localhost:3000backend_cors_originszhttp://localhost:8200public_base_urlzhttp://localhost:3300frontend_public_url admin_password	api_tokenclubdefault_staffz/data/platform_registry.sqlite3tenancy_registry_database   tenancy_session_duration_hoursz/data/push-vapid-private.pempush_vapid_private_key_filezmailto:admin@powerup.coolpush_vapid_subjecti  &safety_stock_notification_poll_secondsz.envzutf-8F)env_fileenv_file_encodingcase_sensitivereturnc                     | j                   j                  d      D cg c]#  }|j                         s|j                         % c}S c c}w )N,)r   splitstrip)selfitems     &apps/ordini/backend/app/core/config.pycors_origins_listzSettings.cors_origins_list   s;     *.)B)B)H)H)M^QUQ[Q[Q]

^^^s
   A	A	c                 V    | j                   j                         j                         dv S )N>   prod
production)r   r"   lowerr#   s    r%   is_productionzSettings.is_production   s(     ##))+1137MMM    Nc                     | j                   sy | j                  dv rt        d      | j                  dv rt        d      y )N>   r   r   zVORDINI_ADMIN_PASSWORD deve essere impostata a un valore non dimostrativo in produzione>   ordini-demo-tokenr   zQORDINI_API_TOKEN deve essere impostato a un valore non dimostrativo in produzione)r,   r   RuntimeErrorr   r+   s    r%   validate_runtimezSettings.validate_runtime#   sF    !!,.wxx>>66rss 7r-   )r   N)__name__
__module____qualname__r	   str__annotations__r   r   r   r   r   r   r   r   r   r   intr   r   r   r   model_configr   propertylistr&   boolr,   r1    r-   r%   r   r      s    /Hc/(OS(bL#b M#M2OS266NCIsM3%FsF*-"C-'EE9925*C5%vafgL_49 _  _ Nt N  Ntr-   r   r   c                      t               S )N)r   r<   r-   r%   get_settingsr>   ,   s
    :r-   N)		functoolsr   pydanticr   pydantic_settingsr   r   r   r>   r<   r-   r%   <module>rB      s8     # >"t| "tJ h  r-   