use tera::Tera;
use crate::config::GeneralServiceConfig;
use crate::dedicated_ai_server::connection::DedicatedAiServerConnection;

pub struct AppStateInner {
    pub config: GeneralServiceConfig,
    pub db: tokio_postgres::Client,
    pub tera: Tera,
    pub dedicated_ai: DedicatedAiServerConnection,
}

pub type AppState = std::sync::Arc<AppStateInner>;

pub struct AuthenticatedUserId {
    pub id: i32,
    pub name: String,
}
