use anyhow::Result;
use diesel::{ExpressionMethods, QueryDsl};
use diesel_async::RunQueryDsl;
use uuid::Uuid;
use crate::pool::get_pg_pool;
use crate::schema::users_to_organizations;
/// Gets the organization ID for a user
///
/// # Arguments
/// * `user_id` - The UUID of the user
///
/// # Returns
/// * `Result