use axum::http::StatusCode; pub mod attachment; pub mod auth; pub mod auth_token; pub mod conversation; pub mod conversation_member; pub mod message; pub mod reaction; pub mod sync; pub mod user; pub mod workspace; pub mod workspace_invitation; pub mod workspace_member; pub mod ws; pub(crate) fn db_err(e: sqlx::Error) -> (StatusCode, String) { (StatusCode::INTERNAL_SERVER_ERROR, e.to_string()) }