From c9aa7d4b4ceb57517fc810b1bde9a5f3321c5e86 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 10 Jun 2026 21:32:49 +0000 Subject: [PATCH 1/5] feat(memory): add team-level memory attached to the team object Mirrors the personal memory system for teams: - team_memory table (one row per team, FK to team, upsert on team_id) - TeamMemoryRepo / TeamMemoryService ports + PgTeamMemoryRepo - TeamMemoryServiceImpl with team-focused generation and judge prompts, 24h freshness window, and a Postgres advisory lock so concurrent members don't trigger duplicate generations - GET /memory/team endpoint on the document cognition service - injected into chat and scheduled-agent system prompts alongside https://claude.ai/code/session_01CyfX47q3gqFp49pLrcco8b --- .../src/api/context/mod.rs | 5 + .../src/api/context/test.rs | 9 + .../document_cognition_service/src/api/mod.rs | 4 + .../src/api/stream/chat_message/mod.rs | 16 +- .../src/api/swagger.rs | 1 + .../document_cognition_service/src/main.rs | 10 + ...0260610212946_create_team_memory_table.sql | 9 + rust/cloud-storage/memory/src/domain/mod.rs | 6 +- rust/cloud-storage/memory/src/domain/ports.rs | 44 +++ .../memory/src/domain/service.rs | 8 +- .../memory/src/domain/team_service.rs | 287 ++++++++++++++++++ .../memory/src/domain/team_service/test.rs | 68 +++++ .../memory/src/inbound/axum_router.rs | 49 ++- rust/cloud-storage/memory/src/outbound.rs | 1 + .../src/outbound/pg_team_memory_repo.rs | 122 ++++++++ .../src/outbound/pg_team_memory_repo/test.rs | 188 ++++++++++++ .../outbound/inprocess_executor/agent_task.rs | 45 ++- 17 files changed, 860 insertions(+), 12 deletions(-) create mode 100644 rust/cloud-storage/macro_db_client/migrations/20260610212946_create_team_memory_table.sql create mode 100644 rust/cloud-storage/memory/src/domain/team_service.rs create mode 100644 rust/cloud-storage/memory/src/domain/team_service/test.rs create mode 100644 rust/cloud-storage/memory/src/outbound/pg_team_memory_repo.rs create mode 100644 rust/cloud-storage/memory/src/outbound/pg_team_memory_repo/test.rs diff --git a/rust/cloud-storage/document_cognition_service/src/api/context/mod.rs b/rust/cloud-storage/document_cognition_service/src/api/context/mod.rs index d7b2cef35b..f9106afc5e 100644 --- a/rust/cloud-storage/document_cognition_service/src/api/context/mod.rs +++ b/rust/cloud-storage/document_cognition_service/src/api/context/mod.rs @@ -54,6 +54,10 @@ pub(crate) type NotificationIngressType = SqsNotificationIngress; pub type DcsMemoryService = memory::domain::service::MemoryServiceImpl; +pub type DcsTeamMemoryService = memory::domain::team_service::TeamMemoryServiceImpl< + memory::outbound::pg_team_memory_repo::PgTeamMemoryRepo, +>; + /// Concrete MCP router state for DCS. pub type DcsMcpRouterState = mcp_client::inbound::McpRouterState< mcp_client::outbound::pg_server_repo::PgServerRepo, @@ -81,6 +85,7 @@ pub struct ApiContext { pub stream_repo: Arc, pub document_tool_context: ToolDocumentToolContext, pub memory_service: Arc, + pub team_memory_service: Arc, pub properties_tool_context: ToolPropertiesToolContext, pub email_tool_context: ToolEmailToolContext, pub call_tool_context: ToolCallToolContext, diff --git a/rust/cloud-storage/document_cognition_service/src/api/context/test.rs b/rust/cloud-storage/document_cognition_service/src/api/context/test.rs index bae5de0480..a18b7449a0 100644 --- a/rust/cloud-storage/document_cognition_service/src/api/context/test.rs +++ b/rust/cloud-storage/document_cognition_service/src/api/context/test.rs @@ -342,6 +342,14 @@ pub async fn test_api_context(pool: sqlx::Pool) -> std::sync::Ar all_tools, )); + let team_memory_repo = memory::outbound::pg_team_memory_repo::PgTeamMemoryRepo::new(pool.clone()); + let team_memory_service = Arc::new(memory::domain::team_service::TeamMemoryServiceImpl::new( + pool.clone(), + team_memory_repo, + tool_service_context.clone(), + ai_tools::all_tools(), + )); + let api_context = ApiContext { db: pool.clone(), sqs_client: Arc::new(sqs_client), @@ -364,6 +372,7 @@ pub async fn test_api_context(pool: sqlx::Pool) -> std::sync::Ar stream_repo: MockStreamRepo::new(), document_tool_context: document_tool_context.clone(), memory_service, + team_memory_service, properties_tool_context, email_tool_context, call_tool_context, diff --git a/rust/cloud-storage/document_cognition_service/src/api/mod.rs b/rust/cloud-storage/document_cognition_service/src/api/mod.rs index 871ef4457c..f57485bed8 100644 --- a/rust/cloud-storage/document_cognition_service/src/api/mod.rs +++ b/rust/cloud-storage/document_cognition_service/src/api/mod.rs @@ -71,6 +71,7 @@ pub async fn setup_and_serve(state: ApiContext) -> anyhow::Result<()> { fn api_router(api_context: ApiContext) -> Router { let memory_service = api_context.memory_service.clone(); + let team_memory_service = api_context.team_memory_service.clone(); let mcp_state = api_context.mcp_state.clone(); @@ -95,6 +96,9 @@ fn api_router(api_context: ApiContext) -> Router { .nest("/preview", preview::router()) .nest("/id_mapping", id_mapping::router()) .merge(memory::inbound::axum_router::memory_router(memory_service)) + .merge(memory::inbound::axum_router::team_memory_router( + team_memory_service, + )) .merge(mcp_client::inbound::mcp_router(mcp_state.clone())) .with_state(api_context.clone()) .route( diff --git a/rust/cloud-storage/document_cognition_service/src/api/stream/chat_message/mod.rs b/rust/cloud-storage/document_cognition_service/src/api/stream/chat_message/mod.rs index eca85e96df..bf33710989 100644 --- a/rust/cloud-storage/document_cognition_service/src/api/stream/chat_message/mod.rs +++ b/rust/cloud-storage/document_cognition_service/src/api/stream/chat_message/mod.rs @@ -28,7 +28,7 @@ use macro_auth::headers::AccessTokenExtractor; use macro_db_client::dcs::create_chat; use macro_user_id::user_id::MacroUserIdStr; use mcp_client::domain::ports::McpServerStore; -use memory::domain::MemoryService; +use memory::domain::{MemoryService, TeamMemoryService}; use model::user::UserContext; use model_entity::{Entity, EntityType}; use models_permissions::share_permission::SharePermissionV2; @@ -289,6 +289,15 @@ async fn send_chat_message_inner( .ok() .flatten(); + // Fetch the memory of the user's team, if any (triggers background generation if stale/missing) + let team_memory = ctx + .team_memory_service + .get_or_generate_team_memory((*user_id).clone()) + .await + .inspect_err(|e| tracing::error!(error = ?e, "failed to fetch team memory")) + .ok() + .flatten(); + // Build the chat messages let tools_prompt = choose_tools_prompt(&payload, &*ctx.all_tools_prompt); let ai_request = build_chat_messages(&chat, &payload, all_resolved_parts).map_err(|err| { @@ -326,6 +335,11 @@ async fn send_chat_message_inner( prompt.push_str(memory); prompt.push_str("\n"); } + if let Some(memory) = team_memory.as_deref() { + prompt.push_str("\n\n\n"); + prompt.push_str(memory); + prompt.push_str("\n"); + } prompt }; diff --git a/rust/cloud-storage/document_cognition_service/src/api/swagger.rs b/rust/cloud-storage/document_cognition_service/src/api/swagger.rs index 2a16cd4cf1..5439fa7acc 100644 --- a/rust/cloud-storage/document_cognition_service/src/api/swagger.rs +++ b/rust/cloud-storage/document_cognition_service/src/api/swagger.rs @@ -80,6 +80,7 @@ use utoipa::OpenApi; stream_stop::stop_chat_stream, structured_completion::structured_completion, memory_api::get_memory_handler, + memory_api::get_team_memory_handler, mcp_api::list_servers, mcp_api::add_server, mcp_api::update_server, diff --git a/rust/cloud-storage/document_cognition_service/src/main.rs b/rust/cloud-storage/document_cognition_service/src/main.rs index ce2eabeaba..aec19da5cd 100644 --- a/rust/cloud-storage/document_cognition_service/src/main.rs +++ b/rust/cloud-storage/document_cognition_service/src/main.rs @@ -400,6 +400,15 @@ async fn main() -> anyhow::Result<()> { all_tools, )); + // Build team memory service + let team_memory_repo = memory::outbound::pg_team_memory_repo::PgTeamMemoryRepo::new(db.clone()); + let team_memory_service = Arc::new(memory::domain::team_service::TeamMemoryServiceImpl::new( + db.clone(), + team_memory_repo, + tool_service_context.clone(), + ai_tools::all_tools(), + )); + tracing::info!("initialized memory service"); let mcp_credentials_key_b64 = match config.environment { @@ -448,6 +457,7 @@ async fn main() -> anyhow::Result<()> { stream_repo, document_tool_context, memory_service, + team_memory_service, properties_tool_context, email_tool_context: email_tool_context.clone(), call_tool_context, diff --git a/rust/cloud-storage/macro_db_client/migrations/20260610212946_create_team_memory_table.sql b/rust/cloud-storage/macro_db_client/migrations/20260610212946_create_team_memory_table.sql new file mode 100644 index 0000000000..9264f1bfdd --- /dev/null +++ b/rust/cloud-storage/macro_db_client/migrations/20260610212946_create_team_memory_table.sql @@ -0,0 +1,9 @@ +-- Team-level memory, one row per team (mirrors the per-user memory table). +CREATE TABLE team_memory ( + id UUID PRIMARY KEY, + team_id UUID NOT NULL REFERENCES team (id) ON DELETE CASCADE, + memory TEXT NOT NULL, + created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), + updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), + CONSTRAINT team_memory_team_id_unique UNIQUE (team_id) +); diff --git a/rust/cloud-storage/memory/src/domain/mod.rs b/rust/cloud-storage/memory/src/domain/mod.rs index fa3d23c5b1..b65ced577f 100644 --- a/rust/cloud-storage/memory/src/domain/mod.rs +++ b/rust/cloud-storage/memory/src/domain/mod.rs @@ -1,4 +1,8 @@ pub mod ports; pub mod service; +pub mod team_service; -pub use ports::{Memory, MemoryError, MemoryRecord, MemoryRepo, MemoryService, Result}; +pub use ports::{ + Memory, MemoryError, MemoryRecord, MemoryRepo, MemoryService, Result, TeamMemoryRepo, + TeamMemoryService, TeamOverview, +}; diff --git a/rust/cloud-storage/memory/src/domain/ports.rs b/rust/cloud-storage/memory/src/domain/ports.rs index 45f87ef05d..ec75cbe62d 100644 --- a/rust/cloud-storage/memory/src/domain/ports.rs +++ b/rust/cloud-storage/memory/src/domain/ports.rs @@ -54,3 +54,47 @@ pub trait MemoryService: Send + Sync + 'static { user: MacroUserIdStr<'static>, ) -> impl Future>> + Send; } + +/// A snapshot of team data used to ground team memory generation. +#[derive(Debug)] +pub struct TeamOverview { + /// The team's display name. + pub name: String, + /// Macro user ids of the team's members. + pub member_ids: Vec, +} + +pub trait TeamMemoryRepo: Send + Sync + 'static { + fn save_team_memory( + &self, + memory: &Memory, + team_id: Uuid, + ) -> impl Future> + Send; + fn get_latest_team_memory( + &self, + team_id: Uuid, + ) -> impl Future>> + Send; + fn get_team_memory_by_id( + &self, + team_id: Uuid, + id: Uuid, + ) -> impl Future> + Send; + /// Resolve the team the user belongs to, if any. + fn get_user_team_id( + &self, + user: MacroUserIdStr, + ) -> impl Future>> + Send; + /// Fetch the team's name and member list, or `None` if the team does not exist. + fn get_team_overview( + &self, + team_id: Uuid, + ) -> impl Future>> + Send; +} + +pub trait TeamMemoryService: Send + Sync + 'static { + /// Get the latest memory for the user's team, if the user belongs to one. + fn get_or_generate_team_memory( + &self, + user: MacroUserIdStr<'static>, + ) -> impl Future>> + Send; +} diff --git a/rust/cloud-storage/memory/src/domain/service.rs b/rust/cloud-storage/memory/src/domain/service.rs index fac4a1cf2b..2dfd47eafb 100644 --- a/rust/cloud-storage/memory/src/domain/service.rs +++ b/rust/cloud-storage/memory/src/domain/service.rs @@ -193,7 +193,7 @@ where } // 2nd pass: judge the memory quality - judge_memory(&memory).await?; + judge_memory(JUDGE_PROMPT, &memory).await?; self.memory_repo.save_memory(&memory, user).await?; Ok(memory) @@ -218,8 +218,8 @@ fn build_generation_system_prompt( prompt } -#[tracing::instrument(skip(memory), err)] -async fn judge_memory(memory: &str) -> super::Result<()> { +#[tracing::instrument(skip(judge_prompt, memory), err)] +pub(crate) async fn judge_memory(judge_prompt: &str, memory: &str) -> super::Result<()> { let user_message = format!( "Evaluate this memory and respond with ONLY a JSON object \ (no markdown, no code fences):\n\ @@ -227,7 +227,7 @@ async fn judge_memory(memory: &str) -> super::Result<()> { ---\n\n{memory}" ); - let response = agent::complete(JUDGE_MODEL, JUDGE_PROMPT, &user_message) + let response = agent::complete(JUDGE_MODEL, judge_prompt, &user_message) .await .map_err(|e| anyhow::anyhow!(e))?; diff --git a/rust/cloud-storage/memory/src/domain/team_service.rs b/rust/cloud-storage/memory/src/domain/team_service.rs new file mode 100644 index 0000000000..bf3b170b3d --- /dev/null +++ b/rust/cloud-storage/memory/src/domain/team_service.rs @@ -0,0 +1,287 @@ +#[cfg(test)] +mod test; + +use super::ports::*; +use super::service::judge_memory; +use agent::types::{ChatMessage, ChatMessageContent, Role}; +use agent::{AgentLoop, AgentModel, StreamPart}; +use ai_tools::{ToolServiceContext, ToolSetWithPrompt}; +use chrono::Utc; +use futures::stream::StreamExt; +use macro_env::Environment; +use macro_user_id::user_id::MacroUserIdStr; +use macro_uuid::Uuid; +use std::sync::Arc; + +static GENERATION_MODEL: AgentModel = AgentModel::Smart; + +static GENERATE_TEAM_MEMORY_PROMPT: &str = "\ +Use tool calls to research the team identified in the system prompt: what the \ +team does, who is on it, and what it is working on. Look at shared projects, \ +documents, channels, and emails, and search for content created by team members. + +Then generate a ~1000-3000 word memory about the team that will be prepended to \ +future prompts for every member of the team. Focus on: +- What the team/company does and who its customers are +- Team members, their roles, and areas of ownership +- Current projects, priorities, and deadlines +- Shared domain knowledge, terminology, and conventions +- Recurring processes and how the team communicates and works together + +Only include team-level context that is useful to every member of the team. \ +Do not include personal details about individual members beyond their role on \ +the team. + +If a previous team memory is provided in the system prompt, use it as the \ +baseline for the new memory. Preserve still-accurate durable facts, verify and \ +update it with fresh tool research, add important new context, and remove \ +obsolete or unsupported details. + +Don't include things that would make sense to find via tool search at runtime. \ +Focus on context that is useful as permanent background knowledge. + +CRITICAL: Your response must contain ONLY the memory text. \ +No preamble, no postscript, no commentary, no \"Let me...\", no \"Here is...\". \ +Do not narrate your research process. Do not address the user. \ +Just output the raw memory text starting with the first substantive line."; + +static TEAM_JUDGE_PROMPT: &str = "\ +You are a strict quality judge for AI-generated team memory profiles. + +A \"team memory\" is a ~1000-3000 word summary of a team prepended to future AI \ +prompts for every member of the team. A good team memory is built from rich data: \ +documents the team wrote, projects it manages, emails and channel messages between \ +members, and search results showing the team's work. + +REJECT if ANY of the following are true: +- The memory is based on insufficient data (e.g. only a handful of chat titles, \ + no documents, no projects, no emails). A memory built from a nearly empty \ + workspace is useless speculation. +- It is mostly guesswork or hedged inferences (\"likely\", \"suggests\", \"may\") \ + rather than concrete facts derived from actual content. +- It is under ~500 words of substantive content. +- It lacks specific details about the team's actual work, projects, customers, \ + or processes. +- It is a profile of a single member rather than the team as a whole. +- It contains narration about the research process (\"I found...\", \"The workspace has...\"). + +ACCEPT only if the memory contains concrete, specific, actionable context derived \ +from substantial workspace data (documents, code, projects, emails, messages) that \ +would meaningfully improve future AI interactions for every member of the team."; + +pub struct TeamMemoryServiceImpl { + db: sqlx::PgPool, + team_memory_repo: Rpo, + tool_context: ToolServiceContext, + tools: ToolSetWithPrompt, +} + +impl TeamMemoryServiceImpl { + pub fn new( + db: sqlx::PgPool, + team_memory_repo: Rpo, + tool_context: ToolServiceContext, + tools: ToolSetWithPrompt, + ) -> Self { + Self { + db, + team_memory_repo, + tool_context, + tools, + } + } +} + +/// Default max age for team memory freshness (1 day). +const MAX_AGE: std::time::Duration = std::time::Duration::from_hours(24); + +impl TeamMemoryService for TeamMemoryServiceImpl +where + Rpo: TeamMemoryRepo, +{ + #[tracing::instrument(skip(self), err)] + async fn get_or_generate_team_memory( + &self, + user: MacroUserIdStr<'static>, + ) -> super::Result> { + let Some(team_id) = self.team_memory_repo.get_user_team_id(user.clone()).await? else { + return Ok(None); + }; + + let record = self + .team_memory_repo + .get_latest_team_memory(team_id) + .await?; + + let needs_generation = match &record { + Some(r) => { + let age = Utc::now() - r.updated_at; + age > chrono::Duration::from_std(MAX_AGE).unwrap_or(chrono::TimeDelta::MAX) + } + None => true, + }; + + let env = Environment::new_or_prod(); + if needs_generation && !matches!(env, Environment::Local) { + let previous_memory = record.as_ref().map(|r| r.memory.clone()); + let pool = self.db.clone(); + let tool_context = self.tool_context.clone(); + let toolset = self.tools.toolset.clone(); + let prompt: Box = + Box::new(self.tools.prompt.to_string()); + tokio::spawn(async move { + // Unlike personal memory, every member of a (possibly large) + // team can trigger a regeneration while one is already in + // flight, so generations are serialized cross-instance via a + // Postgres advisory lock. + let _lock = match try_acquire_generation_lock(&pool, team_id).await { + Ok(Some(lock)) => lock, + Ok(None) => { + tracing::debug!(%team_id, "team memory generation already in progress"); + return; + } + Err(e) => { + tracing::error!(error = ?e, %team_id, "failed to acquire team memory generation lock"); + return; + } + }; + let repo = + crate::outbound::pg_team_memory_repo::PgTeamMemoryRepo::new(pool.clone()); + let tools = ToolSetWithPrompt { toolset, prompt }; + let svc = TeamMemoryServiceImpl::new(pool, repo, tool_context, tools); + match svc + .generate_team_memory(team_id, user.clone(), previous_memory) + .await + { + Ok(_) => tracing::info!(%team_id, "team memory generated"), + Err(MemoryError::Rejected(reason)) => { + tracing::warn!(%team_id, %reason, "team memory rejected by judge") + } + Err(e) => { + tracing::error!(%team_id, error = ?e, "team memory generation failed") + } + } + }); + } + + Ok(record.map(|r| r.memory)) + } +} + +impl TeamMemoryServiceImpl +where + Rpo: TeamMemoryRepo, +{ + /// Generate a fresh team memory by researching the team's workspace with + /// the access of the `user` who triggered the refresh. + #[tracing::instrument(skip(self), err)] + async fn generate_team_memory( + &self, + team_id: Uuid, + user: MacroUserIdStr<'static>, + previous_memory: Option, + ) -> super::Result { + let overview = self + .team_memory_repo + .get_team_overview(team_id) + .await? + .ok_or_else(|| anyhow::anyhow!("team {team_id} does not exist"))?; + + let system_prompt = build_team_generation_system_prompt( + &self.tools.prompt, + &user, + team_id, + &overview, + &Utc::now().to_rfc2822(), + previous_memory.as_deref(), + ); + + let agent_loop = AgentLoop::new().with_model(GENERATION_MODEL); + let toolset: Arc + Send + Sync> = + self.tools.toolset.clone() as _; + let mut session = agent_loop + .session( + toolset, + Arc::new(self.tool_context.clone()), + &system_prompt, + user.clone(), + ) + .await; + + let user_msg = ChatMessage { + content: ChatMessageContent::Text(GENERATE_TEAM_MEMORY_PROMPT.to_string()), + role: Role::User, + attachments: None, + }; + let rig_messages = agent::to_rig_messages(&[user_msg]); + + let mut content = String::new(); + { + let mut stream = session.send_message(rig_messages).await?; + + while let Some(next) = stream.next().await { + let part = next?; + if let StreamPart::Content(text) = part { + content.push_str(&text); + } + } + } + + let memory = content.trim().to_string(); + if memory.is_empty() { + return Err(MemoryError::NoGeneration); + } + + // 2nd pass: judge the memory quality + judge_memory(TEAM_JUDGE_PROMPT, &memory).await?; + + self.team_memory_repo + .save_team_memory(&memory, team_id) + .await?; + Ok(memory) + } +} + +/// Try to take the cross-instance generation lock for a team. +/// +/// Returns a connection holding a Postgres advisory lock, or `None` when +/// another generation for the same team already holds it. The connection is +/// detached from the pool so that dropping it closes the session, which +/// releases the lock even if the generation task panics. +async fn try_acquire_generation_lock( + pool: &sqlx::PgPool, + team_id: Uuid, +) -> super::Result> { + let mut conn = pool.acquire().await?.detach(); + let locked = sqlx::query_scalar!( + r#"SELECT pg_try_advisory_lock(hashtextextended('team_memory:' || $1, 0)) as "locked!""#, + team_id.to_string() + ) + .fetch_one(&mut conn) + .await?; + + Ok(locked.then_some(conn)) +} + +fn build_team_generation_system_prompt( + base_prompt: impl std::fmt::Display, + user: &MacroUserIdStr<'_>, + team_id: Uuid, + overview: &TeamOverview, + datetime: &str, + previous_memory: Option<&str>, +) -> String { + let members = overview.member_ids.join(", "); + let mut prompt = format!( + "{base_prompt}\n{user:?}\n{team_id}\n{name}\n{members}\n{datetime}", + name = overview.name, + ); + + if let Some(memory) = previous_memory { + prompt.push_str("\n\n"); + prompt.push_str(memory); + prompt.push_str("\n"); + } + + prompt +} diff --git a/rust/cloud-storage/memory/src/domain/team_service/test.rs b/rust/cloud-storage/memory/src/domain/team_service/test.rs new file mode 100644 index 0000000000..2fe7ca8ec2 --- /dev/null +++ b/rust/cloud-storage/memory/src/domain/team_service/test.rs @@ -0,0 +1,68 @@ +use super::*; + +fn user_id(value: &str) -> MacroUserIdStr<'static> { + MacroUserIdStr::try_from(value.to_string()).expect("valid macro user id") +} + +fn overview() -> TeamOverview { + TeamOverview { + name: "Acme Engineering".to_string(), + member_ids: vec![ + "macro|alice@acme.com".to_string(), + "macro|bob@acme.com".to_string(), + ], + } +} + +#[test] +fn team_generation_system_prompt_includes_team_context() { + let user = user_id("macro|memory-test@example.com"); + let team_id = macro_uuid::generate_uuid_v7(); + let prompt = build_team_generation_system_prompt( + "base tools prompt", + &user, + team_id, + &overview(), + "Mon, 08 Jun 2026 12:00:00 +0000", + None, + ); + + assert!(prompt.contains("base tools prompt")); + assert!(prompt.contains("macro|memory-test@example.com")); + assert!(prompt.contains(&format!("{team_id}"))); + assert!(prompt.contains("Acme Engineering")); + assert!(prompt.contains("macro|alice@acme.com, macro|bob@acme.com")); + assert!(prompt.contains("Mon, 08 Jun 2026 12:00:00 +0000")); +} + +#[test] +fn team_generation_system_prompt_includes_previous_memory_when_present() { + let user = user_id("macro|memory-test@example.com"); + let prompt = build_team_generation_system_prompt( + "base tools prompt", + &user, + macro_uuid::generate_uuid_v7(), + &overview(), + "Mon, 08 Jun 2026 12:00:00 +0000", + Some("previous durable team facts"), + ); + + assert!( + prompt.contains("\nprevious durable team facts\n") + ); +} + +#[test] +fn team_generation_system_prompt_omits_previous_memory_when_absent() { + let user = user_id("macro|memory-test@example.com"); + let prompt = build_team_generation_system_prompt( + "base tools prompt", + &user, + macro_uuid::generate_uuid_v7(), + &overview(), + "Mon, 08 Jun 2026 12:00:00 +0000", + None, + ); + + assert!(!prompt.contains("")); +} diff --git a/rust/cloud-storage/memory/src/inbound/axum_router.rs b/rust/cloud-storage/memory/src/inbound/axum_router.rs index 50398e9d26..44747d1553 100644 --- a/rust/cloud-storage/memory/src/inbound/axum_router.rs +++ b/rust/cloud-storage/memory/src/inbound/axum_router.rs @@ -1,4 +1,4 @@ -use crate::domain::MemoryService; +use crate::domain::{MemoryService, TeamMemoryService}; use axum::{ Json, Router, extract::State, @@ -69,3 +69,50 @@ pub async fn get_memory_handler( } } } + +pub fn team_memory_router(service: Arc) -> Router +where + T: TeamMemoryService + Send + Sync + 'static, + S: Send + Sync + Clone + 'static, +{ + Router::new() + .route("/memory/team", get(get_team_memory_handler::)) + .with_state(service) +} + +/// Get the latest memory for the authenticated user's team. +/// +/// Returns the current team memory if one exists. If the memory is stale or +/// missing, a background generation is triggered and the endpoint returns the +/// stale memory (200) or 404 if none exists yet. Also returns 404 when the +/// user does not belong to a team. +#[utoipa::path( + get, + path = "/memory/team", + responses( + (status = 200, description = "Latest memory for the user's team", body = MemoryResponse), + (status = 404, description = "User has no team, or no team memory exists yet (generation triggered)"), + (status = 500, description = "Internal server error", body = MemoryErrorBody), + ), + tag = "memory" +)] +#[tracing::instrument(skip(service, user), fields(user_id = %user.macro_user_id))] +pub async fn get_team_memory_handler( + State(service): State>, + user: MacroUserExtractor, +) -> Response { + match service.get_or_generate_team_memory(user.macro_user_id).await { + Ok(Some(memory)) => Json(MemoryResponse { memory }).into_response(), + Ok(None) => StatusCode::NOT_FOUND.into_response(), + Err(e) => { + tracing::error!(error = ?e, "failed to get team memory"); + ( + StatusCode::INTERNAL_SERVER_ERROR, + Json(MemoryErrorBody { + error: "failed to get team memory".to_string(), + }), + ) + .into_response() + } + } +} diff --git a/rust/cloud-storage/memory/src/outbound.rs b/rust/cloud-storage/memory/src/outbound.rs index 599b0bd1fd..44b5a28c41 100644 --- a/rust/cloud-storage/memory/src/outbound.rs +++ b/rust/cloud-storage/memory/src/outbound.rs @@ -1 +1,2 @@ pub mod pg_memory_repo; +pub mod pg_team_memory_repo; diff --git a/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo.rs b/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo.rs new file mode 100644 index 0000000000..674a92f00a --- /dev/null +++ b/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo.rs @@ -0,0 +1,122 @@ +#[cfg(test)] +mod test; + +use crate::domain::{ + Memory, Result, TeamMemoryRepo, + ports::{MemoryRecord, TeamOverview}, +}; +use macro_user_id::user_id::MacroUserIdStr; +use macro_uuid::Uuid; +use sqlx::PgPool; + +pub struct PgTeamMemoryRepo { + inner: PgPool, +} + +impl PgTeamMemoryRepo { + pub fn new(inner: PgPool) -> Self { + PgTeamMemoryRepo { inner } + } +} + +impl TeamMemoryRepo for PgTeamMemoryRepo { + async fn save_team_memory(&self, memory: &Memory, team_id: Uuid) -> Result { + let id = macro_uuid::generate_uuid_v7(); + let row = sqlx::query!( + r#" + INSERT INTO team_memory (id, team_id, memory) + VALUES ($1, $2, $3) + ON CONFLICT (team_id) DO UPDATE + SET memory = EXCLUDED.memory, + updated_at = NOW() + RETURNING id + "#, + id, + team_id, + memory, + ) + .fetch_one(&self.inner) + .await?; + + Ok(row.id) + } + + async fn get_latest_team_memory(&self, team_id: Uuid) -> Result> { + let row = sqlx::query!( + r#" + SELECT memory, updated_at as "updated_at!" + FROM team_memory + WHERE team_id = $1 + ORDER BY updated_at DESC + LIMIT 1 + "#, + team_id, + ) + .fetch_optional(&self.inner) + .await?; + + Ok(row.map(|r| MemoryRecord { + memory: r.memory, + updated_at: r.updated_at, + })) + } + + async fn get_team_memory_by_id(&self, team_id: Uuid, id: Uuid) -> Result { + let row = sqlx::query!( + r#" + SELECT memory + FROM team_memory + WHERE id = $1 AND team_id = $2 + "#, + id, + team_id, + ) + .fetch_optional(&self.inner) + .await? + .ok_or(crate::domain::MemoryError::NoGeneration)?; + + Ok(row.memory) + } + + async fn get_user_team_id(&self, user: MacroUserIdStr<'_>) -> Result> { + // Users are expected to belong to at most one team. Mirror + // entity_access::get_user_team: if `team_user` defensively returns + // multiple rows, the team where the user holds the strongest role + // wins (Postgres orders the enum `member < admin < owner`). + let row = sqlx::query_scalar!( + r#" + SELECT team_id + FROM team_user + WHERE user_id = $1 + ORDER BY team_role DESC + LIMIT 1 + "#, + user.as_ref(), + ) + .fetch_optional(&self.inner) + .await?; + + Ok(row) + } + + async fn get_team_overview(&self, team_id: Uuid) -> Result> { + let row = sqlx::query!( + r#" + SELECT t.name, + ARRAY_REMOVE(ARRAY_AGG(tu.user_id), NULL) as "member_ids!" + FROM team t + LEFT JOIN team_user tu ON tu.team_id = t.id + WHERE t.id = $1 + GROUP BY t.id + "#, + team_id, + ) + .fetch_optional(&self.inner) + .await?; + + Ok(row.map(|r| TeamOverview { + name: r.name, + member_ids: r.member_ids, + })) + } +} diff --git a/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo/test.rs b/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo/test.rs new file mode 100644 index 0000000000..d4cbf5b7ef --- /dev/null +++ b/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo/test.rs @@ -0,0 +1,188 @@ +use super::PgTeamMemoryRepo; +use crate::domain::{MemoryError, TeamMemoryRepo}; +use macro_db_migrator::MACRO_DB_MIGRATIONS; +use macro_user_id::user_id::MacroUserIdStr; +use macro_uuid::Uuid; +use sqlx::{Pool, Postgres}; + +async fn create_team(pool: &Pool, name: &str, owner_id: &str) -> Uuid { + let team_id = macro_uuid::generate_uuid_v7(); + sqlx::query!( + "INSERT INTO team (id, name, owner_id) VALUES ($1, $2, $3)", + team_id, + name, + owner_id, + ) + .execute(pool) + .await + .unwrap(); + team_id +} + +async fn add_member(pool: &Pool, team_id: Uuid, user_id: &str, role: &str) { + sqlx::query!( + "INSERT INTO team_user (user_id, team_id, team_role) VALUES ($1, $2, ($3::text)::team_role)", + user_id, + team_id, + role, + ) + .execute(pool) + .await + .unwrap(); +} + +#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")] +async fn save_and_get_by_id(pool: Pool) { + let team_id = create_team(&pool, "acme", "macro|owner@example.com").await; + let repo = PgTeamMemoryRepo::new(pool); + let memory_text = "Team builds cloud infra for enterprise customers".to_string(); + + let id = repo.save_team_memory(&memory_text, team_id).await.unwrap(); + let fetched = repo.get_team_memory_by_id(team_id, id).await.unwrap(); + + assert_eq!(fetched, memory_text); +} + +#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")] +async fn get_latest_returns_most_recent(pool: Pool) { + let team_id = create_team(&pool, "acme", "macro|owner@example.com").await; + let repo = PgTeamMemoryRepo::new(pool); + + repo.save_team_memory(&"first memory".to_string(), team_id) + .await + .unwrap(); + repo.save_team_memory(&"second memory".to_string(), team_id) + .await + .unwrap(); + + let record = repo.get_latest_team_memory(team_id).await.unwrap().unwrap(); + assert_eq!(record.memory, "second memory"); +} + +#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")] +async fn get_latest_no_memories_returns_none(pool: Pool) { + let team_id = create_team(&pool, "acme", "macro|owner@example.com").await; + let repo = PgTeamMemoryRepo::new(pool); + + let result = repo.get_latest_team_memory(team_id).await.unwrap(); + assert!(result.is_none()); +} + +#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")] +async fn get_by_id_wrong_team_returns_error(pool: Pool) { + let team_a = create_team(&pool, "team-a", "macro|owner-a@example.com").await; + let team_b = create_team(&pool, "team-b", "macro|owner-b@example.com").await; + let repo = PgTeamMemoryRepo::new(pool); + + let id = repo + .save_team_memory(&"team a memory".to_string(), team_a) + .await + .unwrap(); + + let result = repo.get_team_memory_by_id(team_b, id).await; + assert!(matches!(result, Err(MemoryError::NoGeneration))); +} + +#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")] +async fn memories_are_scoped_to_team(pool: Pool) { + let team_a = create_team(&pool, "team-a", "macro|owner-a@example.com").await; + let team_b = create_team(&pool, "team-b", "macro|owner-b@example.com").await; + let repo = PgTeamMemoryRepo::new(pool); + + repo.save_team_memory(&"team a memory".to_string(), team_a) + .await + .unwrap(); + repo.save_team_memory(&"team b memory".to_string(), team_b) + .await + .unwrap(); + + let latest_a = repo.get_latest_team_memory(team_a).await.unwrap().unwrap(); + let latest_b = repo.get_latest_team_memory(team_b).await.unwrap().unwrap(); + + assert_eq!(latest_a.memory, "team a memory"); + assert_eq!(latest_b.memory, "team b memory"); +} + +#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")] +async fn deleting_team_deletes_its_memory(pool: Pool) { + let team_id = create_team(&pool, "acme", "macro|owner@example.com").await; + let repo = PgTeamMemoryRepo::new(pool.clone()); + + repo.save_team_memory(&"a memory".to_string(), team_id) + .await + .unwrap(); + + sqlx::query!("DELETE FROM team WHERE id = $1", team_id) + .execute(&pool) + .await + .unwrap(); + + let result = repo.get_latest_team_memory(team_id).await.unwrap(); + assert!(result.is_none()); +} + +#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")] +async fn get_user_team_id_returns_membership(pool: Pool) { + let team_id = create_team(&pool, "acme", "macro|owner@example.com").await; + add_member(&pool, team_id, "macro|member@example.com", "member").await; + let repo = PgTeamMemoryRepo::new(pool); + + let user = MacroUserIdStr::parse_from_str("macro|member@example.com").unwrap(); + let result = repo.get_user_team_id(user).await.unwrap(); + + assert_eq!(result, Some(team_id)); +} + +#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")] +async fn get_user_team_id_returns_none_without_membership(pool: Pool) { + let repo = PgTeamMemoryRepo::new(pool); + + let user = MacroUserIdStr::parse_from_str("macro|loner@example.com").unwrap(); + let result = repo.get_user_team_id(user).await.unwrap(); + + assert_eq!(result, None); +} + +#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")] +async fn get_team_overview_returns_name_and_members(pool: Pool) { + let team_id = create_team(&pool, "acme", "macro|owner@example.com").await; + add_member(&pool, team_id, "macro|owner@example.com", "owner").await; + add_member(&pool, team_id, "macro|member@example.com", "member").await; + let repo = PgTeamMemoryRepo::new(pool); + + let overview = repo.get_team_overview(team_id).await.unwrap().unwrap(); + + assert_eq!(overview.name, "acme"); + let mut members = overview.member_ids; + members.sort(); + assert_eq!( + members, + vec![ + "macro|member@example.com".to_string(), + "macro|owner@example.com".to_string(), + ] + ); +} + +#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")] +async fn get_team_overview_with_no_members_returns_empty_list(pool: Pool) { + let team_id = create_team(&pool, "acme", "macro|owner@example.com").await; + let repo = PgTeamMemoryRepo::new(pool); + + let overview = repo.get_team_overview(team_id).await.unwrap().unwrap(); + + assert_eq!(overview.name, "acme"); + assert!(overview.member_ids.is_empty()); +} + +#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")] +async fn get_team_overview_missing_team_returns_none(pool: Pool) { + let repo = PgTeamMemoryRepo::new(pool); + + let overview = repo + .get_team_overview(macro_uuid::generate_uuid_v7()) + .await + .unwrap(); + + assert!(overview.is_none()); +} diff --git a/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs b/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs index 5e0a9730ef..178d11d8f0 100644 --- a/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs +++ b/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs @@ -11,9 +11,11 @@ use chat::domain::ports::ChatRepo; use chat::outbound::postgres::PgChatRepo; use futures::StreamExt; use macro_db_client::dcs::create_chat_message::create_chat_message; -use memory::domain::MemoryService; use memory::domain::service::MemoryServiceImpl; +use memory::domain::team_service::TeamMemoryServiceImpl; +use memory::domain::{MemoryService, TeamMemoryService}; use memory::outbound::pg_memory_repo::PgMemoryRepo; +use memory::outbound::pg_team_memory_repo::PgTeamMemoryRepo; use model::chat::NewChatMessage; use notification::domain::service::SqsNotificationIngress; use notification::outbound::queue::SqsQueue; @@ -81,6 +83,34 @@ async fn fetch_user_memory( } } +async fn fetch_team_memory( + db: &PgPool, + tool_context: &ToolServiceContext, + owner: ¯o_user_id::user_id::MacroUserIdStr<'static>, +) -> Option { + let tools = all_tools(); + let tools = ToolSetWithPrompt { + toolset: tools.toolset, + prompt: tools.prompt, + }; + let team_memory_service = TeamMemoryServiceImpl::new( + db.clone(), + PgTeamMemoryRepo::new(db.clone()), + tool_context.clone(), + tools, + ); + match team_memory_service + .get_or_generate_team_memory(owner.clone()) + .await + { + Ok(memory) => memory, + Err(e) => { + tracing::warn!(error=?e, %owner, "failed to fetch team memory; running without it"); + None + } + } +} + async fn create_chat(db: &PgPool, action: &ScheduledAction) -> Result { let chat_repo = PgChatRepo::new(db.clone()); chat_repo @@ -120,13 +150,18 @@ async fn run_tool_loop( ) -> Result> { let tools = all_tools(); let user_memory = fetch_user_memory(db, tool_context, &action.owner).await; - let system_prompt = match user_memory { + let team_memory = fetch_team_memory(db, tool_context, &action.owner).await; + let mut system_prompt = match user_memory { Some(memory) => format!( - "{}\n{}\n\n{}\n\n{}", - tools.prompt, SCHEDULED_AGENT_PROMPT, memory, agent_task.prompt + "{}\n{}\n\n{}\n", + tools.prompt, SCHEDULED_AGENT_PROMPT, memory ), - None => format!("{}\n{}", tools.prompt, agent_task.prompt), + None => tools.prompt.to_string(), }; + if let Some(memory) = team_memory { + system_prompt.push_str(&format!("\n\n{memory}\n")); + } + system_prompt.push_str(&format!("\n{}", agent_task.prompt)); let toolset: Arc + Send + Sync> = tools.toolset; let agent_loop = AgentLoop::new().with_model(agent_task.model); From 89fefb2e81c2dbb2c86b7ca4938c32a4559d8035 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 10 Jun 2026 21:45:05 +0000 Subject: [PATCH 2/5] test(memory): create user rows required by team FKs in repo tests https://claude.ai/code/session_01CyfX47q3gqFp49pLrcco8b --- ...e262d6e096bc1a8547f5da22596dbc56e0ddc.json | 28 --- ...023bec273d62d6c2f233c3236ffebbfaf5810.json | 66 ------ ...62bbdbf3d29b375b73ca25f7720941929f10b.json | 46 ----- ...8324d50ac472be760c0efe10b5060b0878c75.json | 22 -- ...fe4534c4caa33640876469811d19d64a9b7d0.json | 22 -- ...85af4ce10f5f6ae5e3578637b66655ea6d67e.json | 42 ---- ...38dde11698cc4164819d48cb8f99c1ec3aae3.json | 15 -- ...e75b0085f5817ee4c3360f7cea76917fa5740.json | 16 -- ...e5d27371757cc6e9019589182150af22b5e36.json | 15 -- ...03de9196482e24765f4b2c93d2da50273d69c.json | 59 ------ ...fc2ec9d8f3ebfdcd4947b1349494bc13618aa.json | 14 -- ...fc3dcd6d71b2c0029f7f7fa3ef3285e12a8f5.json | 14 -- ...e5bcd98c0df2596f1d098c08cd4308583f307.json | 28 --- ...a3bc08f9153d9fb263062a46a80cec5c151f0.json | 15 -- ...57eed63182d21b432b58fd25b7524d1dc0092.json | 88 -------- ...e734700b1978cdf1a62bcefcb3a9bad3b6eb5.json | 17 -- ...ecc5418ff770838a4acfbd28bec8b78e16874.json | 41 ---- ...a4477aeafb381e532657ccb7b11ad05b9038e.json | 23 --- ...f115e771ceae4526e0a13928152e2bb1bb9b3.json | 107 ---------- ...9cb208449ea7048e319ea8475752fe96d650b.json | 16 -- ...147d0d4f2c1e409bf1aa2263b84c88e2deda9.json | 74 ------- ...3bb086ba5a39c1dc656aec25f2dd2a4eb249e.json | 23 --- ...4f7eb4ee08f375c95d9e40bd879d1439a8342.json | 62 ------ ...6bd4d5a2baf8313799b21496ce399d3612b1b.json | 15 -- ...0ab3ab9a686e9617ce4aea0e768cdc3c78f86.json | 58 ------ ...d95dc07b98f4a64effa9b76d58089fb0728b1.json | 46 ----- ...c4e04e513e99855ca9dab076768d43e189a80.json | 28 --- ...f52f8cc0083e99d30810753539a5df539d94d.json | 26 --- ...6309607f9375d2ba7b151e9dc1a8493f88e44.json | 14 -- ...fc012f06f1c298d1b287eebd7be0b89766702.json | 15 -- ...f388ce48e6b8c596f420af1c837cf9572dcdb.json | 22 -- ...52eb15603cfb48029d43dc507b9012088517b.json | 22 -- ...7e07c1a4f41d65b619f6f949f18344b78469e.json | 22 -- ...dd36cfd36e05ad43cfa0cea3654dd0d5ca08a.json | 14 -- ...b7d15d9f0a638566899c59aae12491ed5b490.json | 28 --- ...c356af9e557d3b3d67a1a9cf2f07d292883c2.json | 15 -- ...ffe28cdc4f8cc83542bf69b8c502b4892a6da.json | 173 ---------------- ...3e43456fefad97ac0ba38daf2e5e6880bb51b.json | 15 -- ...53cbe0e8500e8f47233914c020d23d5a1b1b6.json | 34 ---- ...27ee0f730dd38e1d82bd2a049d38cb7abb275.json | 58 ------ ...27bb363d4c1d98a2b589c260b9c77fcb94492.json | 15 -- ...b1d4e83711bdb0670ea238e72097750435056.json | 22 -- ...47c2a92639fec6e728a49b1f2a41906adb633.json | 26 --- ...1f35280fefe178bfc01701fc09b8962def475.json | 22 -- ...389dfd3ad004eb3572fb7d724b407bdb2c2e3.json | 23 --- ...af0a38305c090cdb791212b5968c24ae5d5f4.json | 15 -- ...7e6d7edfba61d784244a01f9d233d9b753dcb.json | 22 -- ...f16140eb27339ca118ef7a6f063e113d78361.json | 15 -- ...98858f2ba5ed410765ffca1b03abb05c7b098.json | 14 -- ...5298215a79e06fd983ac9a13f52836719e8fc.json | 15 -- ...2a9b987f96526f5865fcc9c43f6179567a891.json | 72 ------- ...470a4e91ef06ee2baf734cacc500df5f9cd19.json | 28 --- ...4c7fb8a88979a966df92c698b295b8e3e28e0.json | 40 ---- ...ffab02e9aee53b37e07531426a068007403ec.json | 22 -- ...54fef2bdc00de80faccc661bc89ffbabc7eb4.json | 172 ---------------- ...dc2d43865571925e95582689df12c3b02322a.json | 83 -------- ...7ead8ceb0d4f0d05e22c9e36113b4cba6e5c3.json | 14 -- ...ed534f7cf96c18081846fcbfbefa0a515f40b.json | 22 -- ...f0da52521889a32fce2449d9d7f659835b845.json | 15 -- ...1f653900045b70bc059b5126905e3cca668fe.json | 14 -- ...4cb81f5065482c471fffa2bf248f73782a87c.json | 28 --- ...eaf4fe7ffe5734a57567dfdfea1a78cfbb3ee.json | 65 ------ ...d3da039a7e63dfb1a4bab8895c6f18c1b819f.json | 22 -- ...c2353c6a1dca9e1dc13cc21b3a23d9cd81e92.json | 15 -- ...9889efcf4b3c2fbaec05c395de5e728b0fdbb.json | 46 ----- ...0e3334aed9e8d1cb1efc3df8698e024d0aef9.json | 132 ------------ ...17b933697934a2b3d52e931bcb2f1dc64ac87.json | 64 ------ ...838e3b6b8cf4bd6775d083867c733982545dd.json | 15 -- ...0926ee07c36bf29ff0031813a2fdbe1fd061d.json | 46 ----- ...a6d1246298aa1fc06aba34a9282318841a112.json | 28 --- ...35e76750719785a26e4c56e969fd48c5970b3.json | 28 --- ...310950db972cfe6afdf164f822a6b0a6042b8.json | 34 ---- ...170bd25959079efaf0bb0c916acae2234f90d.json | 24 --- ...5025e8bf0dd3532b21cc1e2a939c0c26c7927.json | 22 -- ...1ac905f34c70bd295694a120e8dd7891e3853.json | 15 -- ...1270a0b93e88f5b7f7f7fc36276b3718b8297.json | 25 --- ...405260eb8fd223e65f4c6da337a8fbe2acc82.json | 27 --- ...537c13a9a4e4c313c115a83b0bc98c846db0f.json | 15 -- ...2390a0e9214d8219a3d79f65ea5c66d55121e.json | 16 -- ...d2e692c9a1bec3ec96cd3b2fba1176e075119.json | 22 -- ...c7372d1de26ee74b39b5e9602534174f1f8c5.json | 29 --- ...d522daaa36ef9bb9e1eed4ccca12de09f44f0.json | 15 -- ...f30be2d8bb5808322565b29ce0a8db2bf3c14.json | 20 -- ...c2369429e7fdc40a531ac5296b5442fa4f5aa.json | 35 ---- ...a17b7345b658528783903597574827fd61dd0.json | 28 --- ...5f04b372963a63e81918d061a0c0ffab89060.json | 64 ------ ...b5aeca5fd398adc48ed9f755490fa25e7f3f9.json | 31 --- ...bf04a5ff4827980d61db77cf7645ed9bf551b.json | 22 -- ...f6526dfa6bf93465f9c6708dc95e8237c1f51.json | 22 -- ...01b8999a0cec4a928d253fb4fa49f78a8626e.json | 15 -- ...a290ad6e8bbce98fe53cd4079791734567928.json | 22 -- ...9df5c3364e8d3dfc0484cda469086991a64fd.json | 23 --- ...db4bdbfedbde691ebb4aec849a07f6b54d0fc.json | 58 ------ ...2bccc39501f39821f5a5fac209930e6afd338.json | 70 ------- ...0bddccfdff4da1d53fe8e16c26e825dbc1b14.json | 16 -- ...ef509d980650a4c5d0fca7053cba0c2543155.json | 29 --- ...a69bc36b7eeee011d09a63b4b44b81f7663df.json | 14 -- ...6bea2be0329fccb27362d4e3a5a37601e0ba0.json | 40 ---- ...64eb026124d2a66d2735b95ef387433cecd03.json | 22 -- ...90dd279939a1323b5805eaae071cc500f54dc.json | 15 -- ...f0a657d995d9292dd6cffc385e2f92ec07276.json | 24 --- ...fee888a6e18170f84df631df81e3e84158348.json | 34 ---- ...7f64a5b303859b36186f4106144a2c5cc23ac.json | 46 ----- ...b44b0a333958a67d89dfcb1db9dd523a1b837.json | 22 -- ...ca35a4b9b6c1d70fb86dde1ec83a2314350d2.json | 22 -- ...41e2410cce10dc0c7a196e5104e6fa2ae0875.json | 14 -- ...f4ebf664cffc44082996f6b60a60373c28f75.json | 17 -- ...89c36283225f47a6b37c197bc543f3fa18703.json | 34 ---- ...00b516be3f85d42ddeaf9cd9d0563e1303201.json | 34 ---- ...1ee30fef91724dadb7b7c1e461d8286235f60.json | 44 ---- ...d30f55a71271945c03e98665acc3cc9d4ea4b.json | 22 -- ...65da8af863d2fd1ebf848a1a6e64db75a9ef2.json | 22 -- ...de9b4f09cf2a0480dbca99952cf0d8b78b177.json | 14 -- ...87b855ec6f10241b3e74499f22aeef7f762bc.json | 22 -- ...231154b7f03ae0ebb073103df8b0554d416af.json | 15 -- ...267a6cf83c9efdc10ba23981f7b85847881c3.json | 73 ------- ...d13fb82179f90fbdd99b632a244c24f1ff5d2.json | 42 ---- ...2a66944f723c32d9066d1d8b671b177986aa4.json | 22 -- ...851f992232834de508dac16ff58d9da1cbc2a.json | 21 -- ...135d288553a7fdc41589e2211da4c32cead9a.json | 22 -- ...56da725bccb87d92dc3a2c4195a7b4c436a29.json | 22 -- ...6c9ebeea62fe8b80747ddcf9c5fdeee1a6c7e.json | 16 -- ...2bc32d23c2d62e36a11e3875a8b84e8f1e062.json | 19 -- ...6ad4b8560ff21943acef9383cb92c46195d8e.json | 22 -- ...21b9a3611ea3ae3bf5edccebda195b52bead2.json | 40 ---- ...19581607988c79c9d2f4ead58811d60d5bec7.json | 14 -- ...577540398e8ce459156d6f83fcb8193fc2800.json | 23 --- ...3aa7b24dd0a456f3cd4863725b3089f7bbe27.json | 52 ----- ...d6b55a4c527fd3105bfa9cf83dbc70516011c.json | 86 -------- ...27a752597dae52b891be1e12526b02fdb2e6c.json | 14 -- ...dc601bf0d997ad5b6974ef5866dd6262b8618.json | 31 --- ...cb6344b42556f949b59a0f8f77a01ec8572c4.json | 64 ------ ...dbee5117d4a35ec182b62db7d4ea0507ee73c.json | 17 -- ...f00790bde81c4e7a515e6cadbf341466b9fa8.json | 22 -- ...a5fef86b1058e0b9ad16614fc06d02f4cf86f.json | 24 --- ...5e81dd143cd4a51873e92050a0beedbbb86cb.json | 46 ----- ...5632c78c630fddf249f0d53261e601969889b.json | 14 -- ...7bd8c5254c63292c67e87ac3c3f45c20b7284.json | 127 ------------ ...c725bbda911931e97ccb22a5868b5a7655709.json | 22 -- ...4369eb50ac8efbea1fd554bdca3d7545d61e0.json | 25 --- ...e81a2f964defcb7b190460f2b16ac67078766.json | 34 ---- ...e57fe675a43d9dd2d6198d1039565131d52f1.json | 22 -- ...45df205acdf018d65ada384f0b059425e9ab0.json | 14 -- ...1e243db4c43ec8630b32ea48b1c7e31724264.json | 138 ------------- ...7ee202fb2b3b011422dc27f351a2c3d10813c.json | 184 ----------------- ...fe490653e4c1065cd55e9c39722b988c54a02.json | 15 -- ...4b84fa6af6f7caa8353d52ed22e48b3899327.json | 15 -- ...f27b45f853652a757123e3508017861b5c7c6.json | 22 -- ...5f447e26ff2b83fc6c6e6a0e2726aba761a51.json | 22 -- ...1d8b010408005f7e12db26e1c3fc5b6d23c29.json | 101 ---------- ...ddd8eb29bedd31dd21719114646449ab1333f.json | 22 -- ...1995677a162dd11af0b9d77df947b657cd651.json | 15 -- ...863ec370be7dc1b87c38d1c53d898bfa6a235.json | 35 ---- ...c821898f04952a5a597c9796e152fa4c65bb1.json | 28 --- ...a1e722ca09640bdae70dad37a017fafd16206.json | 22 -- ...3cd5280f4596a359328c00b1b3e2ce74c0234.json | 23 --- ...ecc9949bb5adff895d426acbcdbef50a87e96.json | 14 -- ...bbf45b0bbe751d89e8b841068d86b855f44ae.json | 22 -- ...cc34060d1c9dd6f964f3d6444b55830af299a.json | 72 ------- ...4326d84465827ee265f1111cd30e6d936f714.json | 22 -- ...d883668d0b8073143094ed67d34285f9cc92b.json | 17 -- ...94e3aa7d6e5d9a2660ed6668eaec3d0b39745.json | 15 -- ...5ce22f1e4fbd6770c390a252cd6c790ee2d6e.json | 14 -- ...42c4c399bae6774014cf03704024bd4293821.json | 28 --- ...a7d8e7db9a7fb97d8af9ca3219a9e13215742.json | 15 -- ...09ffc9721b22d7e9d8ea5d80d285dcf65e152.json | 46 ----- ...6506c341547cd49c76e365129d91650474605.json | 15 -- ...7931dc2e7ddcbc393c0dc068cfcd1a752e6e0.json | 29 --- ...aa96922a8f97e7a10d91ec7970c0cbf824281.json | 88 -------- ...b2e3e3e1143e8ab3dae3a85e9e756cdf9bdc0.json | 22 -- ...0091aebd9369c066fde6ccfe090bc97271e71.json | 30 --- ...e7244ab1debf1731781813995f3be3075d9f1.json | 18 -- ...a0a39d1e5a6fadc9170a2d863fee8fbfb0939.json | 34 ---- ...df6fde6d25c6187e9b03a75640a771aa8899a.json | 28 --- ...fce4a37f75e0b9796a77bb45d0ebb3264928a.json | 52 ----- ...a25dd6084c0d64e4dc99d3f0d802f0ae61136.json | 15 -- ...cd0f680dab8845b5789b83eee8966bbb85937.json | 14 -- ...d502b89f9151a884b24f316c6196f62158659.json | 64 ------ ...5bdf9c83dfc84f0b5a8e8075a7153d7f41818.json | 95 --------- ...f3f7a506003afe498d487699c0cb4b78c7899.json | 22 -- ...956f0c3c8287e3863893eb7e8761af066a46f.json | 14 -- ...7064a5a22071296f2603d6f86a7bc1816dd0f.json | 16 -- ...b9ccc7072aac9d5dd7c17a15c6be812fb3d4f.json | 15 -- ...86be825ff271d9a18921835dfd1864a78ebfb.json | 20 -- ...2c9224a44d046cecb5cce585afbb2e8aeaf49.json | 46 ----- ...677174bdfc3048719f1be818c11b6dd7ada01.json | 26 --- ...9928f6e922ecf302228837e4d0686866ac515.json | 16 -- ...61f1049c87b024003d7a6781ed24d82f095e8.json | 22 -- ...145f8a813091547e4f47a9f1fed4b8959e4bf.json | 34 ---- ...bcc6cbe5e22bd559419180a6c2f2855ff607e.json | 73 ------- ...87ca672780591c4b7b2ff5429121d5b4594bf.json | 70 ------- ...ccd9818906c386468c40410d1e96f1aeb4e27.json | 23 --- ...a7251ed3737e3aa63d2213520a9f9b83a281c.json | 34 ---- ...522346fb8bc6aa9bf669219c300cc398a1108.json | 25 --- ...0b0a8701621b42e4c57e74d2da40062d577d4.json | 130 ------------ ...48f056a532178864f1f62ce55d107d1702f7f.json | 28 --- ...aa202a0a8119036d4be0975aaac1ce6d96cd2.json | 22 -- ...6cb0f6177d685bddedb06f1892d0014af6f01.json | 34 ---- ...e1d3307bf0627fe420be6bc0509072bae1565.json | 22 -- ...b5bf5fff4d5bc979ed1555df61f4666e1121e.json | 14 -- ...aa303d315804838e6d3847718eecd239864ee.json | 15 -- ...0be69a87c2a9c380a8fc2c64afa9fb509e9d8.json | 64 ------ ...c6376849461c5df6a9cb1037d1eee6e30cfab.json | 28 --- ...c60160ef8399af5cfa11393a2e1e8d9762d65.json | 15 -- ...a7a0891ce7e5f9d3ff36e6598d5f51650416c.json | 60 ------ ...8b2158fe2072af6b7baacd30b3f0095cb7e0c.json | 46 ----- ...176766a0cd023d6730538b6e5c936ae7bdb48.json | 32 --- ...f6f384a4763514d278b5444341390f58a8281.json | 14 -- ...d45539b62c00cb222b029e501cd7a40e83ccd.json | 22 -- ...f1591934bb55a9f2fed8e47dd4406085fa6b2.json | 86 -------- ...f96b7c27c4d7457aeeb615789f1ebd5468337.json | 14 -- ...525136fcd17a1d3e680142e5d0f9e253af578.json | 28 --- ...abe9d4e5f57b4b08a18673276967b456d8bb5.json | 15 -- ...79d065235f02119bbb2cc2b881f6fa8f82274.json | 34 ---- ...f0e50e65f9f7dade0f8e1239cc32404e2b135.json | 29 --- ...195b87a928d18ff10c5d5dbec9bba0dc9eca1.json | 22 -- ...a03ec10c34ab1f8a6ecc6a9ecac5b964669a2.json | 71 ------- ...d5f7db7aed774cb8d6fd74645f5e09b2215c6.json | 15 -- ...8eda21c8f93ee647274cbd0f7f8b8cfad02bf.json | 15 -- ...a05523a4b1f4be0798ae362a325c172b19a43.json | 32 --- ...8ed60ba013aa7ee53742b7f1f677e7082ce2f.json | 96 --------- ...a72ee6558c2ea8bb9b58237370e3cb80d309c.json | 70 ------- ...c763f4d0b5e28370570971935d29237a0211a.json | 74 ------- ...7f581aba22df15410900b9f598daf699b60de.json | 22 -- ...0861ebc4fc1a28d0a6e14ee1aed1d472ff87a.json | 22 -- ...c2563d7f90f17e00e6c4e18d25bc0a7b1355b.json | 106 ---------- ...cf0daaab7ccca3618ff516bdbf2efda3077e5.json | 23 --- ...389f7abdcc74544558d60d817f56ff0c14524.json | 56 ------ ...97cee6ec3a0e3eefc8711308ef3c6b3f7f30c.json | 15 -- ...13941732afc0ed4d180fdd982f50cdf39b08b.json | 24 --- ...9b37a1ece02e7c4189d0619ea741f74f05bdf.json | 24 --- ...862e24a45c9278ff5671e190b594d0972946f.json | 22 -- ...7743862bb918f45f0a21481e044ff99427976.json | 15 -- ...f9bf94f8980710a99f36274ab20bd75514a52.json | 28 --- ...3f895f7b7c4f8458df987c7bed9054fbc3450.json | 22 -- ...c7c86aeba3b076e8684a85696045ed3a4636e.json | 15 -- ...ea6c51ce2ca2d05b985a30debdb97f9d7d78a.json | 124 ------------ ...4d904d563e57443cc3f65432e1db986f016dc.json | 22 -- ...75eea5921057be13e25a9609410d6ac5b17ba.json | 26 --- ...3ec5ce5f48079d5b040724b62f1964e49c932.json | 25 --- ...cde73657c5fc5e53fd86a8a2eb14ad063af2c.json | 30 --- ...6d2076f0654d89c89495858fec18432df7074.json | 128 ------------ ...8a316ee83b8e0b87a504a40ab4eb6f91c9bf6.json | 18 -- ...aa320b6d72a5851a596cec6dc37b6ef5f80e6.json | 22 -- ...55e9c81997db622339c1f414e36e873cb476e.json | 32 --- ...31e02e1d6a1a5aa81499903ec6ca86f678219.json | 14 -- ...f923cb9e2d47d3cb0adbe628f18f753995d90.json | 70 ------- ...da0a7c112bb86527c7200c38326cd920f94e8.json | 24 --- ...5a7a2e43c2231040cc399488418eab9f6023a.json | 25 --- ...fb47c8b8ba0618e2833475801815dff29d42b.json | 40 ---- ...50033052a9fb05c14a92e0d2b89b3b47330a2.json | 22 -- ...017303907af0da309f50568bda9f6fa74c22f.json | 23 --- ...b5210b6068fa4a23b88e2b2d922f04e7129d8.json | 76 ------- ...668e0ab16c64bd9dfc905213681e6021474fa.json | 23 --- ...441b2a8bfe4d2d7cc242195f298437d95e7c3.json | 15 -- ...9c7347151ce6a8bed1faa103c27a490a110d6.json | 64 ------ ...abc47b8a9fe63263b050379d73cc14ce38fd7.json | 22 -- ...df8ca99355322514ac541a95c0ef65491505d.json | 23 --- ...6064359b93f5cadb52da18c5e12a50cf50ae1.json | 45 ----- ...17aef97239bcdd408c928caffed0d69c21613.json | 15 -- ...40734b03ec692b637f99fb61b25f9b7c54583.json | 22 -- ...9ac2c7ff263b9340003c319475fcafdf0356b.json | 15 -- ...0748ca056ffa883a4cdba1652b7b8500ba179.json | 15 -- ...0ab6388547e69762533e204f39af71d0e68ee.json | 15 -- ...5156432c57f20036d3e05eb8a72f09d88e10f.json | 15 -- ...c4176352fa9b44242cdd5abe8b4ee18a62f8e.json | 23 --- ...5f76ad39c5aca7b6503ae8e43ebd1cc5d733f.json | 31 --- ...c2034a348d30889a11f28b98a9e4a0daf4525.json | 177 ---------------- ...0207caec56d853493823994679a4b081a1c38.json | 100 --------- ...dfb7c5904a23c2d859d838f607d1bd296777d.json | 23 --- ...005f8da9e6128de27e65a9bb69e780615bf4c.json | 16 -- ...8372d7c83b2ffe1f393c77ceae79ba7a24199.json | 51 ----- ...e6784c946f05120c7c228ff258389ceba97a1.json | 15 -- ...b23ec03e343c026d2e13ba7c4337fab85cd05.json | 28 --- ...0eadfdbec930e33a0666707593e20ae4f67f5.json | 118 ----------- ...a36d070bce17512b9ab348d0cb40ebe4d1b08.json | 22 -- ...34d2095a2b2dbfc9d3a64e595f9725bbb0b8c.json | 25 --- ...f64cfaf2c5620a534753cc358602d626693c1.json | 34 ---- ...d92d078cbce9ef2e968480ea475623ec76f63.json | 40 ---- ...44193d3c769a6d43078570accc708e6a749b3.json | 15 -- ...2291e713cf20f121e10997bcf944f3363efb8.json | 34 ---- ...07209446a4893f7f44b1d5c19cfa9fd387695.json | 23 --- ...c97f9eff09db1237092b37fc80ece52ff410f.json | 15 -- ...c48267215a33e4c8d135319959aed14edbe63.json | 42 ---- ...4a35a85f1671b808c2f2b71781114bbc1d134.json | 22 -- ...43296615904f9af24c4e18dda50992b47d5af.json | 16 -- ...2ea545e65d41bd61891ed3aad8eda3c4d90dd.json | 33 --- ...9bb51833195bf60052e04a1c754df22f57220.json | 15 -- ...d8c9786d6202db2a9fc41186d53c430d8f155.json | 24 --- ...03d923622666779a97429afb926c64b517e1b.json | 15 -- ...7a491c8ccb46f90738f8ebbf25afea699876a.json | 24 --- ...00c4882b1c7fb6c56e822cc4dfb8d4191dce4.json | 28 --- ...f42d96b19eda98a61750b4405c0a0c55e50b2.json | 15 -- ...176e5b20c478d2e5c4cba230e5fa3f57d38d6.json | 58 ------ ...251aaeac0e320a02b2504b1bc74402ad894cd.json | 79 -------- ...b50de4413626a5dd460c83ad9e997fb8e09ae.json | 14 -- ...bed0d042a4133b63124b1894da135d0a9449b.json | 20 -- ...00d649e4aa06841adb1645d4f17507cf15694.json | 25 --- ...6423fa95a0c127fbeba0a59d7096b0177c072.json | 52 ----- ...05709ccaeca68b0ff0906e2f6be307963b49f.json | 23 --- ...25b205e0b6f330e4f3eb9690375e992ce2194.json | 22 -- ...7a72f6dddf521d5df201bb11207e89be08747.json | 34 ---- ...60356850135fd8b7bc79ef54d6548c40dbbb0.json | 23 --- ...1d991bb8fa6a687207164d713487c524d87a6.json | 14 -- ...c72d10d42e25aa07353aa47ebd3f1ad4f56a7.json | 22 -- ...20f8f305d08873a4c857c118f166d6c16b6af.json | 60 ------ ...38ed2f91343adfb13af0c7573dd6c29f8ac9a.json | 16 -- ...a89baff99dae621e7cbd7a10017beec9485c8.json | 50 ----- ...50a316694bb9210e88c664c4f998fd5759fb3.json | 14 -- ...6f12e812b89f46a7a40cb0d4b0ff8397b1b2f.json | 24 --- ...344b931487b41c9b146538d6d1769033c3046.json | 65 ------ ...5300efe7b0bcbd74ae96f3d65aeb8edd064f7.json | 58 ------ ...2c3c3897c0c17a0f53ce67c915b20e07b3545.json | 58 ------ ...83daebe532ed4f8935d06815c24289d3c91c2.json | 172 ---------------- ...c76ed21031ab2497aa0c137a5644f7e7e6e7c.json | 28 --- ...be80494d59ba5242b073b9dbefbf8752a39f6.json | 26 --- ...3fb37a8a26d78f4e275d9bca1ebaa7e558f6b.json | 14 -- ...83c72877347fafb9fbcde0935ac10290b7cb0.json | 22 -- ...423b210d7bcf2202ca38480fd7ce026977166.json | 28 --- ...825873d729e28915a0fd36335b36494a93c53.json | 15 -- ...cb27fd4220b15126fd010acbf4b954a9afb68.json | 23 --- ...c287e3755f19187f07ec05d4ce0c60a5df751.json | 52 ----- ...ab5fe676b45c9942ec0c99486c03e52733a47.json | 38 ---- ...d9bd9c5890cf1c144f0f8905664cd72c7f132.json | 41 ---- ...8ee8094c2cb84ed3f4dab9e890d441611722b.json | 146 -------------- ...1d39329574a7a99ae1d295fcd43afa5963408.json | 28 --- ...54b0fd109b0089bbb4951379ea045012ad6f6.json | 22 -- ...88821246cd0b2d459d8dc667be1e6c8de1c98.json | 22 -- ...3f685b084283f4fb1cc683330b7c7875ca312.json | 15 -- ...3ebe3c3191c212f37631feda29343104f9548.json | 18 -- ...060cafd143f63c7548ffdb8ae19461d0f0c76.json | 95 --------- ...2c48cb828e3c0ed342d0c2b090c2a69c62a2f.json | 15 -- ...4efa3ae9c2697363d56278789de68b2295366.json | 24 --- ...8142bbc2bc0256ff84a6ba9ab2f98fd9fb0c1.json | 15 -- ...b0543e406adc48edfd2a72ed715164c4a093b.json | 41 ---- ...de844abb56d9cb3a88034db7b285fcff7e9b7.json | 22 -- ...8e5e4c70fce8558763d56a3f57e99474a9aeb.json | 38 ---- ...b7b0e02ced66e66f2d985f3da2d3eb7ad8c60.json | 28 --- ...7270307a3e4f36625e76d489d4bc39b66e759.json | 22 -- ...c83ffd5ac9b4ce85a5d08d0fc5095efa73505.json | 22 -- ...d1e7dc2d0cea3efa5b87c16cb2416b43fc098.json | 41 ---- ...2e8b441f1e9e067086b05617437b6f43bc329.json | 22 -- ...a9efbefbd111110b9f0fab5cf029e70208c1e.json | 82 -------- ...8c1a7fd6ded6c7e73a7a2dea50fd492d5e88b.json | 15 -- ...4d86540a99362db746fa2a04a2369bac18095.json | 22 -- ...17d6cfbed8fc192939cc0e5e43b86905a4ca2.json | 14 -- ...fd4059933d25cca50775c74f1ef5a0224493c.json | 52 ----- ...8586ff1dd139822d3cbde8e125add5575194a.json | 40 ---- ...c1d14a38ad27be4af19f4558d1439e5e1108b.json | 23 --- ...bac9d3c4b8b107dd02fd35ec991e848919eed.json | 83 -------- ...4f95a0dc0ae92127693240ce9dc0acc3b7467.json | 28 --- ...31128b89c8047812362331ded6b6e0a12e1ac.json | 69 ------- ...d1fa944740f01ce65798b18269b099a65a283.json | 22 -- ...89e50037adc4b72c364bdb4282ab0c8cf1237.json | 16 -- ...b146a3631e9fb26323cae0e49e9d25d7d0767.json | 41 ---- ...a69cad83d20908c700d750a4047ce5bee30f4.json | 16 -- ...18a5303e9f456e3db0ac35840627b086d3995.json | 74 ------- ...de283865e6bbf5776a9f482a5d21568c14d3e.json | 15 -- ...1229d7042950891759db010a27c5a18ed2909.json | 22 -- ...69e6ad7a517fd29a3d2a7634cc655bf7f2bfb.json | 15 -- ...5255d70d2b790baa1bfb5397913d2a4b1dd8f.json | 15 -- ...68d4463413d22894b6c6b72965f90d8ef0436.json | 16 -- ...00c114cdf9ed7f203553020cf032732892e80.json | 27 --- ...bca7bf107ae20dbadbf64a7799ab162b2feb4.json | 95 --------- ...25be135e66c8215c051a56c7aa032b2abbd02.json | 26 --- ...ee9ff97875c9e2335b46fe13b2bbdee721186.json | 52 ----- ...c923e43d1d9abcfa5ad3fd714ce35c3c0e3f0.json | 22 -- ...e1ec8ed06a16fc14ae6d4046eb75bc427fb69.json | 58 ------ ...c0b1a97e277c5c50d9f14dd86c121164b486b.json | 15 -- ...6ad45483ad784af4908660342b1c57f045095.json | 64 ------ ...8d2b4c354daa345b9c838adc1fadbc6a1cbb5.json | 23 --- ...e170efcab0fcd922e2c5a79772256c1e51baa.json | 16 -- ...e4dc054b233dea57f9c78a4f2ba5b19284f62.json | 22 -- ...6ceff6eead17cf856cf45a6a49896626b6bdf.json | 15 -- ...6ad7e4dbcb5e7f6b0560316ca474878971e63.json | 84 -------- ...de88693c45f2184b1d9553a9baa36cbef6380.json | 34 ---- ...96f3fc28bd7c823b9eb181eb0c9fba7635c37.json | 34 ---- ...82762a83c3dbeec3eacfeaadae1ca8aff376c.json | 34 ---- ...0b27c51a57253d0d82c55793eb5b0852d476f.json | 15 -- ...e4e0761b29a596122af48beb1a062bd157844.json | 29 --- ...502b405bd0e971be8425d4573846beadb6bf3.json | 61 ------ ...f100a55cf2bb037ec171c3bcc8650edd73548.json | 25 --- ...dcb90b605b55480a604c4e047c450b5ab433f.json | 20 -- ...08d4fdf58135dc3e99ed73381a29f94b8a270.json | 22 -- ...4e41c9e9d93550acd5c691de63e313a5c9b54.json | 40 ---- ...02daa92a5a01f2ad46d8124e0568ce8b17073.json | 20 -- ...fd9fcb0d4778c5dc308720710e8f5e9995911.json | 57 ------ ...8653289e7abb1719b58fd0a4d7e8f6cedb423.json | 22 -- ...f3e6bec03dc90a97d3082614d72ad35e6f5d7.json | 26 --- ...b2fc4fc9f5d61726741284b1301af69517705.json | 15 -- ...cb6ab0ea074976d13639ccc6d6932f79fae13.json | 24 --- ...eab7815948fcad38c5ce05925ebc4a5ebea69.json | 47 ----- ...a7b3f36ef0e70c887db31f5cc5a8eb8ee1844.json | 14 -- ...177abfe97c6ce6291ba8f83148ba02eaead73.json | 45 ----- ...da4e6e89dae702e5b50269db6e17265d14643.json | 66 ------ ...8dd69f6539902e580bdeaeaabdbf4d72793ef.json | 14 -- ...3315c56e84c969498cb55c34bd93d937dd924.json | 14 -- ...9f4e18f2b4f992d73ad2b608b77869a7856a9.json | 46 ----- ...9ad7cdfe99f883f0e27a402545ce0b3557ed1.json | 173 ---------------- ...d4c322073f31bf3123cf8504bac3ac225191b.json | 173 ---------------- ...f1ebd8a471c3b0e6e4016de97a8fbfd1288b7.json | 15 -- ...1835385045e45c20aaba40ed940cf3f25a07a.json | 40 ---- ...37f7074464d19fc6646401072914709be353e.json | 172 ---------------- ...277b5298c45ed798719e792e722bd30615a95.json | 73 ------- ...5fbab6644ddd99a4913bc05ffd713f0c4ad5b.json | 15 -- ...f001b1da7b88bcd175929f42b88146d4707f8.json | 66 ------ ...2991b831dc11f9ab91d92b368340fa0aa8f8f.json | 14 -- ...a2ea768622c3b189ffa6664c15669f7d78b90.json | 77 ------- ...bb5f5d73338d8cb9ec96c67fd8d6ea4746970.json | 34 ---- ...2cfa426a24d03d78ddea8c6c837143bb1d6bf.json | 14 -- ...eb291f29d3fe5dca1bfa5ae426aad4a086ccd.json | 28 --- ...cae43516d969d93066adf3bea59f64fcce246.json | 29 --- ...15e99eac0492d7e855375a0389e246c400049.json | 128 ------------ ...fb21edf79cf3409c9d1fbcb71c4564b6b453d.json | 76 ------- ...cb505e07534de33d0275ed860aea9f6614fc7.json | 145 ------------- ...c0d10a911eecd17e12d2c3937dae20ae71bef.json | 22 -- ...1031cd3fcee89685f44afc0d0305ec6231093.json | 28 --- ...5cd58ff2db92684a0c685bad7e8f133521563.json | 38 ---- ...229df9ec397fa2035c305d00133abeea39358.json | 28 --- ...f3e2a1bf3af9a8fb1487fd32fb3f833641046.json | 22 -- ...80bca194989d88fd991abe2efd2c66d5a5e8e.json | 24 --- ...b2dc247030b9e6eb3a750e30cdd770bf92fa9.json | 39 ---- ...5795696c6d02cbabc4619d6c384bfb5bff330.json | 15 -- ...4b3d940d114ee09eaa06916c48da29b8ce62e.json | 77 ------- ...b5d7c6f8264109d57c825e903233bb7ea22ff.json | 15 -- ...10ebf8de2788f357c3af3932a6516c235271e.json | 14 -- ...686ac9efbb516589692adcb97ffd1ace56ac9.json | 21 -- ...aa3a88303c3508b7218179e27812e3cad7ec2.json | 83 -------- ...be6a894f1c511b957f6988b966d730d47bc59.json | 15 -- ...28c093cc117a1ff6a8628f3bea4ea860c2dfd.json | 94 --------- ...61a56fe28b866c4e6684d4208f97a21a7c5d8.json | 15 -- ...585d16912c6fd506196d2058ee41c09e71433.json | 16 -- ...f724d132c32f4971d533f7dbe0a42e283ebce.json | 23 --- ...aa7edfb6bc776504942fd6f5ab4302a49a857.json | 15 -- ...38c649fa27b433650b735c685e60ad9435a4b.json | 22 -- ...e3d2e68f8539e835552e8c8ca0d562adbbefe.json | 22 -- ...f9a57924573692cf0529ad021b6eef00ce99e.json | 28 --- ...43a94d927a08a81b8687714a96bd52a94cfcf.json | 76 ------- ...54182467bb638a6d399b3ea8212d1a026d4fd.json | 14 -- ...1bef7da249de88d145a2925832425785250f8.json | 22 -- ...098a0efa439c0ccefa93c46971a0f2fe7efcf.json | 35 ---- ...3696b517ecdd60243bf27c9564c7b969f1143.json | 74 ------- ...98ac55b426b0493e769ea607618db7e246a71.json | 17 -- ...0ace37f77dd6806bf7f26211b3faa0fa84422.json | 22 -- ...676169f0bc6f606b04b1e8e3080fe95717b41.json | 22 -- ...21530de25c237c7e369b43a60ed7c28958fb8.json | 22 -- ...0e0cb5153d368eceb75d03b4cf1adfd1f58bf.json | 22 -- ...ac1d7893590a8513c5d2019793598704f64fb.json | 52 ----- ...3968dd31da940638917a96ab12dfc5a98bfa4.json | 58 ------ ...0de19c2d6e90cb030f64dccf965a0515b467e.json | 106 ---------- ...904a62689388c0b28b77a02946952e6aa8b36.json | 16 -- ...a516b7122cb0462db7ecc569b2e55a6e5057f.json | 41 ---- ...3a7f7f3c37e866d38c2ab99cfeb2fe940b2c8.json | 23 --- ...37d0febf04a956ff09e0a57665211118e876a.json | 19 -- ...05be4abae89c4eb3c5532a96b91f3d07e232f.json | 46 ----- ...af993e24bfe90d3a3553f6851b3e92c8540eb.json | 63 ------ ...624fa3af4166de80e72dbcae524f63af9ae2e.json | 69 ------- ...200ba0582eaece5a30939ed5527bc05970795.json | 76 ------- ...470fdaf0bbd407265fabd04e1201cd3754809.json | 28 --- ...ec7f96170613378e2fc37f78f2585a26f91f0.json | 30 --- ...7064c46d9799c3d1282237646ec295890b2f7.json | 15 -- ...823a3b0caf86fa2ff09ea307703a57ed72c68.json | 16 -- ...9c5bd7f594804d634f2d805ef47f997b270df.json | 14 -- ...a8c39369e808fdcb9ae39bb8e31ef99bbf3e8.json | 66 ------ ...a101f26817ebd80c68dbeffe7c3226ab67a41.json | 15 -- ...61448366cff0f2db4b3bade0294bf0e4a9bf0.json | 22 -- ...1500b574a43db370a9c995599ae8aaca20f23.json | 71 ------- ...ab9213313858eceaea2015c5e6d584d2f168d.json | 15 -- ...be7b95b9ceab66d44b0a0158ae65aedd79d02.json | 95 --------- ...41ba63241b13c30a3413e83f0206497a5591a.json | 22 -- ...97f5cbc314f1462ba6368aa297ff3758f5e61.json | 14 -- ...8113cdb5f9a4526c72be1fcce6b3bb2e88d2a.json | 15 -- ...39b2a7a87880e5a9c6aa565ac85e0efdde85d.json | 23 --- ...ce27e9f8c6a5ba43888d9e357b10d95e0f6f2.json | 23 --- ...4d9f77f55d10e070be80de74d22e18ba8a7d4.json | 22 -- ...d0252976b275c608a3eb96e3043a1a02d452f.json | 47 ----- ...66ba931aeb9036344782bd4a5e277df2c7ce2.json | 22 -- ...eccb8ea77088f535970dbcf5f80d57a9a4c5b.json | 110 ---------- ...330f4678e3d3d44f1369bdd0b31f21600fdb1.json | 128 ------------ ...607566b99dbd819d7bca5a88e62fac00098d4.json | 41 ---- ...d5056b6e87465a3e8c7bcde2db81b75ba2f57.json | 14 -- ...fee699c6de82cfa14ba2a403486731366d664.json | 35 ---- ...76b882f5be1d44a2a06a71783418fc5ef381b.json | 29 --- ...d67a55ae4e7f2cf8bdde6ad1c834196934cf4.json | 14 -- ...05954c5f749b5a76592d8ba8bd78d3ed410cc.json | 47 ----- ...56380bda195f4769b6420e601ed147a9439f9.json | 71 ------- ...601338c1d98e45b630d1a3e1622fb16ad58b6.json | 59 ------ ...a5bfa78673bf04979c01365b9e9a35398125f.json | 22 -- ...82666220cf9bf24918ba7c7b9fce1fcd5783e.json | 28 --- ...6d201ca5190bdbca1c90001a98c46b789771f.json | 28 --- ...baa584754659223dc45b3adbf30959b7f739e.json | 14 -- ...f4fe9c1da7b19594f1b7dc59f2ed0a613dec1.json | 74 ------- ...06ae249491210d011843f13d67214f65565c3.json | 29 --- ...4f933169f5ee39129b4bd6fa372311cdc15bb.json | 15 -- ...67e2d99c3981222a87e823892706e4b9354ac.json | 17 -- ...dc3bd8e945b75380f112bb1118491b3d03f96.json | 50 ----- ...3c1053c050c7529496a73e3cf74d728f5b6ff.json | 15 -- ...87a1638589d539c60d9dc5c2ab0865ff062d6.json | 22 -- ...7811ad04313b1aa31f4b51abe5fd3bf569674.json | 15 -- ...7655784e36ba1b3285b607ff59d9d88829f7a.json | 14 -- ...929f7aac2269af2ec0830f98558045826576f.json | 23 --- ...f52f37d2f54bd8243265c6561f4423af8617c.json | 16 -- ...17b43793526453437ac01d9d20df52ff87ced.json | 29 --- ...a880b859bc61f745087e067f6b05e6878cc04.json | 22 -- ...6bc6cd3a96d84e15909c85c8e6ec4a8b69e42.json | 14 -- ...14ef73e9c8ebffb19a40ed7e059004d9bdb9a.json | 15 -- ...b657ca7671e1ab9d1a4691372693a9f9a4ff8.json | 22 -- ...14cd04b67b741bac7bac67471bcfe21205d80.json | 58 ------ ...5d33e0f3cdd3a3bab22f0fd1eb5e71c46a935.json | 20 -- ...68f1cd36c04d98b98016eaed27a98622c05c4.json | 59 ------ ...7cdc1a007500afdc7c8e232a59a8b60824962.json | 57 ------ ...0657cfa6d5e400247cbf304a3d28cde13c39d.json | 23 --- ...d250abab1fda9e01dfd44d7e02e53f107816f.json | 89 -------- ...0d6178a8fbdfe21983501c6baf4ce30cbe5d2.json | 14 -- ...22a86ce4333805799488d1c37df47d928ddc2.json | 35 ---- ...4f0abbb105b8fb03e44c12f7241fc52b022d4.json | 46 ----- ...02b9b2036019140bb0da9d2f033cdba2289f3.json | 36 ---- ...f98f24d1991cacd53b806e81746c16144cc83.json | 15 -- ...d27fbb4ac3a6b655e5dc2c11ea4c802587214.json | 23 --- ...8cea15b4124517eeed1d24ab006dd33e409e1.json | 15 -- ...8efde2c37d0ddcb6fa557b800cb442f7ba10e.json | 14 -- ...75cb62de647cebc07d42b93e58f35fb34e7bd.json | 70 ------- ...0ab2977e09a30aa82b70b78e51c4a0877f229.json | 70 ------- ...f7640171d9adbb9f95962db83d979d02cc2d5.json | 34 ---- ...772673560741961c20f5c401b59b5c5f6027d.json | 22 -- ...b18f0867a279705c7f5a91775754f3cfbe83c.json | 71 ------- ...a037263a6ef8f1daf5eb8ee95ee50ad97f3c0.json | 15 -- ...52425ff06f3bdc9bf008414db8301161d1f4f.json | 28 --- ...11d0e6c269464a8506f0ec29db94b7841a038.json | 88 -------- ...3b1052fe8c636b986fb6f59f67fcfd08fce38.json | 15 -- ...7314630cfd377b004a8c1dfedbf5764137ebd.json | 54 ----- ...bb866cacda011d43947e9dd29e0ec60f42d2b.json | 28 --- ...ab0010e207e54ef3453edc0df2180a5e402ba.json | 15 -- ...a304b0d9676ba2fb8cd7ac3e9c9906e5726d7.json | 14 -- ...9257bc04def00c6417bee80f7816d1a085578.json | 52 ----- ...efe90a96a9ba79d142abbcd4846b3400dfa57.json | 15 -- ...fbe0b72aafdd053092bbbd4b1f918d3e194e2.json | 15 -- ...b156ec4433cb228a034aed09e059ef005e92e.json | 16 -- ...9f9d5c22ca624f08f29bed7fe9e265288eba9.json | 16 -- ...1efe33721073350ae49882e066ac544bbb995.json | 15 -- ...b7996d92d842e88d386cb0b65fb11468cdc57.json | 14 -- ...d80da7dfa7251e2333f8981e2a76f40e623c2.json | 32 --- ...c22d2c1075924eb4c5089bd81b1f3b72e0455.json | 15 -- ...0984ee4911e974d0bcc78248c022d44fa20f1.json | 22 -- ...c995ead4fd6f968ef17176a770ffa46b44f64.json | 23 --- ...e7156eebd31e6d39dd4b9f6bbb397bd8a5f56.json | 57 ------ ...453738aa66c36c46313ca18c7570b406553f6.json | 20 -- ...6c36ad70078feb62d295e33506f317fe07bb1.json | 14 -- ...01a65dc6bad54ef3c3462f7bf5727f9ab3a42.json | 47 ----- ...a596369e6a42d1371b871c7739e2dc0ff0b11.json | 15 -- ...0cb0d1dde7ec2707d52d5d2211d5569d0a949.json | 32 --- ...9ca5ab3dffaa6794fe78612b94389ee90e3b4.json | 23 --- ...6fe432ac1128af2df592077c848e75009509d.json | 14 -- ...55489e99232e1dbd25cbb3f31746b4b9614ab.json | 15 -- ...b9f9e666235381e20631e0ed08d095a29507e.json | 22 -- ...45071efd36c3088dab4feada6254bc1aa41f2.json | 23 --- ...8c51813d41f72f734271c538bd3e5377e2a4c.json | 53 ----- ...41346b3432771aa29162272624e4bed3e54e5.json | 22 -- ...0f07f517dca38e8a70bad08b4b655cb1cd550.json | 16 -- ...b46168b4bf9848d252242a06569301144a4f6.json | 56 ------ ...b78c285f0440e2c5157d1ef2ee614cc2105f3.json | 23 --- ...2ca5c95970ef6ad421ec0f5fbe89bea212ff5.json | 23 --- ...f4149fe8829da208e8689ccd7e2154e8d7136.json | 76 ------- ...32edf0d811d09c54b66522e38366cdefd98a6.json | 16 -- ...866c7a6ba7f2a405b174a238623f5e496886c.json | 14 -- ...8400d28bde0e2c3af5211a83a01165f751029.json | 16 -- ...5f5f7c6116cd761471bd5e03f528bf32effa5.json | 22 -- ...a429f9420fe1403f56b6c472640efd43451ce.json | 24 --- ...f8671f0af53a90629efe34f6f4e13ba227e91.json | 34 ---- ...9d46e5747660807a30564921bc371ddd1338d.json | 16 -- ...114987bb800ba14658efaac7cafd0c16672c8.json | 39 ---- ...ee2054d9f2cf9789f913e0f9cd65b9a93de79.json | 60 ------ ...750328437c7732e147e15818a269bb63be183.json | 14 -- ...7184e2e6623e487afc52358f77f57d236a255.json | 14 -- ...6dfa3dd1f0ddb2c37493ed1235fe488073d89.json | 108 ---------- ...cc1d34d10eda3212c0dcbd92db0ed61e86ec4.json | 15 -- ...ba45d608cf5aa1d39c692c93fe06a5593f312.json | 46 ----- ...c10673c7756fda2cce9fe8619d68d92219a88.json | 22 -- ...f9cca114fa5fe46b7bb0de469135f54dcd710.json | 23 --- ...a7da3261d0a04e24cc16f96ec9f2dea3b2e98.json | 22 -- ...506a77077406116f58821f9c1b38b855fb995.json | 22 -- ...40d81ccd384ffc21881d7c162895cb7d11647.json | 29 --- ...c90f9a796ec770c53cbee32660ed867c138a4.json | 23 --- ...62d6fdb092bffc720d929de5e7b50ecef5139.json | 28 --- ...d3506f32146eb21d6714d60136850e9d849bf.json | 15 -- ...a8803972c7b3e2b6a2b95c27f15068bed2ca5.json | 22 -- ...8b05005afb77be95bc434a924e53c17cd6033.json | 22 -- ...e43648c19b5a092049b7cb0a6382e931371a1.json | 12 -- ...f683ccf76c634d71337d35d1a8b7004f31c35.json | 41 ---- ...b4f783e345db19b32a815bbf68652121da947.json | 14 -- ...e6b230a21fe9935e099d1310d244248ca253a.json | 23 --- ...8bf48968cebebc7316b87b192d649e096cd67.json | 23 --- ...e0c1625c2e66de29cdf080f66832e62e07e76.json | 15 -- ...941a9293a5eeeb1de3900c3c39386d5dc57c0.json | 34 ---- ...624be4d81662c6f82f6aa16ba2e752dcabd94.json | 22 -- ...856a320bd22a3962cf1ccec2c930a56ed6a26.json | 22 -- ...573beda79b93bfd874acc1b2059cbe041d8a3.json | 16 -- ...c21c7843eea381e396a3c688b390ced89620a.json | 76 ------- ...ebde1405e003a2d84d25542e8a11c7895be18.json | 29 --- ...80aae302752bce224b1e69dcb3f2a9c1cef5b.json | 15 -- ...e1913f1fa8606bdb384b8e697cb5c723cf40b.json | 24 --- ...00127619bcfe56c969e69c03c98e7b2d975f9.json | 23 --- ...90b7a1e1eee80d0b7388c2ad68e8ce5a996c7.json | 22 -- ...34398757d8e7959cd237df7e4947fb75aa56f.json | 28 --- ...de53c3002b45bbe4e800fd2edf3c09f7625cc.json | 22 -- ...3b773d4b7c9b508388987155815d8c7e1db3b.json | 58 ------ ...680c75ad890e4fdf4b9c0b9d88ff07abc23a4.json | 173 ---------------- ...d70f665ebe35943b7246ff5e6e3f801183cef.json | 15 -- ...c014cab9de72bd88605ff47a316baa2c7acc2.json | 22 -- ...262c2f639f313f14fd56da967a74d91aa1c88.json | 20 -- ...940bf0d6d2c4280e69b09b4f7c8839b5ad658.json | 76 ------- ...eca0703771ea550311dfe651cc4cc063d34db.json | 23 --- ...0a09730630660ae75e8f6e5cfd8f5ba0ceb4e.json | 35 ---- ...b3f8eb316ff51e1099e40611ba77f5c048828.json | 119 ----------- ...db80173119aacbab82f50a4a1ae468aaada65.json | 71 ------- ...46cf0339ffbcece51c12635989df120793dfb.json | 77 ------- ...d3e9dcab6dcebcb601bfb1ed190dbda0ff37f.json | 34 ---- ...6562ccabe8d554bb4013b3970ddd3f10fc364.json | 34 ---- ...e039b37662cf51a607ad905f758c508aa5049.json | 22 -- ...9bc1ac1a63e950ae4446a7c748ac067b7c8cc.json | 24 --- ...d472b901c087890909de9a068d6bc1ba0eb7a.json | 22 -- ...83d86a7214baaa710e8a527e1dd77ab8274b6.json | 14 -- ...a69efaab69905bb6b97d5d57ad591ff8c2006.json | 14 -- ...30f6400385b295a50b48776985089d6ae3c84.json | 73 ------- ...a8f976e86c6251e12517a2b1e14d525e09198.json | 28 --- ...aad059a55440c2de73c818ef28d6cf08acf80.json | 19 -- ...eb4148255b83e18fad15349d06c54040fd6cc.json | 21 -- ...827d0aee69ec593e923e41d2545b75d1def37.json | 15 -- ...77e939dd85a9090b3d89d71bb495b2ba7cca9.json | 14 -- ...68c86028ac0ecb586a78fe55438f5e13b9106.json | 15 -- ...4138f065c6c9b2a92c0de4d048dc72fdfe369.json | 17 -- ...b42476455160ba50f8e599a47acca06484cd7.json | 40 ---- ...aef3148e80824e023ddee78473fbae17720de.json | 71 ------- ...e4a2a56f301223b62413247ac15bd5fef29c5.json | 15 -- ...c02e8c4a0d136a40149829b96dff878897108.json | 14 -- ...8ecca7428b1054d451fb2f8973cf9c11caf45.json | 118 ----------- ...8139fbab4c5bf559090a45d79384bcef71a43.json | 14 -- ...f7c6599dd2dd0de63c92a772d6638bec6ef77.json | 172 ---------------- ...4ba5f2cfd3a341111c1fc757ae75f50134d7f.json | 28 --- ...b5956f4d84fb449358a83393d0491d712f44f.json | 40 ---- ...b80eafcff34b2d5d13621a688883acc3db154.json | 129 ------------ ...3b547ad7f8880f4e695bc037ccc7ca8493f82.json | 23 --- ...11c6419a2e25f66201dfefc8a87a586150d26.json | 23 --- ...34534f93906716e415c54b6e3b30834973bc7.json | 28 --- ...c62991540fc188b1c70f3c40a8a12f4908071.json | 22 -- ...662f7a68651a2375e36b9923a6bf7fec71426.json | 22 -- ...251d28c15592d8b50959c331bbc2ba45ceaea.json | 22 -- ...01c5782128a4cb9a020e22ab83a24a6c2b4f5.json | 110 ---------- ...d760a9d51f927e073bd9b2f07c690882fac03.json | 34 ---- ...b8338692087d259f3c0dc0975b6b2053a7b45.json | 41 ---- ...5cd78bb02fa8505c3ba8111d1c9e17ffd93d8.json | 76 ------- ...9afd4b4971b517b12e578ec2f534038609572.json | 29 --- ...fb3ea45d1766256ee45b0c5967618301b2ea6.json | 83 -------- ...1919d486794aef06d9296b91c7f13ad846d1c.json | 128 ------------ ...710814de9a258724b40796328784a5239ea5f.json | 60 ------ ...0c6f4090dbdbbb9f5f609edbad91becbc1bb4.json | 22 -- ...2abb2b0d392b7f098fdedac066a67d4dfd7d9.json | 22 -- ...ecb7a7493b1a1df0b372b460170154a49a509.json | 66 ------ ...0199ded6efb032bc7e2daaca06013bb130e9b.json | 34 ---- ...6b8c05f43739f31587aa63e57dbfd0093ab1d.json | 22 -- ...b096a1aedea8c4bb63029e0024bce1e5029f9.json | 45 ----- ...614c820d21950e32ab2f6092c78dfb5e77aae.json | 15 -- ...037f0121d673203126052c384ccca95d472db.json | 22 -- ...b4adb80d18fdc595352afa30159ac3eb864bc.json | 15 -- ...a1c1307846848b1b1bd40ee02438ada43052f.json | 16 -- ...aa59144a5b3269120df892f161c74b5fe7436.json | 15 -- ...90b3e0b6f09bc06968eb94e36d0c55c6b0822.json | 14 -- ...74b9734ecd81e4e1e1d0f7a1fc3a7d2c2c053.json | 22 -- ...80e664655853aab4646cc5e889f48c5511aa1.json | 16 -- ...8a1917acb27181343384b86c0a9cc750013bc.json | 15 -- ...2df35b86bb10ef4bb518fb4594fe81d282606.json | 22 -- ...60bd057a7efe02fe027f9514cc8fbdba2159b.json | 40 ---- ...b2bf5e342b790423e98d6c62ba29a1a434d85.json | 22 -- ...89a38a749efb40b4e033f4525fcf03755c2de.json | 14 -- ...733ab98724d4b89d409fa770209d4d7627654.json | 35 ---- ...a7dc2d2ca72f9fc3d55a412460a0d8231555e.json | 22 -- ...cb7e8e2f73c4f87ca77a32c64d99ac28a4b12.json | 34 ---- ...d82dc4fb489cccaf5ca647c5a9403fa760ce9.json | 22 -- ...1a29eb711f46fa9f28cf211136eb4361b87bc.json | 14 -- ...55dc8b17c5a105492901ad72da89438ec6601.json | 36 ---- ...870258288ab2b3125c4f31dec62d916f0b64a.json | 28 --- ...13d0327649d0b807a60928142de0d6a2ce5e8.json | 23 --- ...916be18a81bc149bfb4cc170586f707de7cc3.json | 15 -- ...ea7da6a544800e931142ac88d413aaed73653.json | 20 -- ...f2bf9211061274491815b8af4c634e62cee06.json | 14 -- ...54c02f0776d151ed57da06713a6a0d7185392.json | 14 -- ...7a956514fd084748105272d9915b515d0ebd2.json | 64 ------ ...eb8f707e99f0a207a9b34f27848ab362a7bff.json | 83 -------- ...218e2e69f540f69d0ab223170a52ac92af43c.json | 20 -- ...2fe1ce97205a1574fcedd7e87596c63d6dab0.json | 62 ------ ...36d64a890e17f75447b5b7bc743347d16a91b.json | 16 -- ...c01f32d29696d130e0e1f46599273575bcb02.json | 95 --------- ...04d8c58ec09f88682ed2e5ec0ea26605cba2b.json | 77 ------- ...879fc666056bef965cfce73149d446b4c71bd.json | 24 --- ...500362b483bcea23aec896bfaf9e67fd6dc95.json | 22 -- ...918bf6497d8ec2339d9173904a7532b2b0052.json | 14 -- ...78a1879039b7230aa83df18f583106c97a18f.json | 130 ------------ ...8fe3569d973d3d2a3f723c70414c04cc574ef.json | 16 -- ...301467f257fbc1bde2a018fe9efb1e6728cd3.json | 16 -- ...cf2858a32311a07bca8ea0bb9f54ea507f8e3.json | 22 -- ...48a7e8ad714623a8a2fe32c785ddb27937eae.json | 22 -- ...70b154ad229bcf9280c54e5975914d1c6fc78.json | 22 -- ...9c658fdacea4d0d0c7070aded12cccd373911.json | 16 -- ...ee17e311301f88b1550dbff4eb41b6e12db13.json | 76 ------- ...9aa2089b8ab3ea0cf3fbe3b35d6f17be9b355.json | 35 ---- ...4bcbee35802a575387ef081a09031b42f7de9.json | 85 -------- ...51aee78b249f6d66133c572c39a7ca8e11024.json | 15 -- ...c86a1aa898bcf344fe913db7ee5c47dfde47c.json | 22 -- ...fcc0f253c96269afb634301ed6d207c206107.json | 15 -- ...82e453c82b6a4c279973b2f7c0c631ffeff12.json | 28 --- ...08a172b5a030ede2b8528a103397a6dc4a42e.json | 35 ---- ...c57f4af547d21eb2f6c78c9e2335f4fcd64c2.json | 63 ------ ...c035d54880fcc3d80b41bd5d255245e94263e.json | 82 -------- ...947769f26aafbebb3a1b0c759f5246fcca507.json | 23 --- ...fe39d6ad21150fc2f1049548c724516b9210b.json | 15 -- ...635362915023e2457fe6bb676c05c5d6f9ee2.json | 23 --- ...ce2253c39d7532a38bcda72c8a6da965310f9.json | 22 -- ...11f765a6c10025c1b519f4a5d76ccfd64fb75.json | 28 --- ...31b621173c04bfda9678021360817c3f25103.json | 95 --------- ...b65ae3b712a0b659b63e366e5f485b8630951.json | 16 -- ...5e6c8e8d204599eb1ee4d576b9a913aca0b41.json | 14 -- ...92913cced9a2c8a5eac4f07a4f56e621512ee.json | 14 -- ...127970920fb761ec08d3303bffc94402b984e.json | 53 ----- ...520046ac0e7e882d9c5ec76a3578ae4bc7d50.json | 28 --- ...ab9ae6a9269c950b45897a5e64c14cd00e117.json | 22 -- ...0eb521625862f180e9bc75096de5573436928.json | 22 -- ...c8ae86c6f090cbfd28f22cd952756950a94db.json | 74 ------- ...e6c4f4b39b7ae7b8b4dd248f54714d842a08e.json | 58 ------ ...4932e4d2123e0721a86c2b2fb691a32b92054.json | 15 -- ...3db9ae11c6625c948798e19ca19da4a30f3c1.json | 41 ---- ...1a4abb11652671a95454969369a0484ed9239.json | 16 -- ...2baa9efd886c9ed75aabbf05e9cc43636d319.json | 14 -- ...5621e7690af924a1af7bb4748dc704ed8897d.json | 59 ------ ...d4311ca4e2ed8e7ff939912a65e045a49c939.json | 28 --- ...78ee6d16600fb11697445001c661e49bf48f4.json | 15 -- ...4ee795af7afc2cf14a910b0baf5838c4284e6.json | 34 ---- ...812694d0f7408053c49c3e58ecca561d67c64.json | 46 ----- ...5d567f40a1b54a6186e0aa064be0f18212c98.json | 95 --------- ...7dcf0a962feb7832aab9fc4bd50613f742b59.json | 22 -- ...7c0a3a97e5594c29f11fa893238656e161ff1.json | 15 -- ...cec40eaa0faddb4490ad14ae9cc6c4d922256.json | 40 ---- ...38eddd466c0ec2ec9f96ae2be185ef9ff1547.json | 73 ------- ...6809895c255a103ca296451cbfe6c99833e8f.json | 15 -- ...7b81c8ff478ddd1d7116a626d9a7d4bdc0297.json | 173 ---------------- ...c742deb835c1e2c5a23390501ef95bc0f12cd.json | 118 ----------- ...8dcc47089bf02ae5dbf0f15eb0be64395d09f.json | 36 ---- ...3fc086f4518149772d661222d54592df920d3.json | 25 --- ...1bd176b609bdab2f96a13e2d035510a72eebb.json | 28 --- ...c4d2d8e8113701d39452faa3147bb18974926.json | 24 --- ...93577a02892254df31144b5df44bdc5b58381.json | 46 ----- ...0b4b5ee7ee34505f206d0a6861cec41ef589a.json | 58 ------ ...1fdeb1b2ff97c69fe26b5a09c82d393ce4010.json | 22 -- ...4b3d4a434de5c66f3cbcadedc4c6f20769ade.json | 14 -- ...a11600e5f84094b73f3ce359c48e60b6921be.json | 24 --- ...380459c4400902f4c3c86e3e2650613321a70.json | 16 -- ...0887af626bf74de28e395ab8a1875bc9fe9ac.json | 65 ------ ...a41a916397efdb2620e338a211f97751c0d89.json | 22 -- ...a66231fc7b960744db3830385a13a45a3ce8f.json | 15 -- ...f9fd70cd817602df9ad6d355b26e13b47553a.json | 15 -- ...70af1692f03a0df09f0ee78a589158e8f51ee.json | 14 -- ...2eb45a7f04dcc2fbdceed41497048a2410ce5.json | 46 ----- ...93f60b6731fa2c553f3fda711cf72f1574fae.json | 22 -- ...cdf23a4a1c1d900d9a0267b1b38a054c49dc3.json | 128 ------------ ...9e0547ed654489c726b44faf23524f148ec86.json | 28 --- ...cb223cda097f8b2d35d22f446f873960480c0.json | 15 -- ...64c5ff57853c93ff00f768b49bf79f198590b.json | 58 ------ ...8ba67be32356a3b2b62660982ca8932a0d2f7.json | 12 -- ...ebf87a5152702bb5b9ffb2b817ad93c0635ea.json | 15 -- ...e61c04906fa841a9d21c29127d03797e98186.json | 15 -- ...683f34a3f5684edaa965cbdb1b09e422cab8b.json | 16 -- ...5abe2ad4c2f28d0f4cea773ef7b4267eb0e81.json | 15 -- ...3dc157a2a327ce9aea06a1a772c1741abcf9a.json | 36 ---- ...d1a363cada017252a6f653c2272608189bcc4.json | 28 --- ...d81031064da7fa08afec7364df40546b1ac0c.json | 16 -- ...2222f49274e9e72dbd25cf9c197b4f97654a5.json | 28 --- ...d3495c14fbf4095333a1f5632f836b365065f.json | 23 --- ...99d19192e10139d6ea089be4a3a4a7923361c.json | 18 -- ...e3494eae0e23c6dbbbccfb139da68193690c7.json | 69 ------- ...086235243eae535cc42bb0908210b54b916d8.json | 22 -- ...e2b8e4a6cc69374b90600457a32b14a91ae61.json | 22 -- ...7931a2cbc77192ce513473a4f5e3498b8533c.json | 101 ---------- ...479f1ba89549f1930f571bf278fcfe259cfd1.json | 45 ----- ...756629b2a2571db10a385a0d3559f64481f59.json | 16 -- ...b3209dfe7e2e60fa1396cfb3efff85e9d8c4d.json | 28 --- ...b9fcc32c2a19dd97678335c04dab4739024d4.json | 14 -- ...8c8a87045ca5aa3d85cefbba8111c65892870.json | 24 --- ...e786b27205399c3295d82c636d07d7308bcf0.json | 28 --- ...f91510017a27cd442f5693c5777ddc64d1c9b.json | 28 --- ...402ddd6d9b5adcde3a8b55c19c649ac3d5a18.json | 15 -- ...4bb36b63fabbaf3e826459537e089ed3c19a7.json | 22 -- ...d4fdcdb3aaeb946ea3e5ca94dc58050ca7d97.json | 15 -- ...c115cd53ef8d352740fbcaff2f3e53a630295.json | 14 -- ...0c373e29c8ff79ed52417fdeeb4de8fe00782.json | 16 -- ...f929750755818869e48118cc0f91187049afe.json | 22 -- ...affdf67114b90d5d398d16dec2f801aabdda8.json | 59 ------ ...461a1b8aa81a865bf1af5434d5469efa44f76.json | 37 ---- ...789a544d3b7e5710bbc19254fdff129624b87.json | 28 --- ...76803fa1c00827bcb8f51c7d000c0a9adfa94.json | 16 -- ...bdb20d4e37ebf037dceeb2673f6a3d64738de.json | 15 -- ...27efead8bb987ad26e89f2e12f875ff38e0be.json | 46 ----- ...693dd3ab1eb8b4f310528a43e630e233446cb.json | 24 --- ...e39345a04dee3de88fd4cbc8fc6ab8f34da60.json | 22 -- ...a856e70e71c0a070f0a1a005ba5e2aa7eabac.json | 15 -- ...697936821511404ffb49c7ca4b8134e9c9147.json | 46 ----- ...4a945a8d67e1d18153d4f0128108ce65212f4.json | 16 -- ...a7bf0f464619f047b5d967914f7b476722db5.json | 14 -- ...ca6fc4fcfc26228c3d3f8f055702598616a64.json | 22 -- ...1935265af572afbbf60702a4521e4c19b8468.json | 46 ----- ...7a6533d6f7c8d051ca997a7e0db53314d5f80.json | 27 --- ...758d171081c5aa35c785b178150aa9d8d3635.json | 31 --- ...9b2268827d7ce92ca55d21b38ba2a7a8b3c1c.json | 14 -- ...0bcfad130247e99f31c127c6dabcbe1b3790d.json | 15 -- ...f44fb02848a8f4200a900679efb26e1d0cb70.json | 26 --- ...02554c21e5b44768f5761c1d19d019f7208c4.json | 23 --- ...647888af5486e729bb5475dfabd21b01b4bf6.json | 15 -- ...a4016db81bdbebd7ea0add856bc3eca7a7ba6.json | 65 ------ ...2579b6ba0f419f72b68d08cc2183e9d0d6341.json | 20 -- ...3fab241312305c74f1bcdb32b96e924030b1d.json | 28 --- ...a3cd79e1a80bc3f46cd063d0ff94d9b76f252.json | 57 ------ ...909f73796aef0302323f7930fe4d17ccfe6af.json | 74 ------- ...c54b2e1681ebbcbd9bb030768983d6ce966b6.json | 35 ---- ...78e9b0e2f2228c5d6a7453122eb59fa90f64a.json | 22 -- ...518c828b88bc4ca913019d9d4802395e7a22a.json | 14 -- ...85d8cf8a255b6805fecec787953461a09d78b.json | 40 ---- ...423e760ba3632bfae3aef9da1f146b7a9c638.json | 86 -------- ...06bb48c977202f069d12143bece9f24bdb6ab.json | 22 -- ...252d9726565fbef858cf484ca86ab0625c6ec.json | 70 ------- ...6b3a51049dd104e2306c4596f1ff99ec329c3.json | 22 -- ...f3cf60de7edc46f5bd7d943873cf2809ade77.json | 22 -- ...bde46c44d19face725f848d1d53c364a73909.json | 23 --- ...12cfabedfb8164af00cdb4a52c9d1f98229af.json | 14 -- ...35fdfe36277075384044c8f7f3e8ce810c236.json | 15 -- ...c9ef5dc894f2a86012e54c8bd5e085458a89d.json | 14 -- ...b75dfc995ac18e421ca940dd0828aa32b47a6.json | 65 ------ ...49dfa6bc98f42ecb46ee9d3c20ca2daf43e44.json | 34 ---- ...1191a9b0ee849745041e1fecc7e4ba9b4fc5d.json | 15 -- ...d7149fa0e81809511939a420fe17f93ae7d6e.json | 17 -- ...a95f778b5cc841f3a08c8d406752da8d25be3.json | 84 -------- ...21138cea6141d03301b03f7c7e0d509663dc4.json | 70 ------- ...a1195b845609b557d278290359a0e6170c10d.json | 15 -- ...b77bede612a071cd8b18bb8d68965c1414204.json | 174 ---------------- ...4f7d08731aa1543d9d2d6f6d105be9e7a0530.json | 190 ------------------ ...12b4c9bb92fe9450fa0950e91bcebfcb1adeb.json | 29 --- ...c21c001e01d1691861d8b9df950b03bdb2f4b.json | 22 -- ...e39aac513e2b7ae7c7aabaa9ac59f270dbffc.json | 14 -- ...a04d156d39f39abea24050e63caf56267898a.json | 52 ----- ...6ab8dc226dd06869786792add6fe5535da1e7.json | 34 ---- ...940ba795df321fe73b299eac464a0ef6a3081.json | 46 ----- ...e3b21c571b2c5a97baa04d68a2f6da500bd79.json | 87 -------- ...2776fd1abde1cea7f0f5057fede45c2312223.json | 23 --- ...4441ac2b9c20b0697d52467e0a12c17f8e473.json | 28 --- ...7e8f32d4045c3e2baa01c7100ba834dcf80e4.json | 28 --- ...437d1fa4498176f5e8deebcfc86f87cb20f54.json | 15 -- ...ce7e3d89db508f08afe5c547e981a875e9801.json | 22 -- ...a219f542dd6c24ecf785b30ef8749c0443373.json | 16 -- ...8f60be7749e48143ad40a164b236e977157f3.json | 16 -- ...094ac7f53c161f7054083964f472fa01dd83d.json | 29 --- ...0187c3178efdf6853a22ee319c0163b1f6013.json | 58 ------ ...0dde4e9e2e39f7cb20c716fbbcc1ffe320cd1.json | 16 -- ...cbfc71039effb4d2869606534765bce7b17fc.json | 24 --- ...77a78ca0d7a1e7efff35864c58ba34028f2e6.json | 14 -- ...364f1a7feee942c2a3785bf39c6f110aa70ba.json | 59 ------ ...9a4c78af368aa2134b235f8e1f046daa197bc.json | 76 ------- ...a14cae3fdde155d4f8c94418186d5a37f0686.json | 15 -- ...fd996ffa1262e0a6ba8a8e1c58414759a1fec.json | 14 -- ...2f01c886031d866616effed3c6a61a99d2413.json | 16 -- ...90743da8653dc50e3d388697e429308afeafa.json | 23 --- ...ab55518d34313519a62edf4174269606b1b1c.json | 15 -- ...c7a530010c3a00b2f2d67403bc036af6c8fb5.json | 53 ----- ...d81200e213e4f28cc7d2940a93aabe83877b0.json | 22 -- ...9944da36cdeb0c7d3d9e778dd91ff8a470b51.json | 15 -- ...ff42b906dcc72b2fb4bcd783b8cb7c06ceab4.json | 14 -- ...a3d89543ceaefae74f8962e4504196d0b76c2.json | 22 -- ...1d5e70039c2d64a25a54ef42b25889e75b653.json | 24 --- ...43b70c598adf488d805325475770ae3b7c51e.json | 29 --- ...abdce0882403268c35f6a4acf62c1212183fb.json | 14 -- ...d7bbf32e70d3d173a748a07eacdb4e42841eb.json | 29 --- ...99df3d949da660e009f35c480ba9fb19c9e07.json | 65 ------ ...c3a54ffc28abf61e66e354667d26ef3c40739.json | 15 -- ...ce262e9ab44f10825969072c01a8fe3022a23.json | 15 -- ...03ef53cc87fab0b12cff50d2e3474ff997bd6.json | 65 ------ ...0bedbf26640fdfad218b4dca813bdcee08a5a.json | 22 -- ...c67300c2f673a0f7a7f6497690bb3adc8f06c.json | 24 --- ...518b06d6247bf27821c9bea2f04c1eb999768.json | 146 -------------- ...6b79eb80caf8e2677fcf4e7127151060a50ea.json | 23 --- ...ebf12413a8a0bf8fee05fa130afb72c55ee41.json | 52 ----- ...7e1256c960fed355a37cba8c9c1eeb630a5b6.json | 15 -- ...7390b5d1e56dbaa6b8e59bc35e2a2e4937c34.json | 128 ------------ ...cffed018d15459e101dc907bd1fafb2158979.json | 172 ---------------- ...1f9c9496412cf76d6fb5158fdc5510f59464d.json | 23 --- ...09a42de5ded7acd840a8f9a3e065bcf7bcc0c.json | 52 ----- ...11de74d311cc1a6096e49372e6cc18581b523.json | 15 -- ...7716a24694cfd98741fc0508d607684b1c8a9.json | 28 --- ...47f85169af66827f2b09287099c14a1a6e0db.json | 22 -- ...657db1f0c4e2420a9f428d8d75defda053444.json | 16 -- ...68c6230d9cf7f96e816a3f98a01b62e4a0a6c.json | 34 ---- ...503cea1c346685d29795e26caab50e3654d22.json | 14 -- ...a59763b17693c09564a0190ed377dd09342cf.json | 96 --------- ...1e3986bdcced6e86a9c9869e38ff3e6d91c2d.json | 28 --- ...b204219a94105e0ba590db0a97f2c384a4192.json | 16 -- ...a51a2d068b5253bcd3a9d16b43527ae4e8f1a.json | 23 --- ...33eab3722a94e49bf01605f69c78919d8bff7.json | 14 -- ...9aef347e35bb2b023a820d85a2e85caaf7b61.json | 64 ------ ...7cf6555ee13b3de24bbe50bbc801a2730e446.json | 47 ----- ...c25b4d5733d4bc21770570cdc8412d47ffe65.json | 22 -- ...9693b568ab6d4620ad1b2f5c63d3938e212e6.json | 15 -- ...bb851ba19858a47a17b0ffcbe4f15cd177cb4.json | 22 -- ...d6093127a4ed57fa5ec3c2b43540ddf1fd598.json | 72 ------- ...8c7d897251a93c7d56b310a2fc6f026fdbea9.json | 34 ---- ...db7f703b0994d6d519fbab0fdb67ea2df5877.json | 28 --- ...fbd13c579e22b433553ba01719644a56ab816.json | 22 -- ...92a5e92973cf114526f80dbe7ab714493090b.json | 146 -------------- ...d9feca7891cdf00ad560cc522121ee8d6b4ec.json | 22 -- ...f6579456c3d49bea87fccdcb9962565543002.json | 15 -- ...9d392b5780cc548f331263a581d1b011eb970.json | 29 --- ...55fe673e71f02106e9792cc4cac40f69b9176.json | 14 -- ...68131fa26405dbacb0b1afe9a6f52e50fa57e.json | 27 --- ...80174e549103ee63f03d30fe76857c8803b6a.json | 28 --- ...e357dc50be7a4d634f45990b772eb0824a35d.json | 14 -- ...3482fce25612d56dfdf78872d74019d8b5429.json | 42 ---- ...66b08133a54fbde183a5df7a9b99dd7381ca5.json | 28 --- ...37992ac2805137ee19f9385894688e6b8a62c.json | 22 -- ...5792183e42f6c00ae95aa0f4fe869292408f0.json | 46 ----- ...45f4088406bfee6ccb2ef6577643708a5132c.json | 14 -- ...a5c409a5a54b41a9dd9e3db2267c9ee17d9fd.json | 22 -- ...7204bcffd809e425e9236b897b5efa9c7eebc.json | 22 -- ...95d91a96794ebdbc864ce0d6d8d455996914f.json | 17 -- ...f91d523c596874f216a10180a377bbaf7a1eb.json | 15 -- ...09e2d0f92546933588bad33bc3520d2ad2d10.json | 17 -- ...5defd6cbcf8e801c4c4d43d5e0d1338e1ab04.json | 39 ---- ...2aaa89d56232566edc15d9e9b819b9b02aea9.json | 22 -- ...cbb794195e1e69ffcbf722c0a2e523f196c2f.json | 22 -- ...945cfd0ea2fffa26b5324ef641dfe3e304682.json | 22 -- ...29610352e02441283f12a67b0da0c44771522.json | 76 ------- ...b4f81dad7d0c3ec2cef1eda3afa66897081e7.json | 22 -- ...2aea80ce9a658dfe055f146a38ed9e64effaf.json | 14 -- ...3f38c805d6f49150d66c8a7325c524bebc854.json | 15 -- ...681321d099febed2ed002dac6d706bf4ec173.json | 76 ------- ...a4077390d22923bff328a9d8a24275832a57d.json | 16 -- ...0666d9fc7e79b8fa8619ba43bd1315c506e0b.json | 14 -- ...ae985dfb1a3fc738532eca74c6b098c6772c0.json | 33 --- ...2a0b25cce4d43b63f05fd04b52860c482ffa3.json | 15 -- ...e09f925536086394de104bc823ad946851b0f.json | 30 --- ...2c750743ed9c04ca6ea8a5fd1a6d3a5fe2d17.json | 26 --- ...cdeab60aed26e9025fde7ea45b89c4d2cb4ed.json | 24 --- ...ebe9d876c2e251f04f0aa9b1c0942d73a4e0d.json | 58 ------ ...d4ea8bacc6cdb063fd8f18894c6b70b9cbd3c.json | 22 -- ...aee0d8c1c9cf7cb28867dbdd96b7004a5d259.json | 22 -- ...68ee8a07030cb234bc0a10bc014c493b8e9c2.json | 31 --- ...14dea634830b06660aef9661b820760a30768.json | 174 ---------------- ...35684cd0163b2f71460d838be8eb16a25b7b6.json | 34 ---- ...0302bcd20260c4d2d82e49167e5c7c7e77958.json | 22 -- ...1cb8d7b9859dfe4272a92cbb29a4b64a1d695.json | 28 --- ...6e15d8be6d62ead3408dc6641866a9230935d.json | 22 -- ...9d19523156de3b771696a069389e5a38cd51d.json | 14 -- ...08e3bf1c954b1773fcd2ecab33c2ba518ba34.json | 22 -- ...5b91e1b413978e8262f7db56a6a27fa5ceaf0.json | 22 -- ...0f66fad4698c52efa69d3b4a03324c09b87a7.json | 65 ------ ...517c98cfa67d86663cd13575bec99ee24c785.json | 76 ------- ...939087fbd3b34b296b546a34cdfc3e7c9eee0.json | 14 -- ...ca6dd9e6af7a364499871944691b3dfee5a09.json | 15 -- ...b0f550620554bab6862d4ec9731236c227cfc.json | 35 ---- ...319ac0035e078be790795eed823a95095c7cc.json | 29 --- ...a7b5a952ef5031c2737d084da33a24af2c8ad.json | 82 -------- ...23fa1d2ed8c301776a9778c4947a9d84590e1.json | 79 -------- ...2e12e2aaff653c37f79cd3feb22ea4b849ea6.json | 46 ----- ...5cacfb7f0a441c630528d2cde076211ff63f9.json | 54 ----- ...0b637539f28a5e8644f0467eca7efdb06e387.json | 22 -- ...c23db0321cc59a5abd6f7f714b0333ca87613.json | 22 -- ...42120d6333b8c605f6da5b748951d9561c1f9.json | 15 -- ...1f08e02d42d09810994f84a250e2f43cc5acf.json | 34 ---- ...41f5a5dd574ae4492f2adebd98021dbaab771.json | 46 ----- ...c29318b92959b2ddab117bfd98273a45d1838.json | 28 --- ...f3cc9e4d74a48075918e24327172256a5ad15.json | 17 -- ...044463339682b132e007d56eae675e4795169.json | 15 -- ...7c57d66ad08be04685ac40956a2d7d7b396af.json | 22 -- ...eeca109ccd45ecae97f97cb61bd9fdd7c470a.json | 22 -- ...48ab072c216515c897a4a1e10f310cc63b4c4.json | 16 -- ...ff8b048d735cfcc23716612f2ee66a8c7151c.json | 14 -- ...ea9b62060b16ba2e7714d5690cc8311a5e201.json | 22 -- ...39fd871328de140968ba50c3db3a30cd3f520.json | 22 -- ...578d085a7aec81551a38aa0c14b8e20491e3e.json | 22 -- ...c8fa8858a6c5470f1c921ab0265cf7d1c9b2a.json | 24 --- ...fa4809abee07e9fd473a5e9ae00ad8625a108.json | 15 -- ...eba7b17a7ee70d1ff44892c747061478cee89.json | 22 -- ...44150503f955a91339be026f8b68f65092adb.json | 84 -------- ...78b203596330442305a6f3925edf67a8b52a3.json | 84 -------- ...a582d76bd73ae439d3d3e6f1cf4e482b9ff55.json | 112 ----------- ...7f7e3c28fa0e94f2563e99d82f306cf6530e5.json | 14 -- ...49b0c1f6ec3da1b9beb4d212ddd5bc640948e.json | 58 ------ ...8b8341b10cfee0b725409138cfdde038712aa.json | 22 -- ...85fe45f4dc1e66d4b5a846c734b308c74fa70.json | 129 ------------ ...6a5c116b68362ec45ffea5e2b25d86cfccf01.json | 14 -- ...1708be47a56582c2f0323716f206ab905a580.json | 22 -- ...ab6544c02094129fc9c7e921dd5280d78047a.json | 23 --- ...034ed73a87e8599f27986495b62ce42e86384.json | 23 --- ...17d2dcf7238a82ac9779e4887536003556e60.json | 77 ------- ...81d8767260559ccb0198eb8b7178448673810.json | 15 -- ...fffa9af9eabd558af03fd0e2a250d29a4a64d.json | 40 ---- ...b6c25ac9159ac952804c94f8061d811e1e7c3.json | 64 ------ ...8f082189e1588601b714f52d11fc273afb01e.json | 173 ---------------- ...e2ca71b6832b6c46a075b432cfc5266c05115.json | 77 ------- ...38a0d4a1716f4d311683cc07f488d33fecad7.json | 16 -- ...1e454df554d615c9ceeff5af763029972af30.json | 28 --- ...aefb065d608c3866d2707edfec8e907c460c1.json | 14 -- ...0d0a6c08112e41f085f59abcc855ef35d5bd2.json | 16 -- ...cd2d4687d41e8fd09e04edf0f4861d48a3e62.json | 14 -- ...4379c7fdaca83a33355842cf8b0b29d25a517.json | 128 ------------ ...c14253589d794894668f4eaf078ec8a5d4ca8.json | 40 ---- ...cf71139a34878ece29560f7a1c48a73c974d8.json | 22 -- ...96f4ea4bd008a19afc916a1147fca76b6d5b4.json | 42 ---- ...b26999ba3ac23f89c8882c144d4c9a657e235.json | 35 ---- ...15e303d2c5bed1c53a5c1cf255a172defa46c.json | 16 -- ...6787d34173da3b114c61b2cddc69b7d197819.json | 22 -- ...9301e0c36f4d600917c7573137e15688b1f68.json | 26 --- ...0a9f05967d0adb106e93608b3b5a64adae02a.json | 22 -- ...e916da208d1525bf04497687e941d329513c6.json | 23 --- ...44c58e68634e942d43ed59582b7bf0786893f.json | 15 -- ...5feaf304a4d50bbabe9151bb0bbaef7bcef16.json | 28 --- ...b57a8d30a1d2a7c03150526322a2aa8175c71.json | 15 -- ...f047e9638cfa5d7e07d9885af0592142e5304.json | 35 ---- ...fcab2a26f543e5a6ca992e38bdb662dc7c2f4.json | 46 ----- ...a97a325f4081b69a3b8a7d1a481ed69f86bf0.json | 78 ------- ...392c7e93978451b4ae208a23ab27c3b10c1b7.json | 15 -- ...edc6cfa7e0f8b9f8b3c3a698991d37860c76f.json | 28 --- ...8cad0a5e18597f640111861f469e273e56e88.json | 28 --- ...fb66ce5dbb225c7ca91b3d71dcfe398c8f95a.json | 14 -- ...2bdafe162fb8c8fd217a8fcaf613e39525b0f.json | 70 ------- ...84c110d780e5be92b5e160c64189355f5f31f.json | 52 ----- ...c3277a1ced2c563a2e2bc98a742ef71da40fc.json | 22 -- ...79003a1f0f549e4e1585f641c86d0f2336c64.json | 23 --- ...61b859efa9b55a2b085a1f564b42024be3e92.json | 64 ------ ...19ae33bff5dc510075ca8f0f24db8a9e1ead6.json | 35 ---- ...d8ebee5614196a92bcbc250b9702a8194c329.json | 56 ------ ...d295c602e8ea01dc164bd95c7ed30a7726a54.json | 22 -- ...5bfc9d190e4154c906fae3e67846c308332dd.json | 38 ---- ...aa5cf85994ae8af80af65ade5f879f837cc6a.json | 22 -- ...6633e40c9a0d9f8e87262e31fa218400752a7.json | 27 --- ...383631011b1c3cbd5d36e137dbd0c5442f456.json | 14 -- ...099b08f372bf4606405d18d8c465d241b5781.json | 17 -- ...cd324c875cdc9e74287873ec41a9fd495e696.json | 15 -- ...6e5e12937814433dc5499b0dfdbe882c76192.json | 45 ----- ...c1a67edb6dd76a80889a538b6c1aceb837e45.json | 84 -------- ...04617613bb21df0e7728150e74b4125d28a59.json | 28 --- ...43c48e9ad8b934613ece6777e4948e18572bc.json | 52 ----- ...52f811f014cd6ef1d0b3f9bea3074a478f785.json | 22 -- ...fd2c9e95591835b82393ecb2492f8966883bb.json | 22 -- ...ab3afced6278d25e630969724dd5837182f0c.json | 23 --- ...00c24fd26d50d612a66edf0738c62d15680ba.json | 64 ------ ...921a23d5de6a44ed9e4af285f49f4e44d174f.json | 46 ----- ...ea12db11f18e4a89a76c87b4c8ddda431cbdb.json | 101 ---------- ...df3044ca299f2a677c812b11592fc9b2fe6cd.json | 22 -- ...3df49df49acf6ec6d56955022e81ae92a2278.json | 40 ---- ...2d44bfd717c8761fcb3c8561cd6c292b1eea4.json | 15 -- ...0734a33e800cd3fd990498c76c991b48931a8.json | 29 --- ...ac9c4d0b723c7a7abfa0fd92ae362ea32b88f.json | 22 -- ...93fdc9b145bcea0d50bfb62acabba93d5818c.json | 17 -- ...79b6d56ccda8789dd737a8cb2d89eb6858b03.json | 27 --- ...85ba2c222905943458d205112e1e064a0bcc9.json | 40 ---- ...182fb33d0dcc2df012cdc4eed91e8994ca2b7.json | 129 ------------ ...58dd54f85dc6082f369fbecb2afa873fda66b.json | 24 --- ...10e6acda592d3e27ecac39f93370bacccd7a7.json | 22 -- ...a3b22e871c61feff6dbc1fe793cedd2cf403c.json | 67 ------ ...17f6cd611c9845f2830ab6ded46a4d640d362.json | 22 -- ...eb6a80bb82c9640845a835c6d32eea7e6dcad.json | 15 -- ...9126ad17975d9f7490e8a5d521e2c1eb752c5.json | 29 --- ...990834ea8846624132386f2fcd92d0d9b9905.json | 15 -- ...c645a882c4f965226e71fc300d84a081ad30d.json | 128 ------------ ...31d4e00fbc7854d8f315b87f70dfdc44cb901.json | 17 -- ...dc47ed61f608db54b649cc3daba87817c680a.json | 15 -- ...b00c04c18f94145346063a2b012c1104afa53.json | 22 -- ...c433d0dd69045b66f7cf5952f1126115dec84.json | 17 -- ...33f2bbf35c99b29e7482f198d592ff435cf28.json | 82 -------- ...1d5ab7728a12ca7245876c3ede0c3adc69647.json | 22 -- ...3b46ac7899be8421cdd83e5dd46f5b8211fd2.json | 76 ------- ...8d20ea15ba8756bc54a8d518ea82a39a27ec4.json | 58 ------ ...921f7887f3bf828b5be3c7a599fade54a0dc1.json | 46 ----- ...4a0a281601cb56674d2b5ea331e02ae8bbf60.json | 14 -- ...05dec57b4fb5d0b4ea2def2c8c4978c1d9c36.json | 23 --- ...840cee4f1db25c7b9b4f5a1157ef655fe1575.json | 15 -- ...3354c7b4bd005b9e5657a702bd39846ff0917.json | 25 --- ...f3ae64ea91023d356c47232736672cd1ba5ec.json | 14 -- ...c38d76dfd087a2a8032ff6ebce392d7892764.json | 19 -- ...1813bbe4cde5e5b7bec42e424c72db0e27e73.json | 23 --- ...a976b443a4280c01b09fdc5f673ad66f06c28.json | 14 -- ...c60d684f1a422d5cd1de162b6f657c8ddfa98.json | 34 ---- ...5fe1745738d475322e937d4553623a8294dc6.json | 15 -- ...2cb1aca7d6b8c20e636adff6fb3977577e62a.json | 52 ----- ...724d755c0a3353480bcbe573a3f867cf24091.json | 69 ------- ...dbb294e66474310e66c28a0a8510c64fca149.json | 22 -- ...269928b43c4a9e523b84383bf9c7dc636c1fd.json | 88 -------- ...6347612e9d197979f9d4a4df40314f22559f8.json | 146 -------------- ...7f351cd450b0fe95a4c6015573da664c5c27d.json | 14 -- ...08a933c8e7ac6f811305b607046ae6021be79.json | 23 --- ...ca4185ce3ebe294d432408c876b8a0b0a6b63.json | 14 -- ...594572d9da9387c41873beacfb4a615e964cb.json | 22 -- ...8cab5a5d5423325a7834515c9c6a327f25f50.json | 22 -- ...c6838a4054a719ac6b54f6f7acb53a9353a3a.json | 22 -- ...9a4c474f1e7d5c0071bdb1261df0c1d8b2373.json | 22 -- ...58a23c2407f742e67e7c06553929f4405478e.json | 22 -- ...9e7ad85d35c823d233e6d9b53534c5aaf94b0.json | 28 --- ...79e0ec39a507de612ff7887172062237f29ce.json | 14 -- ...ead04d9990d5f6613bd7668dd7cba38ebe3a5.json | 149 -------------- ...2e4c29fe260e81d13c017b8bc4fae2b94703f.json | 22 -- ...9a2b9574f45847919251446878f32b9febbc2.json | 22 -- ...33b0d2d39d64dcc88a0f0c5cd310303e7dc92.json | 140 ------------- ...33fb4c48b673d594fcaf198ee927949796957.json | 70 ------- ...18ee7fb04db4955d5dca83ca1c6c9e0eaa884.json | 14 -- ...9426932aba9ae4a09ab96ebfa32c46e8b6fcf.json | 87 -------- ...8ec23de215edc1de1d020d418e2e89b17424e.json | 14 -- ...3e4f4ba653a16b53f9ffb7b99566d202dbd68.json | 71 ------- ...4c542292d06b39c744f2055038ac46c41bbdc.json | 58 ------ ...b414792f6d87963138b7969b6a8f179e508a1.json | 40 ---- ...753897d59e28cedd21e439c20ff09268a831a.json | 92 --------- ...c477b8ae7e89dde630c125c1364ee211c454b.json | 26 --- ...fd1a2058e31c5692d66a0107d9a45c9d83f7b.json | 15 -- ...658670ee906d1814f037f1c20e3569ecfd270.json | 15 -- ...74df5312e5fae38f374945f807ce68d0314a8.json | 22 -- ...5c01e2e6e9dee46a74504fde48b78587934b6.json | 27 --- ...3638798761653ca72db90aa2ce7417976ef61.json | 47 ----- ...0717756b395ffb54f82d50691520065eb6036.json | 14 -- ...b0785d06317da255894345de287a654f24fc3.json | 14 -- ...cb3baf21cd37b638190889fb5383180a8e437.json | 22 -- ...d181f2bb79b25ac3c2300e2eab17c912697af.json | 95 --------- ...967a55f7b5355b7ff835eed0f93b4b8458ceb.json | 23 --- ...463fd3df8488cbce6001cad1bfe990b347b63.json | 19 -- ...0e64bad441f07222bfe922c9da81c7d2c3a47.json | 23 --- ...3811f1d4c96c7049794890f30b1e831381010.json | 34 ---- ...36ae5c11cd902c373ed20d8119ba050c7dfbd.json | 95 --------- ...0a771eb3bd08aab63d2be4a1338fbde315f62.json | 66 ------ ...37c0b8aaf00c3eae94c06f069591f72445e14.json | 71 ------- ...370666bf2efa34290ee8f1a6c89330b29522e.json | 15 -- ...ea28d255c30f360759bf57b7d0b31294c785f.json | 18 -- ...23136039849d1c3c5ff81463691e0ae271f74.json | 23 --- ...04fcd25df705766b08c6fd8d39d10cacfb33e.json | 48 ----- ...d201e0b71608319da53a9551cf3c83fbf1487.json | 23 --- ...a3573d0cb043fee8aeb7c46a61bcd534357e3.json | 40 ---- ...340e40f13453f1bec6cf41cb202930c44e84a.json | 41 ---- ...82ea99a8eda29d45570028deda4075173cfe6.json | 28 --- ...559c6e59e236c9650211a52fdc90602318cc3.json | 15 -- ...9f6f1a860c05be610f8b620fe2426d59b2e62.json | 22 -- ...57b1429cb22745012c396910f2fa549aedf79.json | 22 -- ...f83e4ce9af436279fc24b7aafe8f0d41aab04.json | 22 -- ...57a5dbce790572f2420457e24b0fd498c2024.json | 29 --- ...e93d392fdcf0fbebc9935f263f3f4fd1d8c34.json | 128 ------------ ...5dfabb45e608cfd9a0a5a463fc6e1792393f2.json | 119 ----------- ...a34dbde810b6b60c8d8a0854ee49ac57a7c02.json | 14 -- ...a1fa3c65711050239ca5d7bcd59b04f920894.json | 14 -- ...5c7af4b6e8db0ea192d08aa971b20ebe69eb4.json | 14 -- ...79a830b0e0a98c92967f15c2a89b96871bbd4.json | 52 ----- ...e3cb74f7ddc5bacda3caf78db4b8672a8cf72.json | 162 --------------- ...b5dbe6ce6bfec8f307f22aa7b2bab42a5a13a.json | 22 -- ...387db892d3902606258ac7c1e87652eba76e7.json | 16 -- ...6372002b31d070e2cbfe2d58ae763bc04b7c6.json | 86 -------- ...e82418e3a012a628f1b5cd3be1f490eeec9f1.json | 22 -- ...b6ab84c37acac7de5fdd06fefbec94abfe956.json | 22 -- ...502fd1ef001d1247a155814df5c4510170aaa.json | 22 -- ...98bbc2e5d6c3c3063be43655ed32a3baf028f.json | 15 -- ...51dd7c57b312cf54b2c47ba87c7ee99f0d9c1.json | 15 -- ...39e0fd0419594e068b4d43eaaddca5e46f6b0.json | 28 --- ...6660c82f616f8f3456a6137b872043404d282.json | 29 --- ...02abb947fea3cb939dadaa76b6e53bf896390.json | 15 -- ...f14ab6cdd2fe57c9d76e430cfef7234e92168.json | 20 -- ...7016f366e31f1ac3a8cf8696ed61434472afb.json | 76 ------- ...8afa6d87a4f32cb7c852318de504fa6d20b2f.json | 14 -- ...705b6f12c716417f4d337aa68f73fb05a6dd1.json | 39 ---- ...46370580a768c26a4c9f6b1fe9d8244abdb36.json | 86 -------- ...1af7ccf5264e6ac8b7ce80fa9d68be5aed976.json | 16 -- ...ee3364dbb75bdc22047789492b8f73b3e2491.json | 72 ------- ...e47e00e2aa671b9d235abffa4ad8bfe126c12.json | 22 -- ...ba0a0dd46cc9b31980dba5a76dfb4540d6cd3.json | 28 --- ...4404c910188de8a57899dd6cadea50025b4bf.json | 35 ---- ...19e0d6bef4a3d9ea2791d75799c93b4f2350f.json | 66 ------ ...9b7ce0b5c5fdf66aba0a6efc62530ec611766.json | 26 --- ...a8d25037d25951b1f406dddb8d62cc13f74f0.json | 185 ----------------- ...a478e593d8236cf4efcebaa15ab4046917cc3.json | 28 --- ...366203093e40f519275702f3bcfa711812321.json | 15 -- ...c65cc9e27d786fd2648040cc9f2c6a3295d8e.json | 22 -- ...9b00fa7c2c474980361fbc5d98839dc40773f.json | 14 -- ...b371093099209a80349d311f45a0aa4b9cca9.json | 88 -------- ...77af19b53c578df995fbbcef546aaba55176d.json | 22 -- ...7ea16b18efcff635cbb4d8146ff4f3ba67416.json | 24 --- ...886d7b8909f3150f779b64a56a456027c0d26.json | 15 -- ...7cf16bf09d6e52e5f6e5c5b107ef8244a141d.json | 23 --- ...f9a4097ff7320d336de3ea25fe1899a7826f3.json | 28 --- ...90da499864d7f8e97a390a11b384d6429fa13.json | 15 -- ...39a09a5f4d3185af10d1a7a32e8035b2c5ec1.json | 15 -- ...da3e5786501c7b07a41983acb8459df610b8b.json | 73 ------- ...4c8ae492febce05ce35df78bced81c1070f01.json | 14 -- ...a0fe594d449939c99f3dd8e338aff9d26753b.json | 14 -- ...5a4dc7053d1e1d6425b9de339986d41c8e180.json | 19 -- ...3a5b00bf57e5f0b948b2d882d2d036375d913.json | 27 --- ...51a503118d0dddd8759495f607c65158605d7.json | 52 ----- ...c9593db5cf4bba24c234e9179f741a920d4d5.json | 28 --- ...e24156c2fa387e001ee8eaf57e4a70a106069.json | 18 -- ...7ebad2671fe50f6425314bf3c007d01f53884.json | 15 -- ...edbd92ada98d1c5b00dd4052db371fd191598.json | 15 -- ...a2beded3bd378038cbd6f012080ac77c5291b.json | 15 -- ...8dced036c605ba52ff484b30130cf837b9408.json | 14 -- ...a6842bf271ef6cb2e4de41b820113295ca18d.json | 17 -- ...307a3d445a6a5643262d3efda804e3d04ccc6.json | 22 -- ...b0ea36e8607ebd4c272509afba882a3e0b572.json | 73 ------- ...35cb2d29a67a4c437234f0ac7d1e6baa34669.json | 14 -- ...14921d77330e127ed9083235078bc0d8ee970.json | 23 --- ...b31f3c3202031f51868b9af724e701248079f.json | 22 -- ...0bbe79c9e1b2e6d2e6925bdf89df1a07ead5d.json | 16 -- ...aa60d2eb5b7b0ff90863b0d0dc288779a5f7f.json | 87 -------- ...f363e31040405915cffa7da18a3ed337e298a.json | 22 -- ...50811245e71af919de567277e505bb59d62e5.json | 28 --- ...994e58da416d649dc4963c510b3f6906db5fd.json | 34 ---- ...ffc5d4ac3f9f1a8c2a5714ef130e53d11145f.json | 28 --- ...40cddf46a772f8a638259541b05f006bd4c1c.json | 28 --- ...cacd0718c070eb2ee345d524abe7ba8b5b35e.json | 46 ----- ...418605ec3f0f9f090344882fcac7d251bfdba.json | 16 -- ...ad59600be3ea7f6f3db61fcc3045330a20f39.json | 15 -- ...10b9c54cb028c0f723b18c05231eafe5722af.json | 14 -- ...b8ebb75a89ecd397f5a266032c2c8a1f9c561.json | 16 -- ...67032505a085b4c9c5e787f3194414758601b.json | 15 -- ...57d60af3f02fc72c3f541bc94c903034a6748.json | 162 --------------- ...69092e981121feea08d55de4cd41762f1fa1e.json | 26 --- ...cb9c8f850746382a3c7049303286f2868a851.json | 22 -- ...01390348a6d4e33feefb4c3d33974e15fcf83.json | 67 ------ ...6dc5ca777fdfccf87f1760b3ff0f03d4515b2.json | 22 -- ...936efa63645abc9b36965f9e8daead43b7adc.json | 28 --- ...4a0a270de769b42747942090f55ac86c78574.json | 52 ----- ...0baafac16a1058e7017d63813abf87b340e4a.json | 43 ---- ...1b0bd250c9b56ab63138ac60b52e9174c48b1.json | 22 -- ...27e8397a42089600571a38981bfa11b7796d4.json | 15 -- ...fe93975169bfeb0cdbecb04dac3f31288570f.json | 15 -- ...9fc3f7df9188479defc6072394d8d06f4b3c1.json | 15 -- ...d0bf0ad8155e25cf77aa57dafdcb133f30509.json | 32 --- ...633ba54b8185f1e6aeac32a8d1bfca35a43d3.json | 22 -- ...94f9ce25445a642ef58e1f8a59788a7f374b8.json | 28 --- ...7a70bfbf8709ea5473b3ec59e8f547cbeaed9.json | 23 --- ...693bcaa3226934fedb2a4348a24ca9568c4ed.json | 15 -- ...b569a6f2b0c2fc0e62e5243a5857e054e61c7.json | 22 -- ...08aba496434dc78909951f7c1bd86f9c56ec0.json | 14 -- ...d7455df93799b12af38d50bb85d81391861c3.json | 58 ------ ...68fff2908654b8bb53923320e7fabe244b467.json | 22 -- ...16c178a9865c5926e4195249eb22e2a4a91b3.json | 28 --- ...c5934f900adbadcc5549165e709cb1cd345b5.json | 129 ------------ ...8abfce69d431447fcbf846e60aa60febb1433.json | 69 ------- ...ab20faaf6ba24f55172486a74aaec3da480f4.json | 16 -- ...77d724c16d6068b7ab828c2eb604617227113.json | 15 -- ...fef2cdff408625fa1a592977996a81e8b3f3c.json | 15 -- ...c6bec2f121b2afb9c5c1fa39c2d804cb71286.json | 173 ---------------- ...b23eddb2d7a5a8a1572ef33f3040f8e0d671b.json | 22 -- ...57f3b77a2108138b267fd97144edad023be1c.json | 14 -- ...ee79c3e0b64c8c4a507719aa78405325cad76.json | 22 -- ...e541dddf035820810dbf1b1a6feacfeb0e431.json | 15 -- ...7741bc7947c8473dba0fb39c61ee8be80950c.json | 14 -- .../src/api/context/test.rs | 3 +- .../memory/src/domain/team_service/test.rs | 8 +- .../memory/src/inbound/axum_router.rs | 5 +- .../src/outbound/pg_team_memory_repo/test.rs | 29 +++ 1255 files changed, 41 insertions(+), 45302 deletions(-) delete mode 100644 rust/cloud-storage/.sqlx/query-000c1235f8bd55c9dd179d10421e262d6e096bc1a8547f5da22596dbc56e0ddc.json delete mode 100644 rust/cloud-storage/.sqlx/query-000dcd3c4befc3975adf3bee932023bec273d62d6c2f233c3236ffebbfaf5810.json delete mode 100644 rust/cloud-storage/.sqlx/query-00b50429eacf802503b639b2dc362bbdbf3d29b375b73ca25f7720941929f10b.json delete mode 100644 rust/cloud-storage/.sqlx/query-012063ce1220cd6f1b04eeefa088324d50ac472be760c0efe10b5060b0878c75.json delete mode 100644 rust/cloud-storage/.sqlx/query-014d3b9b1509bfcd1b11c8c0ef8fe4534c4caa33640876469811d19d64a9b7d0.json delete mode 100644 rust/cloud-storage/.sqlx/query-015a45b5c16b4bcc135372478d585af4ce10f5f6ae5e3578637b66655ea6d67e.json delete mode 100644 rust/cloud-storage/.sqlx/query-0173a66e06d23847e48967c6fbf38dde11698cc4164819d48cb8f99c1ec3aae3.json delete mode 100644 rust/cloud-storage/.sqlx/query-01cb0b4b2fbbd64d2be9373d1e9e75b0085f5817ee4c3360f7cea76917fa5740.json delete mode 100644 rust/cloud-storage/.sqlx/query-01ee4e5a80a158998dadbbb6b8fe5d27371757cc6e9019589182150af22b5e36.json delete mode 100644 rust/cloud-storage/.sqlx/query-020ad49dd342e529563c91a7d2403de9196482e24765f4b2c93d2da50273d69c.json delete mode 100644 rust/cloud-storage/.sqlx/query-02e665cc90a63f1a040b4e5c8acfc2ec9d8f3ebfdcd4947b1349494bc13618aa.json delete mode 100644 rust/cloud-storage/.sqlx/query-030974957f30c1fc16d1a6bed0ffc3dcd6d71b2c0029f7f7fa3ef3285e12a8f5.json delete mode 100644 rust/cloud-storage/.sqlx/query-03126b7a70835aac508c3f236c9e5bcd98c0df2596f1d098c08cd4308583f307.json delete mode 100644 rust/cloud-storage/.sqlx/query-0322d49329ea2e6d6bd515f2013a3bc08f9153d9fb263062a46a80cec5c151f0.json delete mode 100644 rust/cloud-storage/.sqlx/query-033759a1748c41359a8cf5204f457eed63182d21b432b58fd25b7524d1dc0092.json delete mode 100644 rust/cloud-storage/.sqlx/query-036fca567f0d90c18fe528869a2e734700b1978cdf1a62bcefcb3a9bad3b6eb5.json delete mode 100644 rust/cloud-storage/.sqlx/query-038bbad2a1388db2e9d3da5f107ecc5418ff770838a4acfbd28bec8b78e16874.json delete mode 100644 rust/cloud-storage/.sqlx/query-0392a509a0896bd3acc01964a39a4477aeafb381e532657ccb7b11ad05b9038e.json delete mode 100644 rust/cloud-storage/.sqlx/query-039dd65419a635365c37d46699bf115e771ceae4526e0a13928152e2bb1bb9b3.json delete mode 100644 rust/cloud-storage/.sqlx/query-03a70946dc66c884a7bd84ae9439cb208449ea7048e319ea8475752fe96d650b.json delete mode 100644 rust/cloud-storage/.sqlx/query-046aa54b375545002a615891a34147d0d4f2c1e409bf1aa2263b84c88e2deda9.json delete mode 100644 rust/cloud-storage/.sqlx/query-04d60026064c2948d7a528352bb3bb086ba5a39c1dc656aec25f2dd2a4eb249e.json delete mode 100644 rust/cloud-storage/.sqlx/query-056dbddac4957596098ed8444564f7eb4ee08f375c95d9e40bd879d1439a8342.json delete mode 100644 rust/cloud-storage/.sqlx/query-05c2cf10e578df97df70d5b372d6bd4d5a2baf8313799b21496ce399d3612b1b.json delete mode 100644 rust/cloud-storage/.sqlx/query-06072374ba47adb6156d2a4d0160ab3ab9a686e9617ce4aea0e768cdc3c78f86.json delete mode 100644 rust/cloud-storage/.sqlx/query-060ac46a89df4da317917f28ca8d95dc07b98f4a64effa9b76d58089fb0728b1.json delete mode 100644 rust/cloud-storage/.sqlx/query-062a45b8e7d65006120b1369981c4e04e513e99855ca9dab076768d43e189a80.json delete mode 100644 rust/cloud-storage/.sqlx/query-064772b7d3d47e82f044f6efd03f52f8cc0083e99d30810753539a5df539d94d.json delete mode 100644 rust/cloud-storage/.sqlx/query-06a72bfcfbcc5f5bbed6cd093436309607f9375d2ba7b151e9dc1a8493f88e44.json delete mode 100644 rust/cloud-storage/.sqlx/query-0710b66e8a6608c340848ad6295fc012f06f1c298d1b287eebd7be0b89766702.json delete mode 100644 rust/cloud-storage/.sqlx/query-07436aee1f392392f500a116348f388ce48e6b8c596f420af1c837cf9572dcdb.json delete mode 100644 rust/cloud-storage/.sqlx/query-0744566104aa67d5e88c96c3f1e52eb15603cfb48029d43dc507b9012088517b.json delete mode 100644 rust/cloud-storage/.sqlx/query-077c58347457c72a7f69ff716d27e07c1a4f41d65b619f6f949f18344b78469e.json delete mode 100644 rust/cloud-storage/.sqlx/query-07831ac2c19539d4422c940e56add36cfd36e05ad43cfa0cea3654dd0d5ca08a.json delete mode 100644 rust/cloud-storage/.sqlx/query-07c340da8c4771fa651aee608e8b7d15d9f0a638566899c59aae12491ed5b490.json delete mode 100644 rust/cloud-storage/.sqlx/query-07feb08ae2f8494b1a9043b878ac356af9e557d3b3d67a1a9cf2f07d292883c2.json delete mode 100644 rust/cloud-storage/.sqlx/query-081e71f5dae75d12f512d95febfffe28cdc4f8cc83542bf69b8c502b4892a6da.json delete mode 100644 rust/cloud-storage/.sqlx/query-0876e7623feb7c8f77b58716cbe3e43456fefad97ac0ba38daf2e5e6880bb51b.json delete mode 100644 rust/cloud-storage/.sqlx/query-08896a23d1261be751853b5cf7553cbe0e8500e8f47233914c020d23d5a1b1b6.json delete mode 100644 rust/cloud-storage/.sqlx/query-0893292d05dc339bc516ddc4e2e27ee0f730dd38e1d82bd2a049d38cb7abb275.json delete mode 100644 rust/cloud-storage/.sqlx/query-08ff113e378c34c5c4cd00bd47227bb363d4c1d98a2b589c260b9c77fcb94492.json delete mode 100644 rust/cloud-storage/.sqlx/query-0905fbb6644dc89da3bbb8f5119b1d4e83711bdb0670ea238e72097750435056.json delete mode 100644 rust/cloud-storage/.sqlx/query-0953e38705bd80cf1f053c5287847c2a92639fec6e728a49b1f2a41906adb633.json delete mode 100644 rust/cloud-storage/.sqlx/query-096cff82c1f50ae5f4a5699ba9e1f35280fefe178bfc01701fc09b8962def475.json delete mode 100644 rust/cloud-storage/.sqlx/query-099d255a2a214f5c4ed3ee9d5d8389dfd3ad004eb3572fb7d724b407bdb2c2e3.json delete mode 100644 rust/cloud-storage/.sqlx/query-099d5a355490ebd8fe221bc0526af0a38305c090cdb791212b5968c24ae5d5f4.json delete mode 100644 rust/cloud-storage/.sqlx/query-09dd0c12a8b30ba045caacad3927e6d7edfba61d784244a01f9d233d9b753dcb.json delete mode 100644 rust/cloud-storage/.sqlx/query-09f6737b4e22a31ee50c69992a0f16140eb27339ca118ef7a6f063e113d78361.json delete mode 100644 rust/cloud-storage/.sqlx/query-0a1f3835d8dd57e120b0378134d98858f2ba5ed410765ffca1b03abb05c7b098.json delete mode 100644 rust/cloud-storage/.sqlx/query-0a4d1f2c9890cc537fde22835fc5298215a79e06fd983ac9a13f52836719e8fc.json delete mode 100644 rust/cloud-storage/.sqlx/query-0a4ef2f94648e1a6de6dad96e942a9b987f96526f5865fcc9c43f6179567a891.json delete mode 100644 rust/cloud-storage/.sqlx/query-0a5d8edd85634f5ecdc0a97f86e470a4e91ef06ee2baf734cacc500df5f9cd19.json delete mode 100644 rust/cloud-storage/.sqlx/query-0a98076ae0ee8aa572e7a73b97a4c7fb8a88979a966df92c698b295b8e3e28e0.json delete mode 100644 rust/cloud-storage/.sqlx/query-0af2bfac1a41e4dbd3c7956d306ffab02e9aee53b37e07531426a068007403ec.json delete mode 100644 rust/cloud-storage/.sqlx/query-0b0ee8515cb079ef1cedbb5d8f254fef2bdc00de80faccc661bc89ffbabc7eb4.json delete mode 100644 rust/cloud-storage/.sqlx/query-0b25861527e4ecd715a759799e7dc2d43865571925e95582689df12c3b02322a.json delete mode 100644 rust/cloud-storage/.sqlx/query-0b3832a8e650ed74622bbe8ceeb7ead8ceb0d4f0d05e22c9e36113b4cba6e5c3.json delete mode 100644 rust/cloud-storage/.sqlx/query-0be9d386d51f355d6c5ab947fe7ed534f7cf96c18081846fcbfbefa0a515f40b.json delete mode 100644 rust/cloud-storage/.sqlx/query-0be9fe66d98f68b1d1c3c8f32aef0da52521889a32fce2449d9d7f659835b845.json delete mode 100644 rust/cloud-storage/.sqlx/query-0c129eab69121fd65994c0b50a11f653900045b70bc059b5126905e3cca668fe.json delete mode 100644 rust/cloud-storage/.sqlx/query-0c36658e4c00abbd672fd1fa7934cb81f5065482c471fffa2bf248f73782a87c.json delete mode 100644 rust/cloud-storage/.sqlx/query-0c3bf4ab99e5ef1c2100c82611aeaf4fe7ffe5734a57567dfdfea1a78cfbb3ee.json delete mode 100644 rust/cloud-storage/.sqlx/query-0c430068640f24611873989a569d3da039a7e63dfb1a4bab8895c6f18c1b819f.json delete mode 100644 rust/cloud-storage/.sqlx/query-0ca155b0063dd021a80db6b2a9dc2353c6a1dca9e1dc13cc21b3a23d9cd81e92.json delete mode 100644 rust/cloud-storage/.sqlx/query-0d38256b23e9ce70797726f76b49889efcf4b3c2fbaec05c395de5e728b0fdbb.json delete mode 100644 rust/cloud-storage/.sqlx/query-0d49ab1fcffce934d215d7d34b80e3334aed9e8d1cb1efc3df8698e024d0aef9.json delete mode 100644 rust/cloud-storage/.sqlx/query-0d9d272f0886376c4a756a4296517b933697934a2b3d52e931bcb2f1dc64ac87.json delete mode 100644 rust/cloud-storage/.sqlx/query-0da786be8ae29e36cd110a8875d838e3b6b8cf4bd6775d083867c733982545dd.json delete mode 100644 rust/cloud-storage/.sqlx/query-0db3bbe78101fc309c3358271240926ee07c36bf29ff0031813a2fdbe1fd061d.json delete mode 100644 rust/cloud-storage/.sqlx/query-0dcbb3a5c0829e285170d8e43e6a6d1246298aa1fc06aba34a9282318841a112.json delete mode 100644 rust/cloud-storage/.sqlx/query-0dd403bdd3475dfb010d5a725be35e76750719785a26e4c56e969fd48c5970b3.json delete mode 100644 rust/cloud-storage/.sqlx/query-0dde9799979e5ae1b4e351a2b8c310950db972cfe6afdf164f822a6b0a6042b8.json delete mode 100644 rust/cloud-storage/.sqlx/query-0df754458a7a7e50fd7cdc9a66f170bd25959079efaf0bb0c916acae2234f90d.json delete mode 100644 rust/cloud-storage/.sqlx/query-0e03c9e174ceafd652563ce587e5025e8bf0dd3532b21cc1e2a939c0c26c7927.json delete mode 100644 rust/cloud-storage/.sqlx/query-0e0422c73b3bdb5c60680cec7581ac905f34c70bd295694a120e8dd7891e3853.json delete mode 100644 rust/cloud-storage/.sqlx/query-0e241930c0e8b940ac3f513f8081270a0b93e88f5b7f7f7fc36276b3718b8297.json delete mode 100644 rust/cloud-storage/.sqlx/query-0e38fa7c2ebae20feb864567132405260eb8fd223e65f4c6da337a8fbe2acc82.json delete mode 100644 rust/cloud-storage/.sqlx/query-0ea8abcb6adfa2a93579879f4bc537c13a9a4e4c313c115a83b0bc98c846db0f.json delete mode 100644 rust/cloud-storage/.sqlx/query-0eb23959e5def969cff31c097382390a0e9214d8219a3d79f65ea5c66d55121e.json delete mode 100644 rust/cloud-storage/.sqlx/query-0f06d44ac8984b12498f8b41e70d2e692c9a1bec3ec96cd3b2fba1176e075119.json delete mode 100644 rust/cloud-storage/.sqlx/query-0f180165e0d5d8661d2d9a37550c7372d1de26ee74b39b5e9602534174f1f8c5.json delete mode 100644 rust/cloud-storage/.sqlx/query-0f43991b34ee9e8bb85f7a8c87ed522daaa36ef9bb9e1eed4ccca12de09f44f0.json delete mode 100644 rust/cloud-storage/.sqlx/query-0f48cffd910141d7b0d12f55311f30be2d8bb5808322565b29ce0a8db2bf3c14.json delete mode 100644 rust/cloud-storage/.sqlx/query-0fa9fb46a9895ff170c9bbf339ec2369429e7fdc40a531ac5296b5442fa4f5aa.json delete mode 100644 rust/cloud-storage/.sqlx/query-0fb8a1f0bcfee684fa393fa7465a17b7345b658528783903597574827fd61dd0.json delete mode 100644 rust/cloud-storage/.sqlx/query-100d56e0bac5061aa9f43b50e065f04b372963a63e81918d061a0c0ffab89060.json delete mode 100644 rust/cloud-storage/.sqlx/query-10843b4044bca618301e755b0b6b5aeca5fd398adc48ed9f755490fa25e7f3f9.json delete mode 100644 rust/cloud-storage/.sqlx/query-10bf501670966259cfcb441f519bf04a5ff4827980d61db77cf7645ed9bf551b.json delete mode 100644 rust/cloud-storage/.sqlx/query-11a723b710519837eb7643af73af6526dfa6bf93465f9c6708dc95e8237c1f51.json delete mode 100644 rust/cloud-storage/.sqlx/query-11ac63a8975bc8587b4c3b8f64201b8999a0cec4a928d253fb4fa49f78a8626e.json delete mode 100644 rust/cloud-storage/.sqlx/query-11cffac7d14e962aa00fd0a9a0ca290ad6e8bbce98fe53cd4079791734567928.json delete mode 100644 rust/cloud-storage/.sqlx/query-11ddfba613626f54d684c1399279df5c3364e8d3dfc0484cda469086991a64fd.json delete mode 100644 rust/cloud-storage/.sqlx/query-11f1046dbd6f8f510a196fe1feedb4bdbfedbde691ebb4aec849a07f6b54d0fc.json delete mode 100644 rust/cloud-storage/.sqlx/query-1220fdf68c54c2bbb630bc32b642bccc39501f39821f5a5fac209930e6afd338.json delete mode 100644 rust/cloud-storage/.sqlx/query-12332b2ea487399f281dbdc5f7c0bddccfdff4da1d53fe8e16c26e825dbc1b14.json delete mode 100644 rust/cloud-storage/.sqlx/query-124901aaedcea50030b2b8039c8ef509d980650a4c5d0fca7053cba0c2543155.json delete mode 100644 rust/cloud-storage/.sqlx/query-126bf3c6fc9b29a885703ecfab9a69bc36b7eeee011d09a63b4b44b81f7663df.json delete mode 100644 rust/cloud-storage/.sqlx/query-127b4b2d2391121a41b63f3ad116bea2be0329fccb27362d4e3a5a37601e0ba0.json delete mode 100644 rust/cloud-storage/.sqlx/query-12bbf364a130b8f3af7e7bc7f8c64eb026124d2a66d2735b95ef387433cecd03.json delete mode 100644 rust/cloud-storage/.sqlx/query-131fdac5ab0aba8955d6900eb7390dd279939a1323b5805eaae071cc500f54dc.json delete mode 100644 rust/cloud-storage/.sqlx/query-13739c28aac5015e3bb881dbf24f0a657d995d9292dd6cffc385e2f92ec07276.json delete mode 100644 rust/cloud-storage/.sqlx/query-137986b2287f8a7e8d9023d6f9bfee888a6e18170f84df631df81e3e84158348.json delete mode 100644 rust/cloud-storage/.sqlx/query-13a6d39ef2b895cae2162fcf65f7f64a5b303859b36186f4106144a2c5cc23ac.json delete mode 100644 rust/cloud-storage/.sqlx/query-13ef9a0dd33e56d64232964dc11b44b0a333958a67d89dfcb1db9dd523a1b837.json delete mode 100644 rust/cloud-storage/.sqlx/query-1400e6024ad92e90369be284cd0ca35a4b9b6c1d70fb86dde1ec83a2314350d2.json delete mode 100644 rust/cloud-storage/.sqlx/query-1411c7b041f6313844a7f5a78c741e2410cce10dc0c7a196e5104e6fa2ae0875.json delete mode 100644 rust/cloud-storage/.sqlx/query-1435acbba365796ddcb6ddbef86f4ebf664cffc44082996f6b60a60373c28f75.json delete mode 100644 rust/cloud-storage/.sqlx/query-14398843140a148be3189f593e689c36283225f47a6b37c197bc543f3fa18703.json delete mode 100644 rust/cloud-storage/.sqlx/query-146fdea46a07193ea84051c9d3300b516be3f85d42ddeaf9cd9d0563e1303201.json delete mode 100644 rust/cloud-storage/.sqlx/query-1490ec3dcbefe6dff27992f93481ee30fef91724dadb7b7c1e461d8286235f60.json delete mode 100644 rust/cloud-storage/.sqlx/query-14acfc516e4790908d6e9378281d30f55a71271945c03e98665acc3cc9d4ea4b.json delete mode 100644 rust/cloud-storage/.sqlx/query-14cb6f59ddb400c9539d83f42f665da8af863d2fd1ebf848a1a6e64db75a9ef2.json delete mode 100644 rust/cloud-storage/.sqlx/query-14f0507004b3076a625e1a10ab8de9b4f09cf2a0480dbca99952cf0d8b78b177.json delete mode 100644 rust/cloud-storage/.sqlx/query-1511f43c28d30141885fec9cfbc87b855ec6f10241b3e74499f22aeef7f762bc.json delete mode 100644 rust/cloud-storage/.sqlx/query-152c4be0db7c3ecd7cf7ca77049231154b7f03ae0ebb073103df8b0554d416af.json delete mode 100644 rust/cloud-storage/.sqlx/query-15b00cf9b57c2c077f7e55bd25c267a6cf83c9efdc10ba23981f7b85847881c3.json delete mode 100644 rust/cloud-storage/.sqlx/query-15f433450a25ed0fb63fa44a1e4d13fb82179f90fbdd99b632a244c24f1ff5d2.json delete mode 100644 rust/cloud-storage/.sqlx/query-166a1874072c2882aaca16d26b22a66944f723c32d9066d1d8b671b177986aa4.json delete mode 100644 rust/cloud-storage/.sqlx/query-16975c8ff9585b8da53ace00a26851f992232834de508dac16ff58d9da1cbc2a.json delete mode 100644 rust/cloud-storage/.sqlx/query-169914b00c5e4ced19940e170f8135d288553a7fdc41589e2211da4c32cead9a.json delete mode 100644 rust/cloud-storage/.sqlx/query-16da7cf038f35f49f83fc3a869f56da725bccb87d92dc3a2c4195a7b4c436a29.json delete mode 100644 rust/cloud-storage/.sqlx/query-16fe6d8422135f9b01d5acb48576c9ebeea62fe8b80747ddcf9c5fdeee1a6c7e.json delete mode 100644 rust/cloud-storage/.sqlx/query-170411ea24963c7605046d59dbf2bc32d23c2d62e36a11e3875a8b84e8f1e062.json delete mode 100644 rust/cloud-storage/.sqlx/query-1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e.json delete mode 100644 rust/cloud-storage/.sqlx/query-1780a52d3024ae99105fd28c74121b9a3611ea3ae3bf5edccebda195b52bead2.json delete mode 100644 rust/cloud-storage/.sqlx/query-1787312f37ce2a63f3a448f70e719581607988c79c9d2f4ead58811d60d5bec7.json delete mode 100644 rust/cloud-storage/.sqlx/query-1787f623620cbe61083403a7e51577540398e8ce459156d6f83fcb8193fc2800.json delete mode 100644 rust/cloud-storage/.sqlx/query-178aa765b997de754dd7405fc233aa7b24dd0a456f3cd4863725b3089f7bbe27.json delete mode 100644 rust/cloud-storage/.sqlx/query-17b1a9529bc693aeb668fd0c432d6b55a4c527fd3105bfa9cf83dbc70516011c.json delete mode 100644 rust/cloud-storage/.sqlx/query-17eb78883f203e76c823566fa1127a752597dae52b891be1e12526b02fdb2e6c.json delete mode 100644 rust/cloud-storage/.sqlx/query-18134bc97487fbf6b88e8afdb94dc601bf0d997ad5b6974ef5866dd6262b8618.json delete mode 100644 rust/cloud-storage/.sqlx/query-183fbda8d590393f7f3faa763c2cb6344b42556f949b59a0f8f77a01ec8572c4.json delete mode 100644 rust/cloud-storage/.sqlx/query-184633e8b40af8c1077847e8b20dbee5117d4a35ec182b62db7d4ea0507ee73c.json delete mode 100644 rust/cloud-storage/.sqlx/query-18aac439d006f5d15299582df56f00790bde81c4e7a515e6cadbf341466b9fa8.json delete mode 100644 rust/cloud-storage/.sqlx/query-18ce46c3571cde47b087eae1c4aa5fef86b1058e0b9ad16614fc06d02f4cf86f.json delete mode 100644 rust/cloud-storage/.sqlx/query-18d2885f4c7a6ffd835a5d661ec5e81dd143cd4a51873e92050a0beedbbb86cb.json delete mode 100644 rust/cloud-storage/.sqlx/query-18f484857d5b6d140bfe2e78fce5632c78c630fddf249f0d53261e601969889b.json delete mode 100644 rust/cloud-storage/.sqlx/query-18fc1de07e3dc64355b0baf69f67bd8c5254c63292c67e87ac3c3f45c20b7284.json delete mode 100644 rust/cloud-storage/.sqlx/query-190452da4bb37a289c415dfbb4ec725bbda911931e97ccb22a5868b5a7655709.json delete mode 100644 rust/cloud-storage/.sqlx/query-19ad643d2447743fb58441e39654369eb50ac8efbea1fd554bdca3d7545d61e0.json delete mode 100644 rust/cloud-storage/.sqlx/query-19c878ce5817c5643e48a6159fce81a2f964defcb7b190460f2b16ac67078766.json delete mode 100644 rust/cloud-storage/.sqlx/query-1a5d33c55a52c7076f78b54e915e57fe675a43d9dd2d6198d1039565131d52f1.json delete mode 100644 rust/cloud-storage/.sqlx/query-1ad1d46ce50de26cb5f1441e73845df205acdf018d65ada384f0b059425e9ab0.json delete mode 100644 rust/cloud-storage/.sqlx/query-1b30e7bb6b67b93826781122a191e243db4c43ec8630b32ea48b1c7e31724264.json delete mode 100644 rust/cloud-storage/.sqlx/query-1b324f7419bf6620c5eae611b237ee202fb2b3b011422dc27f351a2c3d10813c.json delete mode 100644 rust/cloud-storage/.sqlx/query-1b40eda58263b088d61f65897fdfe490653e4c1065cd55e9c39722b988c54a02.json delete mode 100644 rust/cloud-storage/.sqlx/query-1b50363c934ae7e01406a2cbb674b84fa6af6f7caa8353d52ed22e48b3899327.json delete mode 100644 rust/cloud-storage/.sqlx/query-1b7983a9a8a54322fd63d2bf169f27b45f853652a757123e3508017861b5c7c6.json delete mode 100644 rust/cloud-storage/.sqlx/query-1b8266e388b4e120d27c47d891f5f447e26ff2b83fc6c6e6a0e2726aba761a51.json delete mode 100644 rust/cloud-storage/.sqlx/query-1b8be86d6e9c1637d47b9ec156a1d8b010408005f7e12db26e1c3fc5b6d23c29.json delete mode 100644 rust/cloud-storage/.sqlx/query-1b9256d39a08d605aba08de1c5bddd8eb29bedd31dd21719114646449ab1333f.json delete mode 100644 rust/cloud-storage/.sqlx/query-1bf9b2bf67d4780b41454d87c4a1995677a162dd11af0b9d77df947b657cd651.json delete mode 100644 rust/cloud-storage/.sqlx/query-1c03d1e837124187c0f4b940ee6863ec370be7dc1b87c38d1c53d898bfa6a235.json delete mode 100644 rust/cloud-storage/.sqlx/query-1c5f9c90a5ee11ffedc5c98b589c821898f04952a5a597c9796e152fa4c65bb1.json delete mode 100644 rust/cloud-storage/.sqlx/query-1c651bb11edabc6aceff14663b7a1e722ca09640bdae70dad37a017fafd16206.json delete mode 100644 rust/cloud-storage/.sqlx/query-1c6ee06fa02288f263d5b51c30d3cd5280f4596a359328c00b1b3e2ce74c0234.json delete mode 100644 rust/cloud-storage/.sqlx/query-1d935a7fdb8ef926a5b7613fcb7ecc9949bb5adff895d426acbcdbef50a87e96.json delete mode 100644 rust/cloud-storage/.sqlx/query-1dba8f7824a404cbe6b276df601bbf45b0bbe751d89e8b841068d86b855f44ae.json delete mode 100644 rust/cloud-storage/.sqlx/query-1df49f5d478dcee269a9bded7fdcc34060d1c9dd6f964f3d6444b55830af299a.json delete mode 100644 rust/cloud-storage/.sqlx/query-1dfe7b9de91625d4dafc473dd014326d84465827ee265f1111cd30e6d936f714.json delete mode 100644 rust/cloud-storage/.sqlx/query-1e14d3e8348556865af942ec6e3d883668d0b8073143094ed67d34285f9cc92b.json delete mode 100644 rust/cloud-storage/.sqlx/query-1e45a7245820860fa347be763bb94e3aa7d6e5d9a2660ed6668eaec3d0b39745.json delete mode 100644 rust/cloud-storage/.sqlx/query-1e96a9f033805dc354b5b3f06575ce22f1e4fbd6770c390a252cd6c790ee2d6e.json delete mode 100644 rust/cloud-storage/.sqlx/query-1ea0c7996fa301f1b842d74bc2c42c4c399bae6774014cf03704024bd4293821.json delete mode 100644 rust/cloud-storage/.sqlx/query-1ec5c2ad3ac95f2b35d28c6298da7d8e7db9a7fb97d8af9ca3219a9e13215742.json delete mode 100644 rust/cloud-storage/.sqlx/query-1ed8b097d0371b977eab7215aba09ffc9721b22d7e9d8ea5d80d285dcf65e152.json delete mode 100644 rust/cloud-storage/.sqlx/query-1ee4ffd924167f7e5cda2be1ac66506c341547cd49c76e365129d91650474605.json delete mode 100644 rust/cloud-storage/.sqlx/query-1ef37a5e008e95d1d123d815c287931dc2e7ddcbc393c0dc068cfcd1a752e6e0.json delete mode 100644 rust/cloud-storage/.sqlx/query-1f007b302205e5fb56f1d90b145aa96922a8f97e7a10d91ec7970c0cbf824281.json delete mode 100644 rust/cloud-storage/.sqlx/query-1f0770cc758a37117b875b129eeb2e3e3e1143e8ab3dae3a85e9e756cdf9bdc0.json delete mode 100644 rust/cloud-storage/.sqlx/query-1fa9e2989967fe9d44ee4e7c7db0091aebd9369c066fde6ccfe090bc97271e71.json delete mode 100644 rust/cloud-storage/.sqlx/query-1fc6d4133d6252a01a56005faa3e7244ab1debf1731781813995f3be3075d9f1.json delete mode 100644 rust/cloud-storage/.sqlx/query-1ffb3c556caf3fe25d6f69bbeeca0a39d1e5a6fadc9170a2d863fee8fbfb0939.json delete mode 100644 rust/cloud-storage/.sqlx/query-2032b8706e7c7928243b8185349df6fde6d25c6187e9b03a75640a771aa8899a.json delete mode 100644 rust/cloud-storage/.sqlx/query-205c24d0647adde8fd03d37aa37fce4a37f75e0b9796a77bb45d0ebb3264928a.json delete mode 100644 rust/cloud-storage/.sqlx/query-20a52bc26743ce11459bb7c7cfda25dd6084c0d64e4dc99d3f0d802f0ae61136.json delete mode 100644 rust/cloud-storage/.sqlx/query-20a6a1d55831d2f428a4439ff09cd0f680dab8845b5789b83eee8966bbb85937.json delete mode 100644 rust/cloud-storage/.sqlx/query-20a883359476f1460ce1ecb7c96d502b89f9151a884b24f316c6196f62158659.json delete mode 100644 rust/cloud-storage/.sqlx/query-21ac8784f90a5e311b658fe88195bdf9c83dfc84f0b5a8e8075a7153d7f41818.json delete mode 100644 rust/cloud-storage/.sqlx/query-21cce4388c4839d33ceac5f09a2f3f7a506003afe498d487699c0cb4b78c7899.json delete mode 100644 rust/cloud-storage/.sqlx/query-2247a3c9b543df2bdf1150a7148956f0c3c8287e3863893eb7e8761af066a46f.json delete mode 100644 rust/cloud-storage/.sqlx/query-22c535eec28118577d247aed68b7064a5a22071296f2603d6f86a7bc1816dd0f.json delete mode 100644 rust/cloud-storage/.sqlx/query-22cfead49cd3d400a1752f2c232b9ccc7072aac9d5dd7c17a15c6be812fb3d4f.json delete mode 100644 rust/cloud-storage/.sqlx/query-2323566d1f90b640bf6cbd83beb86be825ff271d9a18921835dfd1864a78ebfb.json delete mode 100644 rust/cloud-storage/.sqlx/query-233648d4502d3b4c6190603e4692c9224a44d046cecb5cce585afbb2e8aeaf49.json delete mode 100644 rust/cloud-storage/.sqlx/query-2386c156456dbaea33ec5071907677174bdfc3048719f1be818c11b6dd7ada01.json delete mode 100644 rust/cloud-storage/.sqlx/query-2434f8a0e387b85009c8857ab719928f6e922ecf302228837e4d0686866ac515.json delete mode 100644 rust/cloud-storage/.sqlx/query-2443fe54c4008a741bf932783b861f1049c87b024003d7a6781ed24d82f095e8.json delete mode 100644 rust/cloud-storage/.sqlx/query-2448b50af4a227c3a7d638e1377145f8a813091547e4f47a9f1fed4b8959e4bf.json delete mode 100644 rust/cloud-storage/.sqlx/query-244c5d4b6165e48a376b1a33583bcc6cbe5e22bd559419180a6c2f2855ff607e.json delete mode 100644 rust/cloud-storage/.sqlx/query-2500e65cc47f0cfb5cf99c7b4aa87ca672780591c4b7b2ff5429121d5b4594bf.json delete mode 100644 rust/cloud-storage/.sqlx/query-2524aba87b62046462d33a88cd3ccd9818906c386468c40410d1e96f1aeb4e27.json delete mode 100644 rust/cloud-storage/.sqlx/query-2576862c3cfe8c3efaf56031067a7251ed3737e3aa63d2213520a9f9b83a281c.json delete mode 100644 rust/cloud-storage/.sqlx/query-25ecb2c575d0ba90bea0d500ac8522346fb8bc6aa9bf669219c300cc398a1108.json delete mode 100644 rust/cloud-storage/.sqlx/query-2611958405cf94c91ef85a09da00b0a8701621b42e4c57e74d2da40062d577d4.json delete mode 100644 rust/cloud-storage/.sqlx/query-26ab5fa9630526b99a3937baff648f056a532178864f1f62ce55d107d1702f7f.json delete mode 100644 rust/cloud-storage/.sqlx/query-26c357f323179bc7c5c64492521aa202a0a8119036d4be0975aaac1ce6d96cd2.json delete mode 100644 rust/cloud-storage/.sqlx/query-270cd8ae6b47508cb7e4e920bd76cb0f6177d685bddedb06f1892d0014af6f01.json delete mode 100644 rust/cloud-storage/.sqlx/query-270e056bb1d522c9f46b8f8f0fde1d3307bf0627fe420be6bc0509072bae1565.json delete mode 100644 rust/cloud-storage/.sqlx/query-273231d502cf7d6ac6e29d3007fb5bf5fff4d5bc979ed1555df61f4666e1121e.json delete mode 100644 rust/cloud-storage/.sqlx/query-275669451834ace05bb416ced2daa303d315804838e6d3847718eecd239864ee.json delete mode 100644 rust/cloud-storage/.sqlx/query-2765a1391d0f36121f7b42445e00be69a87c2a9c380a8fc2c64afa9fb509e9d8.json delete mode 100644 rust/cloud-storage/.sqlx/query-278876b19e66f90a52e4a982f6dc6376849461c5df6a9cb1037d1eee6e30cfab.json delete mode 100644 rust/cloud-storage/.sqlx/query-279926d74db34fd618a6b507e2ec60160ef8399af5cfa11393a2e1e8d9762d65.json delete mode 100644 rust/cloud-storage/.sqlx/query-27af0e4ef3bfa65509108039027a7a0891ce7e5f9d3ff36e6598d5f51650416c.json delete mode 100644 rust/cloud-storage/.sqlx/query-27cffe57cded3d1b63df02e8dca8b2158fe2072af6b7baacd30b3f0095cb7e0c.json delete mode 100644 rust/cloud-storage/.sqlx/query-28baf072b97758fba3e18900b97176766a0cd023d6730538b6e5c936ae7bdb48.json delete mode 100644 rust/cloud-storage/.sqlx/query-28c518d844cd4d843c097af1551f6f384a4763514d278b5444341390f58a8281.json delete mode 100644 rust/cloud-storage/.sqlx/query-28df117b319120af2c7f9b3dbfdd45539b62c00cb222b029e501cd7a40e83ccd.json delete mode 100644 rust/cloud-storage/.sqlx/query-2930435da61e2e75a6ec3a127f3f1591934bb55a9f2fed8e47dd4406085fa6b2.json delete mode 100644 rust/cloud-storage/.sqlx/query-293ae45a8798edad6555057aa63f96b7c27c4d7457aeeb615789f1ebd5468337.json delete mode 100644 rust/cloud-storage/.sqlx/query-29496c090bdffe2b771ad704687525136fcd17a1d3e680142e5d0f9e253af578.json delete mode 100644 rust/cloud-storage/.sqlx/query-29f40fc78b59a74c6b0df0c8cb0abe9d4e5f57b4b08a18673276967b456d8bb5.json delete mode 100644 rust/cloud-storage/.sqlx/query-2a75819c2697a91f55f1161c1dd79d065235f02119bbb2cc2b881f6fa8f82274.json delete mode 100644 rust/cloud-storage/.sqlx/query-2a7d96d4ad9f58533ca637112bdf0e50e65f9f7dade0f8e1239cc32404e2b135.json delete mode 100644 rust/cloud-storage/.sqlx/query-2ac4359cf8918df8770a8f89b43195b87a928d18ff10c5d5dbec9bba0dc9eca1.json delete mode 100644 rust/cloud-storage/.sqlx/query-2b2674801d90fb7b89f286300e8a03ec10c34ab1f8a6ecc6a9ecac5b964669a2.json delete mode 100644 rust/cloud-storage/.sqlx/query-2b51093ef799db343575cce3aead5f7db7aed774cb8d6fd74645f5e09b2215c6.json delete mode 100644 rust/cloud-storage/.sqlx/query-2b56d4020e5e9882bf82e2909868eda21c8f93ee647274cbd0f7f8b8cfad02bf.json delete mode 100644 rust/cloud-storage/.sqlx/query-2ba42e1b8b6e432c5cbe966076ca05523a4b1f4be0798ae362a325c172b19a43.json delete mode 100644 rust/cloud-storage/.sqlx/query-2c16c9daa8fd2542c90ea2fcd848ed60ba013aa7ee53742b7f1f677e7082ce2f.json delete mode 100644 rust/cloud-storage/.sqlx/query-2c1ca56683bc4ff97f5b9768e6da72ee6558c2ea8bb9b58237370e3cb80d309c.json delete mode 100644 rust/cloud-storage/.sqlx/query-2c1df8ba2035cc1f63f9d566e8ac763f4d0b5e28370570971935d29237a0211a.json delete mode 100644 rust/cloud-storage/.sqlx/query-2c2e1fbbc52b300640cab8add807f581aba22df15410900b9f598daf699b60de.json delete mode 100644 rust/cloud-storage/.sqlx/query-2c523a7a5cc018de790645eef920861ebc4fc1a28d0a6e14ee1aed1d472ff87a.json delete mode 100644 rust/cloud-storage/.sqlx/query-2c8623569ad039d0ee10321ab06c2563d7f90f17e00e6c4e18d25bc0a7b1355b.json delete mode 100644 rust/cloud-storage/.sqlx/query-2cbc42ba5738de1d3d5c0f16306cf0daaab7ccca3618ff516bdbf2efda3077e5.json delete mode 100644 rust/cloud-storage/.sqlx/query-2d1112d21440f0dfdf8fcbec264389f7abdcc74544558d60d817f56ff0c14524.json delete mode 100644 rust/cloud-storage/.sqlx/query-2d17144ac0fad7ccde292b6da4197cee6ec3a0e3eefc8711308ef3c6b3f7f30c.json delete mode 100644 rust/cloud-storage/.sqlx/query-2d57c3a99a46bf686884ad509c913941732afc0ed4d180fdd982f50cdf39b08b.json delete mode 100644 rust/cloud-storage/.sqlx/query-2d689689caf98fbfbb437fe34129b37a1ece02e7c4189d0619ea741f74f05bdf.json delete mode 100644 rust/cloud-storage/.sqlx/query-2db06a8049c3fa54997e62b47e3862e24a45c9278ff5671e190b594d0972946f.json delete mode 100644 rust/cloud-storage/.sqlx/query-2e069f7c63dac759abe54f685567743862bb918f45f0a21481e044ff99427976.json delete mode 100644 rust/cloud-storage/.sqlx/query-2e0d56c9e8fecdbbd5ca1853876f9bf94f8980710a99f36274ab20bd75514a52.json delete mode 100644 rust/cloud-storage/.sqlx/query-2e318ed8eff90b0e145afae548e3f895f7b7c4f8458df987c7bed9054fbc3450.json delete mode 100644 rust/cloud-storage/.sqlx/query-2e5e76597cf6fe734978fef0762c7c86aeba3b076e8684a85696045ed3a4636e.json delete mode 100644 rust/cloud-storage/.sqlx/query-2e86cba5f8e5a4358520e11e33cea6c51ce2ca2d05b985a30debdb97f9d7d78a.json delete mode 100644 rust/cloud-storage/.sqlx/query-2e94210011a9636d994437cbe074d904d563e57443cc3f65432e1db986f016dc.json delete mode 100644 rust/cloud-storage/.sqlx/query-2f1f54eaf23c0c277b0685c35ae75eea5921057be13e25a9609410d6ac5b17ba.json delete mode 100644 rust/cloud-storage/.sqlx/query-2f25b7a9ef03d53404c384af4763ec5ce5f48079d5b040724b62f1964e49c932.json delete mode 100644 rust/cloud-storage/.sqlx/query-2f26d3b3e0337d1b7b7c31345c0cde73657c5fc5e53fd86a8a2eb14ad063af2c.json delete mode 100644 rust/cloud-storage/.sqlx/query-2f51ce444a7d59339909afba8296d2076f0654d89c89495858fec18432df7074.json delete mode 100644 rust/cloud-storage/.sqlx/query-2f57ef816b974c70f46ed469ff98a316ee83b8e0b87a504a40ab4eb6f91c9bf6.json delete mode 100644 rust/cloud-storage/.sqlx/query-304363603c60b5894a3e692b394aa320b6d72a5851a596cec6dc37b6ef5f80e6.json delete mode 100644 rust/cloud-storage/.sqlx/query-30cb91911aecb757da05dab343255e9c81997db622339c1f414e36e873cb476e.json delete mode 100644 rust/cloud-storage/.sqlx/query-3152bd385bf8a62ac1258308acc31e02e1d6a1a5aa81499903ec6ca86f678219.json delete mode 100644 rust/cloud-storage/.sqlx/query-317f5f566558b0a1c27174de398f923cb9e2d47d3cb0adbe628f18f753995d90.json delete mode 100644 rust/cloud-storage/.sqlx/query-31d2504654072ca22b3fc69edcfda0a7c112bb86527c7200c38326cd920f94e8.json delete mode 100644 rust/cloud-storage/.sqlx/query-31dbb9af47386234da706e7c3175a7a2e43c2231040cc399488418eab9f6023a.json delete mode 100644 rust/cloud-storage/.sqlx/query-322b3420ee6b76c4b85d1953e2bfb47c8b8ba0618e2833475801815dff29d42b.json delete mode 100644 rust/cloud-storage/.sqlx/query-32900d38a985678b10e8b72c3a250033052a9fb05c14a92e0d2b89b3b47330a2.json delete mode 100644 rust/cloud-storage/.sqlx/query-32bc3d9fd93e31e31e94a11d286017303907af0da309f50568bda9f6fa74c22f.json delete mode 100644 rust/cloud-storage/.sqlx/query-32d4e521979a071490ce529b37db5210b6068fa4a23b88e2b2d922f04e7129d8.json delete mode 100644 rust/cloud-storage/.sqlx/query-3357165799ff1f7bf1de3891174668e0ab16c64bd9dfc905213681e6021474fa.json delete mode 100644 rust/cloud-storage/.sqlx/query-337c5b8167734371400bf99235e441b2a8bfe4d2d7cc242195f298437d95e7c3.json delete mode 100644 rust/cloud-storage/.sqlx/query-33d640ec17b5f3daff76c169a999c7347151ce6a8bed1faa103c27a490a110d6.json delete mode 100644 rust/cloud-storage/.sqlx/query-33e0a69e797d9274f49771113b4abc47b8a9fe63263b050379d73cc14ce38fd7.json delete mode 100644 rust/cloud-storage/.sqlx/query-341489a2c91e2bf15545e01ab49df8ca99355322514ac541a95c0ef65491505d.json delete mode 100644 rust/cloud-storage/.sqlx/query-345333b49aa634cf527c0d5c10f6064359b93f5cadb52da18c5e12a50cf50ae1.json delete mode 100644 rust/cloud-storage/.sqlx/query-3463e587c615fd82082c41897c917aef97239bcdd408c928caffed0d69c21613.json delete mode 100644 rust/cloud-storage/.sqlx/query-3480a69060f20430ed75c05cf9e40734b03ec692b637f99fb61b25f9b7c54583.json delete mode 100644 rust/cloud-storage/.sqlx/query-34a70ab661c087eb2c6b97d57099ac2c7ff263b9340003c319475fcafdf0356b.json delete mode 100644 rust/cloud-storage/.sqlx/query-34cf0289f36241df424661c22080748ca056ffa883a4cdba1652b7b8500ba179.json delete mode 100644 rust/cloud-storage/.sqlx/query-34e06c7ad5a9ddb12ac9bdfb86a0ab6388547e69762533e204f39af71d0e68ee.json delete mode 100644 rust/cloud-storage/.sqlx/query-350800132ce9026847f44354b415156432c57f20036d3e05eb8a72f09d88e10f.json delete mode 100644 rust/cloud-storage/.sqlx/query-357682d4dddfaa980129c516f38c4176352fa9b44242cdd5abe8b4ee18a62f8e.json delete mode 100644 rust/cloud-storage/.sqlx/query-359a16ea19cd02675cf7f6ffb815f76ad39c5aca7b6503ae8e43ebd1cc5d733f.json delete mode 100644 rust/cloud-storage/.sqlx/query-35aa1ada3371fd09902d19b1218c2034a348d30889a11f28b98a9e4a0daf4525.json delete mode 100644 rust/cloud-storage/.sqlx/query-35d32d2785c724360d20f94c8f10207caec56d853493823994679a4b081a1c38.json delete mode 100644 rust/cloud-storage/.sqlx/query-35e9ea6799e4075ef4573116cc4dfb7c5904a23c2d859d838f607d1bd296777d.json delete mode 100644 rust/cloud-storage/.sqlx/query-361c3d6e5a9549af7dd9042a088005f8da9e6128de27e65a9bb69e780615bf4c.json delete mode 100644 rust/cloud-storage/.sqlx/query-36a0d1e85cdabcc03083ebedd508372d7c83b2ffe1f393c77ceae79ba7a24199.json delete mode 100644 rust/cloud-storage/.sqlx/query-36dfcf982834f117d97d1ba332be6784c946f05120c7c228ff258389ceba97a1.json delete mode 100644 rust/cloud-storage/.sqlx/query-370a87eb4e8c69c5430716f06c0b23ec03e343c026d2e13ba7c4337fab85cd05.json delete mode 100644 rust/cloud-storage/.sqlx/query-376d485681b329e1febf28f35020eadfdbec930e33a0666707593e20ae4f67f5.json delete mode 100644 rust/cloud-storage/.sqlx/query-377f7c130cc3d834870fa692f5ba36d070bce17512b9ab348d0cb40ebe4d1b08.json delete mode 100644 rust/cloud-storage/.sqlx/query-37c8b721c4a8e35b8cbecf02ca434d2095a2b2dbfc9d3a64e595f9725bbb0b8c.json delete mode 100644 rust/cloud-storage/.sqlx/query-38d8954ab4b43aa67742a32d78af64cfaf2c5620a534753cc358602d626693c1.json delete mode 100644 rust/cloud-storage/.sqlx/query-3907578083a1a10d49eab63c85fd92d078cbce9ef2e968480ea475623ec76f63.json delete mode 100644 rust/cloud-storage/.sqlx/query-391f9e418d24bb793ff8e4408dd44193d3c769a6d43078570accc708e6a749b3.json delete mode 100644 rust/cloud-storage/.sqlx/query-39257a88a1d0bda4726e269ce262291e713cf20f121e10997bcf944f3363efb8.json delete mode 100644 rust/cloud-storage/.sqlx/query-392aaf2a2b9c1d3b0a30fdaed7107209446a4893f7f44b1d5c19cfa9fd387695.json delete mode 100644 rust/cloud-storage/.sqlx/query-399d9c2a1c07919059e7d5a7c58c97f9eff09db1237092b37fc80ece52ff410f.json delete mode 100644 rust/cloud-storage/.sqlx/query-3a4acf38ce09e3278ff2020de09c48267215a33e4c8d135319959aed14edbe63.json delete mode 100644 rust/cloud-storage/.sqlx/query-3ad109bc298d98b88d0afac7d254a35a85f1671b808c2f2b71781114bbc1d134.json delete mode 100644 rust/cloud-storage/.sqlx/query-3ada2f8355f9c5ecd4072938c3243296615904f9af24c4e18dda50992b47d5af.json delete mode 100644 rust/cloud-storage/.sqlx/query-3b147b8bcb7d08a87729fc68c562ea545e65d41bd61891ed3aad8eda3c4d90dd.json delete mode 100644 rust/cloud-storage/.sqlx/query-3b570b222c479d824a07d83d5af9bb51833195bf60052e04a1c754df22f57220.json delete mode 100644 rust/cloud-storage/.sqlx/query-3bb80109f339257e2fa01b7ea05d8c9786d6202db2a9fc41186d53c430d8f155.json delete mode 100644 rust/cloud-storage/.sqlx/query-3bd649e798f834ea3e0fc9d6c3b03d923622666779a97429afb926c64b517e1b.json delete mode 100644 rust/cloud-storage/.sqlx/query-3c082e8dc2056f62233bb2d68147a491c8ccb46f90738f8ebbf25afea699876a.json delete mode 100644 rust/cloud-storage/.sqlx/query-3c570d90cccdcc4d4546ecd377500c4882b1c7fb6c56e822cc4dfb8d4191dce4.json delete mode 100644 rust/cloud-storage/.sqlx/query-3cc12a354bd0b48195a8f6b7b1df42d96b19eda98a61750b4405c0a0c55e50b2.json delete mode 100644 rust/cloud-storage/.sqlx/query-3d0cc500bd9cee7fe4179b9ebc8176e5b20c478d2e5c4cba230e5fa3f57d38d6.json delete mode 100644 rust/cloud-storage/.sqlx/query-3dd2c8152498a2183ff2a944699251aaeac0e320a02b2504b1bc74402ad894cd.json delete mode 100644 rust/cloud-storage/.sqlx/query-3ddef23b2904342f1b84795fd71b50de4413626a5dd460c83ad9e997fb8e09ae.json delete mode 100644 rust/cloud-storage/.sqlx/query-3de786ce00b9b7a2cf935b39ed0bed0d042a4133b63124b1894da135d0a9449b.json delete mode 100644 rust/cloud-storage/.sqlx/query-3e161b7906ba15490634a5375e300d649e4aa06841adb1645d4f17507cf15694.json delete mode 100644 rust/cloud-storage/.sqlx/query-3e259ea5cbdcfae4334cb0125de6423fa95a0c127fbeba0a59d7096b0177c072.json delete mode 100644 rust/cloud-storage/.sqlx/query-3e333cb74dc40b2af8d6f9ed74105709ccaeca68b0ff0906e2f6be307963b49f.json delete mode 100644 rust/cloud-storage/.sqlx/query-3e3b2b04a9eb28ea82f8f97a2b725b205e0b6f330e4f3eb9690375e992ce2194.json delete mode 100644 rust/cloud-storage/.sqlx/query-3e5924421ddbfb3eef5e5d949677a72f6dddf521d5df201bb11207e89be08747.json delete mode 100644 rust/cloud-storage/.sqlx/query-3e75b16310cd04a141ddede2b9360356850135fd8b7bc79ef54d6548c40dbbb0.json delete mode 100644 rust/cloud-storage/.sqlx/query-3e8d3378b4651a45d6e1cfee02d1d991bb8fa6a687207164d713487c524d87a6.json delete mode 100644 rust/cloud-storage/.sqlx/query-3ebdc4ec5d9a7b08d21f6e249d5c72d10d42e25aa07353aa47ebd3f1ad4f56a7.json delete mode 100644 rust/cloud-storage/.sqlx/query-3eebc9f54cadfffef67a78b403320f8f305d08873a4c857c118f166d6c16b6af.json delete mode 100644 rust/cloud-storage/.sqlx/query-3eefc691aa14c4c3da377bf741138ed2f91343adfb13af0c7573dd6c29f8ac9a.json delete mode 100644 rust/cloud-storage/.sqlx/query-3f3b5a5d8734e3748d4e29d64cfa89baff99dae621e7cbd7a10017beec9485c8.json delete mode 100644 rust/cloud-storage/.sqlx/query-3f518302c857be0e5aa9180c4cb50a316694bb9210e88c664c4f998fd5759fb3.json delete mode 100644 rust/cloud-storage/.sqlx/query-3f5df39d7ee978e92a94f3e9c1d6f12e812b89f46a7a40cb0d4b0ff8397b1b2f.json delete mode 100644 rust/cloud-storage/.sqlx/query-3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046.json delete mode 100644 rust/cloud-storage/.sqlx/query-3ff726c2ff64c69e2af5dca67815300efe7b0bcbd74ae96f3d65aeb8edd064f7.json delete mode 100644 rust/cloud-storage/.sqlx/query-402db336b46141f0ff5f728de492c3c3897c0c17a0f53ce67c915b20e07b3545.json delete mode 100644 rust/cloud-storage/.sqlx/query-40791e0cf94fdc888849594849e83daebe532ed4f8935d06815c24289d3c91c2.json delete mode 100644 rust/cloud-storage/.sqlx/query-40955b135c91071078ae79b3be1c76ed21031ab2497aa0c137a5644f7e7e6e7c.json delete mode 100644 rust/cloud-storage/.sqlx/query-4095df49b0672e4a41dee5acbe6be80494d59ba5242b073b9dbefbf8752a39f6.json delete mode 100644 rust/cloud-storage/.sqlx/query-40980d3ade1b42b14019fa0add93fb37a8a26d78f4e275d9bca1ebaa7e558f6b.json delete mode 100644 rust/cloud-storage/.sqlx/query-40bfe125ad0bde96466e2a8ed9083c72877347fafb9fbcde0935ac10290b7cb0.json delete mode 100644 rust/cloud-storage/.sqlx/query-4103298cf62438b69d534ac4092423b210d7bcf2202ca38480fd7ce026977166.json delete mode 100644 rust/cloud-storage/.sqlx/query-411177d8b75b7150971074b41fd825873d729e28915a0fd36335b36494a93c53.json delete mode 100644 rust/cloud-storage/.sqlx/query-4123b0f2a6fa02a9191a87f2484cb27fd4220b15126fd010acbf4b954a9afb68.json delete mode 100644 rust/cloud-storage/.sqlx/query-414c3ac70d95caaaf4c7fdb0556c287e3755f19187f07ec05d4ce0c60a5df751.json delete mode 100644 rust/cloud-storage/.sqlx/query-41682a8f6e1e2fb8836f76ca3ceab5fe676b45c9942ec0c99486c03e52733a47.json delete mode 100644 rust/cloud-storage/.sqlx/query-41de07226ced9b95c7419c9e6d5d9bd9c5890cf1c144f0f8905664cd72c7f132.json delete mode 100644 rust/cloud-storage/.sqlx/query-41ef28446ebbd766c0778fd56fb8ee8094c2cb84ed3f4dab9e890d441611722b.json delete mode 100644 rust/cloud-storage/.sqlx/query-41f77dad73c881816d91df173411d39329574a7a99ae1d295fcd43afa5963408.json delete mode 100644 rust/cloud-storage/.sqlx/query-42175eb671a66713c2bb172aed854b0fd109b0089bbb4951379ea045012ad6f6.json delete mode 100644 rust/cloud-storage/.sqlx/query-42546a42d5b23be78e06b0bdf3188821246cd0b2d459d8dc667be1e6c8de1c98.json delete mode 100644 rust/cloud-storage/.sqlx/query-4264fcdaec0d80ff28c8ff6e2443f685b084283f4fb1cc683330b7c7875ca312.json delete mode 100644 rust/cloud-storage/.sqlx/query-428083ae29c00ef5dfae2fadc0d3ebe3c3191c212f37631feda29343104f9548.json delete mode 100644 rust/cloud-storage/.sqlx/query-429ca8e2c629499903d69292063060cafd143f63c7548ffdb8ae19461d0f0c76.json delete mode 100644 rust/cloud-storage/.sqlx/query-42a7d2fb1eb1c98ae10f8375a262c48cb828e3c0ed342d0c2b090c2a69c62a2f.json delete mode 100644 rust/cloud-storage/.sqlx/query-42e46f8f1c2cbf80383f65dd19d4efa3ae9c2697363d56278789de68b2295366.json delete mode 100644 rust/cloud-storage/.sqlx/query-42f09cdfac72096bac4124c84318142bbc2bc0256ff84a6ba9ab2f98fd9fb0c1.json delete mode 100644 rust/cloud-storage/.sqlx/query-435f8b35060d08ba47b4676c968b0543e406adc48edfd2a72ed715164c4a093b.json delete mode 100644 rust/cloud-storage/.sqlx/query-444840cacdf181727100b5ee338de844abb56d9cb3a88034db7b285fcff7e9b7.json delete mode 100644 rust/cloud-storage/.sqlx/query-4465cdde5f953cd550e7190572d8e5e4c70fce8558763d56a3f57e99474a9aeb.json delete mode 100644 rust/cloud-storage/.sqlx/query-44682e65711eb45a1dbec725646b7b0e02ced66e66f2d985f3da2d3eb7ad8c60.json delete mode 100644 rust/cloud-storage/.sqlx/query-44a05989da2597deae3eaded94e7270307a3e4f36625e76d489d4bc39b66e759.json delete mode 100644 rust/cloud-storage/.sqlx/query-44aa0fedb485db7f86d0dd21c5ac83ffd5ac9b4ce85a5d08d0fc5095efa73505.json delete mode 100644 rust/cloud-storage/.sqlx/query-44cc40d5175302af5445a34d4add1e7dc2d0cea3efa5b87c16cb2416b43fc098.json delete mode 100644 rust/cloud-storage/.sqlx/query-45063eedc20b7eb86019e69545c2e8b441f1e9e067086b05617437b6f43bc329.json delete mode 100644 rust/cloud-storage/.sqlx/query-45064c055927af781bc06e3a602a9efbefbd111110b9f0fab5cf029e70208c1e.json delete mode 100644 rust/cloud-storage/.sqlx/query-4511579c08d1a9b52afd1279a058c1a7fd6ded6c7e73a7a2dea50fd492d5e88b.json delete mode 100644 rust/cloud-storage/.sqlx/query-45267fb7a6016603a87fca1f2314d86540a99362db746fa2a04a2369bac18095.json delete mode 100644 rust/cloud-storage/.sqlx/query-454e1202630627f0f8c9f876f1917d6cfbed8fc192939cc0e5e43b86905a4ca2.json delete mode 100644 rust/cloud-storage/.sqlx/query-45a55e0ea2f0cc2d7583ede119ffd4059933d25cca50775c74f1ef5a0224493c.json delete mode 100644 rust/cloud-storage/.sqlx/query-45ac2a692bf3676d053ca1905fe8586ff1dd139822d3cbde8e125add5575194a.json delete mode 100644 rust/cloud-storage/.sqlx/query-45e8619173ce143a2908e7874cac1d14a38ad27be4af19f4558d1439e5e1108b.json delete mode 100644 rust/cloud-storage/.sqlx/query-460e4c3dcd4adba352eb7c00381bac9d3c4b8b107dd02fd35ec991e848919eed.json delete mode 100644 rust/cloud-storage/.sqlx/query-46529d3ed1fd86a194a7e99458b4f95a0dc0ae92127693240ce9dc0acc3b7467.json delete mode 100644 rust/cloud-storage/.sqlx/query-4656631949bab512d00e10664be31128b89c8047812362331ded6b6e0a12e1ac.json delete mode 100644 rust/cloud-storage/.sqlx/query-467fc7bd79aaa296588af3527f1d1fa944740f01ce65798b18269b099a65a283.json delete mode 100644 rust/cloud-storage/.sqlx/query-46ffaa1a906d49a47c765c9c03d89e50037adc4b72c364bdb4282ab0c8cf1237.json delete mode 100644 rust/cloud-storage/.sqlx/query-472e132fc9b3df044b4f267507ab146a3631e9fb26323cae0e49e9d25d7d0767.json delete mode 100644 rust/cloud-storage/.sqlx/query-473db34286d4aeefece0b6a97cea69cad83d20908c700d750a4047ce5bee30f4.json delete mode 100644 rust/cloud-storage/.sqlx/query-47527ceedb84aa81cf48fd3529718a5303e9f456e3db0ac35840627b086d3995.json delete mode 100644 rust/cloud-storage/.sqlx/query-47f0213791a57c90d28af2015b1de283865e6bbf5776a9f482a5d21568c14d3e.json delete mode 100644 rust/cloud-storage/.sqlx/query-47fb0faaa3568c45ff7abcc6b1b1229d7042950891759db010a27c5a18ed2909.json delete mode 100644 rust/cloud-storage/.sqlx/query-4825133a0ea4f2d839f5976681269e6ad7a517fd29a3d2a7634cc655bf7f2bfb.json delete mode 100644 rust/cloud-storage/.sqlx/query-48293aa40f783e58d4f49e2d0495255d70d2b790baa1bfb5397913d2a4b1dd8f.json delete mode 100644 rust/cloud-storage/.sqlx/query-483f8f8ef068fb6394d5af8d06068d4463413d22894b6c6b72965f90d8ef0436.json delete mode 100644 rust/cloud-storage/.sqlx/query-4857541516ce135939f34754fde00c114cdf9ed7f203553020cf032732892e80.json delete mode 100644 rust/cloud-storage/.sqlx/query-48697f17a7121986cc770d6698fbca7bf107ae20dbadbf64a7799ab162b2feb4.json delete mode 100644 rust/cloud-storage/.sqlx/query-48b369655e2258f40d38ab1352825be135e66c8215c051a56c7aa032b2abbd02.json delete mode 100644 rust/cloud-storage/.sqlx/query-48df79c41ba4ec7fa2454ac962aee9ff97875c9e2335b46fe13b2bbdee721186.json delete mode 100644 rust/cloud-storage/.sqlx/query-49044852c3fc5c0183d7253e27ec923e43d1d9abcfa5ad3fd714ce35c3c0e3f0.json delete mode 100644 rust/cloud-storage/.sqlx/query-4942eda5f2d8832fc43c02a17aae1ec8ed06a16fc14ae6d4046eb75bc427fb69.json delete mode 100644 rust/cloud-storage/.sqlx/query-4948508d8a7862e5986502d9373c0b1a97e277c5c50d9f14dd86c121164b486b.json delete mode 100644 rust/cloud-storage/.sqlx/query-4962707d2bc90c036ab1540db476ad45483ad784af4908660342b1c57f045095.json delete mode 100644 rust/cloud-storage/.sqlx/query-49b6375ff01eeccbeecacee87258d2b4c354daa345b9c838adc1fadbc6a1cbb5.json delete mode 100644 rust/cloud-storage/.sqlx/query-49cbada51408e2501723f7a1de4e170efcab0fcd922e2c5a79772256c1e51baa.json delete mode 100644 rust/cloud-storage/.sqlx/query-4a02aab26f16872fc4f19617011e4dc054b233dea57f9c78a4f2ba5b19284f62.json delete mode 100644 rust/cloud-storage/.sqlx/query-4a158c278c77c87d5394e9cf1166ceff6eead17cf856cf45a6a49896626b6bdf.json delete mode 100644 rust/cloud-storage/.sqlx/query-4a8b04d2fa922cd2f007241f83d6ad7e4dbcb5e7f6b0560316ca474878971e63.json delete mode 100644 rust/cloud-storage/.sqlx/query-4aeb58db6713bcb7ba53c394a0cde88693c45f2184b1d9553a9baa36cbef6380.json delete mode 100644 rust/cloud-storage/.sqlx/query-4aff42ef43f7b7ef454cc331d2e96f3fc28bd7c823b9eb181eb0c9fba7635c37.json delete mode 100644 rust/cloud-storage/.sqlx/query-4b483617cc20e22761392cb54e682762a83c3dbeec3eacfeaadae1ca8aff376c.json delete mode 100644 rust/cloud-storage/.sqlx/query-4b75a017d1bfeb600d0b75c58220b27c51a57253d0d82c55793eb5b0852d476f.json delete mode 100644 rust/cloud-storage/.sqlx/query-4bce30abb40ab058dd6e4681f28e4e0761b29a596122af48beb1a062bd157844.json delete mode 100644 rust/cloud-storage/.sqlx/query-4be607458d6cc823fa5a692842b502b405bd0e971be8425d4573846beadb6bf3.json delete mode 100644 rust/cloud-storage/.sqlx/query-4beff28bd0fc4ab7fbe74078b14f100a55cf2bb037ec171c3bcc8650edd73548.json delete mode 100644 rust/cloud-storage/.sqlx/query-4c11c2c42479bad0cd549ab31c1dcb90b605b55480a604c4e047c450b5ab433f.json delete mode 100644 rust/cloud-storage/.sqlx/query-4c8f1c99fe7ca583e05b4ef8aba08d4fdf58135dc3e99ed73381a29f94b8a270.json delete mode 100644 rust/cloud-storage/.sqlx/query-4c9cd8085118a9ee2076c12a09f4e41c9e9d93550acd5c691de63e313a5c9b54.json delete mode 100644 rust/cloud-storage/.sqlx/query-4ca8409d9a2c8bf1634c3b1543e02daa92a5a01f2ad46d8124e0568ce8b17073.json delete mode 100644 rust/cloud-storage/.sqlx/query-4cc88f2a38cb0722282ef262adefd9fcb0d4778c5dc308720710e8f5e9995911.json delete mode 100644 rust/cloud-storage/.sqlx/query-4d0f38e351a6a9b4a559ae4df808653289e7abb1719b58fd0a4d7e8f6cedb423.json delete mode 100644 rust/cloud-storage/.sqlx/query-4d4c2b67879a26c0ad31c817024f3e6bec03dc90a97d3082614d72ad35e6f5d7.json delete mode 100644 rust/cloud-storage/.sqlx/query-4d82dec72e255478981441dc566b2fc4fc9f5d61726741284b1301af69517705.json delete mode 100644 rust/cloud-storage/.sqlx/query-4dcee20753a8996e6dfab48fc0dcb6ab0ea074976d13639ccc6d6932f79fae13.json delete mode 100644 rust/cloud-storage/.sqlx/query-4dd84a2e543e14d4ed1655a0895eab7815948fcad38c5ce05925ebc4a5ebea69.json delete mode 100644 rust/cloud-storage/.sqlx/query-4e096eb7d3c507e3647685073fba7b3f36ef0e70c887db31f5cc5a8eb8ee1844.json delete mode 100644 rust/cloud-storage/.sqlx/query-4e188b522b313eaf51caac616fe177abfe97c6ce6291ba8f83148ba02eaead73.json delete mode 100644 rust/cloud-storage/.sqlx/query-4e6737a5a777280784037e88ccdda4e6e89dae702e5b50269db6e17265d14643.json delete mode 100644 rust/cloud-storage/.sqlx/query-4e9e26869da9b5473f0876a70c68dd69f6539902e580bdeaeaabdbf4d72793ef.json delete mode 100644 rust/cloud-storage/.sqlx/query-4eb050dbd9d68aa914696bdf5c03315c56e84c969498cb55c34bd93d937dd924.json delete mode 100644 rust/cloud-storage/.sqlx/query-4eef29ad204776f70531f685f709f4e18f2b4f992d73ad2b608b77869a7856a9.json delete mode 100644 rust/cloud-storage/.sqlx/query-4fba8b3d9705b745d4e20a4da319ad7cdfe99f883f0e27a402545ce0b3557ed1.json delete mode 100644 rust/cloud-storage/.sqlx/query-4fd61bd738465d867065c6cf22fd4c322073f31bf3123cf8504bac3ac225191b.json delete mode 100644 rust/cloud-storage/.sqlx/query-4febc8d1902ceb02cc22d1bf9d9f1ebd8a471c3b0e6e4016de97a8fbfd1288b7.json delete mode 100644 rust/cloud-storage/.sqlx/query-500452d6337cfbc2d9a919268021835385045e45c20aaba40ed940cf3f25a07a.json delete mode 100644 rust/cloud-storage/.sqlx/query-500f0b56eb070f7bb2a4ea9a95337f7074464d19fc6646401072914709be353e.json delete mode 100644 rust/cloud-storage/.sqlx/query-50318d6d13fb931307f2115b33d277b5298c45ed798719e792e722bd30615a95.json delete mode 100644 rust/cloud-storage/.sqlx/query-504e516996c2c65d7b2d7c47bdc5fbab6644ddd99a4913bc05ffd713f0c4ad5b.json delete mode 100644 rust/cloud-storage/.sqlx/query-506f7fbc61e5c2b0caedcc8ca1af001b1da7b88bcd175929f42b88146d4707f8.json delete mode 100644 rust/cloud-storage/.sqlx/query-514af45f8facfb915211cc9b0a92991b831dc11f9ab91d92b368340fa0aa8f8f.json delete mode 100644 rust/cloud-storage/.sqlx/query-5183d95583de1d3aa5cb183c528a2ea768622c3b189ffa6664c15669f7d78b90.json delete mode 100644 rust/cloud-storage/.sqlx/query-51873bdb08381231f01403f4e58bb5f5d73338d8cb9ec96c67fd8d6ea4746970.json delete mode 100644 rust/cloud-storage/.sqlx/query-518eb6a40898a1d2037db11af3e2cfa426a24d03d78ddea8c6c837143bb1d6bf.json delete mode 100644 rust/cloud-storage/.sqlx/query-51c9b178186c513e2359c6ae0d9eb291f29d3fe5dca1bfa5ae426aad4a086ccd.json delete mode 100644 rust/cloud-storage/.sqlx/query-52274fa0bcbaf995cd7ccf4025dcae43516d969d93066adf3bea59f64fcce246.json delete mode 100644 rust/cloud-storage/.sqlx/query-523326bd4435e4f15ca5e0cc7f015e99eac0492d7e855375a0389e246c400049.json delete mode 100644 rust/cloud-storage/.sqlx/query-525b9b86055a3dc112adcb8973efb21edf79cf3409c9d1fbcb71c4564b6b453d.json delete mode 100644 rust/cloud-storage/.sqlx/query-5293063d6203fdce622e3265581cb505e07534de33d0275ed860aea9f6614fc7.json delete mode 100644 rust/cloud-storage/.sqlx/query-52bd1907e946a5c7b45c1954491c0d10a911eecd17e12d2c3937dae20ae71bef.json delete mode 100644 rust/cloud-storage/.sqlx/query-530dbf9753f99470bd1928f17721031cd3fcee89685f44afc0d0305ec6231093.json delete mode 100644 rust/cloud-storage/.sqlx/query-532bde51c937e59bf4b6bd5ad735cd58ff2db92684a0c685bad7e8f133521563.json delete mode 100644 rust/cloud-storage/.sqlx/query-53803816cc7149ffc49cd92a665229df9ec397fa2035c305d00133abeea39358.json delete mode 100644 rust/cloud-storage/.sqlx/query-54155d1cfe6997b0dfe33cf72d9f3e2a1bf3af9a8fb1487fd32fb3f833641046.json delete mode 100644 rust/cloud-storage/.sqlx/query-541d038f1693e63ee6d4626f58580bca194989d88fd991abe2efd2c66d5a5e8e.json delete mode 100644 rust/cloud-storage/.sqlx/query-5429a0ff80ba0e9394eb205bddbb2dc247030b9e6eb3a750e30cdd770bf92fa9.json delete mode 100644 rust/cloud-storage/.sqlx/query-547e3772bb1def3090b8647fcec5795696c6d02cbabc4619d6c384bfb5bff330.json delete mode 100644 rust/cloud-storage/.sqlx/query-54880d69ab1555eb66227f63e0e4b3d940d114ee09eaa06916c48da29b8ce62e.json delete mode 100644 rust/cloud-storage/.sqlx/query-54eb040ca9944d83dd7a79c3a6bb5d7c6f8264109d57c825e903233bb7ea22ff.json delete mode 100644 rust/cloud-storage/.sqlx/query-5553458fc15f58a3a981b54210e10ebf8de2788f357c3af3932a6516c235271e.json delete mode 100644 rust/cloud-storage/.sqlx/query-55776d3a26b7c89897de6d58d17686ac9efbb516589692adcb97ffd1ace56ac9.json delete mode 100644 rust/cloud-storage/.sqlx/query-56187151cc2545db5e5b43235d9aa3a88303c3508b7218179e27812e3cad7ec2.json delete mode 100644 rust/cloud-storage/.sqlx/query-56322decea30dff649d294afbf0be6a894f1c511b957f6988b966d730d47bc59.json delete mode 100644 rust/cloud-storage/.sqlx/query-569440328317c8738d56baf89e528c093cc117a1ff6a8628f3bea4ea860c2dfd.json delete mode 100644 rust/cloud-storage/.sqlx/query-56bc98d55555a5605ffe1fb098c61a56fe28b866c4e6684d4208f97a21a7c5d8.json delete mode 100644 rust/cloud-storage/.sqlx/query-56bd1e06751e63ed197d0d29b48585d16912c6fd506196d2058ee41c09e71433.json delete mode 100644 rust/cloud-storage/.sqlx/query-56f380911d1ece3f1a04ad73ffdf724d132c32f4971d533f7dbe0a42e283ebce.json delete mode 100644 rust/cloud-storage/.sqlx/query-573a66f6ce27f28db10933bb330aa7edfb6bc776504942fd6f5ab4302a49a857.json delete mode 100644 rust/cloud-storage/.sqlx/query-575a01f5f6907c1586c226426b338c649fa27b433650b735c685e60ad9435a4b.json delete mode 100644 rust/cloud-storage/.sqlx/query-5766ebb8dbd1ad5d06624c7e715e3d2e68f8539e835552e8c8ca0d562adbbefe.json delete mode 100644 rust/cloud-storage/.sqlx/query-57fc603adf83fd7c07968425c98f9a57924573692cf0529ad021b6eef00ce99e.json delete mode 100644 rust/cloud-storage/.sqlx/query-582f4f2d5a5e9c72835d0a043f743a94d927a08a81b8687714a96bd52a94cfcf.json delete mode 100644 rust/cloud-storage/.sqlx/query-58443a6571e2b390002d7a3ba3954182467bb638a6d399b3ea8212d1a026d4fd.json delete mode 100644 rust/cloud-storage/.sqlx/query-584a3f488f9149430d13e21a9bf1bef7da249de88d145a2925832425785250f8.json delete mode 100644 rust/cloud-storage/.sqlx/query-587ab2cbf540d6f98236ca8cc3c098a0efa439c0ccefa93c46971a0f2fe7efcf.json delete mode 100644 rust/cloud-storage/.sqlx/query-58a665360907b8fc412e9f8dcb73696b517ecdd60243bf27c9564c7b969f1143.json delete mode 100644 rust/cloud-storage/.sqlx/query-58b8b566779518776b13cabdb3498ac55b426b0493e769ea607618db7e246a71.json delete mode 100644 rust/cloud-storage/.sqlx/query-58bcc36d5e748a63f9f35516f0c0ace37f77dd6806bf7f26211b3faa0fa84422.json delete mode 100644 rust/cloud-storage/.sqlx/query-58bf14acad4a08a6fa2da18e244676169f0bc6f606b04b1e8e3080fe95717b41.json delete mode 100644 rust/cloud-storage/.sqlx/query-5904887b6e8f4db0d2bd73b6e2921530de25c237c7e369b43a60ed7c28958fb8.json delete mode 100644 rust/cloud-storage/.sqlx/query-5915728325fe5163ae5f18a99350e0cb5153d368eceb75d03b4cf1adfd1f58bf.json delete mode 100644 rust/cloud-storage/.sqlx/query-5929a15919ba9b705c47c77ccc0ac1d7893590a8513c5d2019793598704f64fb.json delete mode 100644 rust/cloud-storage/.sqlx/query-594849eb57f03099052b5415a963968dd31da940638917a96ab12dfc5a98bfa4.json delete mode 100644 rust/cloud-storage/.sqlx/query-5959ff0d2410e3f2599a53bc1bf0de19c2d6e90cb030f64dccf965a0515b467e.json delete mode 100644 rust/cloud-storage/.sqlx/query-59eb39577b1b566ef0a95f74f75904a62689388c0b28b77a02946952e6aa8b36.json delete mode 100644 rust/cloud-storage/.sqlx/query-59ed63c0cb97189af71b12a68e7a516b7122cb0462db7ecc569b2e55a6e5057f.json delete mode 100644 rust/cloud-storage/.sqlx/query-5a1016dee1c30860cc21fed65aa3a7f7f3c37e866d38c2ab99cfeb2fe940b2c8.json delete mode 100644 rust/cloud-storage/.sqlx/query-5a175ba3589c494d31510ec831a37d0febf04a956ff09e0a57665211118e876a.json delete mode 100644 rust/cloud-storage/.sqlx/query-5a45cbeeb6fa756b256688f6c4e05be4abae89c4eb3c5532a96b91f3d07e232f.json delete mode 100644 rust/cloud-storage/.sqlx/query-5b17a30f841372cce9989af409baf993e24bfe90d3a3553f6851b3e92c8540eb.json delete mode 100644 rust/cloud-storage/.sqlx/query-5b5a3e0954cb8130b507b73e771624fa3af4166de80e72dbcae524f63af9ae2e.json delete mode 100644 rust/cloud-storage/.sqlx/query-5b8af25b1f47229f74c98541bbd200ba0582eaece5a30939ed5527bc05970795.json delete mode 100644 rust/cloud-storage/.sqlx/query-5bb9c628efd6afd6b7858e11b0f470fdaf0bbd407265fabd04e1201cd3754809.json delete mode 100644 rust/cloud-storage/.sqlx/query-5c110b698a00004a548556064f3ec7f96170613378e2fc37f78f2585a26f91f0.json delete mode 100644 rust/cloud-storage/.sqlx/query-5c138b3279b9ec08049316d52887064c46d9799c3d1282237646ec295890b2f7.json delete mode 100644 rust/cloud-storage/.sqlx/query-5c7aee79058a9904924fdd338d6823a3b0caf86fa2ff09ea307703a57ed72c68.json delete mode 100644 rust/cloud-storage/.sqlx/query-5ca006bf302d626774ecb05adde9c5bd7f594804d634f2d805ef47f997b270df.json delete mode 100644 rust/cloud-storage/.sqlx/query-5cf744cd176688700ea98da0351a8c39369e808fdcb9ae39bb8e31ef99bbf3e8.json delete mode 100644 rust/cloud-storage/.sqlx/query-5d7c176f88f6883ffdd41a43969a101f26817ebd80c68dbeffe7c3226ab67a41.json delete mode 100644 rust/cloud-storage/.sqlx/query-5d922b5d0478e241a8b0bb3062a61448366cff0f2db4b3bade0294bf0e4a9bf0.json delete mode 100644 rust/cloud-storage/.sqlx/query-5dc0e1bcbf170bd9bbf24c739411500b574a43db370a9c995599ae8aaca20f23.json delete mode 100644 rust/cloud-storage/.sqlx/query-5df7eb0451abdb0810c1329807dab9213313858eceaea2015c5e6d584d2f168d.json delete mode 100644 rust/cloud-storage/.sqlx/query-5e4e9cc4a9c2a48dcd4e3988d5dbe7b95b9ceab66d44b0a0158ae65aedd79d02.json delete mode 100644 rust/cloud-storage/.sqlx/query-5e5f447067de6cef4513c80eae341ba63241b13c30a3413e83f0206497a5591a.json delete mode 100644 rust/cloud-storage/.sqlx/query-5eabbc475e918d8ff312b3c8a4197f5cbc314f1462ba6368aa297ff3758f5e61.json delete mode 100644 rust/cloud-storage/.sqlx/query-5ec52bf99ec6fbfa8759ae070b48113cdb5f9a4526c72be1fcce6b3bb2e88d2a.json delete mode 100644 rust/cloud-storage/.sqlx/query-5ee7a600e71709918f23db0066f39b2a7a87880e5a9c6aa565ac85e0efdde85d.json delete mode 100644 rust/cloud-storage/.sqlx/query-5f05ad6ca76854ac7e9257b63a5ce27e9f8c6a5ba43888d9e357b10d95e0f6f2.json delete mode 100644 rust/cloud-storage/.sqlx/query-5f8bb3fa254adef0d6b582d2d964d9f77f55d10e070be80de74d22e18ba8a7d4.json delete mode 100644 rust/cloud-storage/.sqlx/query-5f8f702012590c04c79b43fdb82d0252976b275c608a3eb96e3043a1a02d452f.json delete mode 100644 rust/cloud-storage/.sqlx/query-5f9f23e45c696db3baa3b172efb66ba931aeb9036344782bd4a5e277df2c7ce2.json delete mode 100644 rust/cloud-storage/.sqlx/query-5fabf029c6dd06505963dab2b60eccb8ea77088f535970dbcf5f80d57a9a4c5b.json delete mode 100644 rust/cloud-storage/.sqlx/query-5fc28ed3d53550bec9f1d5fdd1c330f4678e3d3d44f1369bdd0b31f21600fdb1.json delete mode 100644 rust/cloud-storage/.sqlx/query-5fd1abfdae31c22ce5c71a9c3e9607566b99dbd819d7bca5a88e62fac00098d4.json delete mode 100644 rust/cloud-storage/.sqlx/query-5fd401a3c1bd6de73881967420cd5056b6e87465a3e8c7bcde2db81b75ba2f57.json delete mode 100644 rust/cloud-storage/.sqlx/query-5ff5a0e3731dc62354f69e26961fee699c6de82cfa14ba2a403486731366d664.json delete mode 100644 rust/cloud-storage/.sqlx/query-5ffee439386fd24fee2bfa20caa76b882f5be1d44a2a06a71783418fc5ef381b.json delete mode 100644 rust/cloud-storage/.sqlx/query-601165c041981d75e53661a10ffd67a55ae4e7f2cf8bdde6ad1c834196934cf4.json delete mode 100644 rust/cloud-storage/.sqlx/query-60160128531d4bd143edb6e3af105954c5f749b5a76592d8ba8bd78d3ed410cc.json delete mode 100644 rust/cloud-storage/.sqlx/query-6038d459d2d8e60479180f5b8a756380bda195f4769b6420e601ed147a9439f9.json delete mode 100644 rust/cloud-storage/.sqlx/query-60707c986f365c7b49d1938285b601338c1d98e45b630d1a3e1622fb16ad58b6.json delete mode 100644 rust/cloud-storage/.sqlx/query-607eecc4c046c7bae3bdcdc4e20a5bfa78673bf04979c01365b9e9a35398125f.json delete mode 100644 rust/cloud-storage/.sqlx/query-609f0f7ffb41618435bfabd82f782666220cf9bf24918ba7c7b9fce1fcd5783e.json delete mode 100644 rust/cloud-storage/.sqlx/query-60d9e2a257fd628f345cb615e9d6d201ca5190bdbca1c90001a98c46b789771f.json delete mode 100644 rust/cloud-storage/.sqlx/query-6107da3c9e3018aed3dce2c0a29baa584754659223dc45b3adbf30959b7f739e.json delete mode 100644 rust/cloud-storage/.sqlx/query-61246005cb69889a67ac46d2032f4fe9c1da7b19594f1b7dc59f2ed0a613dec1.json delete mode 100644 rust/cloud-storage/.sqlx/query-614ef7fa61ce3e4521e8923ebe706ae249491210d011843f13d67214f65565c3.json delete mode 100644 rust/cloud-storage/.sqlx/query-6177b5abe20800c5fbfb07f78f44f933169f5ee39129b4bd6fa372311cdc15bb.json delete mode 100644 rust/cloud-storage/.sqlx/query-61d663d08e05ea919df584b273c67e2d99c3981222a87e823892706e4b9354ac.json delete mode 100644 rust/cloud-storage/.sqlx/query-61e82a1be0d1352b8a1147bbff2dc3bd8e945b75380f112bb1118491b3d03f96.json delete mode 100644 rust/cloud-storage/.sqlx/query-6206a64301c4a62de624c6cb0db3c1053c050c7529496a73e3cf74d728f5b6ff.json delete mode 100644 rust/cloud-storage/.sqlx/query-621186dcec072b603a5f3d7b9e987a1638589d539c60d9dc5c2ab0865ff062d6.json delete mode 100644 rust/cloud-storage/.sqlx/query-625ee33d48768e369ee1fe3abe27811ad04313b1aa31f4b51abe5fd3bf569674.json delete mode 100644 rust/cloud-storage/.sqlx/query-62e6fee27bdd5c6fb4d7d7037977655784e36ba1b3285b607ff59d9d88829f7a.json delete mode 100644 rust/cloud-storage/.sqlx/query-6343ce39e05b97056a1e0f7d24f929f7aac2269af2ec0830f98558045826576f.json delete mode 100644 rust/cloud-storage/.sqlx/query-63492b018803ce26db5891964a0f52f37d2f54bd8243265c6561f4423af8617c.json delete mode 100644 rust/cloud-storage/.sqlx/query-638409c05db350cedd85b28991817b43793526453437ac01d9d20df52ff87ced.json delete mode 100644 rust/cloud-storage/.sqlx/query-63a478f0ae0ec6d9e9cb4c3de55a880b859bc61f745087e067f6b05e6878cc04.json delete mode 100644 rust/cloud-storage/.sqlx/query-63a5819e9b22bf76402a3afcdfb6bc6cd3a96d84e15909c85c8e6ec4a8b69e42.json delete mode 100644 rust/cloud-storage/.sqlx/query-63b8a0bc87e00d95ca046f0602a14ef73e9c8ebffb19a40ed7e059004d9bdb9a.json delete mode 100644 rust/cloud-storage/.sqlx/query-63ca13cc79c27b5267ebbf53491b657ca7671e1ab9d1a4691372693a9f9a4ff8.json delete mode 100644 rust/cloud-storage/.sqlx/query-63eecd3605682482786210e65ac14cd04b67b741bac7bac67471bcfe21205d80.json delete mode 100644 rust/cloud-storage/.sqlx/query-6405181c054f5b865e4dafb1a665d33e0f3cdd3a3bab22f0fd1eb5e71c46a935.json delete mode 100644 rust/cloud-storage/.sqlx/query-64335bf8a0c673f907b40511dc568f1cd36c04d98b98016eaed27a98622c05c4.json delete mode 100644 rust/cloud-storage/.sqlx/query-643b149e8a3c616d39850f156f37cdc1a007500afdc7c8e232a59a8b60824962.json delete mode 100644 rust/cloud-storage/.sqlx/query-64407ed474bb1ea2930c431fad30657cfa6d5e400247cbf304a3d28cde13c39d.json delete mode 100644 rust/cloud-storage/.sqlx/query-6450fb466802ad93f651d24054fd250abab1fda9e01dfd44d7e02e53f107816f.json delete mode 100644 rust/cloud-storage/.sqlx/query-64d3a59468f973251be473a78180d6178a8fbdfe21983501c6baf4ce30cbe5d2.json delete mode 100644 rust/cloud-storage/.sqlx/query-650ab172f8fa2dd93e941fc49ce22a86ce4333805799488d1c37df47d928ddc2.json delete mode 100644 rust/cloud-storage/.sqlx/query-65312be3e9b6d4bb6debf39d7fe4f0abbb105b8fb03e44c12f7241fc52b022d4.json delete mode 100644 rust/cloud-storage/.sqlx/query-654e58c390f6a8935cd310d596202b9b2036019140bb0da9d2f033cdba2289f3.json delete mode 100644 rust/cloud-storage/.sqlx/query-65818d5e257f9e76534f4ac3414f98f24d1991cacd53b806e81746c16144cc83.json delete mode 100644 rust/cloud-storage/.sqlx/query-65af936c2ba7200bb57024fb52cd27fbb4ac3a6b655e5dc2c11ea4c802587214.json delete mode 100644 rust/cloud-storage/.sqlx/query-65d1dc0e96a4a41d52387f43fe08cea15b4124517eeed1d24ab006dd33e409e1.json delete mode 100644 rust/cloud-storage/.sqlx/query-65d9a861790a256c2ce832e94358efde2c37d0ddcb6fa557b800cb442f7ba10e.json delete mode 100644 rust/cloud-storage/.sqlx/query-65fbbdc4a8b2ac4be0283f4297875cb62de647cebc07d42b93e58f35fb34e7bd.json delete mode 100644 rust/cloud-storage/.sqlx/query-660327b68f707d334f921f00cca0ab2977e09a30aa82b70b78e51c4a0877f229.json delete mode 100644 rust/cloud-storage/.sqlx/query-66106766fa34cf3660615011a75f7640171d9adbb9f95962db83d979d02cc2d5.json delete mode 100644 rust/cloud-storage/.sqlx/query-663a12ade5ccf4613703c0ad368772673560741961c20f5c401b59b5c5f6027d.json delete mode 100644 rust/cloud-storage/.sqlx/query-6656045ae486ab93f763edc9734b18f0867a279705c7f5a91775754f3cfbe83c.json delete mode 100644 rust/cloud-storage/.sqlx/query-666ad2a732546aa9a48262eeaeba037263a6ef8f1daf5eb8ee95ee50ad97f3c0.json delete mode 100644 rust/cloud-storage/.sqlx/query-66db94821f8946fd3494e1ae5df52425ff06f3bdc9bf008414db8301161d1f4f.json delete mode 100644 rust/cloud-storage/.sqlx/query-67255839adc83c0e1dfba11289811d0e6c269464a8506f0ec29db94b7841a038.json delete mode 100644 rust/cloud-storage/.sqlx/query-679af359cf0fccd5b687fe58ece3b1052fe8c636b986fb6f59f67fcfd08fce38.json delete mode 100644 rust/cloud-storage/.sqlx/query-679d0dd86957b91b759135cf9fc7314630cfd377b004a8c1dfedbf5764137ebd.json delete mode 100644 rust/cloud-storage/.sqlx/query-67d6061e983a68f7c75c0272885bb866cacda011d43947e9dd29e0ec60f42d2b.json delete mode 100644 rust/cloud-storage/.sqlx/query-68374c56646f19df2212ced86e1ab0010e207e54ef3453edc0df2180a5e402ba.json delete mode 100644 rust/cloud-storage/.sqlx/query-68ab26135b27913a38d7670c8c1a304b0d9676ba2fb8cd7ac3e9c9906e5726d7.json delete mode 100644 rust/cloud-storage/.sqlx/query-68ad8e75246fed44a1e258483299257bc04def00c6417bee80f7816d1a085578.json delete mode 100644 rust/cloud-storage/.sqlx/query-691f6d6cfbd8bd9e7bd3e141231efe90a96a9ba79d142abbcd4846b3400dfa57.json delete mode 100644 rust/cloud-storage/.sqlx/query-6925ae890683c9b94bc1f89f1d8fbe0b72aafdd053092bbbd4b1f918d3e194e2.json delete mode 100644 rust/cloud-storage/.sqlx/query-69de5e91294da24e3c0c22ff7cbb156ec4433cb228a034aed09e059ef005e92e.json delete mode 100644 rust/cloud-storage/.sqlx/query-6a9de1564f16007df9f5758baad9f9d5c22ca624f08f29bed7fe9e265288eba9.json delete mode 100644 rust/cloud-storage/.sqlx/query-6aa68cd66ced924e43b012c317e1efe33721073350ae49882e066ac544bbb995.json delete mode 100644 rust/cloud-storage/.sqlx/query-6ac0f229f06980ddbc62f5f5056b7996d92d842e88d386cb0b65fb11468cdc57.json delete mode 100644 rust/cloud-storage/.sqlx/query-6b5a41c0c33c20537ef484ad312d80da7dfa7251e2333f8981e2a76f40e623c2.json delete mode 100644 rust/cloud-storage/.sqlx/query-6b5d1c6cd2318d630632681a46fc22d2c1075924eb4c5089bd81b1f3b72e0455.json delete mode 100644 rust/cloud-storage/.sqlx/query-6b7094e2eaf150972507f937e120984ee4911e974d0bcc78248c022d44fa20f1.json delete mode 100644 rust/cloud-storage/.sqlx/query-6b9cf167af68aad294c96f81d6bc995ead4fd6f968ef17176a770ffa46b44f64.json delete mode 100644 rust/cloud-storage/.sqlx/query-6bb0523c1a1fec5d2d8600d1d18e7156eebd31e6d39dd4b9f6bbb397bd8a5f56.json delete mode 100644 rust/cloud-storage/.sqlx/query-6c022c7b1e5e5faf6f388528436453738aa66c36c46313ca18c7570b406553f6.json delete mode 100644 rust/cloud-storage/.sqlx/query-6c7eb689e2b36b5f9d73ebb66746c36ad70078feb62d295e33506f317fe07bb1.json delete mode 100644 rust/cloud-storage/.sqlx/query-6c8ac695bf54550d865d143ee7a01a65dc6bad54ef3c3462f7bf5727f9ab3a42.json delete mode 100644 rust/cloud-storage/.sqlx/query-6ca4be786e151f81e8e7d6b13ada596369e6a42d1371b871c7739e2dc0ff0b11.json delete mode 100644 rust/cloud-storage/.sqlx/query-6cde7e3ff4993fc1a8ed1ae8b9d0cb0d1dde7ec2707d52d5d2211d5569d0a949.json delete mode 100644 rust/cloud-storage/.sqlx/query-6ce3b9755eb7d0e6eff85dfb08d9ca5ab3dffaa6794fe78612b94389ee90e3b4.json delete mode 100644 rust/cloud-storage/.sqlx/query-6ce4faf9e5f20226d7e2fad64816fe432ac1128af2df592077c848e75009509d.json delete mode 100644 rust/cloud-storage/.sqlx/query-6d419ad1a1c53be5ee3edf5667c55489e99232e1dbd25cbb3f31746b4b9614ab.json delete mode 100644 rust/cloud-storage/.sqlx/query-6dd441191ae20b764a7b3e66633b9f9e666235381e20631e0ed08d095a29507e.json delete mode 100644 rust/cloud-storage/.sqlx/query-6dde3a5ced431932d021e43180e45071efd36c3088dab4feada6254bc1aa41f2.json delete mode 100644 rust/cloud-storage/.sqlx/query-6ddfc76d4a95ab81c18c930d8c08c51813d41f72f734271c538bd3e5377e2a4c.json delete mode 100644 rust/cloud-storage/.sqlx/query-6e755ab9205277781336779cc7c41346b3432771aa29162272624e4bed3e54e5.json delete mode 100644 rust/cloud-storage/.sqlx/query-6e98cffdfa6200686281b3c2c540f07f517dca38e8a70bad08b4b655cb1cd550.json delete mode 100644 rust/cloud-storage/.sqlx/query-6ea5fe0c08693b233361460d1a1b46168b4bf9848d252242a06569301144a4f6.json delete mode 100644 rust/cloud-storage/.sqlx/query-6f84ce5949c02518f69930a6a30b78c285f0440e2c5157d1ef2ee614cc2105f3.json delete mode 100644 rust/cloud-storage/.sqlx/query-6f9c55c52025db2dbe4b76be30d2ca5c95970ef6ad421ec0f5fbe89bea212ff5.json delete mode 100644 rust/cloud-storage/.sqlx/query-6ff2b4ae4df25f6fe125338e274f4149fe8829da208e8689ccd7e2154e8d7136.json delete mode 100644 rust/cloud-storage/.sqlx/query-704f8353c3a52412d8cbab60b9b32edf0d811d09c54b66522e38366cdefd98a6.json delete mode 100644 rust/cloud-storage/.sqlx/query-706da2cb5edbf06f5304e87bed3866c7a6ba7f2a405b174a238623f5e496886c.json delete mode 100644 rust/cloud-storage/.sqlx/query-7078d46dbcbe1c4201bcb4f63d98400d28bde0e2c3af5211a83a01165f751029.json delete mode 100644 rust/cloud-storage/.sqlx/query-70f12c0591fd0f66402ffc3720a5f5f7c6116cd761471bd5e03f528bf32effa5.json delete mode 100644 rust/cloud-storage/.sqlx/query-714f0e8d34476dcc43f7ee64ea1a429f9420fe1403f56b6c472640efd43451ce.json delete mode 100644 rust/cloud-storage/.sqlx/query-71b68b23ef028192231dd2129f4f8671f0af53a90629efe34f6f4e13ba227e91.json delete mode 100644 rust/cloud-storage/.sqlx/query-71b975abc8c63ea8116cd8944e99d46e5747660807a30564921bc371ddd1338d.json delete mode 100644 rust/cloud-storage/.sqlx/query-71f0916419e122c5dba653bdc23114987bb800ba14658efaac7cafd0c16672c8.json delete mode 100644 rust/cloud-storage/.sqlx/query-720246c9399231f60479aa8c51bee2054d9f2cf9789f913e0f9cd65b9a93de79.json delete mode 100644 rust/cloud-storage/.sqlx/query-725db444624bc6b4df387c7f45d750328437c7732e147e15818a269bb63be183.json delete mode 100644 rust/cloud-storage/.sqlx/query-72c4ec37d0b5c963e6061e040ab7184e2e6623e487afc52358f77f57d236a255.json delete mode 100644 rust/cloud-storage/.sqlx/query-732141210551d42218ce027266c6dfa3dd1f0ddb2c37493ed1235fe488073d89.json delete mode 100644 rust/cloud-storage/.sqlx/query-7335b4f26cdbd5ad240545c4231cc1d34d10eda3212c0dcbd92db0ed61e86ec4.json delete mode 100644 rust/cloud-storage/.sqlx/query-733e693b7231777ab430290d378ba45d608cf5aa1d39c692c93fe06a5593f312.json delete mode 100644 rust/cloud-storage/.sqlx/query-7346e8f6a04f0e2d0b0c3b711afc10673c7756fda2cce9fe8619d68d92219a88.json delete mode 100644 rust/cloud-storage/.sqlx/query-7385a803bf786406cafdce24628f9cca114fa5fe46b7bb0de469135f54dcd710.json delete mode 100644 rust/cloud-storage/.sqlx/query-73c67fbf678e1479d528adcc5bea7da3261d0a04e24cc16f96ec9f2dea3b2e98.json delete mode 100644 rust/cloud-storage/.sqlx/query-73f91a13989edcfbeec5d67e465506a77077406116f58821f9c1b38b855fb995.json delete mode 100644 rust/cloud-storage/.sqlx/query-74132c6b056f693ac364bd5d70a40d81ccd384ffc21881d7c162895cb7d11647.json delete mode 100644 rust/cloud-storage/.sqlx/query-745780ca3e0e26284050ac92cd3c90f9a796ec770c53cbee32660ed867c138a4.json delete mode 100644 rust/cloud-storage/.sqlx/query-74d33764e454fb9ab4f2775974462d6fdb092bffc720d929de5e7b50ecef5139.json delete mode 100644 rust/cloud-storage/.sqlx/query-74e411c5bdc9a4ee3f96bf4b09fd3506f32146eb21d6714d60136850e9d849bf.json delete mode 100644 rust/cloud-storage/.sqlx/query-751f836dc8f78c330387456dd68a8803972c7b3e2b6a2b95c27f15068bed2ca5.json delete mode 100644 rust/cloud-storage/.sqlx/query-75843bf211e0811b398d636fe6c8b05005afb77be95bc434a924e53c17cd6033.json delete mode 100644 rust/cloud-storage/.sqlx/query-758f208ea073a48e9be9919a0dce43648c19b5a092049b7cb0a6382e931371a1.json delete mode 100644 rust/cloud-storage/.sqlx/query-75f7c645bd7640d085b759c4246f683ccf76c634d71337d35d1a8b7004f31c35.json delete mode 100644 rust/cloud-storage/.sqlx/query-76096541f7696b2035acdb51754b4f783e345db19b32a815bbf68652121da947.json delete mode 100644 rust/cloud-storage/.sqlx/query-7617f808df94ffe77c8195a911ee6b230a21fe9935e099d1310d244248ca253a.json delete mode 100644 rust/cloud-storage/.sqlx/query-765650cab2b1a1d1abe6ca406438bf48968cebebc7316b87b192d649e096cd67.json delete mode 100644 rust/cloud-storage/.sqlx/query-7671b43028d90ea50536fbcd10ee0c1625c2e66de29cdf080f66832e62e07e76.json delete mode 100644 rust/cloud-storage/.sqlx/query-76caf706a1f0846ad3a7075878e941a9293a5eeeb1de3900c3c39386d5dc57c0.json delete mode 100644 rust/cloud-storage/.sqlx/query-76e487efe2d8f383ac8e7688892624be4d81662c6f82f6aa16ba2e752dcabd94.json delete mode 100644 rust/cloud-storage/.sqlx/query-76ebe39d39b36dc8c0d0f4d7741856a320bd22a3962cf1ccec2c930a56ed6a26.json delete mode 100644 rust/cloud-storage/.sqlx/query-76f6793eaead8c4f3a2aa4b02ad573beda79b93bfd874acc1b2059cbe041d8a3.json delete mode 100644 rust/cloud-storage/.sqlx/query-7704391a443f1375ebd231197c4c21c7843eea381e396a3c688b390ced89620a.json delete mode 100644 rust/cloud-storage/.sqlx/query-770f2133b4f487b783e3d34bce0ebde1405e003a2d84d25542e8a11c7895be18.json delete mode 100644 rust/cloud-storage/.sqlx/query-7725b1095e9fdc3e8879840bf3480aae302752bce224b1e69dcb3f2a9c1cef5b.json delete mode 100644 rust/cloud-storage/.sqlx/query-775a3c1e4a6365516cc07a60cdfe1913f1fa8606bdb384b8e697cb5c723cf40b.json delete mode 100644 rust/cloud-storage/.sqlx/query-77a3b4ac298457a9c06b145d60a00127619bcfe56c969e69c03c98e7b2d975f9.json delete mode 100644 rust/cloud-storage/.sqlx/query-77b9642e3ce72202c80aacda76790b7a1e1eee80d0b7388c2ad68e8ce5a996c7.json delete mode 100644 rust/cloud-storage/.sqlx/query-77fae7a910ecfe9c5eeaf4c37a334398757d8e7959cd237df7e4947fb75aa56f.json delete mode 100644 rust/cloud-storage/.sqlx/query-77ff9385b1d74c036dde9f03404de53c3002b45bbe4e800fd2edf3c09f7625cc.json delete mode 100644 rust/cloud-storage/.sqlx/query-783fb2d2833135d5bf8aa7eb5983b773d4b7c9b508388987155815d8c7e1db3b.json delete mode 100644 rust/cloud-storage/.sqlx/query-784bba91ffa42d509389120cd4d680c75ad890e4fdf4b9c0b9d88ff07abc23a4.json delete mode 100644 rust/cloud-storage/.sqlx/query-78d6d53824fefc526411d2a0ff9d70f665ebe35943b7246ff5e6e3f801183cef.json delete mode 100644 rust/cloud-storage/.sqlx/query-78f1cf9da464937604c1a2d5115c014cab9de72bd88605ff47a316baa2c7acc2.json delete mode 100644 rust/cloud-storage/.sqlx/query-799422134794f3c4b9c5867b136262c2f639f313f14fd56da967a74d91aa1c88.json delete mode 100644 rust/cloud-storage/.sqlx/query-79ac6b0966afc0c5472e3d5589e940bf0d6d2c4280e69b09b4f7c8839b5ad658.json delete mode 100644 rust/cloud-storage/.sqlx/query-79bc5e3d91f3713ddb29cf42590eca0703771ea550311dfe651cc4cc063d34db.json delete mode 100644 rust/cloud-storage/.sqlx/query-79c6974496c155f372a458d21240a09730630660ae75e8f6e5cfd8f5ba0ceb4e.json delete mode 100644 rust/cloud-storage/.sqlx/query-79edd9ca0d31434d5d7a4db78a6b3f8eb316ff51e1099e40611ba77f5c048828.json delete mode 100644 rust/cloud-storage/.sqlx/query-7a04573d80958eb5b841e520136db80173119aacbab82f50a4a1ae468aaada65.json delete mode 100644 rust/cloud-storage/.sqlx/query-7a97bb0e12628cc97e6e2555cf246cf0339ffbcece51c12635989df120793dfb.json delete mode 100644 rust/cloud-storage/.sqlx/query-7ae5368ee01e670dcc9804096f3d3e9dcab6dcebcb601bfb1ed190dbda0ff37f.json delete mode 100644 rust/cloud-storage/.sqlx/query-7aee0251787584d5ae4c7b01fc06562ccabe8d554bb4013b3970ddd3f10fc364.json delete mode 100644 rust/cloud-storage/.sqlx/query-7b34f011e0ff7320e6a43825cace039b37662cf51a607ad905f758c508aa5049.json delete mode 100644 rust/cloud-storage/.sqlx/query-7b3d997c28cd0c99fc7b710e47f9bc1ac1a63e950ae4446a7c748ac067b7c8cc.json delete mode 100644 rust/cloud-storage/.sqlx/query-7b57355357a891761f608fc4d7ad472b901c087890909de9a068d6bc1ba0eb7a.json delete mode 100644 rust/cloud-storage/.sqlx/query-7b747964b75e86cda7393af6cd483d86a7214baaa710e8a527e1dd77ab8274b6.json delete mode 100644 rust/cloud-storage/.sqlx/query-7bb408bf30aecce0065dcfcf07da69efaab69905bb6b97d5d57ad591ff8c2006.json delete mode 100644 rust/cloud-storage/.sqlx/query-7bdcbf27b9edb2a2efc0e30c83230f6400385b295a50b48776985089d6ae3c84.json delete mode 100644 rust/cloud-storage/.sqlx/query-7c0b9d645a85e30577377e4d8c8a8f976e86c6251e12517a2b1e14d525e09198.json delete mode 100644 rust/cloud-storage/.sqlx/query-7c4cd009982b182b18927dc5671aad059a55440c2de73c818ef28d6cf08acf80.json delete mode 100644 rust/cloud-storage/.sqlx/query-7ccdaab5873129437c98581ac37eb4148255b83e18fad15349d06c54040fd6cc.json delete mode 100644 rust/cloud-storage/.sqlx/query-7ce336a58021f98fbb7c87b42ed827d0aee69ec593e923e41d2545b75d1def37.json delete mode 100644 rust/cloud-storage/.sqlx/query-7d2487e2e00482505b104e5386377e939dd85a9090b3d89d71bb495b2ba7cca9.json delete mode 100644 rust/cloud-storage/.sqlx/query-7d4385b8207bd320c290edc420c68c86028ac0ecb586a78fe55438f5e13b9106.json delete mode 100644 rust/cloud-storage/.sqlx/query-7d5fe2bfe9751516c5e9b4315c74138f065c6c9b2a92c0de4d048dc72fdfe369.json delete mode 100644 rust/cloud-storage/.sqlx/query-7d904128ec24b17b4f1b25a2084b42476455160ba50f8e599a47acca06484cd7.json delete mode 100644 rust/cloud-storage/.sqlx/query-7da22b0b109d1caac6384294fafaef3148e80824e023ddee78473fbae17720de.json delete mode 100644 rust/cloud-storage/.sqlx/query-7e076694e17fe7c86e7a948ab72e4a2a56f301223b62413247ac15bd5fef29c5.json delete mode 100644 rust/cloud-storage/.sqlx/query-7eaa606441665fa4dca3077c6b3c02e8c4a0d136a40149829b96dff878897108.json delete mode 100644 rust/cloud-storage/.sqlx/query-7ee9ba5adfac304c7ac930943538ecca7428b1054d451fb2f8973cf9c11caf45.json delete mode 100644 rust/cloud-storage/.sqlx/query-7f5d80a93c34a98c84c86f6dd678139fbab4c5bf559090a45d79384bcef71a43.json delete mode 100644 rust/cloud-storage/.sqlx/query-7f8601bd8c738ab2e656f22c009f7c6599dd2dd0de63c92a772d6638bec6ef77.json delete mode 100644 rust/cloud-storage/.sqlx/query-7fa9eb6f3b050e679afd93120744ba5f2cfd3a341111c1fc757ae75f50134d7f.json delete mode 100644 rust/cloud-storage/.sqlx/query-7fb579182c5ebbf4516b104b3f4b5956f4d84fb449358a83393d0491d712f44f.json delete mode 100644 rust/cloud-storage/.sqlx/query-7fc9da48b6c62ab0db6327e300eb80eafcff34b2d5d13621a688883acc3db154.json delete mode 100644 rust/cloud-storage/.sqlx/query-8038c7f88cea547f6ed9e7d8d8e3b547ad7f8880f4e695bc037ccc7ca8493f82.json delete mode 100644 rust/cloud-storage/.sqlx/query-805150c1a22fe4cee95588606be11c6419a2e25f66201dfefc8a87a586150d26.json delete mode 100644 rust/cloud-storage/.sqlx/query-80d20d5b664dbbb320a52bf47f134534f93906716e415c54b6e3b30834973bc7.json delete mode 100644 rust/cloud-storage/.sqlx/query-8147aab2de8747d607d38b11d39c62991540fc188b1c70f3c40a8a12f4908071.json delete mode 100644 rust/cloud-storage/.sqlx/query-82329af5032380193f6774277bf662f7a68651a2375e36b9923a6bf7fec71426.json delete mode 100644 rust/cloud-storage/.sqlx/query-8238816f3d6e5b374b83023a799251d28c15592d8b50959c331bbc2ba45ceaea.json delete mode 100644 rust/cloud-storage/.sqlx/query-827b998f442f5f6cb6ff85dc35f01c5782128a4cb9a020e22ab83a24a6c2b4f5.json delete mode 100644 rust/cloud-storage/.sqlx/query-827d839ae763a24c7faac855046d760a9d51f927e073bd9b2f07c690882fac03.json delete mode 100644 rust/cloud-storage/.sqlx/query-8284a5f2fb0c00c676f11b91457b8338692087d259f3c0dc0975b6b2053a7b45.json delete mode 100644 rust/cloud-storage/.sqlx/query-8334abc3fffa33d4b93704f039d5cd78bb02fa8505c3ba8111d1c9e17ffd93d8.json delete mode 100644 rust/cloud-storage/.sqlx/query-833f7916c7445825f248eac09769afd4b4971b517b12e578ec2f534038609572.json delete mode 100644 rust/cloud-storage/.sqlx/query-8359035e915d0949500ede9f520fb3ea45d1766256ee45b0c5967618301b2ea6.json delete mode 100644 rust/cloud-storage/.sqlx/query-836ce70023dde942fb6c49c76901919d486794aef06d9296b91c7f13ad846d1c.json delete mode 100644 rust/cloud-storage/.sqlx/query-83c56e766513141232e2552b51f710814de9a258724b40796328784a5239ea5f.json delete mode 100644 rust/cloud-storage/.sqlx/query-83dea9ffef9207e919ec708a6570c6f4090dbdbbb9f5f609edbad91becbc1bb4.json delete mode 100644 rust/cloud-storage/.sqlx/query-84bcc8595057c11bf854c4ecefc2abb2b0d392b7f098fdedac066a67d4dfd7d9.json delete mode 100644 rust/cloud-storage/.sqlx/query-84e1db53f1407e16ed5e2fccf64ecb7a7493b1a1df0b372b460170154a49a509.json delete mode 100644 rust/cloud-storage/.sqlx/query-850ac15de719742dcee861fed5d0199ded6efb032bc7e2daaca06013bb130e9b.json delete mode 100644 rust/cloud-storage/.sqlx/query-850d9317ed6b8e21fbb7602beaf6b8c05f43739f31587aa63e57dbfd0093ab1d.json delete mode 100644 rust/cloud-storage/.sqlx/query-85423841a8e715417d2e6c4c210b096a1aedea8c4bb63029e0024bce1e5029f9.json delete mode 100644 rust/cloud-storage/.sqlx/query-8659923b989f123cadb88ede932614c820d21950e32ab2f6092c78dfb5e77aae.json delete mode 100644 rust/cloud-storage/.sqlx/query-869087208a0e921c85a4de60ef9037f0121d673203126052c384ccca95d472db.json delete mode 100644 rust/cloud-storage/.sqlx/query-869cd93b000ff26b2c872e5822ab4adb80d18fdc595352afa30159ac3eb864bc.json delete mode 100644 rust/cloud-storage/.sqlx/query-86c882f1999ad9c5b87e684ae17a1c1307846848b1b1bd40ee02438ada43052f.json delete mode 100644 rust/cloud-storage/.sqlx/query-86eee52e30e4168f4a7f319d1dcaa59144a5b3269120df892f161c74b5fe7436.json delete mode 100644 rust/cloud-storage/.sqlx/query-8706eea9749b2b5fb7b7c9c155a90b3e0b6f09bc06968eb94e36d0c55c6b0822.json delete mode 100644 rust/cloud-storage/.sqlx/query-8717ae7a285b36ee3b82b3688a274b9734ecd81e4e1e1d0f7a1fc3a7d2c2c053.json delete mode 100644 rust/cloud-storage/.sqlx/query-8733fe389d5f98dd34fe87d42e680e664655853aab4646cc5e889f48c5511aa1.json delete mode 100644 rust/cloud-storage/.sqlx/query-8748bb91363013514f0b55046bc8a1917acb27181343384b86c0a9cc750013bc.json delete mode 100644 rust/cloud-storage/.sqlx/query-874a0c4d1f171a6b97f75dd0e0c2df35b86bb10ef4bb518fb4594fe81d282606.json delete mode 100644 rust/cloud-storage/.sqlx/query-87e0c17146266f40e2f76a27c0e60bd057a7efe02fe027f9514cc8fbdba2159b.json delete mode 100644 rust/cloud-storage/.sqlx/query-87eec4033f46191de7f443e2f1ab2bf5e342b790423e98d6c62ba29a1a434d85.json delete mode 100644 rust/cloud-storage/.sqlx/query-888ef7d64ac87598ecb72012cfd89a38a749efb40b4e033f4525fcf03755c2de.json delete mode 100644 rust/cloud-storage/.sqlx/query-88cb2c1126909dabe0cc1846ca2733ab98724d4b89d409fa770209d4d7627654.json delete mode 100644 rust/cloud-storage/.sqlx/query-88e09c541b42bddb46449241492a7dc2d2ca72f9fc3d55a412460a0d8231555e.json delete mode 100644 rust/cloud-storage/.sqlx/query-88eef0eafe13e4e4f3c0f9c0792cb7e8e2f73c4f87ca77a32c64d99ac28a4b12.json delete mode 100644 rust/cloud-storage/.sqlx/query-89004da6bcdd66bccd56ed64402d82dc4fb489cccaf5ca647c5a9403fa760ce9.json delete mode 100644 rust/cloud-storage/.sqlx/query-893d51b6860bdb3deaf125dcb831a29eb711f46fa9f28cf211136eb4361b87bc.json delete mode 100644 rust/cloud-storage/.sqlx/query-8942100b50a073f4f95b37246d355dc8b17c5a105492901ad72da89438ec6601.json delete mode 100644 rust/cloud-storage/.sqlx/query-894b2bdfc3046722023572c4b37870258288ab2b3125c4f31dec62d916f0b64a.json delete mode 100644 rust/cloud-storage/.sqlx/query-896b6aa18d1cbdf28df4b24758813d0327649d0b807a60928142de0d6a2ce5e8.json delete mode 100644 rust/cloud-storage/.sqlx/query-89a884bd52b26e8aaed865bb4f8916be18a81bc149bfb4cc170586f707de7cc3.json delete mode 100644 rust/cloud-storage/.sqlx/query-89b618eb18b7ae1ab21e40391daea7da6a544800e931142ac88d413aaed73653.json delete mode 100644 rust/cloud-storage/.sqlx/query-89fac636d8ad3699c72ad57a4a5f2bf9211061274491815b8af4c634e62cee06.json delete mode 100644 rust/cloud-storage/.sqlx/query-8a09a252705dac4a5d37461d81354c02f0776d151ed57da06713a6a0d7185392.json delete mode 100644 rust/cloud-storage/.sqlx/query-8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2.json delete mode 100644 rust/cloud-storage/.sqlx/query-8a1debc8a93f83a63f33dfd12a1eb8f707e99f0a207a9b34f27848ab362a7bff.json delete mode 100644 rust/cloud-storage/.sqlx/query-8a219d75e22ca3b14ed3bfc1fbf218e2e69f540f69d0ab223170a52ac92af43c.json delete mode 100644 rust/cloud-storage/.sqlx/query-8a4688fb6685c28f7fc9f48487b2fe1ce97205a1574fcedd7e87596c63d6dab0.json delete mode 100644 rust/cloud-storage/.sqlx/query-8ace9a37af485ba737647968d2f36d64a890e17f75447b5b7bc743347d16a91b.json delete mode 100644 rust/cloud-storage/.sqlx/query-8ad8fb713125453e2416a6a4992c01f32d29696d130e0e1f46599273575bcb02.json delete mode 100644 rust/cloud-storage/.sqlx/query-8ada8f1fc3affb75cda0d8c749204d8c58ec09f88682ed2e5ec0ea26605cba2b.json delete mode 100644 rust/cloud-storage/.sqlx/query-8af0c4dcb1957927aef3afb489b879fc666056bef965cfce73149d446b4c71bd.json delete mode 100644 rust/cloud-storage/.sqlx/query-8b7993e0c49a8c1b1fb9449770a500362b483bcea23aec896bfaf9e67fd6dc95.json delete mode 100644 rust/cloud-storage/.sqlx/query-8b7c148e88c11c3a2ba484c8ada918bf6497d8ec2339d9173904a7532b2b0052.json delete mode 100644 rust/cloud-storage/.sqlx/query-8b7e81c3b4f31c86100de517e1978a1879039b7230aa83df18f583106c97a18f.json delete mode 100644 rust/cloud-storage/.sqlx/query-8b8194993cc2ec93b2db6104da98fe3569d973d3d2a3f723c70414c04cc574ef.json delete mode 100644 rust/cloud-storage/.sqlx/query-8bca1bc084d24daf8db19d8fc04301467f257fbc1bde2a018fe9efb1e6728cd3.json delete mode 100644 rust/cloud-storage/.sqlx/query-8c9bf0696a9b0a0e1cab142290ecf2858a32311a07bca8ea0bb9f54ea507f8e3.json delete mode 100644 rust/cloud-storage/.sqlx/query-8cab0f54798d95a0549e022187648a7e8ad714623a8a2fe32c785ddb27937eae.json delete mode 100644 rust/cloud-storage/.sqlx/query-8cc1aa2163c9650b121037b241370b154ad229bcf9280c54e5975914d1c6fc78.json delete mode 100644 rust/cloud-storage/.sqlx/query-8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911.json delete mode 100644 rust/cloud-storage/.sqlx/query-8d25b1711e2c00fe92b1921e1c2ee17e311301f88b1550dbff4eb41b6e12db13.json delete mode 100644 rust/cloud-storage/.sqlx/query-8d3fe39f31059bd0a830f027fbb9aa2089b8ab3ea0cf3fbe3b35d6f17be9b355.json delete mode 100644 rust/cloud-storage/.sqlx/query-8d5ffbdd5be9b1031c7da47bc2d4bcbee35802a575387ef081a09031b42f7de9.json delete mode 100644 rust/cloud-storage/.sqlx/query-8d8e2f6bf38b4b18f2b47c282a351aee78b249f6d66133c572c39a7ca8e11024.json delete mode 100644 rust/cloud-storage/.sqlx/query-8da326cb4addb18bca0e08c8728c86a1aa898bcf344fe913db7ee5c47dfde47c.json delete mode 100644 rust/cloud-storage/.sqlx/query-8e239c46742a642923b5367a73cfcc0f253c96269afb634301ed6d207c206107.json delete mode 100644 rust/cloud-storage/.sqlx/query-8e916c1355943f5a5d48d153bdf82e453c82b6a4c279973b2f7c0c631ffeff12.json delete mode 100644 rust/cloud-storage/.sqlx/query-8ea09698a4333b2b2d97f16423008a172b5a030ede2b8528a103397a6dc4a42e.json delete mode 100644 rust/cloud-storage/.sqlx/query-8ed522f5a19f1f7d136ed0fc5c4c57f4af547d21eb2f6c78c9e2335f4fcd64c2.json delete mode 100644 rust/cloud-storage/.sqlx/query-8f57f79c4318149ab611e764372c035d54880fcc3d80b41bd5d255245e94263e.json delete mode 100644 rust/cloud-storage/.sqlx/query-8fc112d6aeef9c2a223351d2b80947769f26aafbebb3a1b0c759f5246fcca507.json delete mode 100644 rust/cloud-storage/.sqlx/query-8fdd4afe0b260c02acea8a052a6fe39d6ad21150fc2f1049548c724516b9210b.json delete mode 100644 rust/cloud-storage/.sqlx/query-8feeae34466cca17ffaacbf1bbe635362915023e2457fe6bb676c05c5d6f9ee2.json delete mode 100644 rust/cloud-storage/.sqlx/query-9021780763850e636cf944f6171ce2253c39d7532a38bcda72c8a6da965310f9.json delete mode 100644 rust/cloud-storage/.sqlx/query-90832c95920a9b40329509f4ee611f765a6c10025c1b519f4a5d76ccfd64fb75.json delete mode 100644 rust/cloud-storage/.sqlx/query-908627bdd27f344ce26c501bb7431b621173c04bfda9678021360817c3f25103.json delete mode 100644 rust/cloud-storage/.sqlx/query-9096710139da4a36b9a11809a30b65ae3b712a0b659b63e366e5f485b8630951.json delete mode 100644 rust/cloud-storage/.sqlx/query-90d75cee091fe17362db20b9d855e6c8e8d204599eb1ee4d576b9a913aca0b41.json delete mode 100644 rust/cloud-storage/.sqlx/query-90fce55ca239e5642b63e553f9492913cced9a2c8a5eac4f07a4f56e621512ee.json delete mode 100644 rust/cloud-storage/.sqlx/query-91368040542b31a69ae76bfc12b127970920fb761ec08d3303bffc94402b984e.json delete mode 100644 rust/cloud-storage/.sqlx/query-915c50350c5513c6e1ba12eae31520046ac0e7e882d9c5ec76a3578ae4bc7d50.json delete mode 100644 rust/cloud-storage/.sqlx/query-9173d68221d7b73f7a1e3ec0632ab9ae6a9269c950b45897a5e64c14cd00e117.json delete mode 100644 rust/cloud-storage/.sqlx/query-91badd3aa8d3cc89c16ae8013b20eb521625862f180e9bc75096de5573436928.json delete mode 100644 rust/cloud-storage/.sqlx/query-91e974129e2c983925d29dabf73c8ae86c6f090cbfd28f22cd952756950a94db.json delete mode 100644 rust/cloud-storage/.sqlx/query-922f058d237b9ffe46e13677ce2e6c4f4b39b7ae7b8b4dd248f54714d842a08e.json delete mode 100644 rust/cloud-storage/.sqlx/query-92b33fffecd9a49fed7c74fe6994932e4d2123e0721a86c2b2fb691a32b92054.json delete mode 100644 rust/cloud-storage/.sqlx/query-92e2916a16d165600f457c778ac3db9ae11c6625c948798e19ca19da4a30f3c1.json delete mode 100644 rust/cloud-storage/.sqlx/query-92edc80110af7b96f7f908989461a4abb11652671a95454969369a0484ed9239.json delete mode 100644 rust/cloud-storage/.sqlx/query-935031443597f0e3057ef41537c2baa9efd886c9ed75aabbf05e9cc43636d319.json delete mode 100644 rust/cloud-storage/.sqlx/query-93df91392a72cc298609b453dc95621e7690af924a1af7bb4748dc704ed8897d.json delete mode 100644 rust/cloud-storage/.sqlx/query-93e41cb92c91a9a26ffbff42116d4311ca4e2ed8e7ff939912a65e045a49c939.json delete mode 100644 rust/cloud-storage/.sqlx/query-93edad49b012cc8119b969091ba78ee6d16600fb11697445001c661e49bf48f4.json delete mode 100644 rust/cloud-storage/.sqlx/query-940e7b0eb134ebfeff080733ed64ee795af7afc2cf14a910b0baf5838c4284e6.json delete mode 100644 rust/cloud-storage/.sqlx/query-9460f97a5fe2c0ddb08e81f8ded812694d0f7408053c49c3e58ecca561d67c64.json delete mode 100644 rust/cloud-storage/.sqlx/query-94762871e427a2adfd8fcf6f2655d567f40a1b54a6186e0aa064be0f18212c98.json delete mode 100644 rust/cloud-storage/.sqlx/query-94a1d6338c8e2da84429da7a79f7dcf0a962feb7832aab9fc4bd50613f742b59.json delete mode 100644 rust/cloud-storage/.sqlx/query-94c019227741f6c4fe8411454cb7c0a3a97e5594c29f11fa893238656e161ff1.json delete mode 100644 rust/cloud-storage/.sqlx/query-95a8a0117d0bbc25adf4dc08cf0cec40eaa0faddb4490ad14ae9cc6c4d922256.json delete mode 100644 rust/cloud-storage/.sqlx/query-95c5d4f79e729713642efcda97838eddd466c0ec2ec9f96ae2be185ef9ff1547.json delete mode 100644 rust/cloud-storage/.sqlx/query-95dda7d94d399b451c4ba4a78ed6809895c255a103ca296451cbfe6c99833e8f.json delete mode 100644 rust/cloud-storage/.sqlx/query-966aa67009ff8376169045428a87b81c8ff478ddd1d7116a626d9a7d4bdc0297.json delete mode 100644 rust/cloud-storage/.sqlx/query-9676374e780121fbb6724ac51d9c742deb835c1e2c5a23390501ef95bc0f12cd.json delete mode 100644 rust/cloud-storage/.sqlx/query-96813c302ddd0c88c30ca845c668dcc47089bf02ae5dbf0f15eb0be64395d09f.json delete mode 100644 rust/cloud-storage/.sqlx/query-96a2c0a064e56b4fd812c2768403fc086f4518149772d661222d54592df920d3.json delete mode 100644 rust/cloud-storage/.sqlx/query-96b75da06aef543dc7d626c98501bd176b609bdab2f96a13e2d035510a72eebb.json delete mode 100644 rust/cloud-storage/.sqlx/query-9728f991ee1e5bff78e52700ce2c4d2d8e8113701d39452faa3147bb18974926.json delete mode 100644 rust/cloud-storage/.sqlx/query-973904cf0ce82830a1a4db5d5ef93577a02892254df31144b5df44bdc5b58381.json delete mode 100644 rust/cloud-storage/.sqlx/query-980f95d4b95f6a981b86bdbdda30b4b5ee7ee34505f206d0a6861cec41ef589a.json delete mode 100644 rust/cloud-storage/.sqlx/query-98923878d16c2d5d2594120fe481fdeb1b2ff97c69fe26b5a09c82d393ce4010.json delete mode 100644 rust/cloud-storage/.sqlx/query-989e8adb9e267d1400ad5cb3e0e4b3d4a434de5c66f3cbcadedc4c6f20769ade.json delete mode 100644 rust/cloud-storage/.sqlx/query-98a5db6c9f4cdfa6f855406ad26a11600e5f84094b73f3ce359c48e60b6921be.json delete mode 100644 rust/cloud-storage/.sqlx/query-9921d35717a5c93783e3db8c1fd380459c4400902f4c3c86e3e2650613321a70.json delete mode 100644 rust/cloud-storage/.sqlx/query-993f8bd336bc9ba45ab51edac700887af626bf74de28e395ab8a1875bc9fe9ac.json delete mode 100644 rust/cloud-storage/.sqlx/query-9947668e4041d1e3297dce4942ca41a916397efdb2620e338a211f97751c0d89.json delete mode 100644 rust/cloud-storage/.sqlx/query-994b928d690be53173114c3aa76a66231fc7b960744db3830385a13a45a3ce8f.json delete mode 100644 rust/cloud-storage/.sqlx/query-99c26d3fcc7cc1494cd3f8387e4f9fd70cd817602df9ad6d355b26e13b47553a.json delete mode 100644 rust/cloud-storage/.sqlx/query-99f5d2da898d5e7f29f1966c51370af1692f03a0df09f0ee78a589158e8f51ee.json delete mode 100644 rust/cloud-storage/.sqlx/query-9a050086d79aa5be0e89a23048d2eb45a7f04dcc2fbdceed41497048a2410ce5.json delete mode 100644 rust/cloud-storage/.sqlx/query-9a32d4826e372e762f828cb5aed93f60b6731fa2c553f3fda711cf72f1574fae.json delete mode 100644 rust/cloud-storage/.sqlx/query-9a4d3cd17bbfd022b2097a3c661cdf23a4a1c1d900d9a0267b1b38a054c49dc3.json delete mode 100644 rust/cloud-storage/.sqlx/query-9a85a116815c36f9cbde5a097e39e0547ed654489c726b44faf23524f148ec86.json delete mode 100644 rust/cloud-storage/.sqlx/query-9ad1a505be647e76d4282b62012cb223cda097f8b2d35d22f446f873960480c0.json delete mode 100644 rust/cloud-storage/.sqlx/query-9afc6f436aedd226ed0d6bf85de64c5ff57853c93ff00f768b49bf79f198590b.json delete mode 100644 rust/cloud-storage/.sqlx/query-9b7bc338faac59d4da4d6ccdc478ba67be32356a3b2b62660982ca8932a0d2f7.json delete mode 100644 rust/cloud-storage/.sqlx/query-9b83758d2e1a6855b03ceee2f0bebf87a5152702bb5b9ffb2b817ad93c0635ea.json delete mode 100644 rust/cloud-storage/.sqlx/query-9bb89d78cff9b84ca91fa891dd3e61c04906fa841a9d21c29127d03797e98186.json delete mode 100644 rust/cloud-storage/.sqlx/query-9c4e25c3a319934aa1bbf165f19683f34a3f5684edaa965cbdb1b09e422cab8b.json delete mode 100644 rust/cloud-storage/.sqlx/query-9c81b4664d019cc6242259ff81d5abe2ad4c2f28d0f4cea773ef7b4267eb0e81.json delete mode 100644 rust/cloud-storage/.sqlx/query-9cbb599d24ea1f22756926601cb3dc157a2a327ce9aea06a1a772c1741abcf9a.json delete mode 100644 rust/cloud-storage/.sqlx/query-9cd40fbb1ade51e9e0d49792839d1a363cada017252a6f653c2272608189bcc4.json delete mode 100644 rust/cloud-storage/.sqlx/query-9cf47f4d88c29f80e8698b91319d81031064da7fa08afec7364df40546b1ac0c.json delete mode 100644 rust/cloud-storage/.sqlx/query-9d8ebf3f5901badeacb46837f0a2222f49274e9e72dbd25cf9c197b4f97654a5.json delete mode 100644 rust/cloud-storage/.sqlx/query-9e0a5d81fc7d5897a95ede42af6d3495c14fbf4095333a1f5632f836b365065f.json delete mode 100644 rust/cloud-storage/.sqlx/query-9e45ba072fbc5266f7edba0fecb99d19192e10139d6ea089be4a3a4a7923361c.json delete mode 100644 rust/cloud-storage/.sqlx/query-9e8c46a871c582ee7016d87a3b0e3494eae0e23c6dbbbccfb139da68193690c7.json delete mode 100644 rust/cloud-storage/.sqlx/query-9e998a79214f591775e9d6711c9086235243eae535cc42bb0908210b54b916d8.json delete mode 100644 rust/cloud-storage/.sqlx/query-9f595d4ae9aa9111c316efa5d4be2b8e4a6cc69374b90600457a32b14a91ae61.json delete mode 100644 rust/cloud-storage/.sqlx/query-9f5c0108230743e209902d457637931a2cbc77192ce513473a4f5e3498b8533c.json delete mode 100644 rust/cloud-storage/.sqlx/query-a0046a263c572915a8e14a8ac70479f1ba89549f1930f571bf278fcfe259cfd1.json delete mode 100644 rust/cloud-storage/.sqlx/query-a080f5686385b0b8f5b10542781756629b2a2571db10a385a0d3559f64481f59.json delete mode 100644 rust/cloud-storage/.sqlx/query-a0ccb1b43344dc0501f538d62f7b3209dfe7e2e60fa1396cfb3efff85e9d8c4d.json delete mode 100644 rust/cloud-storage/.sqlx/query-a0e0e46ab257c9dd4285a6494f7b9fcc32c2a19dd97678335c04dab4739024d4.json delete mode 100644 rust/cloud-storage/.sqlx/query-a10bb7f95f88136b0bdf505b0338c8a87045ca5aa3d85cefbba8111c65892870.json delete mode 100644 rust/cloud-storage/.sqlx/query-a119f354b9c86006d705ba3190ae786b27205399c3295d82c636d07d7308bcf0.json delete mode 100644 rust/cloud-storage/.sqlx/query-a13fae598b8b785a7f516d7d4fdf91510017a27cd442f5693c5777ddc64d1c9b.json delete mode 100644 rust/cloud-storage/.sqlx/query-a17f9063c77c648ab667942e9e6402ddd6d9b5adcde3a8b55c19c649ac3d5a18.json delete mode 100644 rust/cloud-storage/.sqlx/query-a1936db1ca47241996be534e0e64bb36b63fabbaf3e826459537e089ed3c19a7.json delete mode 100644 rust/cloud-storage/.sqlx/query-a1bf47e0cd99428ebbd99069e9ed4fdcdb3aaeb946ea3e5ca94dc58050ca7d97.json delete mode 100644 rust/cloud-storage/.sqlx/query-a1f3c98d938438393223aa8bde6c115cd53ef8d352740fbcaff2f3e53a630295.json delete mode 100644 rust/cloud-storage/.sqlx/query-a2079ac110ef2d83a92a7c759540c373e29c8ff79ed52417fdeeb4de8fe00782.json delete mode 100644 rust/cloud-storage/.sqlx/query-a22651a2cad9617ad15c9fcd80ff929750755818869e48118cc0f91187049afe.json delete mode 100644 rust/cloud-storage/.sqlx/query-a277974b231f69f2a2912fb1634affdf67114b90d5d398d16dec2f801aabdda8.json delete mode 100644 rust/cloud-storage/.sqlx/query-a27ad96e62764cad74a23addabe461a1b8aa81a865bf1af5434d5469efa44f76.json delete mode 100644 rust/cloud-storage/.sqlx/query-a299a66e2c0a88c6d2d9a131611789a544d3b7e5710bbc19254fdff129624b87.json delete mode 100644 rust/cloud-storage/.sqlx/query-a2af7d24d1993fbdc8fc31149a376803fa1c00827bcb8f51c7d000c0a9adfa94.json delete mode 100644 rust/cloud-storage/.sqlx/query-a306e4c1385aab43d5fa2510f0fbdb20d4e37ebf037dceeb2673f6a3d64738de.json delete mode 100644 rust/cloud-storage/.sqlx/query-a321d44c7093eba7f5af8adf30827efead8bb987ad26e89f2e12f875ff38e0be.json delete mode 100644 rust/cloud-storage/.sqlx/query-a3637a7a136eefc6bf21f28a9ae693dd3ab1eb8b4f310528a43e630e233446cb.json delete mode 100644 rust/cloud-storage/.sqlx/query-a386157d6a94f85f1e1c2c0c0cfe39345a04dee3de88fd4cbc8fc6ab8f34da60.json delete mode 100644 rust/cloud-storage/.sqlx/query-a3a570d4857e91eb55d5e4299f9a856e70e71c0a070f0a1a005ba5e2aa7eabac.json delete mode 100644 rust/cloud-storage/.sqlx/query-a4daed99335672e203439ce74d8697936821511404ffb49c7ca4b8134e9c9147.json delete mode 100644 rust/cloud-storage/.sqlx/query-a4e8e05298b394cc80ac1f866854a945a8d67e1d18153d4f0128108ce65212f4.json delete mode 100644 rust/cloud-storage/.sqlx/query-a547a92f2099dbeb0b1fb2fc9dba7bf0f464619f047b5d967914f7b476722db5.json delete mode 100644 rust/cloud-storage/.sqlx/query-a577fec197448ea02b8378cc0ddca6fc4fcfc26228c3d3f8f055702598616a64.json delete mode 100644 rust/cloud-storage/.sqlx/query-a5801ca350ee73d531d912e4dcc1935265af572afbbf60702a4521e4c19b8468.json delete mode 100644 rust/cloud-storage/.sqlx/query-a5cc2431d45e9bbd7e6c60a2bfb7a6533d6f7c8d051ca997a7e0db53314d5f80.json delete mode 100644 rust/cloud-storage/.sqlx/query-a5ea0cf5ff502359e9ebc01d0f8758d171081c5aa35c785b178150aa9d8d3635.json delete mode 100644 rust/cloud-storage/.sqlx/query-a63428b959703fdc38fa28667db9b2268827d7ce92ca55d21b38ba2a7a8b3c1c.json delete mode 100644 rust/cloud-storage/.sqlx/query-a669145c6d8f00b9cdf41d2037c0bcfad130247e99f31c127c6dabcbe1b3790d.json delete mode 100644 rust/cloud-storage/.sqlx/query-a68a6810f0b80a1ade36fc644c6f44fb02848a8f4200a900679efb26e1d0cb70.json delete mode 100644 rust/cloud-storage/.sqlx/query-a6b5613f666d5c6d73c4f8a817e02554c21e5b44768f5761c1d19d019f7208c4.json delete mode 100644 rust/cloud-storage/.sqlx/query-a6f46322f22f9e47daefa28ad65647888af5486e729bb5475dfabd21b01b4bf6.json delete mode 100644 rust/cloud-storage/.sqlx/query-a72817a08ba25d9f09627854a16a4016db81bdbebd7ea0add856bc3eca7a7ba6.json delete mode 100644 rust/cloud-storage/.sqlx/query-a7355d80810653b6b813ebd3c132579b6ba0f419f72b68d08cc2183e9d0d6341.json delete mode 100644 rust/cloud-storage/.sqlx/query-a7546aa6e8594ac3e66cd708f033fab241312305c74f1bcdb32b96e924030b1d.json delete mode 100644 rust/cloud-storage/.sqlx/query-a7f90096050e550d15ef11bbc56a3cd79e1a80bc3f46cd063d0ff94d9b76f252.json delete mode 100644 rust/cloud-storage/.sqlx/query-a81b373188c98bdfa52a878a659909f73796aef0302323f7930fe4d17ccfe6af.json delete mode 100644 rust/cloud-storage/.sqlx/query-a96916366e8c54b1ba978b2fa7cc54b2e1681ebbcbd9bb030768983d6ce966b6.json delete mode 100644 rust/cloud-storage/.sqlx/query-a97451b5645b8265597f438d8fc78e9b0e2f2228c5d6a7453122eb59fa90f64a.json delete mode 100644 rust/cloud-storage/.sqlx/query-a991a3a468c02f27709b7a45f27518c828b88bc4ca913019d9d4802395e7a22a.json delete mode 100644 rust/cloud-storage/.sqlx/query-a9adc96aff5f25177495a9258a185d8cf8a255b6805fecec787953461a09d78b.json delete mode 100644 rust/cloud-storage/.sqlx/query-a9fee4b6ef042c94f5dfc2ba668423e760ba3632bfae3aef9da1f146b7a9c638.json delete mode 100644 rust/cloud-storage/.sqlx/query-aa7c645fdd129abe705595f4b8c06bb48c977202f069d12143bece9f24bdb6ab.json delete mode 100644 rust/cloud-storage/.sqlx/query-aa9ca547f8128f5f2a4418b6ccf252d9726565fbef858cf484ca86ab0625c6ec.json delete mode 100644 rust/cloud-storage/.sqlx/query-aab8538835af1c079c4864c1a576b3a51049dd104e2306c4596f1ff99ec329c3.json delete mode 100644 rust/cloud-storage/.sqlx/query-aac44fedc7a698d155114e4b84cf3cf60de7edc46f5bd7d943873cf2809ade77.json delete mode 100644 rust/cloud-storage/.sqlx/query-aacb409624ba2c9ec8838ba1653bde46c44d19face725f848d1d53c364a73909.json delete mode 100644 rust/cloud-storage/.sqlx/query-aae2ef0d294ae7736898e9b32be12cfabedfb8164af00cdb4a52c9d1f98229af.json delete mode 100644 rust/cloud-storage/.sqlx/query-ab1cdc9cf83712efd50e720fd9835fdfe36277075384044c8f7f3e8ce810c236.json delete mode 100644 rust/cloud-storage/.sqlx/query-ab394ab1dcafaff117ba75dd454c9ef5dc894f2a86012e54c8bd5e085458a89d.json delete mode 100644 rust/cloud-storage/.sqlx/query-ab3aa320a07e9885f1de7995533b75dfc995ac18e421ca940dd0828aa32b47a6.json delete mode 100644 rust/cloud-storage/.sqlx/query-ab5316751a9b8b8f14e8319811749dfa6bc98f42ecb46ee9d3c20ca2daf43e44.json delete mode 100644 rust/cloud-storage/.sqlx/query-ab7417eb79789bfff9a6084c7881191a9b0ee849745041e1fecc7e4ba9b4fc5d.json delete mode 100644 rust/cloud-storage/.sqlx/query-abd0a7a3bc1e35bfd6b0acd25aed7149fa0e81809511939a420fe17f93ae7d6e.json delete mode 100644 rust/cloud-storage/.sqlx/query-ac1221f53b3482f947f70affe1fa95f778b5cc841f3a08c8d406752da8d25be3.json delete mode 100644 rust/cloud-storage/.sqlx/query-ac1973d97ddd4dcb5cacb138b9321138cea6141d03301b03f7c7e0d509663dc4.json delete mode 100644 rust/cloud-storage/.sqlx/query-ac52ec341d9ff2b334df144dfcba1195b845609b557d278290359a0e6170c10d.json delete mode 100644 rust/cloud-storage/.sqlx/query-ac72213b35da176efad40d8acc0b77bede612a071cd8b18bb8d68965c1414204.json delete mode 100644 rust/cloud-storage/.sqlx/query-acb38333fa7958869cc39acafee4f7d08731aa1543d9d2d6f6d105be9e7a0530.json delete mode 100644 rust/cloud-storage/.sqlx/query-acd29bfac7388548a2d09bd8a9a12b4c9bb92fe9450fa0950e91bcebfcb1adeb.json delete mode 100644 rust/cloud-storage/.sqlx/query-ad0e23af0a67a769bf40b3ab388c21c001e01d1691861d8b9df950b03bdb2f4b.json delete mode 100644 rust/cloud-storage/.sqlx/query-ade8f82fdb3feffe37acb0e67a7e39aac513e2b7ae7c7aabaa9ac59f270dbffc.json delete mode 100644 rust/cloud-storage/.sqlx/query-ae1b88cef7fd6cc6ef1c302a0f3a04d156d39f39abea24050e63caf56267898a.json delete mode 100644 rust/cloud-storage/.sqlx/query-ae5a21740f17c450f53a07e833b6ab8dc226dd06869786792add6fe5535da1e7.json delete mode 100644 rust/cloud-storage/.sqlx/query-ae7424712141289a46985ef940f940ba795df321fe73b299eac464a0ef6a3081.json delete mode 100644 rust/cloud-storage/.sqlx/query-aec91142f83fc2f19972a0ae096e3b21c571b2c5a97baa04d68a2f6da500bd79.json delete mode 100644 rust/cloud-storage/.sqlx/query-af05f3b0d0796a3cb2eed49cd562776fd1abde1cea7f0f5057fede45c2312223.json delete mode 100644 rust/cloud-storage/.sqlx/query-af5a4cf73fd08698bfe9a04e6bb4441ac2b9c20b0697d52467e0a12c17f8e473.json delete mode 100644 rust/cloud-storage/.sqlx/query-af5bcc105de6d97d360513479747e8f32d4045c3e2baa01c7100ba834dcf80e4.json delete mode 100644 rust/cloud-storage/.sqlx/query-aff64439216b670564911e5ce55437d1fa4498176f5e8deebcfc86f87cb20f54.json delete mode 100644 rust/cloud-storage/.sqlx/query-afff07a12eda767f4facb034315ce7e3d89db508f08afe5c547e981a875e9801.json delete mode 100644 rust/cloud-storage/.sqlx/query-b00d96876f6101270b5de19e4cfa219f542dd6c24ecf785b30ef8749c0443373.json delete mode 100644 rust/cloud-storage/.sqlx/query-b08f21bc79644b7ae980ef17ea38f60be7749e48143ad40a164b236e977157f3.json delete mode 100644 rust/cloud-storage/.sqlx/query-b0c4750b13bbd3de768ac09f971094ac7f53c161f7054083964f472fa01dd83d.json delete mode 100644 rust/cloud-storage/.sqlx/query-b0d3b6f03c4160e443a3fe91c870187c3178efdf6853a22ee319c0163b1f6013.json delete mode 100644 rust/cloud-storage/.sqlx/query-b0e8935f157a7ae307fb050b39d0dde4e9e2e39f7cb20c716fbbcc1ffe320cd1.json delete mode 100644 rust/cloud-storage/.sqlx/query-b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc.json delete mode 100644 rust/cloud-storage/.sqlx/query-b10ef9924835c2dce77ce8b77c877a78ca0d7a1e7efff35864c58ba34028f2e6.json delete mode 100644 rust/cloud-storage/.sqlx/query-b14f90ed1d2e7f0121f95af1b0d364f1a7feee942c2a3785bf39c6f110aa70ba.json delete mode 100644 rust/cloud-storage/.sqlx/query-b1512adda253fc7e653344f6a679a4c78af368aa2134b235f8e1f046daa197bc.json delete mode 100644 rust/cloud-storage/.sqlx/query-b15f651be8f722d57f1c85ca4d9a14cae3fdde155d4f8c94418186d5a37f0686.json delete mode 100644 rust/cloud-storage/.sqlx/query-b1766b649fb0b0307cb41db8adbfd996ffa1262e0a6ba8a8e1c58414759a1fec.json delete mode 100644 rust/cloud-storage/.sqlx/query-b1c4d610f2fe772e88b8e78bc872f01c886031d866616effed3c6a61a99d2413.json delete mode 100644 rust/cloud-storage/.sqlx/query-b288dfc8e7703bdfb49bc1066c290743da8653dc50e3d388697e429308afeafa.json delete mode 100644 rust/cloud-storage/.sqlx/query-b29f648b6a5be28708366ba264bab55518d34313519a62edf4174269606b1b1c.json delete mode 100644 rust/cloud-storage/.sqlx/query-b2a631a3c9b08b85813839c25a2c7a530010c3a00b2f2d67403bc036af6c8fb5.json delete mode 100644 rust/cloud-storage/.sqlx/query-b2dc0d50f7cd7e961844c553feed81200e213e4f28cc7d2940a93aabe83877b0.json delete mode 100644 rust/cloud-storage/.sqlx/query-b32146bc8bdbfa29785dca351729944da36cdeb0c7d3d9e778dd91ff8a470b51.json delete mode 100644 rust/cloud-storage/.sqlx/query-b370ac2ac7ace6911ff13454d24ff42b906dcc72b2fb4bcd783b8cb7c06ceab4.json delete mode 100644 rust/cloud-storage/.sqlx/query-b3bb26f4b163d8bea13a5a3fb0ea3d89543ceaefae74f8962e4504196d0b76c2.json delete mode 100644 rust/cloud-storage/.sqlx/query-b3c25afc80ddf84ba0a49578a6b1d5e70039c2d64a25a54ef42b25889e75b653.json delete mode 100644 rust/cloud-storage/.sqlx/query-b3d2194b79197b2d5e02ee8b7c243b70c598adf488d805325475770ae3b7c51e.json delete mode 100644 rust/cloud-storage/.sqlx/query-b3d476868aa3b19eb8407112f0cabdce0882403268c35f6a4acf62c1212183fb.json delete mode 100644 rust/cloud-storage/.sqlx/query-b3f9f3696438bd2ad8754650d87d7bbf32e70d3d173a748a07eacdb4e42841eb.json delete mode 100644 rust/cloud-storage/.sqlx/query-b42c868de92630b2d5ee37fc64299df3d949da660e009f35c480ba9fb19c9e07.json delete mode 100644 rust/cloud-storage/.sqlx/query-b43285d8bb2b9758fcc84c13979c3a54ffc28abf61e66e354667d26ef3c40739.json delete mode 100644 rust/cloud-storage/.sqlx/query-b46b2b51f07ec4fc65cd158b210ce262e9ab44f10825969072c01a8fe3022a23.json delete mode 100644 rust/cloud-storage/.sqlx/query-b493e6fd1c1d8c34366f756fed903ef53cc87fab0b12cff50d2e3474ff997bd6.json delete mode 100644 rust/cloud-storage/.sqlx/query-b4d3994adddd1a4b1c769cf01690bedbf26640fdfad218b4dca813bdcee08a5a.json delete mode 100644 rust/cloud-storage/.sqlx/query-b4dee63c4a43a3451a781ef80fcc67300c2f673a0f7a7f6497690bb3adc8f06c.json delete mode 100644 rust/cloud-storage/.sqlx/query-b509140ce307b4e440349fae476518b06d6247bf27821c9bea2f04c1eb999768.json delete mode 100644 rust/cloud-storage/.sqlx/query-b5578ab6da001f418fe8ff216616b79eb80caf8e2677fcf4e7127151060a50ea.json delete mode 100644 rust/cloud-storage/.sqlx/query-b55c3a778e4ed824b71b4e26b20ebf12413a8a0bf8fee05fa130afb72c55ee41.json delete mode 100644 rust/cloud-storage/.sqlx/query-b57aac0fecf4aa66721fe3596797e1256c960fed355a37cba8c9c1eeb630a5b6.json delete mode 100644 rust/cloud-storage/.sqlx/query-b58ccd6afec0fb6636951e7cdb17390b5d1e56dbaa6b8e59bc35e2a2e4937c34.json delete mode 100644 rust/cloud-storage/.sqlx/query-b5bf34fa23cec47e38d38cee18acffed018d15459e101dc907bd1fafb2158979.json delete mode 100644 rust/cloud-storage/.sqlx/query-b62a8743ac8151822dcb51e80c61f9c9496412cf76d6fb5158fdc5510f59464d.json delete mode 100644 rust/cloud-storage/.sqlx/query-b658079195dd801dac88ad00ecc09a42de5ded7acd840a8f9a3e065bcf7bcc0c.json delete mode 100644 rust/cloud-storage/.sqlx/query-b662ef77f95aaa2a86030fbed4f11de74d311cc1a6096e49372e6cc18581b523.json delete mode 100644 rust/cloud-storage/.sqlx/query-b6705d3675950d0bbbd4a0ba10f7716a24694cfd98741fc0508d607684b1c8a9.json delete mode 100644 rust/cloud-storage/.sqlx/query-b69f3eab9c2048f5fe6bb31bf4c47f85169af66827f2b09287099c14a1a6e0db.json delete mode 100644 rust/cloud-storage/.sqlx/query-b6a1865f89084a577115f8567ad657db1f0c4e2420a9f428d8d75defda053444.json delete mode 100644 rust/cloud-storage/.sqlx/query-b6b4b9bdcbfcf72d970393d915c68c6230d9cf7f96e816a3f98a01b62e4a0a6c.json delete mode 100644 rust/cloud-storage/.sqlx/query-b73077f2df6391baeaf31c0f136503cea1c346685d29795e26caab50e3654d22.json delete mode 100644 rust/cloud-storage/.sqlx/query-b79ca4a7b148d78ddf48b5c57dea59763b17693c09564a0190ed377dd09342cf.json delete mode 100644 rust/cloud-storage/.sqlx/query-b7e2765c4c0999ea37d38e4a7f41e3986bdcced6e86a9c9869e38ff3e6d91c2d.json delete mode 100644 rust/cloud-storage/.sqlx/query-b805dc1d8b2143dbf9adc0e5478b204219a94105e0ba590db0a97f2c384a4192.json delete mode 100644 rust/cloud-storage/.sqlx/query-b8176bd2c038b0cfb2b74f3c7b6a51a2d068b5253bcd3a9d16b43527ae4e8f1a.json delete mode 100644 rust/cloud-storage/.sqlx/query-b8284f96e44ea8442487dd5c99733eab3722a94e49bf01605f69c78919d8bff7.json delete mode 100644 rust/cloud-storage/.sqlx/query-b8342cf8ccfe95aad527ddf5cc49aef347e35bb2b023a820d85a2e85caaf7b61.json delete mode 100644 rust/cloud-storage/.sqlx/query-b845e01904b9e9f8d1f322e788b7cf6555ee13b3de24bbe50bbc801a2730e446.json delete mode 100644 rust/cloud-storage/.sqlx/query-b85f38b29d0f452ddb8d83e3c57c25b4d5733d4bc21770570cdc8412d47ffe65.json delete mode 100644 rust/cloud-storage/.sqlx/query-b869e283051a5dfccf0f0ac4bdf9693b568ab6d4620ad1b2f5c63d3938e212e6.json delete mode 100644 rust/cloud-storage/.sqlx/query-b8b631cf3afd7c73b5645635212bb851ba19858a47a17b0ffcbe4f15cd177cb4.json delete mode 100644 rust/cloud-storage/.sqlx/query-b8d8d71ae0d463f8a397b03d6f6d6093127a4ed57fa5ec3c2b43540ddf1fd598.json delete mode 100644 rust/cloud-storage/.sqlx/query-b8eb30360d1232b36214b17758d8c7d897251a93c7d56b310a2fc6f026fdbea9.json delete mode 100644 rust/cloud-storage/.sqlx/query-b905b3cbb97bbfc8262ffb91023db7f703b0994d6d519fbab0fdb67ea2df5877.json delete mode 100644 rust/cloud-storage/.sqlx/query-b9344b1ce39ffd607ab2862810afbd13c579e22b433553ba01719644a56ab816.json delete mode 100644 rust/cloud-storage/.sqlx/query-b9570b07121de0df914dd0579cc92a5e92973cf114526f80dbe7ab714493090b.json delete mode 100644 rust/cloud-storage/.sqlx/query-b96181ce30beea5d5067c9e8177d9feca7891cdf00ad560cc522121ee8d6b4ec.json delete mode 100644 rust/cloud-storage/.sqlx/query-b99dfcbe1b18c53fa05a0c44669f6579456c3d49bea87fccdcb9962565543002.json delete mode 100644 rust/cloud-storage/.sqlx/query-ba28ed6c5ce49470b0aef3fb0f59d392b5780cc548f331263a581d1b011eb970.json delete mode 100644 rust/cloud-storage/.sqlx/query-ba3ab3dc338552f6b794ab5405655fe673e71f02106e9792cc4cac40f69b9176.json delete mode 100644 rust/cloud-storage/.sqlx/query-ba4127d1e61f849f9429fdfedae68131fa26405dbacb0b1afe9a6f52e50fa57e.json delete mode 100644 rust/cloud-storage/.sqlx/query-ba49dfcd0a3ab834f9e61f27a0a80174e549103ee63f03d30fe76857c8803b6a.json delete mode 100644 rust/cloud-storage/.sqlx/query-bab2c7e9807103ec8ece1edcdc8e357dc50be7a4d634f45990b772eb0824a35d.json delete mode 100644 rust/cloud-storage/.sqlx/query-baf9495b799086982dd4aac55683482fce25612d56dfdf78872d74019d8b5429.json delete mode 100644 rust/cloud-storage/.sqlx/query-bb2b5a276542bf95f2600f3e60366b08133a54fbde183a5df7a9b99dd7381ca5.json delete mode 100644 rust/cloud-storage/.sqlx/query-bb6de5a7f1c778acc5c27a0080037992ac2805137ee19f9385894688e6b8a62c.json delete mode 100644 rust/cloud-storage/.sqlx/query-bbd2b467cf8f1e277d3278fafdc5792183e42f6c00ae95aa0f4fe869292408f0.json delete mode 100644 rust/cloud-storage/.sqlx/query-bbe4822c2e7ba11594b1a4b92f945f4088406bfee6ccb2ef6577643708a5132c.json delete mode 100644 rust/cloud-storage/.sqlx/query-bbeef57c72ec7a197daf71146f0a5c409a5a54b41a9dd9e3db2267c9ee17d9fd.json delete mode 100644 rust/cloud-storage/.sqlx/query-bc4d60efeffa6cba398a37db8ff7204bcffd809e425e9236b897b5efa9c7eebc.json delete mode 100644 rust/cloud-storage/.sqlx/query-bc5d03a110b267d3f4e4ae2937b95d91a96794ebdbc864ce0d6d8d455996914f.json delete mode 100644 rust/cloud-storage/.sqlx/query-bc7ef8662eb6050c09246ebc169f91d523c596874f216a10180a377bbaf7a1eb.json delete mode 100644 rust/cloud-storage/.sqlx/query-bca8bec6b99f7b9a3e8def2a53209e2d0f92546933588bad33bc3520d2ad2d10.json delete mode 100644 rust/cloud-storage/.sqlx/query-bcb0dfd2aa420f102d8dd3484f65defd6cbcf8e801c4c4d43d5e0d1338e1ab04.json delete mode 100644 rust/cloud-storage/.sqlx/query-bcbaaa06fffa75a82e66030d42e2aaa89d56232566edc15d9e9b819b9b02aea9.json delete mode 100644 rust/cloud-storage/.sqlx/query-bd6ed4253d2bff9f78562aa09f2cbb794195e1e69ffcbf722c0a2e523f196c2f.json delete mode 100644 rust/cloud-storage/.sqlx/query-bdb882d426cf81329dd6d824a5d945cfd0ea2fffa26b5324ef641dfe3e304682.json delete mode 100644 rust/cloud-storage/.sqlx/query-bdc2a74951d6efbce08d469970b29610352e02441283f12a67b0da0c44771522.json delete mode 100644 rust/cloud-storage/.sqlx/query-bdca4a82e47757c7c1434555612b4f81dad7d0c3ec2cef1eda3afa66897081e7.json delete mode 100644 rust/cloud-storage/.sqlx/query-be483cff20705eb58c47cd4de412aea80ce9a658dfe055f146a38ed9e64effaf.json delete mode 100644 rust/cloud-storage/.sqlx/query-be5dc669b45165beefffe0645813f38c805d6f49150d66c8a7325c524bebc854.json delete mode 100644 rust/cloud-storage/.sqlx/query-be835e7de49553e947e0d265f8f681321d099febed2ed002dac6d706bf4ec173.json delete mode 100644 rust/cloud-storage/.sqlx/query-bec08349f3e01393e7e83846f1ca4077390d22923bff328a9d8a24275832a57d.json delete mode 100644 rust/cloud-storage/.sqlx/query-bf1d580e15f077862173d3efc800666d9fc7e79b8fa8619ba43bd1315c506e0b.json delete mode 100644 rust/cloud-storage/.sqlx/query-bf308be1e802f2f6552a6bd0282ae985dfb1a3fc738532eca74c6b098c6772c0.json delete mode 100644 rust/cloud-storage/.sqlx/query-bfd05323023ae02d10ecd01f6432a0b25cce4d43b63f05fd04b52860c482ffa3.json delete mode 100644 rust/cloud-storage/.sqlx/query-c0273bbd7b7c9e2cb5c3e62268ee09f925536086394de104bc823ad946851b0f.json delete mode 100644 rust/cloud-storage/.sqlx/query-c07f82d525eeaafefce4b65769b2c750743ed9c04ca6ea8a5fd1a6d3a5fe2d17.json delete mode 100644 rust/cloud-storage/.sqlx/query-c08f7032873bddafca439eb4a7dcdeab60aed26e9025fde7ea45b89c4d2cb4ed.json delete mode 100644 rust/cloud-storage/.sqlx/query-c0b0f58e6b2129250821f51fcb1ebe9d876c2e251f04f0aa9b1c0942d73a4e0d.json delete mode 100644 rust/cloud-storage/.sqlx/query-c0fe6e2c93305ff791d9386d987d4ea8bacc6cdb063fd8f18894c6b70b9cbd3c.json delete mode 100644 rust/cloud-storage/.sqlx/query-c11f23488f780d7d26380775088aee0d8c1c9cf7cb28867dbdd96b7004a5d259.json delete mode 100644 rust/cloud-storage/.sqlx/query-c12b511f8fbe853ce8e5489db2468ee8a07030cb234bc0a10bc014c493b8e9c2.json delete mode 100644 rust/cloud-storage/.sqlx/query-c12b8985453ee1e1e49a06e2fa814dea634830b06660aef9661b820760a30768.json delete mode 100644 rust/cloud-storage/.sqlx/query-c12febd2112dc6065735c6e44d735684cd0163b2f71460d838be8eb16a25b7b6.json delete mode 100644 rust/cloud-storage/.sqlx/query-c17d5fb574b826a4615cd339d550302bcd20260c4d2d82e49167e5c7c7e77958.json delete mode 100644 rust/cloud-storage/.sqlx/query-c18576c18caa0b7e23198ee55981cb8d7b9859dfe4272a92cbb29a4b64a1d695.json delete mode 100644 rust/cloud-storage/.sqlx/query-c1bc29d0f7278ed6a027978d51a6e15d8be6d62ead3408dc6641866a9230935d.json delete mode 100644 rust/cloud-storage/.sqlx/query-c1ccd5b7d22222b5112aa06f6cb9d19523156de3b771696a069389e5a38cd51d.json delete mode 100644 rust/cloud-storage/.sqlx/query-c27077a4053c8a35ca011c5edaf08e3bf1c954b1773fcd2ecab33c2ba518ba34.json delete mode 100644 rust/cloud-storage/.sqlx/query-c2a48995144a813f912bbba9c9f5b91e1b413978e8262f7db56a6a27fa5ceaf0.json delete mode 100644 rust/cloud-storage/.sqlx/query-c2f19d911d10a576d01505d6da90f66fad4698c52efa69d3b4a03324c09b87a7.json delete mode 100644 rust/cloud-storage/.sqlx/query-c30711e82376ca92d1e4e346334517c98cfa67d86663cd13575bec99ee24c785.json delete mode 100644 rust/cloud-storage/.sqlx/query-c33f85b35573916eb380c8b6069939087fbd3b34b296b546a34cdfc3e7c9eee0.json delete mode 100644 rust/cloud-storage/.sqlx/query-c370c41d4e1fd496016a5689da4ca6dd9e6af7a364499871944691b3dfee5a09.json delete mode 100644 rust/cloud-storage/.sqlx/query-c396a4e1c32ab75bdb9a1bb4b3bb0f550620554bab6862d4ec9731236c227cfc.json delete mode 100644 rust/cloud-storage/.sqlx/query-c3f9152d242ae679d87961e306f319ac0035e078be790795eed823a95095c7cc.json delete mode 100644 rust/cloud-storage/.sqlx/query-c4116c441fc76ecc39a9db7c29da7b5a952ef5031c2737d084da33a24af2c8ad.json delete mode 100644 rust/cloud-storage/.sqlx/query-c415f922985187174693b51466423fa1d2ed8c301776a9778c4947a9d84590e1.json delete mode 100644 rust/cloud-storage/.sqlx/query-c449c7237e08cf511f7bc2182d62e12e2aaff653c37f79cd3feb22ea4b849ea6.json delete mode 100644 rust/cloud-storage/.sqlx/query-c4d2fed1a0fb95c20ef9b4049cc5cacfb7f0a441c630528d2cde076211ff63f9.json delete mode 100644 rust/cloud-storage/.sqlx/query-c50d0f6d2aa615856bba86ac8460b637539f28a5e8644f0467eca7efdb06e387.json delete mode 100644 rust/cloud-storage/.sqlx/query-c5196bb88afe2d67ce0a4fe7eb2c23db0321cc59a5abd6f7f714b0333ca87613.json delete mode 100644 rust/cloud-storage/.sqlx/query-c59c1f638ad1ff78414fdb6733442120d6333b8c605f6da5b748951d9561c1f9.json delete mode 100644 rust/cloud-storage/.sqlx/query-c5b5b22cfde385f2d03eebbf25a1f08e02d42d09810994f84a250e2f43cc5acf.json delete mode 100644 rust/cloud-storage/.sqlx/query-c5d7f14d70f0de5fd07ae24e50441f5a5dd574ae4492f2adebd98021dbaab771.json delete mode 100644 rust/cloud-storage/.sqlx/query-c5e833a5efdd06f446538cca125c29318b92959b2ddab117bfd98273a45d1838.json delete mode 100644 rust/cloud-storage/.sqlx/query-c621293c78043e724b4e44f821ef3cc9e4d74a48075918e24327172256a5ad15.json delete mode 100644 rust/cloud-storage/.sqlx/query-c631a415b25cf9edaf194dc022a044463339682b132e007d56eae675e4795169.json delete mode 100644 rust/cloud-storage/.sqlx/query-c6908e8ef1c196e7785bcc4f1e07c57d66ad08be04685ac40956a2d7d7b396af.json delete mode 100644 rust/cloud-storage/.sqlx/query-c6a0afdba2b194e96e3b51935deeeca109ccd45ecae97f97cb61bd9fdd7c470a.json delete mode 100644 rust/cloud-storage/.sqlx/query-c6aec8f042b91f510b47cc9cf9a48ab072c216515c897a4a1e10f310cc63b4c4.json delete mode 100644 rust/cloud-storage/.sqlx/query-c6f8bb6a2a9cda820cf54efb5e4ff8b048d735cfcc23716612f2ee66a8c7151c.json delete mode 100644 rust/cloud-storage/.sqlx/query-c707e1d4017c4ab2983364705b6ea9b62060b16ba2e7714d5690cc8311a5e201.json delete mode 100644 rust/cloud-storage/.sqlx/query-c7499a6777186567833a23df8df39fd871328de140968ba50c3db3a30cd3f520.json delete mode 100644 rust/cloud-storage/.sqlx/query-c77469ffc5cc502c63d2ecb76a8578d085a7aec81551a38aa0c14b8e20491e3e.json delete mode 100644 rust/cloud-storage/.sqlx/query-c777a32bdb434216895e8011885c8fa8858a6c5470f1c921ab0265cf7d1c9b2a.json delete mode 100644 rust/cloud-storage/.sqlx/query-c78296b868c8a8657e5c2296049fa4809abee07e9fd473a5e9ae00ad8625a108.json delete mode 100644 rust/cloud-storage/.sqlx/query-c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89.json delete mode 100644 rust/cloud-storage/.sqlx/query-c7c058fd3acdc93e77a805b28b844150503f955a91339be026f8b68f65092adb.json delete mode 100644 rust/cloud-storage/.sqlx/query-c8569a737734eab039a3ca9759478b203596330442305a6f3925edf67a8b52a3.json delete mode 100644 rust/cloud-storage/.sqlx/query-c858541d6cbadae374ef95f2c69a582d76bd73ae439d3d3e6f1cf4e482b9ff55.json delete mode 100644 rust/cloud-storage/.sqlx/query-c8dac77aedb5609a57ce5ee03d97f7e3c28fa0e94f2563e99d82f306cf6530e5.json delete mode 100644 rust/cloud-storage/.sqlx/query-c8e8b950c4f8645562fb36042b549b0c1f6ec3da1b9beb4d212ddd5bc640948e.json delete mode 100644 rust/cloud-storage/.sqlx/query-c922ac06eee1109006d3bf676ab8b8341b10cfee0b725409138cfdde038712aa.json delete mode 100644 rust/cloud-storage/.sqlx/query-c9fce1ac31e4e4f9992809c650e85fe45f4dc1e66d4b5a846c734b308c74fa70.json delete mode 100644 rust/cloud-storage/.sqlx/query-c9ff8e2deb86a25e4e0e16c9de66a5c116b68362ec45ffea5e2b25d86cfccf01.json delete mode 100644 rust/cloud-storage/.sqlx/query-cac5e246875c3539f7a03cee8271708be47a56582c2f0323716f206ab905a580.json delete mode 100644 rust/cloud-storage/.sqlx/query-cb37182733a71e6939495eb29d0ab6544c02094129fc9c7e921dd5280d78047a.json delete mode 100644 rust/cloud-storage/.sqlx/query-cb43982dff09d09997be524b6e1034ed73a87e8599f27986495b62ce42e86384.json delete mode 100644 rust/cloud-storage/.sqlx/query-cb4e7ca0b0a9c275fd8e4e2507017d2dcf7238a82ac9779e4887536003556e60.json delete mode 100644 rust/cloud-storage/.sqlx/query-cb99b956db41571415b60886ba181d8767260559ccb0198eb8b7178448673810.json delete mode 100644 rust/cloud-storage/.sqlx/query-cba64686023001741b1fa46b747fffa9af9eabd558af03fd0e2a250d29a4a64d.json delete mode 100644 rust/cloud-storage/.sqlx/query-cbb8834b22cfc83665886957d72b6c25ac9159ac952804c94f8061d811e1e7c3.json delete mode 100644 rust/cloud-storage/.sqlx/query-cbc32c96712e2169984254c7fc98f082189e1588601b714f52d11fc273afb01e.json delete mode 100644 rust/cloud-storage/.sqlx/query-cbd3dc65e8a0068465b09cf9bf7e2ca71b6832b6c46a075b432cfc5266c05115.json delete mode 100644 rust/cloud-storage/.sqlx/query-cbd8fd7362c56f8c1a5bb9db32538a0d4a1716f4d311683cc07f488d33fecad7.json delete mode 100644 rust/cloud-storage/.sqlx/query-cc006af8fccc5e02930c42ce1251e454df554d615c9ceeff5af763029972af30.json delete mode 100644 rust/cloud-storage/.sqlx/query-cc0889c0d1cb757fce4cbfbb58eaefb065d608c3866d2707edfec8e907c460c1.json delete mode 100644 rust/cloud-storage/.sqlx/query-cc1d96c7390033014832a250d080d0a6c08112e41f085f59abcc855ef35d5bd2.json delete mode 100644 rust/cloud-storage/.sqlx/query-cc388518e9c137d9c849d408300cd2d4687d41e8fd09e04edf0f4861d48a3e62.json delete mode 100644 rust/cloud-storage/.sqlx/query-cc55e105bd5f6916a779d57ed7e4379c7fdaca83a33355842cf8b0b29d25a517.json delete mode 100644 rust/cloud-storage/.sqlx/query-cc7926b302ce23fa4e727b6986ec14253589d794894668f4eaf078ec8a5d4ca8.json delete mode 100644 rust/cloud-storage/.sqlx/query-cc9cd9c1d19f49627d619e8111ccf71139a34878ece29560f7a1c48a73c974d8.json delete mode 100644 rust/cloud-storage/.sqlx/query-cd0fcad5f9177a5b57fa20cdf5996f4ea4bd008a19afc916a1147fca76b6d5b4.json delete mode 100644 rust/cloud-storage/.sqlx/query-cd2334cf312dee1e9b230cce0d7b26999ba3ac23f89c8882c144d4c9a657e235.json delete mode 100644 rust/cloud-storage/.sqlx/query-cd2ae30f38c8fd4467fafbf57d515e303d2c5bed1c53a5c1cf255a172defa46c.json delete mode 100644 rust/cloud-storage/.sqlx/query-cd39c593bdca8f628570365a8aa6787d34173da3b114c61b2cddc69b7d197819.json delete mode 100644 rust/cloud-storage/.sqlx/query-cd3ae40ade95369aeeffcd17cd99301e0c36f4d600917c7573137e15688b1f68.json delete mode 100644 rust/cloud-storage/.sqlx/query-cd98a8eb1ebdeb28951774b9daf0a9f05967d0adb106e93608b3b5a64adae02a.json delete mode 100644 rust/cloud-storage/.sqlx/query-cdce5c0c87367db68fee9c3107ae916da208d1525bf04497687e941d329513c6.json delete mode 100644 rust/cloud-storage/.sqlx/query-ce008daea4cb34b00a1c882b25444c58e68634e942d43ed59582b7bf0786893f.json delete mode 100644 rust/cloud-storage/.sqlx/query-ce218da82b99295aed3a609a21f5feaf304a4d50bbabe9151bb0bbaef7bcef16.json delete mode 100644 rust/cloud-storage/.sqlx/query-ce97d5a94360438e17479379fcab57a8d30a1d2a7c03150526322a2aa8175c71.json delete mode 100644 rust/cloud-storage/.sqlx/query-cea740c7d7764d20771d15ddd5cf047e9638cfa5d7e07d9885af0592142e5304.json delete mode 100644 rust/cloud-storage/.sqlx/query-cebafd0d72b44d2f63bce484750fcab2a26f543e5a6ca992e38bdb662dc7c2f4.json delete mode 100644 rust/cloud-storage/.sqlx/query-cef69d1963846d65ce695cbc2d5a97a325f4081b69a3b8a7d1a481ed69f86bf0.json delete mode 100644 rust/cloud-storage/.sqlx/query-cf095b171e7a5b06335671a0ffe392c7e93978451b4ae208a23ab27c3b10c1b7.json delete mode 100644 rust/cloud-storage/.sqlx/query-cf1161cb3ef4f573dd8e15092ebedc6cfa7e0f8b9f8b3c3a698991d37860c76f.json delete mode 100644 rust/cloud-storage/.sqlx/query-cf156bbe38f634e623a39ae1d388cad0a5e18597f640111861f469e273e56e88.json delete mode 100644 rust/cloud-storage/.sqlx/query-cf47cbebc8adc6834b44c503c18fb66ce5dbb225c7ca91b3d71dcfe398c8f95a.json delete mode 100644 rust/cloud-storage/.sqlx/query-cfbec090ff3b62415ec0c215aa52bdafe162fb8c8fd217a8fcaf613e39525b0f.json delete mode 100644 rust/cloud-storage/.sqlx/query-cfc7c8a549dffd94c8d201c665e84c110d780e5be92b5e160c64189355f5f31f.json delete mode 100644 rust/cloud-storage/.sqlx/query-d0150fe28f8fe11bbc69c475a6fc3277a1ced2c563a2e2bc98a742ef71da40fc.json delete mode 100644 rust/cloud-storage/.sqlx/query-d025cbcd336023d8d266d144ed579003a1f0f549e4e1585f641c86d0f2336c64.json delete mode 100644 rust/cloud-storage/.sqlx/query-d0a3d7eadc0e7d5d469f5ae755561b859efa9b55a2b085a1f564b42024be3e92.json delete mode 100644 rust/cloud-storage/.sqlx/query-d0c976b53ed5c8b754013dc219219ae33bff5dc510075ca8f0f24db8a9e1ead6.json delete mode 100644 rust/cloud-storage/.sqlx/query-d0dcb62233091aee045f96c8f2cd8ebee5614196a92bcbc250b9702a8194c329.json delete mode 100644 rust/cloud-storage/.sqlx/query-d0de0e065ad2c62601b5d401357d295c602e8ea01dc164bd95c7ed30a7726a54.json delete mode 100644 rust/cloud-storage/.sqlx/query-d0e25ec078af21bc5a7771937ed5bfc9d190e4154c906fae3e67846c308332dd.json delete mode 100644 rust/cloud-storage/.sqlx/query-d0e2ccb572c57cb856c6d68e739aa5cf85994ae8af80af65ade5f879f837cc6a.json delete mode 100644 rust/cloud-storage/.sqlx/query-d0f5de1518cf48faa63380a71ff6633e40c9a0d9f8e87262e31fa218400752a7.json delete mode 100644 rust/cloud-storage/.sqlx/query-d138759f663ddea66b623d88820383631011b1c3cbd5d36e137dbd0c5442f456.json delete mode 100644 rust/cloud-storage/.sqlx/query-d13e90d3f2bda80111ac9849f14099b08f372bf4606405d18d8c465d241b5781.json delete mode 100644 rust/cloud-storage/.sqlx/query-d162c039601a7fe5f829eeaedb6cd324c875cdc9e74287873ec41a9fd495e696.json delete mode 100644 rust/cloud-storage/.sqlx/query-d185f3b4ca09c5a6372f6a64c4e6e5e12937814433dc5499b0dfdbe882c76192.json delete mode 100644 rust/cloud-storage/.sqlx/query-d1c575aba71170e53f0d8a786d9c1a67edb6dd76a80889a538b6c1aceb837e45.json delete mode 100644 rust/cloud-storage/.sqlx/query-d1d1519e0bdb30ddcbaa6d602bc04617613bb21df0e7728150e74b4125d28a59.json delete mode 100644 rust/cloud-storage/.sqlx/query-d20c082d3cea0215d43fba8023c43c48e9ad8b934613ece6777e4948e18572bc.json delete mode 100644 rust/cloud-storage/.sqlx/query-d31d574569460a9137ba589cfb552f811f014cd6ef1d0b3f9bea3074a478f785.json delete mode 100644 rust/cloud-storage/.sqlx/query-d357cee4f06a87dd2d7fe9d64a0fd2c9e95591835b82393ecb2492f8966883bb.json delete mode 100644 rust/cloud-storage/.sqlx/query-d35bd972bde3e682873d7088574ab3afced6278d25e630969724dd5837182f0c.json delete mode 100644 rust/cloud-storage/.sqlx/query-d42e3270642ca0b9eff6b5807f600c24fd26d50d612a66edf0738c62d15680ba.json delete mode 100644 rust/cloud-storage/.sqlx/query-d4fc8cb85acc88cc8c342220506921a23d5de6a44ed9e4af285f49f4e44d174f.json delete mode 100644 rust/cloud-storage/.sqlx/query-d501983b009e4418f1753f03db0ea12db11f18e4a89a76c87b4c8ddda431cbdb.json delete mode 100644 rust/cloud-storage/.sqlx/query-d504950303eab672518c9c99ee3df3044ca299f2a677c812b11592fc9b2fe6cd.json delete mode 100644 rust/cloud-storage/.sqlx/query-d50b26323778ecb0ea88bb43c8a3df49df49acf6ec6d56955022e81ae92a2278.json delete mode 100644 rust/cloud-storage/.sqlx/query-d5c0095efa9c8162d511f1f9b1b2d44bfd717c8761fcb3c8561cd6c292b1eea4.json delete mode 100644 rust/cloud-storage/.sqlx/query-d5db55179b8f46b8788f1cc573b0734a33e800cd3fd990498c76c991b48931a8.json delete mode 100644 rust/cloud-storage/.sqlx/query-d5fbd2557b6759572b20117681fac9c4d0b723c7a7abfa0fd92ae362ea32b88f.json delete mode 100644 rust/cloud-storage/.sqlx/query-d61fd0eda66672d4ba0ed8d648c93fdc9b145bcea0d50bfb62acabba93d5818c.json delete mode 100644 rust/cloud-storage/.sqlx/query-d672dff677cfcb21b6f90672e2d79b6d56ccda8789dd737a8cb2d89eb6858b03.json delete mode 100644 rust/cloud-storage/.sqlx/query-d6e62d780e55c6597e725a12a3785ba2c222905943458d205112e1e064a0bcc9.json delete mode 100644 rust/cloud-storage/.sqlx/query-d742a92f0fe0ee9d7804e59bf37182fb33d0dcc2df012cdc4eed91e8994ca2b7.json delete mode 100644 rust/cloud-storage/.sqlx/query-d7689899580f3928cca462a572058dd54f85dc6082f369fbecb2afa873fda66b.json delete mode 100644 rust/cloud-storage/.sqlx/query-d792ba8c4730364e650045395d110e6acda592d3e27ecac39f93370bacccd7a7.json delete mode 100644 rust/cloud-storage/.sqlx/query-d7a3be325f304ca9642f1ae4f18a3b22e871c61feff6dbc1fe793cedd2cf403c.json delete mode 100644 rust/cloud-storage/.sqlx/query-d7c799b9e8432474ef422195e5e17f6cd611c9845f2830ab6ded46a4d640d362.json delete mode 100644 rust/cloud-storage/.sqlx/query-d81549c7156fb08cde5260f6196eb6a80bb82c9640845a835c6d32eea7e6dcad.json delete mode 100644 rust/cloud-storage/.sqlx/query-d84f480cd90b929670bdbe24b839126ad17975d9f7490e8a5d521e2c1eb752c5.json delete mode 100644 rust/cloud-storage/.sqlx/query-d8677557689260c205fa17b9b36990834ea8846624132386f2fcd92d0d9b9905.json delete mode 100644 rust/cloud-storage/.sqlx/query-d86be6e3a5bac69df99498b43dfc645a882c4f965226e71fc300d84a081ad30d.json delete mode 100644 rust/cloud-storage/.sqlx/query-d8bd24cd40bf28ba54dcc3a846931d4e00fbc7854d8f315b87f70dfdc44cb901.json delete mode 100644 rust/cloud-storage/.sqlx/query-d8f3ede64d3ac515f4247672f6edc47ed61f608db54b649cc3daba87817c680a.json delete mode 100644 rust/cloud-storage/.sqlx/query-d970eeb5bb4aebc43674b6ad89fb00c04c18f94145346063a2b012c1104afa53.json delete mode 100644 rust/cloud-storage/.sqlx/query-d990b4285faa94bcc23b8e4ebd3c433d0dd69045b66f7cf5952f1126115dec84.json delete mode 100644 rust/cloud-storage/.sqlx/query-d9956cd2e52cda4f0e7c080058d33f2bbf35c99b29e7482f198d592ff435cf28.json delete mode 100644 rust/cloud-storage/.sqlx/query-d9ad977df73e6a2e5cf561edfb41d5ab7728a12ca7245876c3ede0c3adc69647.json delete mode 100644 rust/cloud-storage/.sqlx/query-d9f818ade03e85f7f57ff02b2093b46ac7899be8421cdd83e5dd46f5b8211fd2.json delete mode 100644 rust/cloud-storage/.sqlx/query-da0e4cfc27ca84e3cad6ed3d7b58d20ea15ba8756bc54a8d518ea82a39a27ec4.json delete mode 100644 rust/cloud-storage/.sqlx/query-da11b9c3b9850e3a763035f7873921f7887f3bf828b5be3c7a599fade54a0dc1.json delete mode 100644 rust/cloud-storage/.sqlx/query-da534350a843bec8ccf928f5d774a0a281601cb56674d2b5ea331e02ae8bbf60.json delete mode 100644 rust/cloud-storage/.sqlx/query-da59b393b3c5c2cc664c6ac89fb05dec57b4fb5d0b4ea2def2c8c4978c1d9c36.json delete mode 100644 rust/cloud-storage/.sqlx/query-da6586a61ad110e335c8b5a9c6c840cee4f1db25c7b9b4f5a1157ef655fe1575.json delete mode 100644 rust/cloud-storage/.sqlx/query-da98ce3985fbf5eaed5300bb94b3354c7b4bd005b9e5657a702bd39846ff0917.json delete mode 100644 rust/cloud-storage/.sqlx/query-dae0d3d0cdf09f727a8b7c3ecc9f3ae64ea91023d356c47232736672cd1ba5ec.json delete mode 100644 rust/cloud-storage/.sqlx/query-daefc7270b27ce0caef8b61a651c38d76dfd087a2a8032ff6ebce392d7892764.json delete mode 100644 rust/cloud-storage/.sqlx/query-db297e24e3ed1e94c27121977d81813bbe4cde5e5b7bec42e424c72db0e27e73.json delete mode 100644 rust/cloud-storage/.sqlx/query-dbf934ed3c82b433deea3da7035a976b443a4280c01b09fdc5f673ad66f06c28.json delete mode 100644 rust/cloud-storage/.sqlx/query-dc09f10b914618441e30f7b1e12c60d684f1a422d5cd1de162b6f657c8ddfa98.json delete mode 100644 rust/cloud-storage/.sqlx/query-dc8363500c41804887b52ba9bab5fe1745738d475322e937d4553623a8294dc6.json delete mode 100644 rust/cloud-storage/.sqlx/query-dc836e7dd12a3df4a05ba072af32cb1aca7d6b8c20e636adff6fb3977577e62a.json delete mode 100644 rust/cloud-storage/.sqlx/query-dcf19b1a30385a18a23d0fa7d4d724d755c0a3353480bcbe573a3f867cf24091.json delete mode 100644 rust/cloud-storage/.sqlx/query-dd019c8633d6089e59d0560d601dbb294e66474310e66c28a0a8510c64fca149.json delete mode 100644 rust/cloud-storage/.sqlx/query-dd1e3498501c9aad2a5db8c9f55269928b43c4a9e523b84383bf9c7dc636c1fd.json delete mode 100644 rust/cloud-storage/.sqlx/query-dd4f7c4b90b6340ea7f4a7d6eb16347612e9d197979f9d4a4df40314f22559f8.json delete mode 100644 rust/cloud-storage/.sqlx/query-ddc49e2430354b28a22a3168b217f351cd450b0fe95a4c6015573da664c5c27d.json delete mode 100644 rust/cloud-storage/.sqlx/query-ddd8755195a3cf6673045d0182a08a933c8e7ac6f811305b607046ae6021be79.json delete mode 100644 rust/cloud-storage/.sqlx/query-de68d0cec65bf1c6779ac453af4ca4185ce3ebe294d432408c876b8a0b0a6b63.json delete mode 100644 rust/cloud-storage/.sqlx/query-de8329eb43d809c9055c9530784594572d9da9387c41873beacfb4a615e964cb.json delete mode 100644 rust/cloud-storage/.sqlx/query-de888f70b426374eb436dfab5e58cab5a5d5423325a7834515c9c6a327f25f50.json delete mode 100644 rust/cloud-storage/.sqlx/query-de8dbe51fdbaeeb8ac8c8af8627c6838a4054a719ac6b54f6f7acb53a9353a3a.json delete mode 100644 rust/cloud-storage/.sqlx/query-debae3edf7b8f02aefffa4464ad9a4c474f1e7d5c0071bdb1261df0c1d8b2373.json delete mode 100644 rust/cloud-storage/.sqlx/query-debef3a27b832b3600037a6304558a23c2407f742e67e7c06553929f4405478e.json delete mode 100644 rust/cloud-storage/.sqlx/query-dedb4996ddd1f4a5a44ce96d8ab9e7ad85d35c823d233e6d9b53534c5aaf94b0.json delete mode 100644 rust/cloud-storage/.sqlx/query-df4f91b8a401ff941c7b57f910979e0ec39a507de612ff7887172062237f29ce.json delete mode 100644 rust/cloud-storage/.sqlx/query-dfc54abc6dd32c35bf3d3c65288ead04d9990d5f6613bd7668dd7cba38ebe3a5.json delete mode 100644 rust/cloud-storage/.sqlx/query-dfccb13f0d0abe2be31bb40067f2e4c29fe260e81d13c017b8bc4fae2b94703f.json delete mode 100644 rust/cloud-storage/.sqlx/query-e08bcee71072e0e693b1b3f2df39a2b9574f45847919251446878f32b9febbc2.json delete mode 100644 rust/cloud-storage/.sqlx/query-e0b90388e3a9f7dbd1e6586cb0633b0d2d39d64dcc88a0f0c5cd310303e7dc92.json delete mode 100644 rust/cloud-storage/.sqlx/query-e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957.json delete mode 100644 rust/cloud-storage/.sqlx/query-e0f9ac039268a99b0d65cecf7ed18ee7fb04db4955d5dca83ca1c6c9e0eaa884.json delete mode 100644 rust/cloud-storage/.sqlx/query-e10378347cb7114449942c583bb9426932aba9ae4a09ab96ebfa32c46e8b6fcf.json delete mode 100644 rust/cloud-storage/.sqlx/query-e11187ed1bd1944597258bbdefa8ec23de215edc1de1d020d418e2e89b17424e.json delete mode 100644 rust/cloud-storage/.sqlx/query-e12622009d9e824222ae86c7b823e4f4ba653a16b53f9ffb7b99566d202dbd68.json delete mode 100644 rust/cloud-storage/.sqlx/query-e17994ebc0589faabde0aa239f24c542292d06b39c744f2055038ac46c41bbdc.json delete mode 100644 rust/cloud-storage/.sqlx/query-e17eb13c62a13ec9d5355a6f632b414792f6d87963138b7969b6a8f179e508a1.json delete mode 100644 rust/cloud-storage/.sqlx/query-e1aae69a066a831096b61a7318b753897d59e28cedd21e439c20ff09268a831a.json delete mode 100644 rust/cloud-storage/.sqlx/query-e1f9c3663588dbc2e59aa729190c477b8ae7e89dde630c125c1364ee211c454b.json delete mode 100644 rust/cloud-storage/.sqlx/query-e1fc9c7524d0d20844d2cad0402fd1a2058e31c5692d66a0107d9a45c9d83f7b.json delete mode 100644 rust/cloud-storage/.sqlx/query-e263f6ef753e7f2c2debc7f63c8658670ee906d1814f037f1c20e3569ecfd270.json delete mode 100644 rust/cloud-storage/.sqlx/query-e28bfb9ffa642d99401e17cbbe174df5312e5fae38f374945f807ce68d0314a8.json delete mode 100644 rust/cloud-storage/.sqlx/query-e2c696b916af0f7591d95a280d75c01e2e6e9dee46a74504fde48b78587934b6.json delete mode 100644 rust/cloud-storage/.sqlx/query-e2cadbb29d007b092339274024c3638798761653ca72db90aa2ce7417976ef61.json delete mode 100644 rust/cloud-storage/.sqlx/query-e33fa0c9cec501d3d4a9c98d1c80717756b395ffb54f82d50691520065eb6036.json delete mode 100644 rust/cloud-storage/.sqlx/query-e3502d4611d734fa9d27c17c3adb0785d06317da255894345de287a654f24fc3.json delete mode 100644 rust/cloud-storage/.sqlx/query-e35594f0b886c9eaba037a0b13ccb3baf21cd37b638190889fb5383180a8e437.json delete mode 100644 rust/cloud-storage/.sqlx/query-e3cbccf7e62eaa5d655b12fbf32d181f2bb79b25ac3c2300e2eab17c912697af.json delete mode 100644 rust/cloud-storage/.sqlx/query-e3ceebff1df78cef1b26e165cc4967a55f7b5355b7ff835eed0f93b4b8458ceb.json delete mode 100644 rust/cloud-storage/.sqlx/query-e3e481b6dc2c40e088840b2f96b463fd3df8488cbce6001cad1bfe990b347b63.json delete mode 100644 rust/cloud-storage/.sqlx/query-e46bb839438b0dc805a6336d9ab0e64bad441f07222bfe922c9da81c7d2c3a47.json delete mode 100644 rust/cloud-storage/.sqlx/query-e4bd72019eaf76d30d907a1fb8b3811f1d4c96c7049794890f30b1e831381010.json delete mode 100644 rust/cloud-storage/.sqlx/query-e4dda9b303d359c6c4e3c7b120136ae5c11cd902c373ed20d8119ba050c7dfbd.json delete mode 100644 rust/cloud-storage/.sqlx/query-e4e4c79727e7a83f2dfbb1d82a00a771eb3bd08aab63d2be4a1338fbde315f62.json delete mode 100644 rust/cloud-storage/.sqlx/query-e4eb2173ecfc39987f998d5075237c0b8aaf00c3eae94c06f069591f72445e14.json delete mode 100644 rust/cloud-storage/.sqlx/query-e52ca994b4107db7e434502dc1f370666bf2efa34290ee8f1a6c89330b29522e.json delete mode 100644 rust/cloud-storage/.sqlx/query-e54d13b2e6e397c0f1fbc83ea7dea28d255c30f360759bf57b7d0b31294c785f.json delete mode 100644 rust/cloud-storage/.sqlx/query-e57d0a84a9cb67f987d4a53bfb123136039849d1c3c5ff81463691e0ae271f74.json delete mode 100644 rust/cloud-storage/.sqlx/query-e63fd5c15b6e5327aecb2524ee304fcd25df705766b08c6fd8d39d10cacfb33e.json delete mode 100644 rust/cloud-storage/.sqlx/query-e694a7861bbcbc4102b2335afa8d201e0b71608319da53a9551cf3c83fbf1487.json delete mode 100644 rust/cloud-storage/.sqlx/query-e6a3bb4ea73a16bb6664ecb2adda3573d0cb043fee8aeb7c46a61bcd534357e3.json delete mode 100644 rust/cloud-storage/.sqlx/query-e6f63b89995a909f72c7c4012ab340e40f13453f1bec6cf41cb202930c44e84a.json delete mode 100644 rust/cloud-storage/.sqlx/query-e6fe90cc7c58f3bcdcd2655b11c82ea99a8eda29d45570028deda4075173cfe6.json delete mode 100644 rust/cloud-storage/.sqlx/query-e70d5acce88125ae894d9d57356559c6e59e236c9650211a52fdc90602318cc3.json delete mode 100644 rust/cloud-storage/.sqlx/query-e7906bd42de06eff9291279715d9f6f1a860c05be610f8b620fe2426d59b2e62.json delete mode 100644 rust/cloud-storage/.sqlx/query-e792f05e8ff1bba6124255b61ae57b1429cb22745012c396910f2fa549aedf79.json delete mode 100644 rust/cloud-storage/.sqlx/query-e7d8ee1a89eda56e35de8795a6bf83e4ce9af436279fc24b7aafe8f0d41aab04.json delete mode 100644 rust/cloud-storage/.sqlx/query-e7e9e2db72c9bf45273b0cfe11057a5dbce790572f2420457e24b0fd498c2024.json delete mode 100644 rust/cloud-storage/.sqlx/query-e802b95145183d9bec6fb5f542fe93d392fdcf0fbebc9935f263f3f4fd1d8c34.json delete mode 100644 rust/cloud-storage/.sqlx/query-e82694bed350dc3b7b22de00e655dfabb45e608cfd9a0a5a463fc6e1792393f2.json delete mode 100644 rust/cloud-storage/.sqlx/query-e82b920450ded09debcd219dbe7a34dbde810b6b60c8d8a0854ee49ac57a7c02.json delete mode 100644 rust/cloud-storage/.sqlx/query-e84c6b52fb4748ec73c01340862a1fa3c65711050239ca5d7bcd59b04f920894.json delete mode 100644 rust/cloud-storage/.sqlx/query-e8633dfaa07a4420442beb666625c7af4b6e8db0ea192d08aa971b20ebe69eb4.json delete mode 100644 rust/cloud-storage/.sqlx/query-e89719852a1e6166dbcebe6190a79a830b0e0a98c92967f15c2a89b96871bbd4.json delete mode 100644 rust/cloud-storage/.sqlx/query-e8bf9c53f71988ac7364aef5680e3cb74f7ddc5bacda3caf78db4b8672a8cf72.json delete mode 100644 rust/cloud-storage/.sqlx/query-e951a324bc8638caa7d3d8b3793b5dbe6ce6bfec8f307f22aa7b2bab42a5a13a.json delete mode 100644 rust/cloud-storage/.sqlx/query-ea674f0a9d53a37775cee691aaa387db892d3902606258ac7c1e87652eba76e7.json delete mode 100644 rust/cloud-storage/.sqlx/query-ea7622c671b053d5519e2fb2a996372002b31d070e2cbfe2d58ae763bc04b7c6.json delete mode 100644 rust/cloud-storage/.sqlx/query-eab276e5a26ac65dd643a67de93e82418e3a012a628f1b5cd3be1f490eeec9f1.json delete mode 100644 rust/cloud-storage/.sqlx/query-eaeb36fcd2e9915d830eb2cdcefb6ab84c37acac7de5fdd06fefbec94abfe956.json delete mode 100644 rust/cloud-storage/.sqlx/query-eaef3f030f89336b4530560c11b502fd1ef001d1247a155814df5c4510170aaa.json delete mode 100644 rust/cloud-storage/.sqlx/query-eb2b040d1563d048ca6a81a00fb98bbc2e5d6c3c3063be43655ed32a3baf028f.json delete mode 100644 rust/cloud-storage/.sqlx/query-eb8ac8459fac8423966a6daf85b51dd7c57b312cf54b2c47ba87c7ee99f0d9c1.json delete mode 100644 rust/cloud-storage/.sqlx/query-ebb5fcd2dc97d8c2f1ea17927db39e0fd0419594e068b4d43eaaddca5e46f6b0.json delete mode 100644 rust/cloud-storage/.sqlx/query-ebd8690a2a7068b485816697c3d6660c82f616f8f3456a6137b872043404d282.json delete mode 100644 rust/cloud-storage/.sqlx/query-ebe9fefb7d1b8505df6bd0ec41102abb947fea3cb939dadaa76b6e53bf896390.json delete mode 100644 rust/cloud-storage/.sqlx/query-ec772d88365b803914f51dbe270f14ab6cdd2fe57c9d76e430cfef7234e92168.json delete mode 100644 rust/cloud-storage/.sqlx/query-ec9e817e0985ec4f58c8c6bc5817016f366e31f1ac3a8cf8696ed61434472afb.json delete mode 100644 rust/cloud-storage/.sqlx/query-ecccdffab47c2a500f64baee0488afa6d87a4f32cb7c852318de504fa6d20b2f.json delete mode 100644 rust/cloud-storage/.sqlx/query-ecd16f9e0fd909784c5831fd73e705b6f12c716417f4d337aa68f73fb05a6dd1.json delete mode 100644 rust/cloud-storage/.sqlx/query-ecd59864bf9f241755a73ed370146370580a768c26a4c9f6b1fe9d8244abdb36.json delete mode 100644 rust/cloud-storage/.sqlx/query-ecfb0370e15c5d6e326a8580ada1af7ccf5264e6ac8b7ce80fa9d68be5aed976.json delete mode 100644 rust/cloud-storage/.sqlx/query-ed2f2e964af409b89eceb93c1b4ee3364dbb75bdc22047789492b8f73b3e2491.json delete mode 100644 rust/cloud-storage/.sqlx/query-ed43958d3b45528df34f3216299e47e00e2aa671b9d235abffa4ad8bfe126c12.json delete mode 100644 rust/cloud-storage/.sqlx/query-ed817d80e4f40fc10b32eb79e9fba0a0dd46cc9b31980dba5a76dfb4540d6cd3.json delete mode 100644 rust/cloud-storage/.sqlx/query-ed8fbc6860616548698e4134d1f4404c910188de8a57899dd6cadea50025b4bf.json delete mode 100644 rust/cloud-storage/.sqlx/query-eda8f3dae4d58225307ad036c6a19e0d6bef4a3d9ea2791d75799c93b4f2350f.json delete mode 100644 rust/cloud-storage/.sqlx/query-edbec9f2fb09a6f4d6c51f137639b7ce0b5c5fdf66aba0a6efc62530ec611766.json delete mode 100644 rust/cloud-storage/.sqlx/query-edce1ca1979c9bd7c42f7e89d80a8d25037d25951b1f406dddb8d62cc13f74f0.json delete mode 100644 rust/cloud-storage/.sqlx/query-edd4b100c5da632fdd5b89c67b8a478e593d8236cf4efcebaa15ab4046917cc3.json delete mode 100644 rust/cloud-storage/.sqlx/query-ee0142b21993b387a2279768973366203093e40f519275702f3bcfa711812321.json delete mode 100644 rust/cloud-storage/.sqlx/query-ee374b0fcc0e59609fbc6368541c65cc9e27d786fd2648040cc9f2c6a3295d8e.json delete mode 100644 rust/cloud-storage/.sqlx/query-eec442b23af1030f7f161a304469b00fa7c2c474980361fbc5d98839dc40773f.json delete mode 100644 rust/cloud-storage/.sqlx/query-eed44d491b8b8bce4f111b92565b371093099209a80349d311f45a0aa4b9cca9.json delete mode 100644 rust/cloud-storage/.sqlx/query-ef427e34315b97ade2b38516eb477af19b53c578df995fbbcef546aaba55176d.json delete mode 100644 rust/cloud-storage/.sqlx/query-ef656114c7f86aa883e6360df927ea16b18efcff635cbb4d8146ff4f3ba67416.json delete mode 100644 rust/cloud-storage/.sqlx/query-efc06b0244fc40aa8fbf3721d76886d7b8909f3150f779b64a56a456027c0d26.json delete mode 100644 rust/cloud-storage/.sqlx/query-efc740cd935fb67ef5c2a75b3c37cf16bf09d6e52e5f6e5c5b107ef8244a141d.json delete mode 100644 rust/cloud-storage/.sqlx/query-f02b1d7d15a7657f2f5132db649f9a4097ff7320d336de3ea25fe1899a7826f3.json delete mode 100644 rust/cloud-storage/.sqlx/query-f04a97eb13684a35daf6c5ff52890da499864d7f8e97a390a11b384d6429fa13.json delete mode 100644 rust/cloud-storage/.sqlx/query-f04af5974db6b600e88a7c1fd3f39a09a5f4d3185af10d1a7a32e8035b2c5ec1.json delete mode 100644 rust/cloud-storage/.sqlx/query-f0c307220a9a497860462656f53da3e5786501c7b07a41983acb8459df610b8b.json delete mode 100644 rust/cloud-storage/.sqlx/query-f1346adcde7c4a86859ebc936ac4c8ae492febce05ce35df78bced81c1070f01.json delete mode 100644 rust/cloud-storage/.sqlx/query-f1afe1bb26ffc5e97fe3a5db39ca0fe594d449939c99f3dd8e338aff9d26753b.json delete mode 100644 rust/cloud-storage/.sqlx/query-f249e23685d626a0e63015828655a4dc7053d1e1d6425b9de339986d41c8e180.json delete mode 100644 rust/cloud-storage/.sqlx/query-f2a71de44d62190ec6ccad44b2e3a5b00bf57e5f0b948b2d882d2d036375d913.json delete mode 100644 rust/cloud-storage/.sqlx/query-f2b90d413f8882f0d1da810aeca51a503118d0dddd8759495f607c65158605d7.json delete mode 100644 rust/cloud-storage/.sqlx/query-f2c563a84ecf4b347e19eed2770c9593db5cf4bba24c234e9179f741a920d4d5.json delete mode 100644 rust/cloud-storage/.sqlx/query-f2d5d7aea9918978cd69c14f8afe24156c2fa387e001ee8eaf57e4a70a106069.json delete mode 100644 rust/cloud-storage/.sqlx/query-f360ad52de6c2f6b0c60902cbcb7ebad2671fe50f6425314bf3c007d01f53884.json delete mode 100644 rust/cloud-storage/.sqlx/query-f3c74398e522602a72523704c37edbd92ada98d1c5b00dd4052db371fd191598.json delete mode 100644 rust/cloud-storage/.sqlx/query-f3e53dd531be738b881df199783a2beded3bd378038cbd6f012080ac77c5291b.json delete mode 100644 rust/cloud-storage/.sqlx/query-f3e6e462f1b3d364bbcb2e556f68dced036c605ba52ff484b30130cf837b9408.json delete mode 100644 rust/cloud-storage/.sqlx/query-f3fe8a220414038b0f4ebd8fbf0a6842bf271ef6cb2e4de41b820113295ca18d.json delete mode 100644 rust/cloud-storage/.sqlx/query-f419ff9b35e559aedd0c8623986307a3d445a6a5643262d3efda804e3d04ccc6.json delete mode 100644 rust/cloud-storage/.sqlx/query-f4dd3bd30a64a7fd82d9a254a0fb0ea36e8607ebd4c272509afba882a3e0b572.json delete mode 100644 rust/cloud-storage/.sqlx/query-f4e290fa3d4abc3cc6c28f3e88b35cb2d29a67a4c437234f0ac7d1e6baa34669.json delete mode 100644 rust/cloud-storage/.sqlx/query-f53db7386c5bcacad71c665b79d14921d77330e127ed9083235078bc0d8ee970.json delete mode 100644 rust/cloud-storage/.sqlx/query-f5fff13701e91118a77c814a3c1b31f3c3202031f51868b9af724e701248079f.json delete mode 100644 rust/cloud-storage/.sqlx/query-f61e5ffbf5f10d3989640c3f1b70bbe79c9e1b2e6d2e6925bdf89df1a07ead5d.json delete mode 100644 rust/cloud-storage/.sqlx/query-f61fae90a53682f217091f1ecbdaa60d2eb5b7b0ff90863b0d0dc288779a5f7f.json delete mode 100644 rust/cloud-storage/.sqlx/query-f6226ec842f894cdf49b4a8d0d1f363e31040405915cffa7da18a3ed337e298a.json delete mode 100644 rust/cloud-storage/.sqlx/query-f62b5eb569c1751fe1b85a81c1b50811245e71af919de567277e505bb59d62e5.json delete mode 100644 rust/cloud-storage/.sqlx/query-f6600a8a539ce77dbd8b5332ea8994e58da416d649dc4963c510b3f6906db5fd.json delete mode 100644 rust/cloud-storage/.sqlx/query-f6a7499d3079d346afe5d866734ffc5d4ac3f9f1a8c2a5714ef130e53d11145f.json delete mode 100644 rust/cloud-storage/.sqlx/query-f6bc8c7f62c44aa50928badd81140cddf46a772f8a638259541b05f006bd4c1c.json delete mode 100644 rust/cloud-storage/.sqlx/query-f6c0addc618fb161405a1a989f2cacd0718c070eb2ee345d524abe7ba8b5b35e.json delete mode 100644 rust/cloud-storage/.sqlx/query-f7350272860b713193c09bbd784418605ec3f0f9f090344882fcac7d251bfdba.json delete mode 100644 rust/cloud-storage/.sqlx/query-f740b3f09ab349c876e1c7d8e42ad59600be3ea7f6f3db61fcc3045330a20f39.json delete mode 100644 rust/cloud-storage/.sqlx/query-f77a2e12f69d9ca98e0ddf9bc9c10b9c54cb028c0f723b18c05231eafe5722af.json delete mode 100644 rust/cloud-storage/.sqlx/query-f8e7be63fb307e8882da2ef41dfb8ebb75a89ecd397f5a266032c2c8a1f9c561.json delete mode 100644 rust/cloud-storage/.sqlx/query-f8ea2beac8e9feddd9f8ebd4e3d67032505a085b4c9c5e787f3194414758601b.json delete mode 100644 rust/cloud-storage/.sqlx/query-f95b295c9ffa7b96a7907c43c0557d60af3f02fc72c3f541bc94c903034a6748.json delete mode 100644 rust/cloud-storage/.sqlx/query-f97467addd6684e98f641dabde769092e981121feea08d55de4cd41762f1fa1e.json delete mode 100644 rust/cloud-storage/.sqlx/query-f97ea400ea881b9116d2deb19f1cb9c8f850746382a3c7049303286f2868a851.json delete mode 100644 rust/cloud-storage/.sqlx/query-f9dd839c0eeb6b25a432136def701390348a6d4e33feefb4c3d33974e15fcf83.json delete mode 100644 rust/cloud-storage/.sqlx/query-f9e1032b35c2a8134372f0188b76dc5ca777fdfccf87f1760b3ff0f03d4515b2.json delete mode 100644 rust/cloud-storage/.sqlx/query-f9f132f209b5a22522df5c6b9ae936efa63645abc9b36965f9e8daead43b7adc.json delete mode 100644 rust/cloud-storage/.sqlx/query-f9f7a7f7bf87cffd10d68d891874a0a270de769b42747942090f55ac86c78574.json delete mode 100644 rust/cloud-storage/.sqlx/query-fa0410f4a8b799f01b4a582582d0baafac16a1058e7017d63813abf87b340e4a.json delete mode 100644 rust/cloud-storage/.sqlx/query-fa0c2815727b1e1d81f6fc75f7b1b0bd250c9b56ab63138ac60b52e9174c48b1.json delete mode 100644 rust/cloud-storage/.sqlx/query-fa1bd94a6aca08ddbb856f2c42327e8397a42089600571a38981bfa11b7796d4.json delete mode 100644 rust/cloud-storage/.sqlx/query-fa24799c4889a98bfb62a1987d1fe93975169bfeb0cdbecb04dac3f31288570f.json delete mode 100644 rust/cloud-storage/.sqlx/query-fa75cf5f948fd99ec052e6bc48a9fc3f7df9188479defc6072394d8d06f4b3c1.json delete mode 100644 rust/cloud-storage/.sqlx/query-fab6b92c5781874261b3c3ca673d0bf0ad8155e25cf77aa57dafdcb133f30509.json delete mode 100644 rust/cloud-storage/.sqlx/query-faf5532927a794d4e40350f17e0633ba54b8185f1e6aeac32a8d1bfca35a43d3.json delete mode 100644 rust/cloud-storage/.sqlx/query-fafa84eb636a2855f683f73eba494f9ce25445a642ef58e1f8a59788a7f374b8.json delete mode 100644 rust/cloud-storage/.sqlx/query-fb28d507d6c6e160fdf0e56d5fc7a70bfbf8709ea5473b3ec59e8f547cbeaed9.json delete mode 100644 rust/cloud-storage/.sqlx/query-fb8a9157d4c7546ced9440b417c693bcaa3226934fedb2a4348a24ca9568c4ed.json delete mode 100644 rust/cloud-storage/.sqlx/query-fc0744ebeb842c69501102f111cb569a6f2b0c2fc0e62e5243a5857e054e61c7.json delete mode 100644 rust/cloud-storage/.sqlx/query-fc0a71fe3ce6804e5f2b80e78c108aba496434dc78909951f7c1bd86f9c56ec0.json delete mode 100644 rust/cloud-storage/.sqlx/query-fc6df4dc3c0f82de02b70975338d7455df93799b12af38d50bb85d81391861c3.json delete mode 100644 rust/cloud-storage/.sqlx/query-fc8a4a51536361c5b5c0a742ba268fff2908654b8bb53923320e7fabe244b467.json delete mode 100644 rust/cloud-storage/.sqlx/query-fc9cc90bb37368b293d46d43efd16c178a9865c5926e4195249eb22e2a4a91b3.json delete mode 100644 rust/cloud-storage/.sqlx/query-fcd4b67db8a3a8de51b0bb55880c5934f900adbadcc5549165e709cb1cd345b5.json delete mode 100644 rust/cloud-storage/.sqlx/query-fd2b153cf0275acd708641fc7908abfce69d431447fcbf846e60aa60febb1433.json delete mode 100644 rust/cloud-storage/.sqlx/query-fd65e80e68a17871a3a3ef4bd1bab20faaf6ba24f55172486a74aaec3da480f4.json delete mode 100644 rust/cloud-storage/.sqlx/query-fd9545dca362a8cdf1b3189af6277d724c16d6068b7ab828c2eb604617227113.json delete mode 100644 rust/cloud-storage/.sqlx/query-fe93b3b50a3a64b8b354903858cfef2cdff408625fa1a592977996a81e8b3f3c.json delete mode 100644 rust/cloud-storage/.sqlx/query-ff0ad36a3e9b991dfd04335db13c6bec2f121b2afb9c5c1fa39c2d804cb71286.json delete mode 100644 rust/cloud-storage/.sqlx/query-ff3cfaae68201d92e5a587defc0b23eddb2d7a5a8a1572ef33f3040f8e0d671b.json delete mode 100644 rust/cloud-storage/.sqlx/query-ff54b7462bad2c7811807786e3b57f3b77a2108138b267fd97144edad023be1c.json delete mode 100644 rust/cloud-storage/.sqlx/query-ff7d21bb92d1ed078738e8190acee79c3e0b64c8c4a507719aa78405325cad76.json delete mode 100644 rust/cloud-storage/.sqlx/query-ff9a8fc2c134909f51787e9bbc3e541dddf035820810dbf1b1a6feacfeb0e431.json delete mode 100644 rust/cloud-storage/.sqlx/query-ffb324854a460dd540e7c0849f87741bc7947c8473dba0fb39c61ee8be80950c.json diff --git a/rust/cloud-storage/.sqlx/query-000c1235f8bd55c9dd179d10421e262d6e096bc1a8547f5da22596dbc56e0ddc.json b/rust/cloud-storage/.sqlx/query-000c1235f8bd55c9dd179d10421e262d6e096bc1a8547f5da22596dbc56e0ddc.json deleted file mode 100644 index 28048605a8..0000000000 --- a/rust/cloud-storage/.sqlx/query-000c1235f8bd55c9dd179d10421e262d6e096bc1a8547f5da22596dbc56e0ddc.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n COUNT(DISTINCT cm.id) AS ai_chat_messages,\n COUNT(DISTINCT d.id) AS documents\n FROM \"User\" u\n LEFT JOIN \"Chat\" c ON c.\"userId\" = u.id AND c.\"deletedAt\" IS NULL\n LEFT JOIN \"ChatMessage\" cm ON cm.\"chatId\" = c.id AND cm.role = 'user'\n LEFT JOIN \"Document\" d ON d.\"owner\" = u.id AND d.\"deletedAt\" IS NULL\n WHERE u.id = $1;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "ai_chat_messages", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "documents", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null, - null - ] - }, - "hash": "000c1235f8bd55c9dd179d10421e262d6e096bc1a8547f5da22596dbc56e0ddc" -} diff --git a/rust/cloud-storage/.sqlx/query-000dcd3c4befc3975adf3bee932023bec273d62d6c2f233c3236ffebbfaf5810.json b/rust/cloud-storage/.sqlx/query-000dcd3c4befc3975adf3bee932023bec273d62d6c2f233c3236ffebbfaf5810.json deleted file mode 100644 index 02036afbf1..0000000000 --- a/rust/cloud-storage/.sqlx/query-000dcd3c4befc3975adf3bee932023bec273d62d6c2f233c3236ffebbfaf5810.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n a.channel_id AS \"channel_id: uuid::Uuid\",\n c.name AS \"channel_name?\", -- Option\n a.message_id AS \"message_id: uuid::Uuid\",\n m.thread_id AS \"thread_id?: uuid::Uuid\",\n m.sender_id AS \"sender_id!\", -- String\n m.content AS \"message_content!\", -- String\n m.created_at AS \"message_created_at!: chrono::DateTime\",\n a.created_at AS \"attachment_created_at!: chrono::DateTime\"\n FROM comms_attachments a\n JOIN comms_messages m ON a.message_id = m.id\n JOIN comms_channels c ON a.channel_id = c.id\n JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE a.entity_type = $1\n AND a.entity_id = $2\n AND cp.user_id = $3\n AND cp.left_at IS NULL\n AND m.deleted_at IS NULL\n ORDER BY a.created_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_name?", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "message_id: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "thread_id?: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "sender_id!", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "message_content!", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "message_created_at!: chrono::DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "attachment_created_at!: chrono::DateTime", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text" - ] - }, - "nullable": [ - false, - true, - false, - true, - false, - false, - false, - false - ] - }, - "hash": "000dcd3c4befc3975adf3bee932023bec273d62d6c2f233c3236ffebbfaf5810" -} diff --git a/rust/cloud-storage/.sqlx/query-00b50429eacf802503b639b2dc362bbdbf3d29b375b73ca25f7720941929f10b.json b/rust/cloud-storage/.sqlx/query-00b50429eacf802503b639b2dc362bbdbf3d29b375b73ca25f7720941929f10b.json deleted file mode 100644 index 3cb6780373..0000000000 --- a/rust/cloud-storage/.sqlx/query-00b50429eacf802503b639b2dc362bbdbf3d29b375b73ca25f7720941929f10b.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH RECURSIVE project_path AS (\n SELECT\n p.id,\n p.name,\n p.\"userId\",\n p.\"parentId\",\n p.\"updatedAt\",\n ARRAY[p.name] as path\n FROM \"Project\" p\n WHERE p.id = ANY($1)\n\n UNION ALL\n\n SELECT\n pp.id,\n pp.name,\n pp.\"userId\",\n parent.\"parentId\",\n pp.\"updatedAt\",\n ARRAY[parent.name] || pp.path as path\n FROM project_path pp\n JOIN \"Project\" parent ON pp.\"parentId\" = parent.id\n )\n SELECT DISTINCT ON (id)\n id as \"id!\",\n name as \"name!\",\n \"userId\" as \"owner!\",\n path as \"path!\",\n \"updatedAt\"::timestamptz as \"updated_at\"\n FROM project_path\n WHERE \"parentId\" IS NULL\n ORDER BY id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "path!", - "type_info": "TextArray" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - null, - null, - null, - null, - null - ] - }, - "hash": "00b50429eacf802503b639b2dc362bbdbf3d29b375b73ca25f7720941929f10b" -} diff --git a/rust/cloud-storage/.sqlx/query-012063ce1220cd6f1b04eeefa088324d50ac472be760c0efe10b5060b0878c75.json b/rust/cloud-storage/.sqlx/query-012063ce1220cd6f1b04eeefa088324d50ac472be760c0efe10b5060b0878c75.json deleted file mode 100644 index 4a8de045bb..0000000000 --- a/rust/cloud-storage/.sqlx/query-012063ce1220cd6f1b04eeefa088324d50ac472be760c0efe10b5060b0878c75.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT child_macro_id\n FROM macro_user_links\n WHERE primary_macro_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "child_macro_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "012063ce1220cd6f1b04eeefa088324d50ac472be760c0efe10b5060b0878c75" -} diff --git a/rust/cloud-storage/.sqlx/query-014d3b9b1509bfcd1b11c8c0ef8fe4534c4caa33640876469811d19d64a9b7d0.json b/rust/cloud-storage/.sqlx/query-014d3b9b1509bfcd1b11c8c0ef8fe4534c4caa33640876469811d19d64a9b7d0.json deleted file mode 100644 index 1e9e030596..0000000000 --- a/rust/cloud-storage/.sqlx/query-014d3b9b1509bfcd1b11c8c0ef8fe4534c4caa33640876469811d19d64a9b7d0.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT email\n FROM \"BlockedEmail\"\n WHERE email = ANY($1::text[])\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "014d3b9b1509bfcd1b11c8c0ef8fe4534c4caa33640876469811d19d64a9b7d0" -} diff --git a/rust/cloud-storage/.sqlx/query-015a45b5c16b4bcc135372478d585af4ce10f5f6ae5e3578637b66655ea6d67e.json b/rust/cloud-storage/.sqlx/query-015a45b5c16b4bcc135372478d585af4ce10f5f6ae5e3578637b66655ea6d67e.json deleted file mode 100644 index 4d54ccbb50..0000000000 --- a/rust/cloud-storage/.sqlx/query-015a45b5c16b4bcc135372478d585af4ce10f5f6ae5e3578637b66655ea6d67e.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH updated AS (\n UPDATE user_notification\n SET done = $3\n WHERE user_id = $1 AND notification_id = ANY($2) AND deleted_at IS NULL\n RETURNING notification_id, done, seen_at::timestamptz as viewed_at\n )\n SELECT\n updated.notification_id,\n updated.done,\n updated.viewed_at,\n NOW()::timestamptz as \"updated_at!\"\n FROM updated\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "notification_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "done", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "viewed_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "updated_at!", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "UuidArray", - "Bool" - ] - }, - "nullable": [ - false, - false, - null, - null - ] - }, - "hash": "015a45b5c16b4bcc135372478d585af4ce10f5f6ae5e3578637b66655ea6d67e" -} diff --git a/rust/cloud-storage/.sqlx/query-0173a66e06d23847e48967c6fbf38dde11698cc4164819d48cb8f99c1ec3aae3.json b/rust/cloud-storage/.sqlx/query-0173a66e06d23847e48967c6fbf38dde11698cc4164819d48cb8f99c1ec3aae3.json deleted file mode 100644 index ba6be04006..0000000000 --- a/rust/cloud-storage/.sqlx/query-0173a66e06d23847e48967c6fbf38dde11698cc4164819d48cb8f99c1ec3aae3.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE user_notification\n SET deleted_at = now()\n WHERE user_id = $1 AND notification_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "0173a66e06d23847e48967c6fbf38dde11698cc4164819d48cb8f99c1ec3aae3" -} diff --git a/rust/cloud-storage/.sqlx/query-01cb0b4b2fbbd64d2be9373d1e9e75b0085f5817ee4c3360f7cea76917fa5740.json b/rust/cloud-storage/.sqlx/query-01cb0b4b2fbbd64d2be9373d1e9e75b0085f5817ee4c3360f7cea76917fa5740.json deleted file mode 100644 index 9e8e5b730a..0000000000 --- a/rust/cloud-storage/.sqlx/query-01cb0b4b2fbbd64d2be9373d1e9e75b0085f5817ee4c3360f7cea76917fa5740.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE scheduled_action\n SET claimed = $1, updated_at = now()\n WHERE id = $2\n AND (claimed IS NULL OR claimed < $3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Timestamptz", - "Uuid", - "Timestamptz" - ] - }, - "nullable": [] - }, - "hash": "01cb0b4b2fbbd64d2be9373d1e9e75b0085f5817ee4c3360f7cea76917fa5740" -} diff --git a/rust/cloud-storage/.sqlx/query-01ee4e5a80a158998dadbbb6b8fe5d27371757cc6e9019589182150af22b5e36.json b/rust/cloud-storage/.sqlx/query-01ee4e5a80a158998dadbbb6b8fe5d27371757cc6e9019589182150af22b5e36.json deleted file mode 100644 index 7515457926..0000000000 --- a/rust/cloud-storage/.sqlx/query-01ee4e5a80a158998dadbbb6b8fe5d27371757cc6e9019589182150af22b5e36.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Pin\" \n WHERE \"pinnedItemId\" = ANY($1) AND \"pinnedItemType\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "Text" - ] - }, - "nullable": [] - }, - "hash": "01ee4e5a80a158998dadbbb6b8fe5d27371757cc6e9019589182150af22b5e36" -} diff --git a/rust/cloud-storage/.sqlx/query-020ad49dd342e529563c91a7d2403de9196482e24765f4b2c93d2da50273d69c.json b/rust/cloud-storage/.sqlx/query-020ad49dd342e529563c91a7d2403de9196482e24765f4b2c93d2da50273d69c.json deleted file mode 100644 index 3b06227108..0000000000 --- a/rust/cloud-storage/.sqlx/query-020ad49dd342e529563c91a7d2403de9196482e24765f4b2c93d2da50273d69c.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n eaf.attachment_id,\n eaf.message_id AS draft_id,\n ea.provider_attachment_id,\n orig_msg.provider_id AS \"message_provider_id!\",\n ea.filename,\n ea.mime_type,\n ea.size_bytes\n FROM email_attachments_fwd eaf\n JOIN email_messages draft_msg ON eaf.message_id = draft_msg.id\n JOIN email_attachments ea ON eaf.attachment_id = ea.id\n JOIN email_messages orig_msg ON ea.message_id = orig_msg.id\n WHERE eaf.message_id = $1 AND draft_msg.link_id = $2\n ORDER BY ea.filename ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "attachment_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "draft_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_attachment_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "message_provider_id!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "filename", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "mime_type", - "type_info": "Varchar" - }, - { - "ordinal": 6, - "name": "size_bytes", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - true, - true, - true, - true, - true - ] - }, - "hash": "020ad49dd342e529563c91a7d2403de9196482e24765f4b2c93d2da50273d69c" -} diff --git a/rust/cloud-storage/.sqlx/query-02e665cc90a63f1a040b4e5c8acfc2ec9d8f3ebfdcd4947b1349494bc13618aa.json b/rust/cloud-storage/.sqlx/query-02e665cc90a63f1a040b4e5c8acfc2ec9d8f3ebfdcd4947b1349494bc13618aa.json deleted file mode 100644 index f44cdbac14..0000000000 --- a/rust/cloud-storage/.sqlx/query-02e665cc90a63f1a040b4e5c8acfc2ec9d8f3ebfdcd4947b1349494bc13618aa.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM\n in_progress_user_link\n WHERE\n created_at < $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Timestamp" - ] - }, - "nullable": [] - }, - "hash": "02e665cc90a63f1a040b4e5c8acfc2ec9d8f3ebfdcd4947b1349494bc13618aa" -} diff --git a/rust/cloud-storage/.sqlx/query-030974957f30c1fc16d1a6bed0ffc3dcd6d71b2c0029f7f7fa3ef3285e12a8f5.json b/rust/cloud-storage/.sqlx/query-030974957f30c1fc16d1a6bed0ffc3dcd6d71b2c0029f7f7fa3ef3285e12a8f5.json deleted file mode 100644 index 7cbe7bbe84..0000000000 --- a/rust/cloud-storage/.sqlx/query-030974957f30c1fc16d1a6bed0ffc3dcd6d71b2c0029f7f7fa3ef3285e12a8f5.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"UserHistory\" WHERE \"itemId\" = ANY($1)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "030974957f30c1fc16d1a6bed0ffc3dcd6d71b2c0029f7f7fa3ef3285e12a8f5" -} diff --git a/rust/cloud-storage/.sqlx/query-03126b7a70835aac508c3f236c9e5bcd98c0df2596f1d098c08cd4308583f307.json b/rust/cloud-storage/.sqlx/query-03126b7a70835aac508c3f236c9e5bcd98c0df2596f1d098c08cd4308583f307.json deleted file mode 100644 index ee80650f37..0000000000 --- a/rust/cloud-storage/.sqlx/query-03126b7a70835aac508c3f236c9e5bcd98c0df2596f1d098c08cd4308583f307.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM entity_access \n WHERE entity_id = $1 \n AND entity_type = $2 \n AND source_type = $3\n AND source_id != $4\n AND granted_from_project_id IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - { - "Custom": { - "name": "entity_access_source_type", - "kind": { - "Enum": [ - "channel", - "team", - "user" - ] - } - } - }, - "Text" - ] - }, - "nullable": [] - }, - "hash": "03126b7a70835aac508c3f236c9e5bcd98c0df2596f1d098c08cd4308583f307" -} diff --git a/rust/cloud-storage/.sqlx/query-0322d49329ea2e6d6bd515f2013a3bc08f9153d9fb263062a46a80cec5c151f0.json b/rust/cloud-storage/.sqlx/query-0322d49329ea2e6d6bd515f2013a3bc08f9153d9fb263062a46a80cec5c151f0.json deleted file mode 100644 index a446ea39b0..0000000000 --- a/rust/cloud-storage/.sqlx/query-0322d49329ea2e6d6bd515f2013a3bc08f9153d9fb263062a46a80cec5c151f0.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentPermission\" (\"documentId\", \"sharePermissionId\")\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "0322d49329ea2e6d6bd515f2013a3bc08f9153d9fb263062a46a80cec5c151f0" -} diff --git a/rust/cloud-storage/.sqlx/query-033759a1748c41359a8cf5204f457eed63182d21b432b58fd25b7524d1dc0092.json b/rust/cloud-storage/.sqlx/query-033759a1748c41359a8cf5204f457eed63182d21b432b58fd25b7524d1dc0092.json deleted file mode 100644 index a7919cb370..0000000000 --- a/rust/cloud-storage/.sqlx/query-033759a1748c41359a8cf5204f457eed63182d21b432b58fd25b7524d1dc0092.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as document_id,\n d.owner as owner,\n d.name as document_name,\n COALESCE(db.id, di.id) as \"document_version_id!\",\n d.\"fileType\" as \"file_type?\",\n d.\"createdAt\"::timestamptz as created_at,\n d.\"updatedAt\"::timestamptz as updated_at,\n d.\"projectId\" as \"project_id?\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n CASE \n WHEN dt.sub_type = 'task' \n AND ep_status.values->'value' ? $2\n THEN true \n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL \n END as \"is_completed\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status \n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id \n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $3\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.\"documentId\",\n i.\"createdAt\",\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON d.\"fileType\" IS DISTINCT FROM 'docx'\n WHERE d.\"projectId\" = $1 AND d.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "document_version_id!", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "file_type?", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "project_id?", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 9, - "name": "is_completed", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - null, - true, - null, - null, - true, - false, - null - ] - }, - "hash": "033759a1748c41359a8cf5204f457eed63182d21b432b58fd25b7524d1dc0092" -} diff --git a/rust/cloud-storage/.sqlx/query-036fca567f0d90c18fe528869a2e734700b1978cdf1a62bcefcb3a9bad3b6eb5.json b/rust/cloud-storage/.sqlx/query-036fca567f0d90c18fe528869a2e734700b1978cdf1a62bcefcb3a9bad3b6eb5.json deleted file mode 100644 index c3bae2d564..0000000000 --- a/rust/cloud-storage/.sqlx/query-036fca567f0d90c18fe528869a2e734700b1978cdf1a62bcefcb3a9bad3b6eb5.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE crm_companies\n SET updated_at = now(),\n first_interaction = CASE\n WHEN $4 THEN LEAST(first_interaction, $2)\n ELSE first_interaction\n END,\n last_interaction = GREATEST(last_interaction, $3)\n WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Timestamptz", - "Timestamptz", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "036fca567f0d90c18fe528869a2e734700b1978cdf1a62bcefcb3a9bad3b6eb5" -} diff --git a/rust/cloud-storage/.sqlx/query-038bbad2a1388db2e9d3da5f107ecc5418ff770838a4acfbd28bec8b78e16874.json b/rust/cloud-storage/.sqlx/query-038bbad2a1388db2e9d3da5f107ecc5418ff770838a4acfbd28bec8b78e16874.json deleted file mode 100644 index 4ca8943e4a..0000000000 --- a/rust/cloud-storage/.sqlx/query-038bbad2a1388db2e9d3da5f107ecc5418ff770838a4acfbd28bec8b78e16874.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentInstance\" (\"documentId\", \"sha\")\n VALUES ($1, $2)\n RETURNING id, sha, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - null, - null - ] - }, - "hash": "038bbad2a1388db2e9d3da5f107ecc5418ff770838a4acfbd28bec8b78e16874" -} diff --git a/rust/cloud-storage/.sqlx/query-0392a509a0896bd3acc01964a39a4477aeafb381e532657ccb7b11ad05b9038e.json b/rust/cloud-storage/.sqlx/query-0392a509a0896bd3acc01964a39a4477aeafb381e532657ccb7b11ad05b9038e.json deleted file mode 100644 index c99a6a2f83..0000000000 --- a/rust/cloud-storage/.sqlx/query-0392a509a0896bd3acc01964a39a4477aeafb381e532657ccb7b11ad05b9038e.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id\n FROM\n \"Document\" d\n WHERE\n d.id = ANY($1)\n AND d.\"fileType\" = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "0392a509a0896bd3acc01964a39a4477aeafb381e532657ccb7b11ad05b9038e" -} diff --git a/rust/cloud-storage/.sqlx/query-039dd65419a635365c37d46699bf115e771ceae4526e0a13928152e2bb1bb9b3.json b/rust/cloud-storage/.sqlx/query-039dd65419a635365c37d46699bf115e771ceae4526e0a13928152e2bb1bb9b3.json deleted file mode 100644 index 887d1272a9..0000000000 --- a/rust/cloud-storage/.sqlx/query-039dd65419a635365c37d46699bf115e771ceae4526e0a13928152e2bb1bb9b3.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n t.id as thread_id,\n -- Return timestamps from the chosen messages directly\n COALESCE(earliest_msg.sent_at, earliest_msg.updated_at) as \"first_message_ts!\",\n COALESCE(latest_msg.sent_at, latest_msg.updated_at) as \"last_message_ts!\",\n -- Last time user viewed this thread\n uh.updated_at as \"viewed_at?\",\n latest_msg.snippet,\n earliest_msg.subject as \"subject?\",\n l.macro_id,\n t.link_id,\n latest_msg.sender as sender,\n latest_msg.pretty_sender as \"pretty_sender!\",\n latest_msg.trash_label as trash_label,\n (\n SELECT m_latest.is_draft\n FROM email_messages m_latest\n WHERE m_latest.thread_id = t.id\n AND m_latest.link_id = t.link_id\n ORDER BY m_latest.internal_date_ts DESC NULLS LAST\n LIMIT 1\n ) AS \"is_draft!\",\n t.is_read,\n t.inbox_visible,\n (\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m_imp.thread_id = t.id\n AND l.link_id = t.link_id\n AND l.name = 'IMPORTANT'\n )\n ) AS \"is_important!\"\n FROM email_threads t\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n LEFT JOIN email_links l ON l.id = t.link_id\n -- LATERAL join for LATEST message\n -- JOIN (Inner) acts as a filter to ensure we only return threads that actually have messages\n JOIN LATERAL (\n SELECT\n m2.snippet,\n m2.sent_at,\n m2.updated_at,\n c.email_address as sender,\n COALESCE(c.name, c.email_address) as pretty_sender,\n EXISTS(\n SELECT 1 \n FROM email_message_labels eml \n JOIN email_labels el ON el.id = eml.label_id \n WHERE eml.message_id = m2.id \n AND el.provider_label_id = 'TRASH'\n ) as trash_label\n FROM email_messages m2\n LEFT JOIN email_contacts c ON c.id = m2.from_contact_id\n WHERE m2.thread_id = t.id\n AND m2.link_id = t.link_id\n ORDER BY\n (CASE WHEN m2.is_draft = false AND m2.sent_at IS NOT NULL THEN 0 ELSE 1 END) ASC,\n COALESCE(m2.sent_at, m2.updated_at) DESC NULLS LAST\n LIMIT 1\n ) latest_msg ON true\n -- LATERAL join for EARLIEST message\n LEFT JOIN LATERAL (\n SELECT\n m3.subject,\n m3.sent_at,\n m3.updated_at\n FROM email_messages m3\n WHERE m3.thread_id = t.id\n AND m3.link_id = t.link_id\n ORDER BY\n -- 1. Priority: Non-drafts with valid sent_at come first (0), everything else is fallback (1)\n (CASE WHEN m3.is_draft = false AND m3.sent_at IS NOT NULL THEN 0 ELSE 1 END) ASC,\n -- 2. Sort by time (Oldest first)\n COALESCE(m3.sent_at, m3.updated_at) ASC NULLS LAST\n LIMIT 1\n ) earliest_msg ON true\n WHERE t.id = ANY($2)\n AND t.link_id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "first_message_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 2, - "name": "last_message_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "viewed_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "subject?", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 8, - "name": "sender", - "type_info": "Varchar" - }, - { - "ordinal": 9, - "name": "pretty_sender!", - "type_info": "Varchar" - }, - { - "ordinal": 10, - "name": "trash_label", - "type_info": "Bool" - }, - { - "ordinal": 11, - "name": "is_draft!", - "type_info": "Bool" - }, - { - "ordinal": 12, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 13, - "name": "inbox_visible", - "type_info": "Bool" - }, - { - "ordinal": 14, - "name": "is_important!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "UuidArray" - ] - }, - "nullable": [ - false, - null, - null, - false, - true, - true, - false, - false, - false, - null, - null, - null, - false, - false, - null - ] - }, - "hash": "039dd65419a635365c37d46699bf115e771ceae4526e0a13928152e2bb1bb9b3" -} diff --git a/rust/cloud-storage/.sqlx/query-03a70946dc66c884a7bd84ae9439cb208449ea7048e319ea8475752fe96d650b.json b/rust/cloud-storage/.sqlx/query-03a70946dc66c884a7bd84ae9439cb208449ea7048e319ea8475752fe96d650b.json deleted file mode 100644 index aeb089b0c1..0000000000 --- a/rust/cloud-storage/.sqlx/query-03a70946dc66c884a7bd84ae9439cb208449ea7048e319ea8475752fe96d650b.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_message_labels\n WHERE message_id = $1\n AND label_id IN (\n SELECT id FROM email_labels\n WHERE link_id = $2 AND provider_label_id = ANY($3)\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "03a70946dc66c884a7bd84ae9439cb208449ea7048e319ea8475752fe96d650b" -} diff --git a/rust/cloud-storage/.sqlx/query-046aa54b375545002a615891a34147d0d4f2c1e409bf1aa2263b84c88e2deda9.json b/rust/cloud-storage/.sqlx/query-046aa54b375545002a615891a34147d0d4f2c1e409bf1aa2263b84c88e2deda9.json deleted file mode 100644 index 33eecf6bc8..0000000000 --- a/rust/cloud-storage/.sqlx/query-046aa54b375545002a615891a34147d0d4f2c1e409bf1aa2263b84c88e2deda9.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_messages (id, channel_id, sender_id, content, thread_id)\n VALUES ($1, $2, $3, $4, $5)\n RETURNING\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "edited_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text", - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - null, - null - ] - }, - "hash": "046aa54b375545002a615891a34147d0d4f2c1e409bf1aa2263b84c88e2deda9" -} diff --git a/rust/cloud-storage/.sqlx/query-04d60026064c2948d7a528352bb3bb086ba5a39c1dc656aec25f2dd2a4eb249e.json b/rust/cloud-storage/.sqlx/query-04d60026064c2948d7a528352bb3bb086ba5a39c1dc656aec25f2dd2a4eb249e.json deleted file mode 100644 index 97f5b33bb1..0000000000 --- a/rust/cloud-storage/.sqlx/query-04d60026064c2948d7a528352bb3bb086ba5a39c1dc656aec25f2dd2a4eb249e.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT task_id\n FROM github_pr_tasks\n WHERE github_key = $1\n AND task_id = ANY($2::text[])\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "task_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "04d60026064c2948d7a528352bb3bb086ba5a39c1dc656aec25f2dd2a4eb249e" -} diff --git a/rust/cloud-storage/.sqlx/query-056dbddac4957596098ed8444564f7eb4ee08f375c95d9e40bd879d1439a8342.json b/rust/cloud-storage/.sqlx/query-056dbddac4957596098ed8444564f7eb4ee08f375c95d9e40bd879d1439a8342.json deleted file mode 100644 index e10b8729ca..0000000000 --- a/rust/cloud-storage/.sqlx/query-056dbddac4957596098ed8444564f7eb4ee08f375c95d9e40bd879d1439a8342.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT c.owner, t.\"documentId\" as document_id, d.name as document_name, d.\"fileType\" as file_type, dt.sub_type as \"sub_type?: DocumentSubType\", d.owner as document_owner\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n JOIN \"Document\" d ON t.\"documentId\" = d.id\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n WHERE c.id = $1 and c.\"deletedAt\" IS NULL AND t.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "document_owner", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - false - ] - }, - "hash": "056dbddac4957596098ed8444564f7eb4ee08f375c95d9e40bd879d1439a8342" -} diff --git a/rust/cloud-storage/.sqlx/query-05c2cf10e578df97df70d5b372d6bd4d5a2baf8313799b21496ce399d3612b1b.json b/rust/cloud-storage/.sqlx/query-05c2cf10e578df97df70d5b372d6bd4d5a2baf8313799b21496ce399d3612b1b.json deleted file mode 100644 index 50082306f7..0000000000 --- a/rust/cloud-storage/.sqlx/query-05c2cf10e578df97df70d5b372d6bd4d5a2baf8313799b21496ce399d3612b1b.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM mcp_servers\n WHERE user_id = $1 AND url = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "05c2cf10e578df97df70d5b372d6bd4d5a2baf8313799b21496ce399d3612b1b" -} diff --git a/rust/cloud-storage/.sqlx/query-06072374ba47adb6156d2a4d0160ab3ab9a686e9617ce4aea0e768cdc3c78f86.json b/rust/cloud-storage/.sqlx/query-06072374ba47adb6156d2a4d0160ab3ab9a686e9617ce4aea0e768cdc3c78f86.json deleted file mode 100644 index 5d8ba7d6e7..0000000000 --- a/rust/cloud-storage/.sqlx/query-06072374ba47adb6156d2a4d0160ab3ab9a686e9617ce4aea0e768cdc3c78f86.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n a.id as \"id!: Uuid\",\n a.user_id as \"user_id!: String\",\n a.channel_id as \"channel_id!: Uuid\",\n a.viewed_at as \"viewed_at?: DateTime\",\n a.interacted_at as \"interacted_at?: DateTime\",\n a.created_at as \"created_at!: DateTime\",\n a.updated_at as \"updated_at!: DateTime\"\n FROM comms_activity a\n WHERE a.user_id = $1\n ORDER BY\n GREATEST(\n COALESCE(a.viewed_at, '1970-01-01'::timestamp),\n COALESCE(a.interacted_at, '1970-01-01'::timestamp)\n ) DESC,\n a.created_at DESC\n LIMIT 100\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id!: String", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "channel_id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "viewed_at?: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "interacted_at?: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 5, - "name": "created_at!: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 6, - "name": "updated_at!: DateTime", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - false, - false - ] - }, - "hash": "06072374ba47adb6156d2a4d0160ab3ab9a686e9617ce4aea0e768cdc3c78f86" -} diff --git a/rust/cloud-storage/.sqlx/query-060ac46a89df4da317917f28ca8d95dc07b98f4a64effa9b76d58089fb0728b1.json b/rust/cloud-storage/.sqlx/query-060ac46a89df4da317917f28ca8d95dc07b98f4a64effa9b76d58089fb0728b1.json deleted file mode 100644 index d763e29e78..0000000000 --- a/rust/cloud-storage/.sqlx/query-060ac46a89df4da317917f28ca8d95dc07b98f4a64effa9b76d58089fb0728b1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.hidden AS \"hidden!\",\n c.team_id AS \"team_id!\",\n tu.team_role AS \"role!: TeamRole\"\n FROM crm_companies c\n JOIN team_user tu\n ON tu.team_id = c.team_id\n AND tu.user_id = $1\n WHERE c.id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "hidden!", - "type_info": "Bool" - }, - { - "ordinal": 1, - "name": "team_id!", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "role!: TeamRole", - "type_info": { - "Custom": { - "name": "team_role", - "kind": { - "Enum": [ - "member", - "admin", - "owner" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "060ac46a89df4da317917f28ca8d95dc07b98f4a64effa9b76d58089fb0728b1" -} diff --git a/rust/cloud-storage/.sqlx/query-062a45b8e7d65006120b1369981c4e04e513e99855ca9dab076768d43e189a80.json b/rust/cloud-storage/.sqlx/query-062a45b8e7d65006120b1369981c4e04e513e99855ca9dab076768d43e189a80.json deleted file mode 100644 index 22a0249ea8..0000000000 --- a/rust/cloud-storage/.sqlx/query-062a45b8e7d65006120b1369981c4e04e513e99855ca9dab076768d43e189a80.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChatMessage\" (\"id\", \"chatId\", \"content\", \"role\", \"model\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING id;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Jsonb", - "Text", - "Text", - "Timestamp", - "Timestamp" - ] - }, - "nullable": [ - false - ] - }, - "hash": "062a45b8e7d65006120b1369981c4e04e513e99855ca9dab076768d43e189a80" -} diff --git a/rust/cloud-storage/.sqlx/query-064772b7d3d47e82f044f6efd03f52f8cc0083e99d30810753539a5df539d94d.json b/rust/cloud-storage/.sqlx/query-064772b7d3d47e82f044f6efd03f52f8cc0083e99d30810753539a5df539d94d.json deleted file mode 100644 index 0f25e57f4c..0000000000 --- a/rust/cloud-storage/.sqlx/query-064772b7d3d47e82f044f6efd03f52f8cc0083e99d30810753539a5df539d94d.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Document\" (owner, name, \"fileType\", \"projectId\", \"createdAt\", \"updatedAt\") \n VALUES ($1, $2, $3, $4, $5, $5)\n RETURNING id;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Text", - "Timestamp" - ] - }, - "nullable": [ - false - ] - }, - "hash": "064772b7d3d47e82f044f6efd03f52f8cc0083e99d30810753539a5df539d94d" -} diff --git a/rust/cloud-storage/.sqlx/query-06a72bfcfbcc5f5bbed6cd093436309607f9375d2ba7b151e9dc1a8493f88e44.json b/rust/cloud-storage/.sqlx/query-06a72bfcfbcc5f5bbed6cd093436309607f9375d2ba7b151e9dc1a8493f88e44.json deleted file mode 100644 index 4c5afc274a..0000000000 --- a/rust/cloud-storage/.sqlx/query-06a72bfcfbcc5f5bbed6cd093436309607f9375d2ba7b151e9dc1a8493f88e44.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM notification_user_device_registration\n WHERE device_endpoint = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "06a72bfcfbcc5f5bbed6cd093436309607f9375d2ba7b151e9dc1a8493f88e44" -} diff --git a/rust/cloud-storage/.sqlx/query-0710b66e8a6608c340848ad6295fc012f06f1c298d1b287eebd7be0b89766702.json b/rust/cloud-storage/.sqlx/query-0710b66e8a6608c340848ad6295fc012f06f1c298d1b287eebd7be0b89766702.json deleted file mode 100644 index 40ba2008c6..0000000000 --- a/rust/cloud-storage/.sqlx/query-0710b66e8a6608c340848ad6295fc012f06f1c298d1b287eebd7be0b89766702.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM comms_channel_participants\n WHERE channel_id = $1 AND user_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "0710b66e8a6608c340848ad6295fc012f06f1c298d1b287eebd7be0b89766702" -} diff --git a/rust/cloud-storage/.sqlx/query-07436aee1f392392f500a116348f388ce48e6b8c596f420af1c837cf9572dcdb.json b/rust/cloud-storage/.sqlx/query-07436aee1f392392f500a116348f388ce48e6b8c596f420af1c837cf9572dcdb.json deleted file mode 100644 index 80fe803c31..0000000000 --- a/rust/cloud-storage/.sqlx/query-07436aee1f392392f500a116348f388ce48e6b8c596f420af1c837cf9572dcdb.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n select name from \"Project\" where id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "07436aee1f392392f500a116348f388ce48e6b8c596f420af1c837cf9572dcdb" -} diff --git a/rust/cloud-storage/.sqlx/query-0744566104aa67d5e88c96c3f1e52eb15603cfb48029d43dc507b9012088517b.json b/rust/cloud-storage/.sqlx/query-0744566104aa67d5e88c96c3f1e52eb15603cfb48029d43dc507b9012088517b.json deleted file mode 100644 index acdd919ddd..0000000000 --- a/rust/cloud-storage/.sqlx/query-0744566104aa67d5e88c96c3f1e52eb15603cfb48029d43dc507b9012088517b.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT paying\n FROM team\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "paying", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "0744566104aa67d5e88c96c3f1e52eb15603cfb48029d43dc507b9012088517b" -} diff --git a/rust/cloud-storage/.sqlx/query-077c58347457c72a7f69ff716d27e07c1a4f41d65b619f6f949f18344b78469e.json b/rust/cloud-storage/.sqlx/query-077c58347457c72a7f69ff716d27e07c1a4f41d65b619f6f949f18344b78469e.json deleted file mode 100644 index 7b6dd846ac..0000000000 --- a/rust/cloud-storage/.sqlx/query-077c58347457c72a7f69ff716d27e07c1a4f41d65b619f6f949f18344b78469e.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentBom\" (\"documentId\")\n VALUES ($1)\n RETURNING id;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "077c58347457c72a7f69ff716d27e07c1a4f41d65b619f6f949f18344b78469e" -} diff --git a/rust/cloud-storage/.sqlx/query-07831ac2c19539d4422c940e56add36cfd36e05ad43cfa0cea3654dd0d5ca08a.json b/rust/cloud-storage/.sqlx/query-07831ac2c19539d4422c940e56add36cfd36e05ad43cfa0cea3654dd0d5ca08a.json deleted file mode 100644 index 46a9e1a12d..0000000000 --- a/rust/cloud-storage/.sqlx/query-07831ac2c19539d4422c940e56add36cfd36e05ad43cfa0cea3654dd0d5ca08a.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Chat\"\n WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "07831ac2c19539d4422c940e56add36cfd36e05ad43cfa0cea3654dd0d5ca08a" -} diff --git a/rust/cloud-storage/.sqlx/query-07c340da8c4771fa651aee608e8b7d15d9f0a638566899c59aae12491ed5b490.json b/rust/cloud-storage/.sqlx/query-07c340da8c4771fa651aee608e8b7d15d9f0a638566899c59aae12491ed5b490.json deleted file mode 100644 index 4d5b220144..0000000000 --- a/rust/cloud-storage/.sqlx/query-07c340da8c4771fa651aee608e8b7d15d9f0a638566899c59aae12491ed5b490.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Comment\" (\"threadId\", \"owner\", \"sender\", \"text\", \"createdAt\", \"updatedAt\", \"order\")\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Int8", - "Text", - "Text", - "Text", - "Timestamp", - "Timestamp", - "Int4" - ] - }, - "nullable": [ - false - ] - }, - "hash": "07c340da8c4771fa651aee608e8b7d15d9f0a638566899c59aae12491ed5b490" -} diff --git a/rust/cloud-storage/.sqlx/query-07feb08ae2f8494b1a9043b878ac356af9e557d3b3d67a1a9cf2f07d292883c2.json b/rust/cloud-storage/.sqlx/query-07feb08ae2f8494b1a9043b878ac356af9e557d3b3d67a1a9cf2f07d292883c2.json deleted file mode 100644 index d7baab4a42..0000000000 --- a/rust/cloud-storage/.sqlx/query-07feb08ae2f8494b1a9043b878ac356af9e557d3b3d67a1a9cf2f07d292883c2.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH ordered AS (\n SELECT\n segment_id,\n speaker_id,\n diarized_speaker_id,\n voice_id,\n content,\n started_at,\n ended_at,\n sequence_num,\n LAG(speaker_id) OVER w AS prev_speaker_id,\n LAG(diarized_speaker_id) OVER w AS prev_diarized_speaker_id,\n LAG(voice_id) OVER w AS prev_voice_id,\n LAG(ended_at) OVER w AS prev_ended_at\n FROM call_transcripts\n WHERE call_id = $2\n WINDOW w AS (ORDER BY sequence_num)\n ),\n marked AS (\n SELECT\n segment_id,\n speaker_id,\n diarized_speaker_id,\n voice_id,\n content,\n started_at,\n ended_at,\n sequence_num,\n CASE\n WHEN prev_speaker_id IS NOT NULL\n AND speaker_id = prev_speaker_id\n AND diarized_speaker_id IS NOT DISTINCT FROM prev_diarized_speaker_id\n AND voice_id IS NOT DISTINCT FROM prev_voice_id\n AND prev_ended_at IS NOT NULL\n AND started_at - prev_ended_at <= INTERVAL '5 seconds'\n THEN 0\n ELSE 1\n END AS is_new_group\n FROM ordered\n ),\n grouped AS (\n SELECT\n segment_id,\n speaker_id,\n diarized_speaker_id,\n voice_id,\n content,\n started_at,\n ended_at,\n sequence_num,\n SUM(is_new_group) OVER (ORDER BY sequence_num) AS group_id\n FROM marked\n )\n INSERT INTO call_record_transcripts (call_record_id, segment_id, speaker_id, diarized_speaker_id, voice_id, content, started_at, ended_at, sequence_num)\n SELECT\n $1,\n MIN(segment_id),\n MIN(speaker_id),\n MIN(diarized_speaker_id),\n -- voice_id is UUID (no MIN); all rows in a group share the same value via IS NOT DISTINCT FROM.\n (array_agg(voice_id ORDER BY sequence_num))[1],\n STRING_AGG(content, ' ' ORDER BY sequence_num),\n MIN(started_at),\n MAX(ended_at),\n MIN(sequence_num)\n FROM grouped\n GROUP BY group_id\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "07feb08ae2f8494b1a9043b878ac356af9e557d3b3d67a1a9cf2f07d292883c2" -} diff --git a/rust/cloud-storage/.sqlx/query-081e71f5dae75d12f512d95febfffe28cdc4f8cc83542bf69b8c502b4892a6da.json b/rust/cloud-storage/.sqlx/query-081e71f5dae75d12f512d95febfffe28cdc4f8cc83542bf69b8c502b4892a6da.json deleted file mode 100644 index df417ff277..0000000000 --- a/rust/cloud-storage/.sqlx/query-081e71f5dae75d12f512d95febfffe28cdc4f8cc83542bf69b8c502b4892a6da.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id,\n m.provider_id,\n m.global_id,\n m.link_id,\n m.thread_id,\n m.provider_thread_id,\n m.replying_to_id,\n m.provider_history_id,\n m.internal_date_ts,\n m.snippet,\n m.size_estimate,\n m.subject,\n m.from_name,\n m.from_contact_id,\n m.sent_at,\n m.has_attachments,\n m.is_read,\n m.is_starred,\n m.is_sent,\n m.is_draft,\n NULL::TEXT as body_text,\n NULL::TEXT as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb,\n m.created_at,\n m.updated_at\n FROM\n email_messages m\n WHERE\n m.thread_id = $1 AND m.link_id = $2\n ORDER BY\n m.internal_date_ts DESC NULLS LAST\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 21, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 22, - "name": "body_macro", - "type_info": "Text" - }, - { - "ordinal": 23, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 24, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 25, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - null, - null, - null, - true, - false, - false - ] - }, - "hash": "081e71f5dae75d12f512d95febfffe28cdc4f8cc83542bf69b8c502b4892a6da" -} diff --git a/rust/cloud-storage/.sqlx/query-0876e7623feb7c8f77b58716cbe3e43456fefad97ac0ba38daf2e5e6880bb51b.json b/rust/cloud-storage/.sqlx/query-0876e7623feb7c8f77b58716cbe3e43456fefad97ac0ba38daf2e5e6880bb51b.json deleted file mode 100644 index 10cdcda76b..0000000000 --- a/rust/cloud-storage/.sqlx/query-0876e7623feb7c8f77b58716cbe3e43456fefad97ac0ba38daf2e5e6880bb51b.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE \"Project\" SET \"parentId\"=$2 WHERE \"id\"=$1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "0876e7623feb7c8f77b58716cbe3e43456fefad97ac0ba38daf2e5e6880bb51b" -} diff --git a/rust/cloud-storage/.sqlx/query-08896a23d1261be751853b5cf7553cbe0e8500e8f47233914c020d23d5a1b1b6.json b/rust/cloud-storage/.sqlx/query-08896a23d1261be751853b5cf7553cbe0e8500e8f47233914c020d23d5a1b1b6.json deleted file mode 100644 index a5f92f9ded..0000000000 --- a/rust/cloud-storage/.sqlx/query-08896a23d1261be751853b5cf7553cbe0e8500e8f47233914c020d23d5a1b1b6.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"PdfHighlightAnchor\" (\n \"uuid\", \"documentId\", \"owner\", \"threadId\", \"page\", \"red\", \"green\", \"blue\", \n \"alpha\", \"type\", \"text\", \"pageViewportWidth\", \"pageViewportHeight\"\n ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)\n RETURNING uuid\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "uuid", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Int8", - "Int4", - "Int4", - "Int4", - "Int4", - "Float8", - "Int4", - "Text", - "Float8", - "Float8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "08896a23d1261be751853b5cf7553cbe0e8500e8f47233914c020d23d5a1b1b6" -} diff --git a/rust/cloud-storage/.sqlx/query-0893292d05dc339bc516ddc4e2e27ee0f730dd38e1d82bd2a049d38cb7abb275.json b/rust/cloud-storage/.sqlx/query-0893292d05dc339bc516ddc4e2e27ee0f730dd38e1d82bd2a049d38cb7abb275.json deleted file mode 100644 index 34779cb42e..0000000000 --- a/rust/cloud-storage/.sqlx/query-0893292d05dc339bc516ddc4e2e27ee0f730dd38e1d82bd2a049d38cb7abb275.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id,\n d.name,\n d.owner,\n d.\"fileType\" as \"file_type\",\n d.\"projectId\" as \"project_id\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\"\n FROM\n \"Document\" d\n WHERE\n d.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at!", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - null, - null - ] - }, - "hash": "0893292d05dc339bc516ddc4e2e27ee0f730dd38e1d82bd2a049d38cb7abb275" -} diff --git a/rust/cloud-storage/.sqlx/query-08ff113e378c34c5c4cd00bd47227bb363d4c1d98a2b589c260b9c77fcb94492.json b/rust/cloud-storage/.sqlx/query-08ff113e378c34c5c4cd00bd47227bb363d4c1d98a2b589c260b9c77fcb94492.json deleted file mode 100644 index ce9bf67d23..0000000000 --- a/rust/cloud-storage/.sqlx/query-08ff113e378c34c5c4cd00bd47227bb363d4c1d98a2b589c260b9c77fcb94492.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE user_notification\n SET sent = true\n FROM notification n\n WHERE n.id = user_notification.notification_id\n AND n.event_item_id = ANY($2)\n AND user_notification.user_id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "08ff113e378c34c5c4cd00bd47227bb363d4c1d98a2b589c260b9c77fcb94492" -} diff --git a/rust/cloud-storage/.sqlx/query-0905fbb6644dc89da3bbb8f5119b1d4e83711bdb0670ea238e72097750435056.json b/rust/cloud-storage/.sqlx/query-0905fbb6644dc89da3bbb8f5119b1d4e83711bdb0670ea238e72097750435056.json deleted file mode 100644 index 8bc9baf09d..0000000000 --- a/rust/cloud-storage/.sqlx/query-0905fbb6644dc89da3bbb8f5119b1d4e83711bdb0670ea238e72097750435056.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id\n FROM notification_email_sent\n WHERE user_id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "0905fbb6644dc89da3bbb8f5119b1d4e83711bdb0670ea238e72097750435056" -} diff --git a/rust/cloud-storage/.sqlx/query-0953e38705bd80cf1f053c5287847c2a92639fec6e728a49b1f2a41906adb633.json b/rust/cloud-storage/.sqlx/query-0953e38705bd80cf1f053c5287847c2a92639fec6e728a49b1f2a41906adb633.json deleted file mode 100644 index ada738a350..0000000000 --- a/rust/cloud-storage/.sqlx/query-0953e38705bd80cf1f053c5287847c2a92639fec6e728a49b1f2a41906adb633.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Thread\" (\"owner\", \"documentId\", \"createdAt\", \"updatedAt\", \"resolved\")\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Timestamp", - "Timestamp", - "Bool" - ] - }, - "nullable": [ - false - ] - }, - "hash": "0953e38705bd80cf1f053c5287847c2a92639fec6e728a49b1f2a41906adb633" -} diff --git a/rust/cloud-storage/.sqlx/query-096cff82c1f50ae5f4a5699ba9e1f35280fefe178bfc01701fc09b8962def475.json b/rust/cloud-storage/.sqlx/query-096cff82c1f50ae5f4a5699ba9e1f35280fefe178bfc01701fc09b8962def475.json deleted file mode 100644 index e4fd6f14ab..0000000000 --- a/rust/cloud-storage/.sqlx/query-096cff82c1f50ae5f4a5699ba9e1f35280fefe178bfc01701fc09b8962def475.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(id) AS \"count!\"\n FROM comms_messages\n WHERE channel_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count!", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "096cff82c1f50ae5f4a5699ba9e1f35280fefe178bfc01701fc09b8962def475" -} diff --git a/rust/cloud-storage/.sqlx/query-099d255a2a214f5c4ed3ee9d5d8389dfd3ad004eb3572fb7d724b407bdb2c2e3.json b/rust/cloud-storage/.sqlx/query-099d255a2a214f5c4ed3ee9d5d8389dfd3ad004eb3572fb7d724b407bdb2c2e3.json deleted file mode 100644 index 5c08a070c2..0000000000 --- a/rust/cloud-storage/.sqlx/query-099d255a2a214f5c4ed3ee9d5d8389dfd3ad004eb3572fb7d724b407bdb2c2e3.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS(\n SELECT 1\n FROM email_messages\n WHERE id = $1 AND link_id = $2 AND is_draft = true\n ) as \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "099d255a2a214f5c4ed3ee9d5d8389dfd3ad004eb3572fb7d724b407bdb2c2e3" -} diff --git a/rust/cloud-storage/.sqlx/query-099d5a355490ebd8fe221bc0526af0a38305c090cdb791212b5968c24ae5d5f4.json b/rust/cloud-storage/.sqlx/query-099d5a355490ebd8fe221bc0526af0a38305c090cdb791212b5968c24ae5d5f4.json deleted file mode 100644 index 6f547edaa0..0000000000 --- a/rust/cloud-storage/.sqlx/query-099d5a355490ebd8fe221bc0526af0a38305c090cdb791212b5968c24ae5d5f4.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE calls\n SET recording_started_at = $2\n WHERE egress_id = $1\n AND recording_started_at IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Timestamptz" - ] - }, - "nullable": [] - }, - "hash": "099d5a355490ebd8fe221bc0526af0a38305c090cdb791212b5968c24ae5d5f4" -} diff --git a/rust/cloud-storage/.sqlx/query-09dd0c12a8b30ba045caacad3927e6d7edfba61d784244a01f9d233d9b753dcb.json b/rust/cloud-storage/.sqlx/query-09dd0c12a8b30ba045caacad3927e6d7edfba61d784244a01f9d233d9b753dcb.json deleted file mode 100644 index 6e8e4fde00..0000000000 --- a/rust/cloud-storage/.sqlx/query-09dd0c12a8b30ba045caacad3927e6d7edfba61d784244a01f9d233d9b753dcb.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n rop.\"permissionId\" as permission_id\n FROM \"User\" u\n JOIN \"RolesOnUsers\" ru ON ru.\"userId\" = u.id\n JOIN \"RolesOnPermissions\" rop ON rop.\"roleId\" = ru.\"roleId\"\n WHERE u.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "permission_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "09dd0c12a8b30ba045caacad3927e6d7edfba61d784244a01f9d233d9b753dcb" -} diff --git a/rust/cloud-storage/.sqlx/query-09f6737b4e22a31ee50c69992a0f16140eb27339ca118ef7a6f063e113d78361.json b/rust/cloud-storage/.sqlx/query-09f6737b4e22a31ee50c69992a0f16140eb27339ca118ef7a6f063e113d78361.json deleted file mode 100644 index 097d5e8c23..0000000000 --- a/rust/cloud-storage/.sqlx/query-09f6737b4e22a31ee50c69992a0f16140eb27339ca118ef7a6f063e113d78361.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"RolesOnUsers\" WHERE \"userId\" = $1 AND \"roleId\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "09f6737b4e22a31ee50c69992a0f16140eb27339ca118ef7a6f063e113d78361" -} diff --git a/rust/cloud-storage/.sqlx/query-0a1f3835d8dd57e120b0378134d98858f2ba5ed410765ffca1b03abb05c7b098.json b/rust/cloud-storage/.sqlx/query-0a1f3835d8dd57e120b0378134d98858f2ba5ed410765ffca1b03abb05c7b098.json deleted file mode 100644 index a13e3d6b24..0000000000 --- a/rust/cloud-storage/.sqlx/query-0a1f3835d8dd57e120b0378134d98858f2ba5ed410765ffca1b03abb05c7b098.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM\n in_progress_user_link\n WHERE\n id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "0a1f3835d8dd57e120b0378134d98858f2ba5ed410765ffca1b03abb05c7b098" -} diff --git a/rust/cloud-storage/.sqlx/query-0a4d1f2c9890cc537fde22835fc5298215a79e06fd983ac9a13f52836719e8fc.json b/rust/cloud-storage/.sqlx/query-0a4d1f2c9890cc537fde22835fc5298215a79e06fd983ac9a13f52836719e8fc.json deleted file mode 100644 index 9efa7fb5d4..0000000000 --- a/rust/cloud-storage/.sqlx/query-0a4d1f2c9890cc537fde22835fc5298215a79e06fd983ac9a13f52836719e8fc.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentText\" (\"documentId\", \"content\", \"tokenCount\")\n SELECT $1, content, \"tokenCount\" FROM \"DocumentText\"\n WHERE \"documentId\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "0a4d1f2c9890cc537fde22835fc5298215a79e06fd983ac9a13f52836719e8fc" -} diff --git a/rust/cloud-storage/.sqlx/query-0a4ef2f94648e1a6de6dad96e942a9b987f96526f5865fcc9c43f6179567a891.json b/rust/cloud-storage/.sqlx/query-0a4ef2f94648e1a6de6dad96e942a9b987f96526f5865fcc9c43f6179567a891.json deleted file mode 100644 index cbaea857b8..0000000000 --- a/rust/cloud-storage/.sqlx/query-0a4ef2f94648e1a6de6dad96e942a9b987f96526f5865fcc9c43f6179567a891.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n ct.id,\n ct.company_id,\n ct.email,\n ct.name,\n ct.hidden,\n ct.first_interaction,\n ct.last_interaction,\n ct.created_at,\n ct.updated_at\n FROM crm_contacts ct\n JOIN crm_companies co ON co.id = ct.company_id\n WHERE ct.id = $1\n AND co.team_id = $2\n AND ($3 OR (ct.hidden = FALSE AND co.hidden = FALSE))\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "company_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "email", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "hidden", - "type_info": "Bool" - }, - { - "ordinal": 5, - "name": "first_interaction", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "last_interaction", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Bool" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - false - ] - }, - "hash": "0a4ef2f94648e1a6de6dad96e942a9b987f96526f5865fcc9c43f6179567a891" -} diff --git a/rust/cloud-storage/.sqlx/query-0a5d8edd85634f5ecdc0a97f86e470a4e91ef06ee2baf734cacc500df5f9cd19.json b/rust/cloud-storage/.sqlx/query-0a5d8edd85634f5ecdc0a97f86e470a4e91ef06ee2baf734cacc500df5f9cd19.json deleted file mode 100644 index 7959c797e7..0000000000 --- a/rust/cloud-storage/.sqlx/query-0a5d8edd85634f5ecdc0a97f86e470a4e91ef06ee2baf734cacc500df5f9cd19.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT \"id\" as user_id, \"organizationId\" as \"organization_id?\" FROM \"User\" WHERE \"email\" = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "organization_id?", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "0a5d8edd85634f5ecdc0a97f86e470a4e91ef06ee2baf734cacc500df5f9cd19" -} diff --git a/rust/cloud-storage/.sqlx/query-0a98076ae0ee8aa572e7a73b97a4c7fb8a88979a966df92c698b295b8e3e28e0.json b/rust/cloud-storage/.sqlx/query-0a98076ae0ee8aa572e7a73b97a4c7fb8a88979a966df92c698b295b8e3e28e0.json deleted file mode 100644 index af279318b7..0000000000 --- a/rust/cloud-storage/.sqlx/query-0a98076ae0ee8aa572e7a73b97a4c7fb8a88979a966df92c698b295b8e3e28e0.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id as chat_id,\n c.name as chat_name,\n c.\"userId\" as owner,\n c.\"updatedAt\"::timestamptz as \"updated_at\"\n FROM\n \"Chat\" c\n WHERE\n c.\"id\" = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "chat_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "chat_name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - false, - false, - null - ] - }, - "hash": "0a98076ae0ee8aa572e7a73b97a4c7fb8a88979a966df92c698b295b8e3e28e0" -} diff --git a/rust/cloud-storage/.sqlx/query-0af2bfac1a41e4dbd3c7956d306ffab02e9aee53b37e07531426a068007403ec.json b/rust/cloud-storage/.sqlx/query-0af2bfac1a41e4dbd3c7956d306ffab02e9aee53b37e07531426a068007403ec.json deleted file mode 100644 index a247c24f9c..0000000000 --- a/rust/cloud-storage/.sqlx/query-0af2bfac1a41e4dbd3c7956d306ffab02e9aee53b37e07531426a068007403ec.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT l.macro_id\n FROM email_threads t\n JOIN email_links l ON t.link_id = l.id\n WHERE t.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "0af2bfac1a41e4dbd3c7956d306ffab02e9aee53b37e07531426a068007403ec" -} diff --git a/rust/cloud-storage/.sqlx/query-0b0ee8515cb079ef1cedbb5d8f254fef2bdc00de80faccc661bc89ffbabc7eb4.json b/rust/cloud-storage/.sqlx/query-0b0ee8515cb079ef1cedbb5d8f254fef2bdc00de80faccc661bc89ffbabc7eb4.json deleted file mode 100644 index 05db2fa7d3..0000000000 --- a/rust/cloud-storage/.sqlx/query-0b0ee8515cb079ef1cedbb5d8f254fef2bdc00de80faccc661bc89ffbabc7eb4.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.provider_history_id,\n m.replying_to_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n m.body_text as body_text,\n m.body_html_sanitized as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n JOIN email_links l ON m.link_id = l.id\n WHERE m.id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 21, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 22, - "name": "body_macro", - "type_info": "Text" - }, - { - "ordinal": 23, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 24, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 25, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - true, - true, - null, - true, - false, - false - ] - }, - "hash": "0b0ee8515cb079ef1cedbb5d8f254fef2bdc00de80faccc661bc89ffbabc7eb4" -} diff --git a/rust/cloud-storage/.sqlx/query-0b25861527e4ecd715a759799e7dc2d43865571925e95582689df12c3b02322a.json b/rust/cloud-storage/.sqlx/query-0b25861527e4ecd715a759799e7dc2d43865571925e95582689df12c3b02322a.json deleted file mode 100644 index 9263cd881c..0000000000 --- a/rust/cloud-storage/.sqlx/query-0b25861527e4ecd715a759799e7dc2d43865571925e95582689df12c3b02322a.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n link_id,\n fusionauth_user_id,\n threads_requested_limit,\n total_threads,\n threads_retrieved_count,\n status as \"status: db::backfill::BackfillJobStatus\",\n created_at,\n updated_at\n FROM email_backfill_jobs\n WHERE fusionauth_user_id = $1\n AND created_at > NOW() - INTERVAL '24 hours'\n ORDER BY created_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "threads_requested_limit", - "type_info": "Int4" - }, - { - "ordinal": 4, - "name": "total_threads", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "threads_retrieved_count", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "status: db::backfill::BackfillJobStatus", - "type_info": { - "Custom": { - "name": "email_backfill_job_status", - "kind": { - "Enum": [ - "Init", - "InProgress", - "Complete", - "Cancelled", - "Failed" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - true, - false, - true, - false, - false, - false, - false, - false - ] - }, - "hash": "0b25861527e4ecd715a759799e7dc2d43865571925e95582689df12c3b02322a" -} diff --git a/rust/cloud-storage/.sqlx/query-0b3832a8e650ed74622bbe8ceeb7ead8ceb0d4f0d05e22c9e36113b4cba6e5c3.json b/rust/cloud-storage/.sqlx/query-0b3832a8e650ed74622bbe8ceeb7ead8ceb0d4f0d05e22c9e36113b4cba6e5c3.json deleted file mode 100644 index 5650ce2d29..0000000000 --- a/rust/cloud-storage/.sqlx/query-0b3832a8e650ed74622bbe8ceeb7ead8ceb0d4f0d05e22c9e36113b4cba6e5c3.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"BlockedEmail\" (email)\n VALUES ($1)\n ON CONFLICT (email) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "0b3832a8e650ed74622bbe8ceeb7ead8ceb0d4f0d05e22c9e36113b4cba6e5c3" -} diff --git a/rust/cloud-storage/.sqlx/query-0be9d386d51f355d6c5ab947fe7ed534f7cf96c18081846fcbfbefa0a515f40b.json b/rust/cloud-storage/.sqlx/query-0be9d386d51f355d6c5ab947fe7ed534f7cf96c18081846fcbfbefa0a515f40b.json deleted file mode 100644 index e5a541e2c7..0000000000 --- a/rust/cloud-storage/.sqlx/query-0be9d386d51f355d6c5ab947fe7ed534f7cf96c18081846fcbfbefa0a515f40b.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id\n FROM account_merge_request\n WHERE to_merge_macro_user_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "0be9d386d51f355d6c5ab947fe7ed534f7cf96c18081846fcbfbefa0a515f40b" -} diff --git a/rust/cloud-storage/.sqlx/query-0be9fe66d98f68b1d1c3c8f32aef0da52521889a32fce2449d9d7f659835b845.json b/rust/cloud-storage/.sqlx/query-0be9fe66d98f68b1d1c3c8f32aef0da52521889a32fce2449d9d7f659835b845.json deleted file mode 100644 index 78432bc971..0000000000 --- a/rust/cloud-storage/.sqlx/query-0be9fe66d98f68b1d1c3c8f32aef0da52521889a32fce2449d9d7f659835b845.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"UserHistory\" \n WHERE \"itemId\" = ANY($1) AND \"itemType\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "Text" - ] - }, - "nullable": [] - }, - "hash": "0be9fe66d98f68b1d1c3c8f32aef0da52521889a32fce2449d9d7f659835b845" -} diff --git a/rust/cloud-storage/.sqlx/query-0c129eab69121fd65994c0b50a11f653900045b70bc059b5126905e3cca668fe.json b/rust/cloud-storage/.sqlx/query-0c129eab69121fd65994c0b50a11f653900045b70bc059b5126905e3cca668fe.json deleted file mode 100644 index b06c45ada8..0000000000 --- a/rust/cloud-storage/.sqlx/query-0c129eab69121fd65994c0b50a11f653900045b70bc059b5126905e3cca668fe.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"PdfHighlightAnchor\"\n SET \"threadId\" = NULL\n WHERE uuid = $1 AND \"deletedAt\" IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "0c129eab69121fd65994c0b50a11f653900045b70bc059b5126905e3cca668fe" -} diff --git a/rust/cloud-storage/.sqlx/query-0c36658e4c00abbd672fd1fa7934cb81f5065482c471fffa2bf248f73782a87c.json b/rust/cloud-storage/.sqlx/query-0c36658e4c00abbd672fd1fa7934cb81f5065482c471fffa2bf248f73782a87c.json deleted file mode 100644 index 75d11599e7..0000000000 --- a/rust/cloud-storage/.sqlx/query-0c36658e4c00abbd672fd1fa7934cb81f5065482c471fffa2bf248f73782a87c.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT \"userId\" as user_id, \"deletedAt\" as deleted_at FROM \"Chat\" WHERE id=$1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "deleted_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "0c36658e4c00abbd672fd1fa7934cb81f5065482c471fffa2bf248f73782a87c" -} diff --git a/rust/cloud-storage/.sqlx/query-0c3bf4ab99e5ef1c2100c82611aeaf4fe7ffe5734a57567dfdfea1a78cfbb3ee.json b/rust/cloud-storage/.sqlx/query-0c3bf4ab99e5ef1c2100c82611aeaf4fe7ffe5734a57567dfdfea1a78cfbb3ee.json deleted file mode 100644 index f6f9d3a7c1..0000000000 --- a/rust/cloud-storage/.sqlx/query-0c3bf4ab99e5ef1c2100c82611aeaf4fe7ffe5734a57567dfdfea1a78cfbb3ee.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n p.\"id\" as \"item_id!\",\n p.\"createdAt\" as \"created_at!\",\n p.\"updatedAt\" as \"updated_at!\",\n p.\"deletedAt\" as \"deleted_at?\",\n p.\"parentId\" as \"parent_project_id?\",\n uh.\"updatedAt\" as \"viewed_at?\",\n p.\"userId\" as \"user_id\",\n p.\"name\"\n FROM\n \"Project\" p\n LEFT JOIN\n \"UserHistory\" uh ON uh.\"itemId\" = p.\"id\"\n AND uh.\"userId\" = $1\n AND uh.\"itemType\" = 'project'\n WHERE\n p.\"id\" = ANY($2)\n ORDER BY\n p.\"updatedAt\" DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "created_at!", - "type_info": "Timestamp" - }, - { - "ordinal": 2, - "name": "updated_at!", - "type_info": "Timestamp" - }, - { - "ordinal": 3, - "name": "deleted_at?", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "parent_project_id?", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "viewed_at?", - "type_info": "Timestamp" - }, - { - "ordinal": 6, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - false, - false, - false - ] - }, - "hash": "0c3bf4ab99e5ef1c2100c82611aeaf4fe7ffe5734a57567dfdfea1a78cfbb3ee" -} diff --git a/rust/cloud-storage/.sqlx/query-0c430068640f24611873989a569d3da039a7e63dfb1a4bab8895c6f18c1b819f.json b/rust/cloud-storage/.sqlx/query-0c430068640f24611873989a569d3da039a7e63dfb1a4bab8895c6f18c1b819f.json deleted file mode 100644 index 077bd1d92f..0000000000 --- a/rust/cloud-storage/.sqlx/query-0c430068640f24611873989a569d3da039a7e63dfb1a4bab8895c6f18c1b819f.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"deletedAt\" as \"deleted_at\"\n FROM \"Chat\"\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "deleted_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "0c430068640f24611873989a569d3da039a7e63dfb1a4bab8895c6f18c1b819f" -} diff --git a/rust/cloud-storage/.sqlx/query-0ca155b0063dd021a80db6b2a9dc2353c6a1dca9e1dc13cc21b3a23d9cd81e92.json b/rust/cloud-storage/.sqlx/query-0ca155b0063dd021a80db6b2a9dc2353c6a1dca9e1dc13cc21b3a23d9cd81e92.json deleted file mode 100644 index 40abab49c5..0000000000 --- a/rust/cloud-storage/.sqlx/query-0ca155b0063dd021a80db6b2a9dc2353c6a1dca9e1dc13cc21b3a23d9cd81e92.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM \"OrganizationInvitation\" WHERE organization_id = $1 AND email = $2", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int4", - "Text" - ] - }, - "nullable": [] - }, - "hash": "0ca155b0063dd021a80db6b2a9dc2353c6a1dca9e1dc13cc21b3a23d9cd81e92" -} diff --git a/rust/cloud-storage/.sqlx/query-0d38256b23e9ce70797726f76b49889efcf4b3c2fbaec05c395de5e728b0fdbb.json b/rust/cloud-storage/.sqlx/query-0d38256b23e9ce70797726f76b49889efcf4b3c2fbaec05c395de5e728b0fdbb.json deleted file mode 100644 index a3ceebc60d..0000000000 --- a/rust/cloud-storage/.sqlx/query-0d38256b23e9ce70797726f76b49889efcf4b3c2fbaec05c395de5e728b0fdbb.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n sp.id as id,\n sp.\"isPublic\" as is_public,\n sp.\"publicAccessLevel\" as \"public_access_level?\",\n c.\"userId\" as owner,\n COALESCE(\n json_agg(json_build_object(\n 'channel_id', csp.\"channel_id\",\n 'access_level', csp.\"access_level\"\n )) FILTER (WHERE csp.\"channel_id\" IS NOT NULL),\n '[]'\n ) as \"channel_share_permissions?\"\n FROM\n \"ChatPermission\" cp\n JOIN \"SharePermission\" sp ON cp.\"sharePermissionId\" = sp.id\n JOIN \"Chat\" c ON cp.\"chatId\" = c.id\n LEFT JOIN \"ChannelSharePermission\" csp ON csp.\"share_permission_id\" = sp.id\n WHERE\n cp.\"chatId\" = $1\n GROUP BY\n sp.id, c.\"userId\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "is_public", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "public_access_level?", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "channel_share_permissions?", - "type_info": "Json" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - true, - false, - null - ] - }, - "hash": "0d38256b23e9ce70797726f76b49889efcf4b3c2fbaec05c395de5e728b0fdbb" -} diff --git a/rust/cloud-storage/.sqlx/query-0d49ab1fcffce934d215d7d34b80e3334aed9e8d1cb1efc3df8698e024d0aef9.json b/rust/cloud-storage/.sqlx/query-0d49ab1fcffce934d215d7d34b80e3334aed9e8d1cb1efc3df8698e024d0aef9.json deleted file mode 100644 index 305c563dd0..0000000000 --- a/rust/cloud-storage/.sqlx/query-0d49ab1fcffce934d215d7d34b80e3334aed9e8d1cb1efc3df8698e024d0aef9.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_labels (\n id,\n link_id,\n provider_label_id,\n name,\n message_list_visibility,\n label_list_visibility,\n type\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n ON CONFLICT (link_id, provider_label_id) DO UPDATE\n SET\n name = EXCLUDED.name,\n message_list_visibility = EXCLUDED.message_list_visibility,\n label_list_visibility = EXCLUDED.label_list_visibility,\n type = EXCLUDED.type\n RETURNING \n id,\n link_id,\n provider_label_id,\n name,\n created_at,\n message_list_visibility as \"message_list_visibility: _\",\n label_list_visibility as \"label_list_visibility: _\",\n type as \"type_: _\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_label_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "message_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_message_list_visibility_enum", - "kind": { - "Enum": [ - "Show", - "Hide" - ] - } - } - } - }, - { - "ordinal": 6, - "name": "label_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_label_list_visibility_enum", - "kind": { - "Enum": [ - "LabelShow", - "LabelShowIfUnread", - "LabelHide" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "type_: _", - "type_info": { - "Custom": { - "name": "email_label_type_enum", - "kind": { - "Enum": [ - "System", - "User" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text", - "Varchar", - { - "Custom": { - "name": "email_message_list_visibility_enum", - "kind": { - "Enum": [ - "Show", - "Hide" - ] - } - } - }, - { - "Custom": { - "name": "email_label_list_visibility_enum", - "kind": { - "Enum": [ - "LabelShow", - "LabelShowIfUnread", - "LabelHide" - ] - } - } - }, - { - "Custom": { - "name": "email_label_type_enum", - "kind": { - "Enum": [ - "System", - "User" - ] - } - } - } - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "0d49ab1fcffce934d215d7d34b80e3334aed9e8d1cb1efc3df8698e024d0aef9" -} diff --git a/rust/cloud-storage/.sqlx/query-0d9d272f0886376c4a756a4296517b933697934a2b3d52e931bcb2f1dc64ac87.json b/rust/cloud-storage/.sqlx/query-0d9d272f0886376c4a756a4296517b933697934a2b3d52e931bcb2f1dc64ac87.json deleted file mode 100644 index 5be688e4c2..0000000000 --- a/rust/cloud-storage/.sqlx/query-0d9d272f0886376c4a756a4296517b933697934a2b3d52e931bcb2f1dc64ac87.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, action_id, resource_id, start_time, end_time, is_success, result, created_at\n FROM action_execution_record\n WHERE action_id = $1\n ORDER BY start_time DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "action_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "resource_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "start_time", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "end_time", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "is_success", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "result", - "type_info": "Jsonb" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - true, - false, - false, - false, - false, - false - ] - }, - "hash": "0d9d272f0886376c4a756a4296517b933697934a2b3d52e931bcb2f1dc64ac87" -} diff --git a/rust/cloud-storage/.sqlx/query-0da786be8ae29e36cd110a8875d838e3b6b8cf4bd6775d083867c733982545dd.json b/rust/cloud-storage/.sqlx/query-0da786be8ae29e36cd110a8875d838e3b6b8cf4bd6775d083867c733982545dd.json deleted file mode 100644 index e635006372..0000000000 --- a/rust/cloud-storage/.sqlx/query-0da786be8ae29e36cd110a8875d838e3b6b8cf4bd6775d083867c733982545dd.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Document\" SET \"deletedAt\" = $2 WHERE id = ANY($1);\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "Timestamp" - ] - }, - "nullable": [] - }, - "hash": "0da786be8ae29e36cd110a8875d838e3b6b8cf4bd6775d083867c733982545dd" -} diff --git a/rust/cloud-storage/.sqlx/query-0db3bbe78101fc309c3358271240926ee07c36bf29ff0031813a2fdbe1fd061d.json b/rust/cloud-storage/.sqlx/query-0db3bbe78101fc309c3358271240926ee07c36bf29ff0031813a2fdbe1fd061d.json deleted file mode 100644 index faedc95f8b..0000000000 --- a/rust/cloud-storage/.sqlx/query-0db3bbe78101fc309c3358271240926ee07c36bf29ff0031813a2fdbe1fd061d.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n sp.id as id,\n sp.\"isPublic\" as is_public,\n sp.\"publicAccessLevel\" as \"public_access_level?\",\n d.\"owner\" as owner,\n COALESCE(\n json_agg(json_build_object(\n 'channel_id', csp.\"channel_id\",\n 'access_level', csp.\"access_level\"\n )) FILTER (WHERE csp.\"channel_id\" IS NOT NULL),\n '[]'\n ) as \"channel_share_permissions?\"\n FROM\n \"DocumentPermission\" dp\n JOIN \"SharePermission\" sp ON dp.\"sharePermissionId\" = sp.id\n JOIN \"Document\" d ON dp.\"documentId\" = d.id\n LEFT JOIN \"ChannelSharePermission\" csp ON csp.\"share_permission_id\" = sp.id\n WHERE\n dp.\"documentId\" = $1\n GROUP BY\n sp.id, d.\"owner\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "is_public", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "public_access_level?", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "channel_share_permissions?", - "type_info": "Json" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - true, - false, - null - ] - }, - "hash": "0db3bbe78101fc309c3358271240926ee07c36bf29ff0031813a2fdbe1fd061d" -} diff --git a/rust/cloud-storage/.sqlx/query-0dcbb3a5c0829e285170d8e43e6a6d1246298aa1fc06aba34a9282318841a112.json b/rust/cloud-storage/.sqlx/query-0dcbb3a5c0829e285170d8e43e6a6d1246298aa1fc06aba34a9282318841a112.json deleted file mode 100644 index 5d46bae2e6..0000000000 --- a/rust/cloud-storage/.sqlx/query-0dcbb3a5c0829e285170d8e43e6a6d1246298aa1fc06aba34a9282318841a112.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n u.id as user_profile_id, \n mu.id as macro_user_id\n FROM macro_user mu\n JOIN \"User\" u ON mu.id = u.macro_user_id\n WHERE u.id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_profile_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "macro_user_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "0dcbb3a5c0829e285170d8e43e6a6d1246298aa1fc06aba34a9282318841a112" -} diff --git a/rust/cloud-storage/.sqlx/query-0dd403bdd3475dfb010d5a725be35e76750719785a26e4c56e969fd48c5970b3.json b/rust/cloud-storage/.sqlx/query-0dd403bdd3475dfb010d5a725be35e76750719785a26e4c56e969fd48c5970b3.json deleted file mode 100644 index 63fcd51931..0000000000 --- a/rust/cloud-storage/.sqlx/query-0dd403bdd3475dfb010d5a725be35e76750719785a26e4c56e969fd48c5970b3.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH RECURSIVE project_hierarchy AS (\n SELECT\n p.id,\n p.\"userId\" as user_id\n FROM \"Project\" p\n WHERE p.id = $1 AND p.\"deletedAt\" IS NOT NULL\n UNION ALL\n SELECT\n sub_p.id,\n sub_p.\"userId\" as user_id\n FROM \"Project\" sub_p\n INNER JOIN project_hierarchy ph ON sub_p.\"parentId\" = ph.id\n WHERE sub_p.\"deletedAt\" IS NOT NULL\n )\n SELECT\n ph.id as \"id!\",\n ph.user_id as \"user_id!\"\n FROM project_hierarchy ph\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "user_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null, - null - ] - }, - "hash": "0dd403bdd3475dfb010d5a725be35e76750719785a26e4c56e969fd48c5970b3" -} diff --git a/rust/cloud-storage/.sqlx/query-0dde9799979e5ae1b4e351a2b8c310950db972cfe6afdf164f822a6b0a6042b8.json b/rust/cloud-storage/.sqlx/query-0dde9799979e5ae1b4e351a2b8c310950db972cfe6afdf164f822a6b0a6042b8.json deleted file mode 100644 index ba7d99d7d2..0000000000 --- a/rust/cloud-storage/.sqlx/query-0dde9799979e5ae1b4e351a2b8c310950db972cfe6afdf164f822a6b0a6042b8.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT a.uuid, a.\"createdAt\" as created_at, a.\"updatedAt\" as updated_at\n FROM \"PdfHighlightAnchor\" a\n WHERE a.\"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "created_at", - "type_info": "Timestamp" - }, - { - "ordinal": 2, - "name": "updated_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "0dde9799979e5ae1b4e351a2b8c310950db972cfe6afdf164f822a6b0a6042b8" -} diff --git a/rust/cloud-storage/.sqlx/query-0df754458a7a7e50fd7cdc9a66f170bd25959079efaf0bb0c916acae2234f90d.json b/rust/cloud-storage/.sqlx/query-0df754458a7a7e50fd7cdc9a66f170bd25959079efaf0bb0c916acae2234f90d.json deleted file mode 100644 index 793dff68d7..0000000000 --- a/rust/cloud-storage/.sqlx/query-0df754458a7a7e50fd7cdc9a66f170bd25959079efaf0bb0c916acae2234f90d.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_messages m\n SET\n is_read = $1,\n updated_at = NOW()\n FROM email_links l\n WHERE\n m.id = $2\n AND m.link_id = l.id\n AND l.fusionauth_user_id = $3\n RETURNING m.id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Bool", - "Uuid", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "0df754458a7a7e50fd7cdc9a66f170bd25959079efaf0bb0c916acae2234f90d" -} diff --git a/rust/cloud-storage/.sqlx/query-0e03c9e174ceafd652563ce587e5025e8bf0dd3532b21cc1e2a939c0c26c7927.json b/rust/cloud-storage/.sqlx/query-0e03c9e174ceafd652563ce587e5025e8bf0dd3532b21cc1e2a939c0c26c7927.json deleted file mode 100644 index 03bdd66fc9..0000000000 --- a/rust/cloud-storage/.sqlx/query-0e03c9e174ceafd652563ce587e5025e8bf0dd3532b21cc1e2a939c0c26c7927.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT team_id FROM team_user\n WHERE user_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "team_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "0e03c9e174ceafd652563ce587e5025e8bf0dd3532b21cc1e2a939c0c26c7927" -} diff --git a/rust/cloud-storage/.sqlx/query-0e0422c73b3bdb5c60680cec7581ac905f34c70bd295694a120e8dd7891e3853.json b/rust/cloud-storage/.sqlx/query-0e0422c73b3bdb5c60680cec7581ac905f34c70bd295694a120e8dd7891e3853.json deleted file mode 100644 index 625a77c4c3..0000000000 --- a/rust/cloud-storage/.sqlx/query-0e0422c73b3bdb5c60680cec7581ac905f34c70bd295694a120e8dd7891e3853.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_threads\n SET project_id = $2, updated_at = NOW()\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "0e0422c73b3bdb5c60680cec7581ac905f34c70bd295694a120e8dd7891e3853" -} diff --git a/rust/cloud-storage/.sqlx/query-0e241930c0e8b940ac3f513f8081270a0b93e88f5b7f7f7fc36276b3718b8297.json b/rust/cloud-storage/.sqlx/query-0e241930c0e8b940ac3f513f8081270a0b93e88f5b7f7f7fc36276b3718b8297.json deleted file mode 100644 index 84c6ebbc4b..0000000000 --- a/rust/cloud-storage/.sqlx/query-0e241930c0e8b940ac3f513f8081270a0b93e88f5b7f7f7fc36276b3718b8297.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO crm_thread (company_id, contact_id, owner, metadata)\n VALUES ($1, $2, $3, $4)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text", - "Jsonb" - ] - }, - "nullable": [ - false - ] - }, - "hash": "0e241930c0e8b940ac3f513f8081270a0b93e88f5b7f7f7fc36276b3718b8297" -} diff --git a/rust/cloud-storage/.sqlx/query-0e38fa7c2ebae20feb864567132405260eb8fd223e65f4c6da337a8fbe2acc82.json b/rust/cloud-storage/.sqlx/query-0e38fa7c2ebae20feb864567132405260eb8fd223e65f4c6da337a8fbe2acc82.json deleted file mode 100644 index aa088ef8b7..0000000000 --- a/rust/cloud-storage/.sqlx/query-0e38fa7c2ebae20feb864567132405260eb8fd223e65f4c6da337a8fbe2acc82.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE team_user\n SET team_role = $3\n WHERE team_id = $1\n AND user_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - { - "Custom": { - "name": "team_role", - "kind": { - "Enum": [ - "member", - "admin", - "owner" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "0e38fa7c2ebae20feb864567132405260eb8fd223e65f4c6da337a8fbe2acc82" -} diff --git a/rust/cloud-storage/.sqlx/query-0ea8abcb6adfa2a93579879f4bc537c13a9a4e4c313c115a83b0bc98c846db0f.json b/rust/cloud-storage/.sqlx/query-0ea8abcb6adfa2a93579879f4bc537c13a9a4e4c313c115a83b0bc98c846db0f.json deleted file mode 100644 index ef18ac8a9f..0000000000 --- a/rust/cloud-storage/.sqlx/query-0ea8abcb6adfa2a93579879f4bc537c13a9a4e4c313c115a83b0bc98c846db0f.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE call_records SET recording_key = $2 WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "0ea8abcb6adfa2a93579879f4bc537c13a9a4e4c313c115a83b0bc98c846db0f" -} diff --git a/rust/cloud-storage/.sqlx/query-0eb23959e5def969cff31c097382390a0e9214d8219a3d79f65ea5c66d55121e.json b/rust/cloud-storage/.sqlx/query-0eb23959e5def969cff31c097382390a0e9214d8219a3d79f65ea5c66d55121e.json deleted file mode 100644 index 478db6e5e9..0000000000 --- a/rust/cloud-storage/.sqlx/query-0eb23959e5def969cff31c097382390a0e9214d8219a3d79f65ea5c66d55121e.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentText\" (\"documentId\", \"content\", \"tokenCount\")\n VALUES ($1, $2, $3)\n ON CONFLICT (\"documentId\")\n DO UPDATE SET \"content\" = EXCLUDED.\"content\", \"tokenCount\" = EXCLUDED.\"tokenCount\"\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Int8" - ] - }, - "nullable": [] - }, - "hash": "0eb23959e5def969cff31c097382390a0e9214d8219a3d79f65ea5c66d55121e" -} diff --git a/rust/cloud-storage/.sqlx/query-0f06d44ac8984b12498f8b41e70d2e692c9a1bec3ec96cd3b2fba1176e075119.json b/rust/cloud-storage/.sqlx/query-0f06d44ac8984b12498f8b41e70d2e692c9a1bec3ec96cd3b2fba1176e075119.json deleted file mode 100644 index beba999012..0000000000 --- a/rust/cloud-storage/.sqlx/query-0f06d44ac8984b12498f8b41e70d2e692c9a1bec3ec96cd3b2fba1176e075119.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"roleId\" as id\n FROM \"RolesOnOrganizations\"\n WHERE \"organizationId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int4" - ] - }, - "nullable": [ - false - ] - }, - "hash": "0f06d44ac8984b12498f8b41e70d2e692c9a1bec3ec96cd3b2fba1176e075119" -} diff --git a/rust/cloud-storage/.sqlx/query-0f180165e0d5d8661d2d9a37550c7372d1de26ee74b39b5e9602534174f1f8c5.json b/rust/cloud-storage/.sqlx/query-0f180165e0d5d8661d2d9a37550c7372d1de26ee74b39b5e9602534174f1f8c5.json deleted file mode 100644 index 548cc4391e..0000000000 --- a/rust/cloud-storage/.sqlx/query-0f180165e0d5d8661d2d9a37550c7372d1de26ee74b39b5e9602534174f1f8c5.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id as \"chat_id\",\n \"userId\" as \"user_id\"\n FROM\n \"Chat\"\n WHERE\n \"deletedAt\" IS NULL\n ORDER BY\n \"createdAt\" DESC\n LIMIT $1\n OFFSET $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "chat_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "0f180165e0d5d8661d2d9a37550c7372d1de26ee74b39b5e9602534174f1f8c5" -} diff --git a/rust/cloud-storage/.sqlx/query-0f43991b34ee9e8bb85f7a8c87ed522daaa36ef9bb9e1eed4ccca12de09f44f0.json b/rust/cloud-storage/.sqlx/query-0f43991b34ee9e8bb85f7a8c87ed522daaa36ef9bb9e1eed4ccca12de09f44f0.json deleted file mode 100644 index b9e67bdaa7..0000000000 --- a/rust/cloud-storage/.sqlx/query-0f43991b34ee9e8bb85f7a8c87ed522daaa36ef9bb9e1eed4ccca12de09f44f0.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_links\n SET macro_id = $1, updated_at = NOW()\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "0f43991b34ee9e8bb85f7a8c87ed522daaa36ef9bb9e1eed4ccca12de09f44f0" -} diff --git a/rust/cloud-storage/.sqlx/query-0f48cffd910141d7b0d12f55311f30be2d8bb5808322565b29ce0a8db2bf3c14.json b/rust/cloud-storage/.sqlx/query-0f48cffd910141d7b0d12f55311f30be2d8bb5808322565b29ce0a8db2bf3c14.json deleted file mode 100644 index 03287f8f3e..0000000000 --- a/rust/cloud-storage/.sqlx/query-0f48cffd910141d7b0d12f55311f30be2d8bb5808322565b29ce0a8db2bf3c14.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Document\" d\n WHERE d.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - null - ] - }, - "hash": "0f48cffd910141d7b0d12f55311f30be2d8bb5808322565b29ce0a8db2bf3c14" -} diff --git a/rust/cloud-storage/.sqlx/query-0fa9fb46a9895ff170c9bbf339ec2369429e7fdc40a531ac5296b5442fa4f5aa.json b/rust/cloud-storage/.sqlx/query-0fa9fb46a9895ff170c9bbf339ec2369429e7fdc40a531ac5296b5442fa4f5aa.json deleted file mode 100644 index d80c3a400a..0000000000 --- a/rust/cloud-storage/.sqlx/query-0fa9fb46a9895ff170c9bbf339ec2369429e7fdc40a531ac5296b5442fa4f5aa.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id as message_id,\n c.email_address as \"sender!\",\n COALESCE(c.name, c.email_address) as \"pretty_sender!\"\n FROM email_messages m\n LEFT JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.id = ANY($1)\n AND m.link_id = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "sender!", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "pretty_sender!", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "UuidArray" - ] - }, - "nullable": [ - false, - true, - null - ] - }, - "hash": "0fa9fb46a9895ff170c9bbf339ec2369429e7fdc40a531ac5296b5442fa4f5aa" -} diff --git a/rust/cloud-storage/.sqlx/query-0fb8a1f0bcfee684fa393fa7465a17b7345b658528783903597574827fd61dd0.json b/rust/cloud-storage/.sqlx/query-0fb8a1f0bcfee684fa393fa7465a17b7345b658528783903597574827fd61dd0.json deleted file mode 100644 index f92c09c1ed..0000000000 --- a/rust/cloud-storage/.sqlx/query-0fb8a1f0bcfee684fa393fa7465a17b7345b658528783903597574827fd61dd0.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT t.company_id, t.contact_id\n FROM crm_comment c\n JOIN crm_thread t ON t.id = c.thread_id\n WHERE c.id = $1\n AND c.deleted_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "company_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "contact_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - true, - true - ] - }, - "hash": "0fb8a1f0bcfee684fa393fa7465a17b7345b658528783903597574827fd61dd0" -} diff --git a/rust/cloud-storage/.sqlx/query-100d56e0bac5061aa9f43b50e065f04b372963a63e81918d061a0c0ffab89060.json b/rust/cloud-storage/.sqlx/query-100d56e0bac5061aa9f43b50e065f04b372963a63e81918d061a0c0ffab89060.json deleted file mode 100644 index 53d34de890..0000000000 --- a/rust/cloud-storage/.sqlx/query-100d56e0bac5061aa9f43b50e065f04b372963a63e81918d061a0c0ffab89060.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n t.id as thread_id, \n t.resolved, \n t.\"documentId\" as document_id, \n t.\"createdAt\"::timestamptz as created_at, \n t.\"updatedAt\"::timestamptz as updated_at, \n t.\"deletedAt\"::timestamptz as deleted_at, \n t.metadata, \n t.owner\n FROM \"Thread\" t\n WHERE t.\"id\" = $1\n AND t.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "resolved", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 7, - "name": "owner", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - null, - null, - null, - true, - false - ] - }, - "hash": "100d56e0bac5061aa9f43b50e065f04b372963a63e81918d061a0c0ffab89060" -} diff --git a/rust/cloud-storage/.sqlx/query-10843b4044bca618301e755b0b6b5aeca5fd398adc48ed9f755490fa25e7f3f9.json b/rust/cloud-storage/.sqlx/query-10843b4044bca618301e755b0b6b5aeca5fd398adc48ed9f755490fa25e7f3f9.json deleted file mode 100644 index 2c80a4edcb..0000000000 --- a/rust/cloud-storage/.sqlx/query-10843b4044bca618301e755b0b6b5aeca5fd398adc48ed9f755490fa25e7f3f9.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_channels (id, name, owner_id, org_id, team_id, channel_type)\n VALUES ($1, $2, $3, $4, $5, $6)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Varchar", - "Text", - "Int8", - "Uuid", - { - "Custom": { - "name": "comms_channel_type", - "kind": { - "Enum": [ - "public", - "private", - "direct_message", - "team" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "10843b4044bca618301e755b0b6b5aeca5fd398adc48ed9f755490fa25e7f3f9" -} diff --git a/rust/cloud-storage/.sqlx/query-10bf501670966259cfcb441f519bf04a5ff4827980d61db77cf7645ed9bf551b.json b/rust/cloud-storage/.sqlx/query-10bf501670966259cfcb441f519bf04a5ff4827980d61db77cf7645ed9bf551b.json deleted file mode 100644 index 21b13aae0d..0000000000 --- a/rust/cloud-storage/.sqlx/query-10bf501670966259cfcb441f519bf04a5ff4827980d61db77cf7645ed9bf551b.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH RECURSIVE edges(left_id, right_id) AS (\n SELECT m.task_id, m.duplicate_task_id\n FROM task_duplicate_match m\n JOIN \"Document\" left_document ON left_document.id = m.task_id\n JOIN \"Document\" right_document ON right_document.id = m.duplicate_task_id\n WHERE m.status = 'active'\n AND left_document.\"deletedAt\" IS NULL\n AND right_document.\"deletedAt\" IS NULL\n ),\n component(document_id) AS (\n SELECT DISTINCT unnest($1::text[])\n UNION\n SELECT CASE\n WHEN edges.left_id = component.document_id THEN edges.right_id\n ELSE edges.left_id\n END\n FROM edges\n JOIN component\n ON component.document_id = edges.left_id\n OR component.document_id = edges.right_id\n )\n SELECT DISTINCT document_id AS \"document_id!\"\n FROM component\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - null - ] - }, - "hash": "10bf501670966259cfcb441f519bf04a5ff4827980d61db77cf7645ed9bf551b" -} diff --git a/rust/cloud-storage/.sqlx/query-11a723b710519837eb7643af73af6526dfa6bf93465f9c6708dc95e8237c1f51.json b/rust/cloud-storage/.sqlx/query-11a723b710519837eb7643af73af6526dfa6bf93465f9c6708dc95e8237c1f51.json deleted file mode 100644 index ce42810756..0000000000 --- a/rust/cloud-storage/.sqlx/query-11a723b710519837eb7643af73af6526dfa6bf93465f9c6708dc95e8237c1f51.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"id\" FROM \"Document\" WHERE \"projectId\" = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "11a723b710519837eb7643af73af6526dfa6bf93465f9c6708dc95e8237c1f51" -} diff --git a/rust/cloud-storage/.sqlx/query-11ac63a8975bc8587b4c3b8f64201b8999a0cec4a928d253fb4fa49f78a8626e.json b/rust/cloud-storage/.sqlx/query-11ac63a8975bc8587b4c3b8f64201b8999a0cec4a928d253fb4fa49f78a8626e.json deleted file mode 100644 index 9d4460d0dd..0000000000 --- a/rust/cloud-storage/.sqlx/query-11ac63a8975bc8587b4c3b8f64201b8999a0cec4a928d253fb4fa49f78a8626e.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO macro_user_links (primary_macro_id, child_macro_id)\n VALUES ($1, $2)\n ON CONFLICT (primary_macro_id, child_macro_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "11ac63a8975bc8587b4c3b8f64201b8999a0cec4a928d253fb4fa49f78a8626e" -} diff --git a/rust/cloud-storage/.sqlx/query-11cffac7d14e962aa00fd0a9a0ca290ad6e8bbce98fe53cd4079791734567928.json b/rust/cloud-storage/.sqlx/query-11cffac7d14e962aa00fd0a9a0ca290ad6e8bbce98fe53cd4079791734567928.json deleted file mode 100644 index cc0d105dbd..0000000000 --- a/rust/cloud-storage/.sqlx/query-11cffac7d14e962aa00fd0a9a0ca290ad6e8bbce98fe53cd4079791734567928.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id\n FROM comms_channel_participants\n WHERE channel_id = $1 AND left_at IS NULL\n ORDER BY joined_at ASC, user_id ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "11cffac7d14e962aa00fd0a9a0ca290ad6e8bbce98fe53cd4079791734567928" -} diff --git a/rust/cloud-storage/.sqlx/query-11ddfba613626f54d684c1399279df5c3364e8d3dfc0484cda469086991a64fd.json b/rust/cloud-storage/.sqlx/query-11ddfba613626f54d684c1399279df5c3364e8d3dfc0484cda469086991a64fd.json deleted file mode 100644 index f8c1b33c14..0000000000 --- a/rust/cloud-storage/.sqlx/query-11ddfba613626f54d684c1399279df5c3364e8d3dfc0484cda469086991a64fd.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id as \"chat_id\"\n FROM\n \"Chat\"\n WHERE\n \"deletedAt\" IS NULL\n ORDER BY\n \"createdAt\" ASC\n LIMIT $1\n OFFSET $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "chat_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "11ddfba613626f54d684c1399279df5c3364e8d3dfc0484cda469086991a64fd" -} diff --git a/rust/cloud-storage/.sqlx/query-11f1046dbd6f8f510a196fe1feedb4bdbfedbde691ebb4aec849a07f6b54d0fc.json b/rust/cloud-storage/.sqlx/query-11f1046dbd6f8f510a196fe1feedb4bdbfedbde691ebb4aec849a07f6b54d0fc.json deleted file mode 100644 index 329f409c49..0000000000 --- a/rust/cloud-storage/.sqlx/query-11f1046dbd6f8f510a196fe1feedb4bdbfedbde691ebb4aec849a07f6b54d0fc.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, draft_id, file_name, content_type, sha, size, s3_key\n FROM email_attachments_drafts\n WHERE draft_id = ANY($1)\n ORDER BY draft_id, file_name ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "draft_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "file_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content_type", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "size", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "s3_key", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "11f1046dbd6f8f510a196fe1feedb4bdbfedbde691ebb4aec849a07f6b54d0fc" -} diff --git a/rust/cloud-storage/.sqlx/query-1220fdf68c54c2bbb630bc32b642bccc39501f39821f5a5fac209930e6afd338.json b/rust/cloud-storage/.sqlx/query-1220fdf68c54c2bbb630bc32b642bccc39501f39821f5a5fac209930e6afd338.json deleted file mode 100644 index 4c8372a82b..0000000000 --- a/rust/cloud-storage/.sqlx/query-1220fdf68c54c2bbb630bc32b642bccc39501f39821f5a5fac209930e6afd338.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Document\" SET \"updatedAt\" = NOW()\n WHERE id = $1\n RETURNING id as \"document_id\", owner, \"fileType\" as file_type, name as document_name,\n \"branchedFromId\" as branched_from_id, \"branchedFromVersionId\" as branched_from_version_id,\n \"documentFamilyId\" as document_family_id,\n \"projectId\" as project_id,\n \"deletedAt\"::timestamptz as \"deleted_at\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - true, - false, - true, - true, - true, - true, - null - ] - }, - "hash": "1220fdf68c54c2bbb630bc32b642bccc39501f39821f5a5fac209930e6afd338" -} diff --git a/rust/cloud-storage/.sqlx/query-12332b2ea487399f281dbdc5f7c0bddccfdff4da1d53fe8e16c26e825dbc1b14.json b/rust/cloud-storage/.sqlx/query-12332b2ea487399f281dbdc5f7c0bddccfdff4da1d53fe8e16c26e825dbc1b14.json deleted file mode 100644 index 6720c10665..0000000000 --- a/rust/cloud-storage/.sqlx/query-12332b2ea487399f281dbdc5f7c0bddccfdff4da1d53fe8e16c26e825dbc1b14.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"EmailThreadPermission\" (\"threadId\", \"sharePermissionId\", \"userId\")\n VALUES ($1, $2, $3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "12332b2ea487399f281dbdc5f7c0bddccfdff4da1d53fe8e16c26e825dbc1b14" -} diff --git a/rust/cloud-storage/.sqlx/query-124901aaedcea50030b2b8039c8ef509d980650a4c5d0fca7053cba0c2543155.json b/rust/cloud-storage/.sqlx/query-124901aaedcea50030b2b8039c8ef509d980650a4c5d0fca7053cba0c2543155.json deleted file mode 100644 index 6923dd89fd..0000000000 --- a/rust/cloud-storage/.sqlx/query-124901aaedcea50030b2b8039c8ef509d980650a4c5d0fca7053cba0c2543155.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT c.id, LOWER(c.email_address) AS \"email_lower!\"\n FROM email_contacts c\n JOIN email_links el ON el.id = c.link_id\n JOIN team_user tu ON tu.user_id = el.macro_id\n WHERE tu.team_id = $1\n AND LOWER(c.email_address) = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email_lower!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [ - false, - null - ] - }, - "hash": "124901aaedcea50030b2b8039c8ef509d980650a4c5d0fca7053cba0c2543155" -} diff --git a/rust/cloud-storage/.sqlx/query-126bf3c6fc9b29a885703ecfab9a69bc36b7eeee011d09a63b4b44b81f7663df.json b/rust/cloud-storage/.sqlx/query-126bf3c6fc9b29a885703ecfab9a69bc36b7eeee011d09a63b4b44b81f7663df.json deleted file mode 100644 index 23389bd286..0000000000 --- a/rust/cloud-storage/.sqlx/query-126bf3c6fc9b29a885703ecfab9a69bc36b7eeee011d09a63b4b44b81f7663df.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM\n in_progress_email_link\n WHERE\n id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "126bf3c6fc9b29a885703ecfab9a69bc36b7eeee011d09a63b4b44b81f7663df" -} diff --git a/rust/cloud-storage/.sqlx/query-127b4b2d2391121a41b63f3ad116bea2be0329fccb27362d4e3a5a37601e0ba0.json b/rust/cloud-storage/.sqlx/query-127b4b2d2391121a41b63f3ad116bea2be0329fccb27362d4e3a5a37601e0ba0.json deleted file mode 100644 index 14b2e4c2c3..0000000000 --- a/rust/cloud-storage/.sqlx/query-127b4b2d2391121a41b63f3ad116bea2be0329fccb27362d4e3a5a37601e0ba0.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT a.owner, a.\"threadId\" as thread_id, d.owner as document_owner, d.id as document_id\n FROM \"PdfHighlightAnchor\" a\n JOIN \"Document\" d ON a.\"documentId\" = d.id\n WHERE a.uuid = $1 AND a.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 2, - "name": "document_owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "document_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - false, - false - ] - }, - "hash": "127b4b2d2391121a41b63f3ad116bea2be0329fccb27362d4e3a5a37601e0ba0" -} diff --git a/rust/cloud-storage/.sqlx/query-12bbf364a130b8f3af7e7bc7f8c64eb026124d2a66d2735b95ef387433cecd03.json b/rust/cloud-storage/.sqlx/query-12bbf364a130b8f3af7e7bc7f8c64eb026124d2a66d2735b95ef387433cecd03.json deleted file mode 100644 index 8bcde4e677..0000000000 --- a/rust/cloud-storage/.sqlx/query-12bbf364a130b8f3af7e7bc7f8c64eb026124d2a66d2735b95ef387433cecd03.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT team_id\n FROM team_user\n WHERE user_id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "team_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "12bbf364a130b8f3af7e7bc7f8c64eb026124d2a66d2735b95ef387433cecd03" -} diff --git a/rust/cloud-storage/.sqlx/query-131fdac5ab0aba8955d6900eb7390dd279939a1323b5805eaae071cc500f54dc.json b/rust/cloud-storage/.sqlx/query-131fdac5ab0aba8955d6900eb7390dd279939a1323b5805eaae071cc500f54dc.json deleted file mode 100644 index 5c4540cc5a..0000000000 --- a/rust/cloud-storage/.sqlx/query-131fdac5ab0aba8955d6900eb7390dd279939a1323b5805eaae071cc500f54dc.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE in_progress_user_link\n SET linked_email = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "131fdac5ab0aba8955d6900eb7390dd279939a1323b5805eaae071cc500f54dc" -} diff --git a/rust/cloud-storage/.sqlx/query-13739c28aac5015e3bb881dbf24f0a657d995d9292dd6cffc385e2f92ec07276.json b/rust/cloud-storage/.sqlx/query-13739c28aac5015e3bb881dbf24f0a657d995d9292dd6cffc385e2f92ec07276.json deleted file mode 100644 index b1c2763d8b..0000000000 --- a/rust/cloud-storage/.sqlx/query-13739c28aac5015e3bb881dbf24f0a657d995d9292dd6cffc385e2f92ec07276.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH message_channel AS (\n SELECT channel_id FROM comms_messages WHERE id = $1\n ),\n mentions_to_insert AS (\n SELECT t.entity_type, t.entity_id\n FROM UNNEST($2::text[], $3::text[]) AS t(entity_type, entity_id)\n ),\n inserted_mentions AS (\n INSERT INTO comms_entity_mentions (id, source_entity_type, source_entity_id, entity_type, entity_id, user_id)\n SELECT gen_random_uuid(), 'message', $1::text, m.entity_type, m.entity_id, NULL\n FROM mentions_to_insert m\n WHERE NOT EXISTS (\n SELECT 1 FROM comms_entity_mentions em \n WHERE em.source_entity_type = 'message' \n AND em.source_entity_id = $1::text\n AND em.entity_type = m.entity_type \n AND em.entity_id = m.entity_id\n )\n )\n SELECT DISTINCT cp.user_id\n FROM mentions_to_insert m\n CROSS JOIN message_channel mc\n JOIN comms_channel_participants cp ON m.entity_id = cp.user_id\n WHERE m.entity_type = 'user'\n AND cp.channel_id = mc.channel_id\n AND cp.left_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "13739c28aac5015e3bb881dbf24f0a657d995d9292dd6cffc385e2f92ec07276" -} diff --git a/rust/cloud-storage/.sqlx/query-137986b2287f8a7e8d9023d6f9bfee888a6e18170f84df631df81e3e84158348.json b/rust/cloud-storage/.sqlx/query-137986b2287f8a7e8d9023d6f9bfee888a6e18170f84df631df81e3e84158348.json deleted file mode 100644 index cbf66c3866..0000000000 --- a/rust/cloud-storage/.sqlx/query-137986b2287f8a7e8d9023d6f9bfee888a6e18170f84df631df81e3e84158348.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.id as user_profile_id,\n mui.first_name,\n mui.last_name\n FROM macro_user_info mui\n JOIN \"User\" u ON mui.macro_user_id = u.macro_user_id\n WHERE u.id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_profile_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "first_name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "last_name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - true, - true - ] - }, - "hash": "137986b2287f8a7e8d9023d6f9bfee888a6e18170f84df631df81e3e84158348" -} diff --git a/rust/cloud-storage/.sqlx/query-13a6d39ef2b895cae2162fcf65f7f64a5b303859b36186f4106144a2c5cc23ac.json b/rust/cloud-storage/.sqlx/query-13a6d39ef2b895cae2162fcf65f7f64a5b303859b36186f4106144a2c5cc23ac.json deleted file mode 100644 index 6792d184f7..0000000000 --- a/rust/cloud-storage/.sqlx/query-13a6d39ef2b895cae2162fcf65f7f64a5b303859b36186f4106144a2c5cc23ac.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id, url, server_name, credentials, enabled\n FROM mcp_servers\n WHERE user_id = $1\n ORDER BY created_at\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "url", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "server_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "credentials", - "type_info": "Bytea" - }, - { - "ordinal": 4, - "name": "enabled", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - false - ] - }, - "hash": "13a6d39ef2b895cae2162fcf65f7f64a5b303859b36186f4106144a2c5cc23ac" -} diff --git a/rust/cloud-storage/.sqlx/query-13ef9a0dd33e56d64232964dc11b44b0a333958a67d89dfcb1db9dd523a1b837.json b/rust/cloud-storage/.sqlx/query-13ef9a0dd33e56d64232964dc11b44b0a333958a67d89dfcb1db9dd523a1b837.json deleted file mode 100644 index 46afde0329..0000000000 --- a/rust/cloud-storage/.sqlx/query-13ef9a0dd33e56d64232964dc11b44b0a333958a67d89dfcb1db9dd523a1b837.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT macro_user_id FROM \"User\" WHERE id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "13ef9a0dd33e56d64232964dc11b44b0a333958a67d89dfcb1db9dd523a1b837" -} diff --git a/rust/cloud-storage/.sqlx/query-1400e6024ad92e90369be284cd0ca35a4b9b6c1d70fb86dde1ec83a2314350d2.json b/rust/cloud-storage/.sqlx/query-1400e6024ad92e90369be284cd0ca35a4b9b6c1d70fb86dde1ec83a2314350d2.json deleted file mode 100644 index 31173c10d4..0000000000 --- a/rust/cloud-storage/.sqlx/query-1400e6024ad92e90369be284cd0ca35a4b9b6c1d70fb86dde1ec83a2314350d2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"macro_user_id\" as \"macro_user_id!\"\n FROM \"User\"\n WHERE \"email\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "1400e6024ad92e90369be284cd0ca35a4b9b6c1d70fb86dde1ec83a2314350d2" -} diff --git a/rust/cloud-storage/.sqlx/query-1411c7b041f6313844a7f5a78c741e2410cce10dc0c7a196e5104e6fa2ae0875.json b/rust/cloud-storage/.sqlx/query-1411c7b041f6313844a7f5a78c741e2410cce10dc0c7a196e5104e6fa2ae0875.json deleted file mode 100644 index 5590b7be29..0000000000 --- a/rust/cloud-storage/.sqlx/query-1411c7b041f6313844a7f5a78c741e2410cce10dc0c7a196e5104e6fa2ae0875.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO notification_email_unsubscribe (email) VALUES ($1)\n ON CONFLICT (email) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "1411c7b041f6313844a7f5a78c741e2410cce10dc0c7a196e5104e6fa2ae0875" -} diff --git a/rust/cloud-storage/.sqlx/query-1435acbba365796ddcb6ddbef86f4ebf664cffc44082996f6b60a60373c28f75.json b/rust/cloud-storage/.sqlx/query-1435acbba365796ddcb6ddbef86f4ebf664cffc44082996f6b60a60373c28f75.json deleted file mode 100644 index d2b084cf10..0000000000 --- a/rust/cloud-storage/.sqlx/query-1435acbba365796ddcb6ddbef86f4ebf664cffc44082996f6b60a60373c28f75.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO entity_properties (id, entity_id, entity_type, property_definition_id, values)\n SELECT \n u.id,\n u.entity_id,\n 'TASK'::property_entity_type,\n u.property_definition_id,\n u.values\n FROM UNNEST(\n $1::UUID[],\n $2::TEXT[],\n $3::UUID[],\n $4::JSONB[]\n ) AS u(id, entity_id, property_definition_id, values)\n ON CONFLICT (entity_id, entity_type, property_definition_id)\n DO UPDATE SET \n values = EXCLUDED.values,\n updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "TextArray", - "UuidArray", - "JsonbArray" - ] - }, - "nullable": [] - }, - "hash": "1435acbba365796ddcb6ddbef86f4ebf664cffc44082996f6b60a60373c28f75" -} diff --git a/rust/cloud-storage/.sqlx/query-14398843140a148be3189f593e689c36283225f47a6b37c197bc543f3fa18703.json b/rust/cloud-storage/.sqlx/query-14398843140a148be3189f593e689c36283225f47a6b37c197bc543f3fa18703.json deleted file mode 100644 index f73606ba8c..0000000000 --- a/rust/cloud-storage/.sqlx/query-14398843140a148be3189f593e689c36283225f47a6b37c197bc543f3fa18703.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.thread_id,\n c.email_address as \"email_address!\",\n COALESCE(m.from_name, c.name) as \"name\"\n FROM email_messages m\n JOIN email_contacts c ON m.from_contact_id = c.id\n WHERE m.thread_id = ANY($1) AND m.from_contact_id IS NOT NULL\n ORDER BY m.created_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email_address!", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "name", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - null - ] - }, - "hash": "14398843140a148be3189f593e689c36283225f47a6b37c197bc543f3fa18703" -} diff --git a/rust/cloud-storage/.sqlx/query-146fdea46a07193ea84051c9d3300b516be3f85d42ddeaf9cd9d0563e1303201.json b/rust/cloud-storage/.sqlx/query-146fdea46a07193ea84051c9d3300b516be3f85d42ddeaf9cd9d0563e1303201.json deleted file mode 100644 index 660fdb55e4..0000000000 --- a/rust/cloud-storage/.sqlx/query-146fdea46a07193ea84051c9d3300b516be3f85d42ddeaf9cd9d0563e1303201.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n t.id,\n t.name,\n t.owner_id\n FROM team t\n JOIN team_user tu ON t.id = tu.team_id\n WHERE tu.user_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "146fdea46a07193ea84051c9d3300b516be3f85d42ddeaf9cd9d0563e1303201" -} diff --git a/rust/cloud-storage/.sqlx/query-1490ec3dcbefe6dff27992f93481ee30fef91724dadb7b7c1e461d8286235f60.json b/rust/cloud-storage/.sqlx/query-1490ec3dcbefe6dff27992f93481ee30fef91724dadb7b7c1e461d8286235f60.json deleted file mode 100644 index 70047a0c81..0000000000 --- a/rust/cloud-storage/.sqlx/query-1490ec3dcbefe6dff27992f93481ee30fef91724dadb7b7c1e461d8286235f60.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_messages (\n id, provider_id, link_id, global_id, thread_id, provider_thread_id, replying_to_id, provider_history_id, internal_date_ts,\n snippet, size_estimate, subject, from_name, from_contact_id, sent_at, has_attachments, is_read,\n is_starred, is_sent, is_draft, body_text, body_html_sanitized, headers_jsonb\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23)\n ON CONFLICT (link_id, provider_id) WHERE provider_id IS NOT NULL DO UPDATE SET\n global_id = EXCLUDED.global_id,\n provider_history_id = EXCLUDED.provider_history_id,\n provider_thread_id = EXCLUDED.provider_thread_id,\n replying_to_id = EXCLUDED.replying_to_id,\n from_name = EXCLUDED.from_name,\n from_contact_id = EXCLUDED.from_contact_id,\n internal_date_ts = EXCLUDED.internal_date_ts,\n snippet = EXCLUDED.snippet,\n size_estimate = EXCLUDED.size_estimate,\n subject = EXCLUDED.subject,\n sent_at = EXCLUDED.sent_at,\n has_attachments = EXCLUDED.has_attachments,\n is_read = EXCLUDED.is_read,\n is_starred = EXCLUDED.is_starred,\n is_sent = EXCLUDED.is_sent,\n is_draft = EXCLUDED.is_draft,\n headers_jsonb = EXCLUDED.headers_jsonb,\n body_text = EXCLUDED.body_text,\n body_html_sanitized = EXCLUDED.body_html_sanitized,\n updated_at = NOW()\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Uuid", - "Text", - "Uuid", - "Text", - "Uuid", - "Text", - "Timestamptz", - "Text", - "Int8", - "Text", - "Varchar", - "Uuid", - "Timestamptz", - "Bool", - "Bool", - "Bool", - "Bool", - "Bool", - "Text", - "Text", - "Jsonb" - ] - }, - "nullable": [ - false - ] - }, - "hash": "1490ec3dcbefe6dff27992f93481ee30fef91724dadb7b7c1e461d8286235f60" -} diff --git a/rust/cloud-storage/.sqlx/query-14acfc516e4790908d6e9378281d30f55a71271945c03e98665acc3cc9d4ea4b.json b/rust/cloud-storage/.sqlx/query-14acfc516e4790908d6e9378281d30f55a71271945c03e98665acc3cc9d4ea4b.json deleted file mode 100644 index 42b8e34c98..0000000000 --- a/rust/cloud-storage/.sqlx/query-14acfc516e4790908d6e9378281d30f55a71271945c03e98665acc3cc9d4ea4b.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT \"organizationId\" as organization_id FROM \"User\" WHERE id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "organization_id", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "14acfc516e4790908d6e9378281d30f55a71271945c03e98665acc3cc9d4ea4b" -} diff --git a/rust/cloud-storage/.sqlx/query-14cb6f59ddb400c9539d83f42f665da8af863d2fd1ebf848a1a6e64db75a9ef2.json b/rust/cloud-storage/.sqlx/query-14cb6f59ddb400c9539d83f42f665da8af863d2fd1ebf848a1a6e64db75a9ef2.json deleted file mode 100644 index a952d834cc..0000000000 --- a/rust/cloud-storage/.sqlx/query-14cb6f59ddb400c9539d83f42f665da8af863d2fd1ebf848a1a6e64db75a9ef2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"stripeCustomerId\" as \"stripe_customer_id?\"\n FROM \"User\"\n WHERE \"id\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "stripe_customer_id?", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "14cb6f59ddb400c9539d83f42f665da8af863d2fd1ebf848a1a6e64db75a9ef2" -} diff --git a/rust/cloud-storage/.sqlx/query-14f0507004b3076a625e1a10ab8de9b4f09cf2a0480dbca99952cf0d8b78b177.json b/rust/cloud-storage/.sqlx/query-14f0507004b3076a625e1a10ab8de9b4f09cf2a0480dbca99952cf0d8b78b177.json deleted file mode 100644 index b4f92836bd..0000000000 --- a/rust/cloud-storage/.sqlx/query-14f0507004b3076a625e1a10ab8de9b4f09cf2a0480dbca99952cf0d8b78b177.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM saved_view WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "14f0507004b3076a625e1a10ab8de9b4f09cf2a0480dbca99952cf0d8b78b177" -} diff --git a/rust/cloud-storage/.sqlx/query-1511f43c28d30141885fec9cfbc87b855ec6f10241b3e74499f22aeef7f762bc.json b/rust/cloud-storage/.sqlx/query-1511f43c28d30141885fec9cfbc87b855ec6f10241b3e74499f22aeef7f762bc.json deleted file mode 100644 index 3b87978453..0000000000 --- a/rust/cloud-storage/.sqlx/query-1511f43c28d30141885fec9cfbc87b855ec6f10241b3e74499f22aeef7f762bc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS(\n SELECT 1 FROM promoted_shared_mailboxes WHERE macro_id = $1\n ) AS \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "1511f43c28d30141885fec9cfbc87b855ec6f10241b3e74499f22aeef7f762bc" -} diff --git a/rust/cloud-storage/.sqlx/query-152c4be0db7c3ecd7cf7ca77049231154b7f03ae0ebb073103df8b0554d416af.json b/rust/cloud-storage/.sqlx/query-152c4be0db7c3ecd7cf7ca77049231154b7f03ae0ebb073103df8b0554d416af.json deleted file mode 100644 index 62daab76de..0000000000 --- a/rust/cloud-storage/.sqlx/query-152c4be0db7c3ecd7cf7ca77049231154b7f03ae0ebb073103df8b0554d416af.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"User\"\n SET \"tutorialComplete\" = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Bool", - "Text" - ] - }, - "nullable": [] - }, - "hash": "152c4be0db7c3ecd7cf7ca77049231154b7f03ae0ebb073103df8b0554d416af" -} diff --git a/rust/cloud-storage/.sqlx/query-15b00cf9b57c2c077f7e55bd25c267a6cf83c9efdc10ba23981f7b85847881c3.json b/rust/cloud-storage/.sqlx/query-15b00cf9b57c2c077f7e55bd25c267a6cf83c9efdc10ba23981f7b85847881c3.json deleted file mode 100644 index ef0ebb8a40..0000000000 --- a/rust/cloud-storage/.sqlx/query-15b00cf9b57c2c077f7e55bd25c267a6cf83c9efdc10ba23981f7b85847881c3.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, macro_id, fusionauth_user_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at \n FROM email_links\n WHERE macro_id = $1\n ORDER BY created_at DESC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "provider: _", - "type_info": { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_sync_active", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "15b00cf9b57c2c077f7e55bd25c267a6cf83c9efdc10ba23981f7b85847881c3" -} diff --git a/rust/cloud-storage/.sqlx/query-15f433450a25ed0fb63fa44a1e4d13fb82179f90fbdd99b632a244c24f1ff5d2.json b/rust/cloud-storage/.sqlx/query-15f433450a25ed0fb63fa44a1e4d13fb82179f90fbdd99b632a244c24f1ff5d2.json deleted file mode 100644 index 7c02d0b9f0..0000000000 --- a/rust/cloud-storage/.sqlx/query-15f433450a25ed0fb63fa44a1e4d13fb82179f90fbdd99b632a244c24f1ff5d2.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO team (id, name, owner_id, seat_count)\n VALUES ($1, $2, $3, 1)\n RETURNING id, name, slug, owner_id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "slug", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "owner_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false - ] - }, - "hash": "15f433450a25ed0fb63fa44a1e4d13fb82179f90fbdd99b632a244c24f1ff5d2" -} diff --git a/rust/cloud-storage/.sqlx/query-166a1874072c2882aaca16d26b22a66944f723c32d9066d1d8b671b177986aa4.json b/rust/cloud-storage/.sqlx/query-166a1874072c2882aaca16d26b22a66944f723c32d9066d1d8b671b177986aa4.json deleted file mode 100644 index 746d602d16..0000000000 --- a/rust/cloud-storage/.sqlx/query-166a1874072c2882aaca16d26b22a66944f723c32d9066d1d8b671b177986aa4.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"organizationId\" as organization_id\n FROM \"OrganizationEmailMatches\"\n WHERE email = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "organization_id", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "166a1874072c2882aaca16d26b22a66944f723c32d9066d1d8b671b177986aa4" -} diff --git a/rust/cloud-storage/.sqlx/query-16975c8ff9585b8da53ace00a26851f992232834de508dac16ff58d9da1cbc2a.json b/rust/cloud-storage/.sqlx/query-16975c8ff9585b8da53ace00a26851f992232834de508dac16ff58d9da1cbc2a.json deleted file mode 100644 index b0e63bec06..0000000000 --- a/rust/cloud-storage/.sqlx/query-16975c8ff9585b8da53ace00a26851f992232834de508dac16ff58d9da1cbc2a.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_attachments_drafts (\n id, draft_id, file_name, content_type, sha, size, s3_key\n )\n -- if the message belongs to a different link_id, nothing will be returned from this\n -- and thus nothing will be inserted\n SELECT $1, $2, $3, $4, $5, $6, $7\n FROM email_messages m\n WHERE m.id = $2 AND m.link_id = $8\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text", - "Text", - "Text", - "Int4", - "Text", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "16975c8ff9585b8da53ace00a26851f992232834de508dac16ff58d9da1cbc2a" -} diff --git a/rust/cloud-storage/.sqlx/query-169914b00c5e4ced19940e170f8135d288553a7fdc41589e2211da4c32cead9a.json b/rust/cloud-storage/.sqlx/query-169914b00c5e4ced19940e170f8135d288553a7fdc41589e2211da4c32cead9a.json deleted file mode 100644 index 0ff57465ef..0000000000 --- a/rust/cloud-storage/.sqlx/query-169914b00c5e4ced19940e170f8135d288553a7fdc41589e2211da4c32cead9a.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH RECURSIVE project_hierarchy AS (\n SELECT\n p.id\n FROM \"Project\" p\n WHERE p.id = ANY($1) AND p.\"deletedAt\" IS NULL\n UNION ALL\n SELECT\n sub_p.id\n FROM \"Project\" sub_p\n INNER JOIN project_hierarchy ph ON sub_p.\"parentId\" = ph.id\n WHERE sub_p.\"deletedAt\" IS NULL\n )\n SELECT\n ph.id as \"id!\"\n FROM project_hierarchy ph\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - null - ] - }, - "hash": "169914b00c5e4ced19940e170f8135d288553a7fdc41589e2211da4c32cead9a" -} diff --git a/rust/cloud-storage/.sqlx/query-16da7cf038f35f49f83fc3a869f56da725bccb87d92dc3a2c4195a7b4c436a29.json b/rust/cloud-storage/.sqlx/query-16da7cf038f35f49f83fc3a869f56da725bccb87d92dc3a2c4195a7b4c436a29.json deleted file mode 100644 index 45ffc5a866..0000000000 --- a/rust/cloud-storage/.sqlx/query-16da7cf038f35f49f83fc3a869f56da725bccb87d92dc3a2c4195a7b4c436a29.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"documentId\" as \"document_id\"\n FROM \"InstructionsDocuments\" id\n JOIN \"Document\" d ON d.\"id\" = id.\"documentId\"\n WHERE \"userId\" = $1 AND d.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "16da7cf038f35f49f83fc3a869f56da725bccb87d92dc3a2c4195a7b4c436a29" -} diff --git a/rust/cloud-storage/.sqlx/query-16fe6d8422135f9b01d5acb48576c9ebeea62fe8b80747ddcf9c5fdeee1a6c7e.json b/rust/cloud-storage/.sqlx/query-16fe6d8422135f9b01d5acb48576c9ebeea62fe8b80747ddcf9c5fdeee1a6c7e.json deleted file mode 100644 index 08f519fb97..0000000000 --- a/rust/cloud-storage/.sqlx/query-16fe6d8422135f9b01d5acb48576c9ebeea62fe8b80747ddcf9c5fdeee1a6c7e.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_message_labels (message_id, label_id)\n SELECT\n unnested_message_id,\n l.id\n FROM\n UNNEST($1::uuid[]) AS t(unnested_message_id)\n CROSS JOIN\n email_labels l\n WHERE\n l.link_id = $2 AND l.provider_label_id = $3\n ON CONFLICT (message_id, label_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "16fe6d8422135f9b01d5acb48576c9ebeea62fe8b80747ddcf9c5fdeee1a6c7e" -} diff --git a/rust/cloud-storage/.sqlx/query-170411ea24963c7605046d59dbf2bc32d23c2d62e36a11e3875a8b84e8f1e062.json b/rust/cloud-storage/.sqlx/query-170411ea24963c7605046d59dbf2bc32d23c2d62e36a11e3875a8b84e8f1e062.json deleted file mode 100644 index 65a1903328..0000000000 --- a/rust/cloud-storage/.sqlx/query-170411ea24963c7605046d59dbf2bc32d23c2d62e36a11e3875a8b84e8f1e062.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO task_duplicate_match (\n id,\n task_id,\n duplicate_task_id,\n status,\n vector_score,\n judge_model,\n judge_reason\n )\n VALUES ($1, $2, $3, 'active', $4, $5, $6)\n ON CONFLICT (task_id, duplicate_task_id) DO UPDATE\n SET status = 'active',\n vector_score = EXCLUDED.vector_score,\n judge_model = EXCLUDED.judge_model,\n judge_reason = EXCLUDED.judge_reason,\n updated_at = NOW()\n WHERE task_duplicate_match.status <> 'dismissed'\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Float8", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "170411ea24963c7605046d59dbf2bc32d23c2d62e36a11e3875a8b84e8f1e062" -} diff --git a/rust/cloud-storage/.sqlx/query-1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e.json b/rust/cloud-storage/.sqlx/query-1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e.json deleted file mode 100644 index 54063b0e84..0000000000 --- a/rust/cloud-storage/.sqlx/query-1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Document\"\n WHERE owner = $1 AND \"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e" -} diff --git a/rust/cloud-storage/.sqlx/query-1780a52d3024ae99105fd28c74121b9a3611ea3ae3bf5edccebda195b52bead2.json b/rust/cloud-storage/.sqlx/query-1780a52d3024ae99105fd28c74121b9a3611ea3ae3bf5edccebda195b52bead2.json deleted file mode 100644 index 59dfc222e7..0000000000 --- a/rust/cloud-storage/.sqlx/query-1780a52d3024ae99105fd28c74121b9a3611ea3ae3bf5edccebda195b52bead2.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT e.id, e.active, e.\"started_at\"::timestamptz as started_at, e.\"ended_at\"::timestamptz as ended_at\n FROM \"Experiment\" e\n JOIN \"ExperimentLog\" el ON e.id = el.experiment_id\n WHERE el.user_id = $1 AND e.active = true\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "active", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "started_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "ended_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - null, - null - ] - }, - "hash": "1780a52d3024ae99105fd28c74121b9a3611ea3ae3bf5edccebda195b52bead2" -} diff --git a/rust/cloud-storage/.sqlx/query-1787312f37ce2a63f3a448f70e719581607988c79c9d2f4ead58811d60d5bec7.json b/rust/cloud-storage/.sqlx/query-1787312f37ce2a63f3a448f70e719581607988c79c9d2f4ead58811d60d5bec7.json deleted file mode 100644 index 3001af3ce5..0000000000 --- a/rust/cloud-storage/.sqlx/query-1787312f37ce2a63f3a448f70e719581607988c79c9d2f4ead58811d60d5bec7.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM scheduled_action\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "1787312f37ce2a63f3a448f70e719581607988c79c9d2f4ead58811d60d5bec7" -} diff --git a/rust/cloud-storage/.sqlx/query-1787f623620cbe61083403a7e51577540398e8ce459156d6f83fcb8193fc2800.json b/rust/cloud-storage/.sqlx/query-1787f623620cbe61083403a7e51577540398e8ce459156d6f83fcb8193fc2800.json deleted file mode 100644 index da58536bad..0000000000 --- a/rust/cloud-storage/.sqlx/query-1787f623620cbe61083403a7e51577540398e8ce459156d6f83fcb8193fc2800.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text AS source_id\n FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text\n FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n visible_calls AS (\n SELECT\n cr.id,\n CASE\n WHEN EXISTS (\n SELECT 1 FROM call_record_participants crp\n WHERE crp.call_record_id = cr.id AND crp.user_id = $1\n ) THEN 'ATTENDED'\n WHEN EXISTS (\n SELECT 1 FROM comms_channel_participants ccp\n WHERE ccp.channel_id = cr.channel_id\n AND ccp.user_id = $1\n AND ccp.left_at IS NULL\n ) THEN 'MISSED'\n ELSE 'UNATTENDED'\n END AS status\n FROM call_records cr\n WHERE (\n EXISTS (\n SELECT 1 FROM entity_access ea\n WHERE ea.entity_id = cr.id\n AND ea.entity_type = 'call'\n AND ea.source_id IN (SELECT source_id FROM user_source_ids)\n ) OR EXISTS (\n SELECT 1 FROM \"SharePermission\" sp\n WHERE sp.id = cr.share_permission_id\n AND sp.\"isPublic\" = true\n AND sp.\"publicAccessLevel\" IS NOT NULL\n )\n )\n )\n SELECT id AS \"id!\"\n FROM visible_calls\n WHERE cardinality($2::text[]) = 0 OR status = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "1787f623620cbe61083403a7e51577540398e8ce459156d6f83fcb8193fc2800" -} diff --git a/rust/cloud-storage/.sqlx/query-178aa765b997de754dd7405fc233aa7b24dd0a456f3cd4863725b3089f7bbe27.json b/rust/cloud-storage/.sqlx/query-178aa765b997de754dd7405fc233aa7b24dd0a456f3cd4863725b3089f7bbe27.json deleted file mode 100644 index 98595cec9c..0000000000 --- a/rust/cloud-storage/.sqlx/query-178aa765b997de754dd7405fc233aa7b24dd0a456f3cd4863725b3089f7bbe27.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n id, \n owner, \n text as content, \n \"createdAt\" as created_at, \n \"updatedAt\" as updated_at,\n \"order\"\n FROM \"Comment\" \n WHERE \"threadId\" = $1\n ORDER BY \"order\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamp" - }, - { - "ordinal": 5, - "name": "order", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true - ] - }, - "hash": "178aa765b997de754dd7405fc233aa7b24dd0a456f3cd4863725b3089f7bbe27" -} diff --git a/rust/cloud-storage/.sqlx/query-17b1a9529bc693aeb668fd0c432d6b55a4c527fd3105bfa9cf83dbc70516011c.json b/rust/cloud-storage/.sqlx/query-17b1a9529bc693aeb668fd0c432d6b55a4c527fd3105bfa9cf83dbc70516011c.json deleted file mode 100644 index 6aac09106d..0000000000 --- a/rust/cloud-storage/.sqlx/query-17b1a9529bc693aeb668fd0c432d6b55a4c527fd3105bfa9cf83dbc70516011c.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as \"document_id\",\n d.owner,\n d.name as \"document_name\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"projectId\" as \"project_id\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n WHERE\n d.id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 5, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 8, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - true, - true, - false, - true, - null - ] - }, - "hash": "17b1a9529bc693aeb668fd0c432d6b55a4c527fd3105bfa9cf83dbc70516011c" -} diff --git a/rust/cloud-storage/.sqlx/query-17eb78883f203e76c823566fa1127a752597dae52b891be1e12526b02fdb2e6c.json b/rust/cloud-storage/.sqlx/query-17eb78883f203e76c823566fa1127a752597dae52b891be1e12526b02fdb2e6c.json deleted file mode 100644 index 5e44ab1491..0000000000 --- a/rust/cloud-storage/.sqlx/query-17eb78883f203e76c823566fa1127a752597dae52b891be1e12526b02fdb2e6c.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM crm_companies WHERE team_id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "17eb78883f203e76c823566fa1127a752597dae52b891be1e12526b02fdb2e6c" -} diff --git a/rust/cloud-storage/.sqlx/query-18134bc97487fbf6b88e8afdb94dc601bf0d997ad5b6974ef5866dd6262b8618.json b/rust/cloud-storage/.sqlx/query-18134bc97487fbf6b88e8afdb94dc601bf0d997ad5b6974ef5866dd6262b8618.json deleted file mode 100644 index cbb754459e..0000000000 --- a/rust/cloud-storage/.sqlx/query-18134bc97487fbf6b88e8afdb94dc601bf0d997ad5b6974ef5866dd6262b8618.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n -- Get all entities the user has access to via entity_access, filtered to requested items\n AllAccessGrants AS (\n -- Documents the user has access to\n SELECT ea.entity_id::text as item_id, ea.entity_type as item_type\n FROM entity_access ea\n LEFT JOIN \"Document\" d ON ea.entity_type = 'document' AND ea.entity_id::text = d.id\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n AND ea.entity_type = 'document'\n AND ea.entity_id::text = ANY($2)\n AND d.\"deletedAt\" IS NULL\n\n UNION ALL\n\n -- Chats the user has access to\n SELECT ea.entity_id::text as item_id, ea.entity_type as item_type\n FROM entity_access ea\n LEFT JOIN \"Chat\" c ON ea.entity_type = 'chat' AND ea.entity_id::text = c.id\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n AND ea.entity_type = 'chat'\n AND ea.entity_id::text = ANY($3)\n AND c.\"deletedAt\" IS NULL\n\n UNION ALL\n\n -- Projects the user has access to\n SELECT ea.entity_id::text as item_id, ea.entity_type as item_type\n FROM entity_access ea\n LEFT JOIN \"Project\" p ON ea.entity_type = 'project' AND ea.entity_id::text = p.id\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n AND ea.entity_type = 'project'\n AND ea.entity_id::text = ANY($4)\n AND p.\"deletedAt\" IS NULL\n ),\n UserAccessibleItems AS (\n SELECT\n item_id,\n item_type\n FROM AllAccessGrants\n GROUP BY item_id, item_type\n )\n SELECT item_id as \"item_id!\", item_type as \"item_type!\" FROM UserAccessibleItems\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "item_type!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray", - "TextArray", - "TextArray" - ] - }, - "nullable": [ - null, - null - ] - }, - "hash": "18134bc97487fbf6b88e8afdb94dc601bf0d997ad5b6974ef5866dd6262b8618" -} diff --git a/rust/cloud-storage/.sqlx/query-183fbda8d590393f7f3faa763c2cb6344b42556f949b59a0f8f77a01ec8572c4.json b/rust/cloud-storage/.sqlx/query-183fbda8d590393f7f3faa763c2cb6344b42556f949b59a0f8f77a01ec8572c4.json deleted file mode 100644 index 3a8125cf5d..0000000000 --- a/rust/cloud-storage/.sqlx/query-183fbda8d590393f7f3faa763c2cb6344b42556f949b59a0f8f77a01ec8572c4.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n ea.message_id,\n ea.id,\n ea.provider_attachment_id,\n ea.filename,\n ea.mime_type,\n ea.size_bytes,\n eas.sfs_id as \"sfs_id?\",\n ea.content_id\n FROM email_attachments ea\n LEFT JOIN email_attachments_sfs eas ON ea.id = eas.attachment_id\n WHERE ea.message_id = ANY($1)\n ORDER BY ea.message_id, ea.filename NULLS LAST\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_attachment_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "filename", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "mime_type", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "size_bytes", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "sfs_id?", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "content_id", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - true, - true, - true, - true, - false, - true - ] - }, - "hash": "183fbda8d590393f7f3faa763c2cb6344b42556f949b59a0f8f77a01ec8572c4" -} diff --git a/rust/cloud-storage/.sqlx/query-184633e8b40af8c1077847e8b20dbee5117d4a35ec182b62db7d4ea0507ee73c.json b/rust/cloud-storage/.sqlx/query-184633e8b40af8c1077847e8b20dbee5117d4a35ec182b62db7d4ea0507ee73c.json deleted file mode 100644 index 313d7cf3a4..0000000000 --- a/rust/cloud-storage/.sqlx/query-184633e8b40af8c1077847e8b20dbee5117d4a35ec182b62db7d4ea0507ee73c.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChatAttachment\" (\"entity_type\", \"entity_id\", \"chatId\", \"messageId\")\n SELECT * FROM UNNEST($1::TEXT[], $2::UUID[], $3::TEXT[], $4::TEXT[])\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "UuidArray", - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "184633e8b40af8c1077847e8b20dbee5117d4a35ec182b62db7d4ea0507ee73c" -} diff --git a/rust/cloud-storage/.sqlx/query-18aac439d006f5d15299582df56f00790bde81c4e7a515e6cadbf341466b9fa8.json b/rust/cloud-storage/.sqlx/query-18aac439d006f5d15299582df56f00790bde81c4e7a515e6cadbf341466b9fa8.json deleted file mode 100644 index f542fc63f8..0000000000 --- a/rust/cloud-storage/.sqlx/query-18aac439d006f5d15299582df56f00790bde81c4e7a515e6cadbf341466b9fa8.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n bp.sha\n FROM \"BomPart\" bp\n JOIN \"DocumentBom\" db ON bp.\"documentBomId\" = db.id\n WHERE db.\"documentId\" = $1\n AND db.id = (\n SELECT db_inner.id\n FROM \"DocumentBom\" db_inner\n WHERE db_inner.\"documentId\" = $1\n ORDER BY db_inner.\"updatedAt\" DESC\n LIMIT 1\n )\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sha", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "18aac439d006f5d15299582df56f00790bde81c4e7a515e6cadbf341466b9fa8" -} diff --git a/rust/cloud-storage/.sqlx/query-18ce46c3571cde47b087eae1c4aa5fef86b1058e0b9ad16614fc06d02f4cf86f.json b/rust/cloud-storage/.sqlx/query-18ce46c3571cde47b087eae1c4aa5fef86b1058e0b9ad16614fc06d02f4cf86f.json deleted file mode 100644 index 39cffecceb..0000000000 --- a/rust/cloud-storage/.sqlx/query-18ce46c3571cde47b087eae1c4aa5fef86b1058e0b9ad16614fc06d02f4cf86f.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH label_lookup AS (\n SELECT id FROM email_labels\n WHERE link_id = $2 AND provider_label_id = $3\n )\n INSERT INTO email_message_labels (message_id, label_id)\n SELECT $1, id FROM label_lookup\n ON CONFLICT (message_id, label_id) DO NOTHING\n RETURNING (SELECT COUNT(*) FROM label_lookup) AS label_found\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "label_found", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "18ce46c3571cde47b087eae1c4aa5fef86b1058e0b9ad16614fc06d02f4cf86f" -} diff --git a/rust/cloud-storage/.sqlx/query-18d2885f4c7a6ffd835a5d661ec5e81dd143cd4a51873e92050a0beedbbb86cb.json b/rust/cloud-storage/.sqlx/query-18d2885f4c7a6ffd835a5d661ec5e81dd143cd4a51873e92050a0beedbbb86cb.json deleted file mode 100644 index 6c17e2c89d..0000000000 --- a/rust/cloud-storage/.sqlx/query-18d2885f4c7a6ffd835a5d661ec5e81dd143cd4a51873e92050a0beedbbb86cb.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n channel_id,\n share_permission_id,\n access_level as \"access_level: AccessLevel\"\n FROM\n \"ChannelSharePermission\"\n WHERE\n channel_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "share_permission_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "access_level: AccessLevel", - "type_info": { - "Custom": { - "name": "\"AccessLevel\"", - "kind": { - "Enum": [ - "view", - "comment", - "edit", - "owner" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "18d2885f4c7a6ffd835a5d661ec5e81dd143cd4a51873e92050a0beedbbb86cb" -} diff --git a/rust/cloud-storage/.sqlx/query-18f484857d5b6d140bfe2e78fce5632c78c630fddf249f0d53261e601969889b.json b/rust/cloud-storage/.sqlx/query-18f484857d5b6d140bfe2e78fce5632c78c630fddf249f0d53261e601969889b.json deleted file mode 100644 index e742261f23..0000000000 --- a/rust/cloud-storage/.sqlx/query-18f484857d5b6d140bfe2e78fce5632c78c630fddf249f0d53261e601969889b.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_links\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "18f484857d5b6d140bfe2e78fce5632c78c630fddf249f0d53261e601969889b" -} diff --git a/rust/cloud-storage/.sqlx/query-18fc1de07e3dc64355b0baf69f67bd8c5254c63292c67e87ac3c3f45c20b7284.json b/rust/cloud-storage/.sqlx/query-18fc1de07e3dc64355b0baf69f67bd8c5254c63292c67e87ac3c3f45c20b7284.json deleted file mode 100644 index ff6c450bbb..0000000000 --- a/rust/cloud-storage/.sqlx/query-18fc1de07e3dc64355b0baf69f67bd8c5254c63292c67e87ac3c3f45c20b7284.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"PdfPlaceableCommentAnchor\" (\n \"uuid\", \"owner\", \"threadId\", \"page\", \"originalPage\", \"originalIndex\", \n \"xPct\", \"yPct\", \"widthPct\", \"heightPct\", \"allowableEdits\", \n \"wasEdited\", \"wasDeleted\", \"shouldLockOnSave\", \"documentId\", \"rotation\"\n ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16)\n RETURNING \n uuid, \n \"documentId\" as document_id,\n owner, \n \"threadId\" as thread_id, \n page, \n \"originalPage\" as original_page, \n \"originalIndex\" as original_index, \n \"xPct\" as x_pct, \n \"yPct\" as y_pct, \n \"widthPct\" as width_pct, \n \"heightPct\" as height_pct, \n rotation,\n \"allowableEdits\" as allowable_edits, \n \"wasEdited\" as was_edited, \n \"wasDeleted\" as was_deleted, \n \"shouldLockOnSave\" as should_lock_on_save\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "page", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "original_page", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "original_index", - "type_info": "Int4" - }, - { - "ordinal": 7, - "name": "x_pct", - "type_info": "Float8" - }, - { - "ordinal": 8, - "name": "y_pct", - "type_info": "Float8" - }, - { - "ordinal": 9, - "name": "width_pct", - "type_info": "Float8" - }, - { - "ordinal": 10, - "name": "height_pct", - "type_info": "Float8" - }, - { - "ordinal": 11, - "name": "rotation", - "type_info": "Float8" - }, - { - "ordinal": 12, - "name": "allowable_edits", - "type_info": "Jsonb" - }, - { - "ordinal": 13, - "name": "was_edited", - "type_info": "Bool" - }, - { - "ordinal": 14, - "name": "was_deleted", - "type_info": "Bool" - }, - { - "ordinal": 15, - "name": "should_lock_on_save", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Int8", - "Int4", - "Int4", - "Int4", - "Float8", - "Float8", - "Float8", - "Float8", - "Jsonb", - "Bool", - "Bool", - "Bool", - "Text", - "Float8" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false - ] - }, - "hash": "18fc1de07e3dc64355b0baf69f67bd8c5254c63292c67e87ac3c3f45c20b7284" -} diff --git a/rust/cloud-storage/.sqlx/query-190452da4bb37a289c415dfbb4ec725bbda911931e97ccb22a5868b5a7655709.json b/rust/cloud-storage/.sqlx/query-190452da4bb37a289c415dfbb4ec725bbda911931e97ccb22a5868b5a7655709.json deleted file mode 100644 index 1a46bafb16..0000000000 --- a/rust/cloud-storage/.sqlx/query-190452da4bb37a289c415dfbb4ec725bbda911931e97ccb22a5868b5a7655709.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.\"id\" as id\n FROM \"Chat\" c\n INNER JOIN \"UserHistory\" uh ON uh.\"itemId\" = c.\"id\" AND uh.\"itemType\" = 'chat'\n INNER JOIN \"User\" u ON u.id = uh.\"userId\"\n WHERE c.id = $1 AND u.id != c.\"userId\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "190452da4bb37a289c415dfbb4ec725bbda911931e97ccb22a5868b5a7655709" -} diff --git a/rust/cloud-storage/.sqlx/query-19ad643d2447743fb58441e39654369eb50ac8efbea1fd554bdca3d7545d61e0.json b/rust/cloud-storage/.sqlx/query-19ad643d2447743fb58441e39654369eb50ac8efbea1fd554bdca3d7545d61e0.json deleted file mode 100644 index 69c93d3037..0000000000 --- a/rust/cloud-storage/.sqlx/query-19ad643d2447743fb58441e39654369eb50ac8efbea1fd554bdca3d7545d61e0.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Document\" (owner, name, \"fileType\", \"projectId\")\n VALUES ($1, $2, $3, $4)\n RETURNING id;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "19ad643d2447743fb58441e39654369eb50ac8efbea1fd554bdca3d7545d61e0" -} diff --git a/rust/cloud-storage/.sqlx/query-19c878ce5817c5643e48a6159fce81a2f964defcb7b190460f2b16ac67078766.json b/rust/cloud-storage/.sqlx/query-19c878ce5817c5643e48a6159fce81a2f964defcb7b190460f2b16ac67078766.json deleted file mode 100644 index 7df56bcc2a..0000000000 --- a/rust/cloud-storage/.sqlx/query-19c878ce5817c5643e48a6159fce81a2f964defcb7b190460f2b16ac67078766.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM notification_user_device_registration\n WHERE device_token = $1 AND device_type = $2\n RETURNING device_endpoint\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "device_endpoint", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - { - "Custom": { - "name": "notification_device_type_option", - "kind": { - "Enum": [ - "ios", - "android", - "iosvoip" - ] - } - } - } - ] - }, - "nullable": [ - false - ] - }, - "hash": "19c878ce5817c5643e48a6159fce81a2f964defcb7b190460f2b16ac67078766" -} diff --git a/rust/cloud-storage/.sqlx/query-1a5d33c55a52c7076f78b54e915e57fe675a43d9dd2d6198d1039565131d52f1.json b/rust/cloud-storage/.sqlx/query-1a5d33c55a52c7076f78b54e915e57fe675a43d9dd2d6198d1039565131d52f1.json deleted file mode 100644 index a67426e009..0000000000 --- a/rust/cloud-storage/.sqlx/query-1a5d33c55a52c7076f78b54e915e57fe675a43d9dd2d6198d1039565131d52f1.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(*)\n FROM \"DocumentView\" dv\n WHERE dv.\"document_id\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "1a5d33c55a52c7076f78b54e915e57fe675a43d9dd2d6198d1039565131d52f1" -} diff --git a/rust/cloud-storage/.sqlx/query-1ad1d46ce50de26cb5f1441e73845df205acdf018d65ada384f0b059425e9ab0.json b/rust/cloud-storage/.sqlx/query-1ad1d46ce50de26cb5f1441e73845df205acdf018d65ada384f0b059425e9ab0.json deleted file mode 100644 index fdda5f8185..0000000000 --- a/rust/cloud-storage/.sqlx/query-1ad1d46ce50de26cb5f1441e73845df205acdf018d65ada384f0b059425e9ab0.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE bot_tokens\n SET last_used_at = now()\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "1ad1d46ce50de26cb5f1441e73845df205acdf018d65ada384f0b059425e9ab0" -} diff --git a/rust/cloud-storage/.sqlx/query-1b30e7bb6b67b93826781122a191e243db4c43ec8630b32ea48b1c7e31724264.json b/rust/cloud-storage/.sqlx/query-1b30e7bb6b67b93826781122a191e243db4c43ec8630b32ea48b1c7e31724264.json deleted file mode 100644 index 29a3ad393c..0000000000 --- a/rust/cloud-storage/.sqlx/query-1b30e7bb6b67b93826781122a191e243db4c43ec8630b32ea48b1c7e31724264.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n UserAccessibleItems AS (\n SELECT DISTINCT\n ea.entity_id::text as item_id,\n ea.entity_type as item_type\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n ),\n Combined AS (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\",\n d.\"projectId\" as \"project_id\",\n NULL as \"is_persistent\",\n di.sha as \"sha\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE\n WHEN dt.sub_type = 'task'\n AND ep_status.values->'value' ? $4\n THEN true\n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL\n END as \"is_completed\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status \n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id \n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $5\n INNER JOIN UserAccessibleItems uai \n ON uai.item_id = d.id \n AND uai.item_type = 'document'\n LEFT JOIN \"UserHistory\" uh \n ON uh.\"itemId\" = d.id \n AND uh.\"itemType\" = 'document' \n AND uh.\"userId\" = $1\n LEFT JOIN LATERAL (\n SELECT b.id \n FROM \"DocumentBom\" b \n WHERE b.\"documentId\" = d.id \n ORDER BY b.\"createdAt\" DESC \n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT i.id, i.sha \n FROM \"DocumentInstance\" i \n WHERE i.\"documentId\" = d.id \n ORDER BY i.\"updatedAt\" DESC \n LIMIT 1\n ) di ON true\n WHERE d.\"deletedAt\" IS NULL\n AND d.id = ANY($2::text[])\n\n UNION ALL\n \n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at!\",\n c.\"updatedAt\"::timestamptz as \"updated_at!\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n NULL as \"is_completed\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Chat\" c\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = c.id\n AND uai.item_type = 'chat'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = c.id\n AND uh.\"itemType\" = 'chat'\n AND uh.\"userId\" = $1\n WHERE c.\"deletedAt\" IS NULL\n AND c.id = ANY($3::text[])\n )\n SELECT * \n FROM Combined\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_type!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_version_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "user_id!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "name!", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 8, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "is_persistent", - "type_info": "Bool" - }, - { - "ordinal": 13, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 14, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 15, - "name": "viewed_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 16, - "name": "is_completed", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray", - "TextArray", - "Text", - "Uuid" - ] - }, - "nullable": [ - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null - ] - }, - "hash": "1b30e7bb6b67b93826781122a191e243db4c43ec8630b32ea48b1c7e31724264" -} diff --git a/rust/cloud-storage/.sqlx/query-1b324f7419bf6620c5eae611b237ee202fb2b3b011422dc27f351a2c3d10813c.json b/rust/cloud-storage/.sqlx/query-1b324f7419bf6620c5eae611b237ee202fb2b3b011422dc27f351a2c3d10813c.json deleted file mode 100644 index 8257f56f38..0000000000 --- a/rust/cloud-storage/.sqlx/query-1b324f7419bf6620c5eae611b237ee202fb2b3b011422dc27f351a2c3d10813c.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\nSELECT\n ep.id as entity_property_id,\n ep.entity_id,\n ep.entity_type as \"entity_type: EntityType\",\n ep.property_definition_id,\n ep.values as \"values: sqlx::types::JsonValue\",\n ep.created_at as entity_property_created_at,\n ep.updated_at as entity_property_updated_at,\n pd.organization_id as definition_organization_id,\n pd.user_id as definition_user_id,\n pd.display_name,\n pd.data_type as \"data_type: DataType\",\n pd.is_multi_select,\n pd.specific_entity_type as \"specific_entity_type: Option\",\n pd.created_at as definition_created_at,\n pd.updated_at as definition_updated_at,\n pd.is_system as definition_is_system\nFROM entity_properties ep\nINNER JOIN property_definitions pd ON ep.property_definition_id = pd.id\nWHERE (ep.entity_id, ep.entity_type) IN (\n SELECT * FROM UNNEST($1::TEXT[], $2::property_entity_type[])\n)\n", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_property_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "entity_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "entity_type: EntityType", - "type_info": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - }, - { - "ordinal": 3, - "name": "property_definition_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "values: sqlx::types::JsonValue", - "type_info": "Jsonb" - }, - { - "ordinal": 5, - "name": "entity_property_created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "entity_property_updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "definition_organization_id", - "type_info": "Int4" - }, - { - "ordinal": 8, - "name": "definition_user_id", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "display_name", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "data_type: DataType", - "type_info": { - "Custom": { - "name": "property_data_type", - "kind": { - "Enum": [ - "BOOLEAN", - "DATE", - "NUMBER", - "STRING", - "SELECT_NUMBER", - "SELECT_STRING", - "ENTITY", - "LINK" - ] - } - } - } - }, - { - "ordinal": 11, - "name": "is_multi_select", - "type_info": "Bool" - }, - { - "ordinal": 12, - "name": "specific_entity_type: Option", - "type_info": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - }, - { - "ordinal": 13, - "name": "definition_created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 14, - "name": "definition_updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "definition_is_system", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "TextArray", - { - "Custom": { - "name": "property_entity_type[]", - "kind": { - "Array": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - } - } - } - ] - }, - "nullable": [ - false, - false, - false, - false, - true, - false, - false, - true, - true, - false, - false, - false, - true, - false, - false, - false - ] - }, - "hash": "1b324f7419bf6620c5eae611b237ee202fb2b3b011422dc27f351a2c3d10813c" -} diff --git a/rust/cloud-storage/.sqlx/query-1b40eda58263b088d61f65897fdfe490653e4c1065cd55e9c39722b988c54a02.json b/rust/cloud-storage/.sqlx/query-1b40eda58263b088d61f65897fdfe490653e4c1065cd55e9c39722b988c54a02.json deleted file mode 100644 index bf7f89fe5e..0000000000 --- a/rust/cloud-storage/.sqlx/query-1b40eda58263b088d61f65897fdfe490653e4c1065cd55e9c39722b988c54a02.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM \"DocumentBom\" WHERE id = $2 and \"documentId\" = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Int8" - ] - }, - "nullable": [] - }, - "hash": "1b40eda58263b088d61f65897fdfe490653e4c1065cd55e9c39722b988c54a02" -} diff --git a/rust/cloud-storage/.sqlx/query-1b50363c934ae7e01406a2cbb674b84fa6af6f7caa8353d52ed22e48b3899327.json b/rust/cloud-storage/.sqlx/query-1b50363c934ae7e01406a2cbb674b84fa6af6f7caa8353d52ed22e48b3899327.json deleted file mode 100644 index 6a64b12e48..0000000000 --- a/rust/cloud-storage/.sqlx/query-1b50363c934ae7e01406a2cbb674b84fa6af6f7caa8353d52ed22e48b3899327.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Pin\" WHERE \"pinnedItemId\" = ANY($1) AND \"pinnedItemType\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "Text" - ] - }, - "nullable": [] - }, - "hash": "1b50363c934ae7e01406a2cbb674b84fa6af6f7caa8353d52ed22e48b3899327" -} diff --git a/rust/cloud-storage/.sqlx/query-1b7983a9a8a54322fd63d2bf169f27b45f853652a757123e3508017861b5c7c6.json b/rust/cloud-storage/.sqlx/query-1b7983a9a8a54322fd63d2bf169f27b45f853652a757123e3508017861b5c7c6.json deleted file mode 100644 index f97907a55c..0000000000 --- a/rust/cloud-storage/.sqlx/query-1b7983a9a8a54322fd63d2bf169f27b45f853652a757123e3508017861b5c7c6.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n \"publicAccessLevel\" as \"access_level!\"\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"ProjectPermission\" WHERE \"projectId\" = $1\n )\n\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "access_level!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "1b7983a9a8a54322fd63d2bf169f27b45f853652a757123e3508017861b5c7c6" -} diff --git a/rust/cloud-storage/.sqlx/query-1b8266e388b4e120d27c47d891f5f447e26ff2b83fc6c6e6a0e2726aba761a51.json b/rust/cloud-storage/.sqlx/query-1b8266e388b4e120d27c47d891f5f447e26ff2b83fc6c6e6a0e2726aba761a51.json deleted file mode 100644 index e8dcefae26..0000000000 --- a/rust/cloud-storage/.sqlx/query-1b8266e388b4e120d27c47d891f5f447e26ff2b83fc6c6e6a0e2726aba761a51.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT DISTINCT m.\"chatId\" as chat_id\n FROM \"ChatMessage\" m\n WHERE m.\"id\" = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "chat_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "1b8266e388b4e120d27c47d891f5f447e26ff2b83fc6c6e6a0e2726aba761a51" -} diff --git a/rust/cloud-storage/.sqlx/query-1b8be86d6e9c1637d47b9ec156a1d8b010408005f7e12db26e1c3fc5b6d23c29.json b/rust/cloud-storage/.sqlx/query-1b8be86d6e9c1637d47b9ec156a1d8b010408005f7e12db26e1c3fc5b6d23c29.json deleted file mode 100644 index 563ccbce2e..0000000000 --- a/rust/cloud-storage/.sqlx/query-1b8be86d6e9c1637d47b9ec156a1d8b010408005f7e12db26e1c3fc5b6d23c29.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n ml.message_id,\n l.id,\n l.link_id,\n l.provider_label_id,\n l.name,\n l.created_at,\n l.message_list_visibility as \"message_list_visibility: _\",\n l.label_list_visibility as \"label_list_visibility: _\",\n l.type as \"type_: _\"\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE\n ml.message_id = ANY($1)\n ORDER BY ml.message_id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "provider_label_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "message_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_message_list_visibility_enum", - "kind": { - "Enum": [ - "Show", - "Hide" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "label_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_label_list_visibility_enum", - "kind": { - "Enum": [ - "LabelShow", - "LabelShowIfUnread", - "LabelHide" - ] - } - } - } - }, - { - "ordinal": 8, - "name": "type_: _", - "type_info": { - "Custom": { - "name": "email_label_type_enum", - "kind": { - "Enum": [ - "System", - "User" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "1b8be86d6e9c1637d47b9ec156a1d8b010408005f7e12db26e1c3fc5b6d23c29" -} diff --git a/rust/cloud-storage/.sqlx/query-1b9256d39a08d605aba08de1c5bddd8eb29bedd31dd21719114646449ab1333f.json b/rust/cloud-storage/.sqlx/query-1b9256d39a08d605aba08de1c5bddd8eb29bedd31dd21719114646449ab1333f.json deleted file mode 100644 index d75fdd9537..0000000000 --- a/rust/cloud-storage/.sqlx/query-1b9256d39a08d605aba08de1c5bddd8eb29bedd31dd21719114646449ab1333f.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH RECURSIVE project_hierarchy AS (\n SELECT\n p.id\n FROM \"Project\" p\n WHERE p.id = $1 AND p.\"deletedAt\" IS NULL\n UNION ALL\n SELECT\n sub_p.id\n FROM \"Project\" sub_p\n INNER JOIN project_hierarchy ph ON sub_p.\"parentId\" = ph.id\n WHERE sub_p.\"deletedAt\" IS NULL\n )\n SELECT\n ph.id as \"id!\"\n FROM project_hierarchy ph\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "1b9256d39a08d605aba08de1c5bddd8eb29bedd31dd21719114646449ab1333f" -} diff --git a/rust/cloud-storage/.sqlx/query-1bf9b2bf67d4780b41454d87c4a1995677a162dd11af0b9d77df947b657cd651.json b/rust/cloud-storage/.sqlx/query-1bf9b2bf67d4780b41454d87c4a1995677a162dd11af0b9d77df947b657cd651.json deleted file mode 100644 index 8c916fcea0..0000000000 --- a/rust/cloud-storage/.sqlx/query-1bf9b2bf67d4780b41454d87c4a1995677a162dd11af0b9d77df947b657cd651.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO team_user (team_id, user_id, team_role)\n VALUES ($1, $2, 'owner')\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "1bf9b2bf67d4780b41454d87c4a1995677a162dd11af0b9d77df947b657cd651" -} diff --git a/rust/cloud-storage/.sqlx/query-1c03d1e837124187c0f4b940ee6863ec370be7dc1b87c38d1c53d898bfa6a235.json b/rust/cloud-storage/.sqlx/query-1c03d1e837124187c0f4b940ee6863ec370be7dc1b87c38d1c53d898bfa6a235.json deleted file mode 100644 index 7bafd18b74..0000000000 --- a/rust/cloud-storage/.sqlx/query-1c03d1e837124187c0f4b940ee6863ec370be7dc1b87c38d1c53d898bfa6a235.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n cp.role::text as \"role?\",\n c.channel_type::text as \"channel_type!\",\n c.org_id as \"org_id?\"\n FROM comms_channels c\n LEFT JOIN comms_channel_participants cp\n ON cp.channel_id = c.id AND cp.user_id = $2 AND cp.left_at IS NULL\n WHERE c.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "role?", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "channel_type!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "org_id?", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - null, - null, - true - ] - }, - "hash": "1c03d1e837124187c0f4b940ee6863ec370be7dc1b87c38d1c53d898bfa6a235" -} diff --git a/rust/cloud-storage/.sqlx/query-1c5f9c90a5ee11ffedc5c98b589c821898f04952a5a597c9796e152fa4c65bb1.json b/rust/cloud-storage/.sqlx/query-1c5f9c90a5ee11ffedc5c98b589c821898f04952a5a597c9796e152fa4c65bb1.json deleted file mode 100644 index dee1621260..0000000000 --- a/rust/cloud-storage/.sqlx/query-1c5f9c90a5ee11ffedc5c98b589c821898f04952a5a597c9796e152fa4c65bb1.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n e.subject,\n l.macro_id\n FROM\n \"email_messages\" e\n JOIN email_links l ON l.id = e.link_id\n WHERE\n e.thread_id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - true, - false - ] - }, - "hash": "1c5f9c90a5ee11ffedc5c98b589c821898f04952a5a597c9796e152fa4c65bb1" -} diff --git a/rust/cloud-storage/.sqlx/query-1c651bb11edabc6aceff14663b7a1e722ca09640bdae70dad37a017fafd16206.json b/rust/cloud-storage/.sqlx/query-1c651bb11edabc6aceff14663b7a1e722ca09640bdae70dad37a017fafd16206.json deleted file mode 100644 index dc7641635e..0000000000 --- a/rust/cloud-storage/.sqlx/query-1c651bb11edabc6aceff14663b7a1e722ca09640bdae70dad37a017fafd16206.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT pp.\"sharePermissionId\" as \"share_permission_id!\"\n FROM \"ProjectPermission\" pp\n WHERE pp.\"projectId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "1c651bb11edabc6aceff14663b7a1e722ca09640bdae70dad37a017fafd16206" -} diff --git a/rust/cloud-storage/.sqlx/query-1c6ee06fa02288f263d5b51c30d3cd5280f4596a359328c00b1b3e2ce74c0234.json b/rust/cloud-storage/.sqlx/query-1c6ee06fa02288f263d5b51c30d3cd5280f4596a359328c00b1b3e2ce74c0234.json deleted file mode 100644 index 9c4760a3e2..0000000000 --- a/rust/cloud-storage/.sqlx/query-1c6ee06fa02288f263d5b51c30d3cd5280f4596a359328c00b1b3e2ce74c0234.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n c.id\n FROM \"Chat\" c\n JOIN \"ItemLastAccessed\" ila ON c.id = ila.item_id\n AND ila.item_type = 'chat'\n AND ila.last_accessed < NOW() - ($2 || ' days')::INTERVAL\n WHERE c.\"userId\" IN (\n SELECT \n u.\"id\"\n FROM \"User\" u\n WHERE u.\"organizationId\" = $1\n );\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int4", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "1c6ee06fa02288f263d5b51c30d3cd5280f4596a359328c00b1b3e2ce74c0234" -} diff --git a/rust/cloud-storage/.sqlx/query-1d935a7fdb8ef926a5b7613fcb7ecc9949bb5adff895d426acbcdbef50a87e96.json b/rust/cloud-storage/.sqlx/query-1d935a7fdb8ef926a5b7613fcb7ecc9949bb5adff895d426acbcdbef50a87e96.json deleted file mode 100644 index 8b039290a8..0000000000 --- a/rust/cloud-storage/.sqlx/query-1d935a7fdb8ef926a5b7613fcb7ecc9949bb5adff895d426acbcdbef50a87e96.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM crm_contacts WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "1d935a7fdb8ef926a5b7613fcb7ecc9949bb5adff895d426acbcdbef50a87e96" -} diff --git a/rust/cloud-storage/.sqlx/query-1dba8f7824a404cbe6b276df601bbf45b0bbe751d89e8b841068d86b855f44ae.json b/rust/cloud-storage/.sqlx/query-1dba8f7824a404cbe6b276df601bbf45b0bbe751d89e8b841068d86b855f44ae.json deleted file mode 100644 index 4c0a3e375a..0000000000 --- a/rust/cloud-storage/.sqlx/query-1dba8f7824a404cbe6b276df601bbf45b0bbe751d89e8b841068d86b855f44ae.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id FROM \"Document\" WHERE \"owner\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "1dba8f7824a404cbe6b276df601bbf45b0bbe751d89e8b841068d86b855f44ae" -} diff --git a/rust/cloud-storage/.sqlx/query-1df49f5d478dcee269a9bded7fdcc34060d1c9dd6f964f3d6444b55830af299a.json b/rust/cloud-storage/.sqlx/query-1df49f5d478dcee269a9bded7fdcc34060d1c9dd6f964f3d6444b55830af299a.json deleted file mode 100644 index 9826ea2bab..0000000000 --- a/rust/cloud-storage/.sqlx/query-1df49f5d478dcee269a9bded7fdcc34060d1c9dd6f964f3d6444b55830af299a.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE comms_messages\n SET content = $1, updated_at = NOW(), edited_at = NOW()\n WHERE id = $2 AND channel_id = $3\n RETURNING\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "edited_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - null, - null - ] - }, - "hash": "1df49f5d478dcee269a9bded7fdcc34060d1c9dd6f964f3d6444b55830af299a" -} diff --git a/rust/cloud-storage/.sqlx/query-1dfe7b9de91625d4dafc473dd014326d84465827ee265f1111cd30e6d936f714.json b/rust/cloud-storage/.sqlx/query-1dfe7b9de91625d4dafc473dd014326d84465827ee265f1111cd30e6d936f714.json deleted file mode 100644 index b2923990ae..0000000000 --- a/rust/cloud-storage/.sqlx/query-1dfe7b9de91625d4dafc473dd014326d84465827ee265f1111cd30e6d936f714.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT email FROM notification_email_unsubscribe_code WHERE code = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "1dfe7b9de91625d4dafc473dd014326d84465827ee265f1111cd30e6d936f714" -} diff --git a/rust/cloud-storage/.sqlx/query-1e14d3e8348556865af942ec6e3d883668d0b8073143094ed67d34285f9cc92b.json b/rust/cloud-storage/.sqlx/query-1e14d3e8348556865af942ec6e3d883668d0b8073143094ed67d34285f9cc92b.json deleted file mode 100644 index e5287b48b3..0000000000 --- a/rust/cloud-storage/.sqlx/query-1e14d3e8348556865af942ec6e3d883668d0b8073143094ed67d34285f9cc92b.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, $4)\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = $4;\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Timestamp" - ] - }, - "nullable": [] - }, - "hash": "1e14d3e8348556865af942ec6e3d883668d0b8073143094ed67d34285f9cc92b" -} diff --git a/rust/cloud-storage/.sqlx/query-1e45a7245820860fa347be763bb94e3aa7d6e5d9a2660ed6668eaec3d0b39745.json b/rust/cloud-storage/.sqlx/query-1e45a7245820860fa347be763bb94e3aa7d6e5d9a2660ed6668eaec3d0b39745.json deleted file mode 100644 index 8612481418..0000000000 --- a/rust/cloud-storage/.sqlx/query-1e45a7245820860fa347be763bb94e3aa7d6e5d9a2660ed6668eaec3d0b39745.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE calls SET egress_id = $2 WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "1e45a7245820860fa347be763bb94e3aa7d6e5d9a2660ed6668eaec3d0b39745" -} diff --git a/rust/cloud-storage/.sqlx/query-1e96a9f033805dc354b5b3f06575ce22f1e4fbd6770c390a252cd6c790ee2d6e.json b/rust/cloud-storage/.sqlx/query-1e96a9f033805dc354b5b3f06575ce22f1e4fbd6770c390a252cd6c790ee2d6e.json deleted file mode 100644 index 023a7e4749..0000000000 --- a/rust/cloud-storage/.sqlx/query-1e96a9f033805dc354b5b3f06575ce22f1e4fbd6770c390a252cd6c790ee2d6e.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Chat\" SET \"projectId\" = NULL\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "1e96a9f033805dc354b5b3f06575ce22f1e4fbd6770c390a252cd6c790ee2d6e" -} diff --git a/rust/cloud-storage/.sqlx/query-1ea0c7996fa301f1b842d74bc2c42c4c399bae6774014cf03704024bd4293821.json b/rust/cloud-storage/.sqlx/query-1ea0c7996fa301f1b842d74bc2c42c4c399bae6774014cf03704024bd4293821.json deleted file mode 100644 index ec2174302b..0000000000 --- a/rust/cloud-storage/.sqlx/query-1ea0c7996fa301f1b842d74bc2c42c4c399bae6774014cf03704024bd4293821.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n macro_user_id,\n id\n FROM\n in_progress_email_link\n WHERE\n in_progress_email_link.email = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "1ea0c7996fa301f1b842d74bc2c42c4c399bae6774014cf03704024bd4293821" -} diff --git a/rust/cloud-storage/.sqlx/query-1ec5c2ad3ac95f2b35d28c6298da7d8e7db9a7fb97d8af9ca3219a9e13215742.json b/rust/cloud-storage/.sqlx/query-1ec5c2ad3ac95f2b35d28c6298da7d8e7db9a7fb97d8af9ca3219a9e13215742.json deleted file mode 100644 index 05c6ec92c2..0000000000 --- a/rust/cloud-storage/.sqlx/query-1ec5c2ad3ac95f2b35d28c6298da7d8e7db9a7fb97d8af9ca3219a9e13215742.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_message_labels\n WHERE label_id IN (\n SELECT id FROM email_labels\n WHERE link_id = $1 AND provider_label_id = ANY($2)\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "1ec5c2ad3ac95f2b35d28c6298da7d8e7db9a7fb97d8af9ca3219a9e13215742" -} diff --git a/rust/cloud-storage/.sqlx/query-1ed8b097d0371b977eab7215aba09ffc9721b22d7e9d8ea5d80d285dcf65e152.json b/rust/cloud-storage/.sqlx/query-1ed8b097d0371b977eab7215aba09ffc9721b22d7e9d8ea5d80d285dcf65e152.json deleted file mode 100644 index ecd2ef9747..0000000000 --- a/rust/cloud-storage/.sqlx/query-1ed8b097d0371b977eab7215aba09ffc9721b22d7e9d8ea5d80d285dcf65e152.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n ca.id,\n ca.\"chatId\" as \"chat_id\",\n ca.\"entity_id\"::TEXT as \"attachment_id!\",\n ca.\"entity_type\" as \"attachment_type: AttachmentType\",\n ca.\"messageId\" as \"message_id\"\n FROM\n \"ChatAttachment\" ca\n WHERE ca.\"chatId\" = $1\n ORDER BY ca.id ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "chat_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "attachment_id!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "attachment_type: AttachmentType", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "message_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - true, - null, - false, - true - ] - }, - "hash": "1ed8b097d0371b977eab7215aba09ffc9721b22d7e9d8ea5d80d285dcf65e152" -} diff --git a/rust/cloud-storage/.sqlx/query-1ee4ffd924167f7e5cda2be1ac66506c341547cd49c76e365129d91650474605.json b/rust/cloud-storage/.sqlx/query-1ee4ffd924167f7e5cda2be1ac66506c341547cd49c76e365129d91650474605.json deleted file mode 100644 index cafa6efc60..0000000000 --- a/rust/cloud-storage/.sqlx/query-1ee4ffd924167f7e5cda2be1ac66506c341547cd49c76e365129d91650474605.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n SELECT u.user_id, u.item_id, 'document', NOW(), NOW()\n FROM UNNEST($1::text[], $2::text[]) AS u(item_id, user_id)\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = NOW();\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "1ee4ffd924167f7e5cda2be1ac66506c341547cd49c76e365129d91650474605" -} diff --git a/rust/cloud-storage/.sqlx/query-1ef37a5e008e95d1d123d815c287931dc2e7ddcbc393c0dc068cfcd1a752e6e0.json b/rust/cloud-storage/.sqlx/query-1ef37a5e008e95d1d123d815c287931dc2e7ddcbc393c0dc068cfcd1a752e6e0.json deleted file mode 100644 index c96f5b1155..0000000000 --- a/rust/cloud-storage/.sqlx/query-1ef37a5e008e95d1d123d815c287931dc2e7ddcbc393c0dc068cfcd1a752e6e0.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, provider_id as \"provider_id!\"\n FROM email_threads\n WHERE link_id = $1\n AND provider_id = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "1ef37a5e008e95d1d123d815c287931dc2e7ddcbc393c0dc068cfcd1a752e6e0" -} diff --git a/rust/cloud-storage/.sqlx/query-1f007b302205e5fb56f1d90b145aa96922a8f97e7a10d91ec7970c0cbf824281.json b/rust/cloud-storage/.sqlx/query-1f007b302205e5fb56f1d90b145aa96922a8f97e7a10d91ec7970c0cbf824281.json deleted file mode 100644 index 22393c625f..0000000000 --- a/rust/cloud-storage/.sqlx/query-1f007b302205e5fb56f1d90b145aa96922a8f97e7a10d91ec7970c0cbf824281.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n kind,\n owner_user_id,\n team_id,\n name,\n handle,\n description,\n avatar_url,\n created_by,\n created_at,\n updated_at,\n deleted_at\n FROM bots\n WHERE id = $1\n AND deleted_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "kind", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "team_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "handle", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "description", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "avatar_url", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "created_by", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - true, - true, - false, - false, - true, - true, - true, - false, - false, - true - ] - }, - "hash": "1f007b302205e5fb56f1d90b145aa96922a8f97e7a10d91ec7970c0cbf824281" -} diff --git a/rust/cloud-storage/.sqlx/query-1f0770cc758a37117b875b129eeb2e3e3e1143e8ab3dae3a85e9e756cdf9bdc0.json b/rust/cloud-storage/.sqlx/query-1f0770cc758a37117b875b129eeb2e3e3e1143e8ab3dae3a85e9e756cdf9bdc0.json deleted file mode 100644 index ad81720097..0000000000 --- a/rust/cloud-storage/.sqlx/query-1f0770cc758a37117b875b129eeb2e3e3e1143e8ab3dae3a85e9e756cdf9bdc0.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"organizationId\" as id\n FROM \"OrganizationBilling\"\n WHERE \"email\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "1f0770cc758a37117b875b129eeb2e3e3e1143e8ab3dae3a85e9e756cdf9bdc0" -} diff --git a/rust/cloud-storage/.sqlx/query-1fa9e2989967fe9d44ee4e7c7db0091aebd9369c066fde6ccfe090bc97271e71.json b/rust/cloud-storage/.sqlx/query-1fa9e2989967fe9d44ee4e7c7db0091aebd9369c066fde6ccfe090bc97271e71.json deleted file mode 100644 index fbeff2f208..0000000000 --- a/rust/cloud-storage/.sqlx/query-1fa9e2989967fe9d44ee4e7c7db0091aebd9369c066fde6ccfe090bc97271e71.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT t.id, l.macro_id\n FROM email_threads t\n JOIN email_links l ON t.link_id = l.id\n WHERE t.updated_at >= $3\n ORDER BY t.latest_inbound_message_ts DESC NULLS LAST\n LIMIT $1 OFFSET $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8", - "Timestamptz" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "1fa9e2989967fe9d44ee4e7c7db0091aebd9369c066fde6ccfe090bc97271e71" -} diff --git a/rust/cloud-storage/.sqlx/query-1fc6d4133d6252a01a56005faa3e7244ab1debf1731781813995f3be3075d9f1.json b/rust/cloud-storage/.sqlx/query-1fc6d4133d6252a01a56005faa3e7244ab1debf1731781813995f3be3075d9f1.json deleted file mode 100644 index 813b01d6d0..0000000000 --- a/rust/cloud-storage/.sqlx/query-1fc6d4133d6252a01a56005faa3e7244ab1debf1731781813995f3be3075d9f1.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO mcp_servers (user_id, url, server_name, credentials, enabled)\n VALUES ($1, $2, $3, $4, $5)\n ON CONFLICT (user_id, url) DO UPDATE\n SET server_name = EXCLUDED.server_name,\n credentials = EXCLUDED.credentials,\n enabled = EXCLUDED.enabled,\n updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Bytea", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "1fc6d4133d6252a01a56005faa3e7244ab1debf1731781813995f3be3075d9f1" -} diff --git a/rust/cloud-storage/.sqlx/query-1ffb3c556caf3fe25d6f69bbeeca0a39d1e5a6fadc9170a2d863fee8fbfb0939.json b/rust/cloud-storage/.sqlx/query-1ffb3c556caf3fe25d6f69bbeeca0a39d1e5a6fadc9170a2d863fee8fbfb0939.json deleted file mode 100644 index 0101701448..0000000000 --- a/rust/cloud-storage/.sqlx/query-1ffb3c556caf3fe25d6f69bbeeca0a39d1e5a6fadc9170a2d863fee8fbfb0939.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id, joined_at, left_at\n FROM call_record_participants\n WHERE call_record_id = $1\n ORDER BY joined_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "joined_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 2, - "name": "left_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - true - ] - }, - "hash": "1ffb3c556caf3fe25d6f69bbeeca0a39d1e5a6fadc9170a2d863fee8fbfb0939" -} diff --git a/rust/cloud-storage/.sqlx/query-2032b8706e7c7928243b8185349df6fde6d25c6187e9b03a75640a771aa8899a.json b/rust/cloud-storage/.sqlx/query-2032b8706e7c7928243b8185349df6fde6d25c6187e9b03a75640a771aa8899a.json deleted file mode 100644 index 0890ed3cf7..0000000000 --- a/rust/cloud-storage/.sqlx/query-2032b8706e7c7928243b8185349df6fde6d25c6187e9b03a75640a771aa8899a.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.id,\n u.\"stripeCustomerId\" as \"stripe_customer_id\"\n FROM \"User\" u\n WHERE u.\"macro_user_id\" IS NULL\n ORDER BY u.id ASC\n LIMIT $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "stripe_customer_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "2032b8706e7c7928243b8185349df6fde6d25c6187e9b03a75640a771aa8899a" -} diff --git a/rust/cloud-storage/.sqlx/query-205c24d0647adde8fd03d37aa37fce4a37f75e0b9796a77bb45d0ebb3264928a.json b/rust/cloud-storage/.sqlx/query-205c24d0647adde8fd03d37aa37fce4a37f75e0b9796a77bb45d0ebb3264928a.json deleted file mode 100644 index 044d5bf983..0000000000 --- a/rust/cloud-storage/.sqlx/query-205c24d0647adde8fd03d37aa37fce4a37f75e0b9796a77bb45d0ebb3264928a.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n \"messageId\" as \"message_id\",\n \"url\",\n \"title\",\n \"description\",\n \"favicon_url\",\n \"image_url\"\n FROM \"WebAnnotations\" wa\n INNER JOIN \"ChatMessage\" cm ON cm.id = wa.\"messageId\"\n WHERE cm.\"chatId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "url", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "title", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "description", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "favicon_url", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "image_url", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true, - false, - false, - true, - true, - true - ] - }, - "hash": "205c24d0647adde8fd03d37aa37fce4a37f75e0b9796a77bb45d0ebb3264928a" -} diff --git a/rust/cloud-storage/.sqlx/query-20a52bc26743ce11459bb7c7cfda25dd6084c0d64e4dc99d3f0d802f0ae61136.json b/rust/cloud-storage/.sqlx/query-20a52bc26743ce11459bb7c7cfda25dd6084c0d64e4dc99d3f0d802f0ae61136.json deleted file mode 100644 index f9a64311a2..0000000000 --- a/rust/cloud-storage/.sqlx/query-20a52bc26743ce11459bb7c7cfda25dd6084c0d64e4dc99d3f0d802f0ae61136.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH ranked AS (\n SELECT\n id,\n ROW_NUMBER() OVER (\n ORDER BY vector_score DESC, created_at DESC\n ) AS rn\n FROM task_duplicate_match\n WHERE status = 'active'\n AND (task_id = $1 OR duplicate_task_id = $1)\n )\n UPDATE task_duplicate_match m\n SET status = 'dismissed', updated_at = NOW()\n FROM ranked r\n WHERE m.id = r.id\n AND r.rn > $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Int8" - ] - }, - "nullable": [] - }, - "hash": "20a52bc26743ce11459bb7c7cfda25dd6084c0d64e4dc99d3f0d802f0ae61136" -} diff --git a/rust/cloud-storage/.sqlx/query-20a6a1d55831d2f428a4439ff09cd0f680dab8845b5789b83eee8966bbb85937.json b/rust/cloud-storage/.sqlx/query-20a6a1d55831d2f428a4439ff09cd0f680dab8845b5789b83eee8966bbb85937.json deleted file mode 100644 index 53e84b1e8f..0000000000 --- a/rust/cloud-storage/.sqlx/query-20a6a1d55831d2f428a4439ff09cd0f680dab8845b5789b83eee8966bbb85937.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM calls WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "20a6a1d55831d2f428a4439ff09cd0f680dab8845b5789b83eee8966bbb85937" -} diff --git a/rust/cloud-storage/.sqlx/query-20a883359476f1460ce1ecb7c96d502b89f9151a884b24f316c6196f62158659.json b/rust/cloud-storage/.sqlx/query-20a883359476f1460ce1ecb7c96d502b89f9151a884b24f316c6196f62158659.json deleted file mode 100644 index f2e030ab47..0000000000 --- a/rust/cloud-storage/.sqlx/query-20a883359476f1460ce1ecb7c96d502b89f9151a884b24f316c6196f62158659.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id,\n c.link_id,\n c.email_address,\n COALESCE(m.from_name, c.name) as \"name\", -- name from message overrides contact name\n c.original_photo_url,\n c.sfs_photo_url,\n c.created_at,\n c.updated_at\n FROM email_messages m\n INNER JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.id = ANY($1)\n AND m.from_contact_id IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "original_photo_url", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "sfs_photo_url", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - null, - true, - true, - false, - false - ] - }, - "hash": "20a883359476f1460ce1ecb7c96d502b89f9151a884b24f316c6196f62158659" -} diff --git a/rust/cloud-storage/.sqlx/query-21ac8784f90a5e311b658fe88195bdf9c83dfc84f0b5a8e8075a7153d7f41818.json b/rust/cloud-storage/.sqlx/query-21ac8784f90a5e311b658fe88195bdf9c83dfc84f0b5a8e8075a7153d7f41818.json deleted file mode 100644 index cf7c2c61a1..0000000000 --- a/rust/cloud-storage/.sqlx/query-21ac8784f90a5e311b658fe88195bdf9c83dfc84f0b5a8e8075a7153d7f41818.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n link_id,\n provider_label_id,\n name,\n created_at,\n message_list_visibility as \"message_list_visibility: _\",\n label_list_visibility as \"label_list_visibility: _\",\n type as \"type_: _\"\n FROM email_labels\n WHERE link_id = $1\n ORDER BY name\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_label_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "message_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_message_list_visibility_enum", - "kind": { - "Enum": [ - "Show", - "Hide" - ] - } - } - } - }, - { - "ordinal": 6, - "name": "label_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_label_list_visibility_enum", - "kind": { - "Enum": [ - "LabelShow", - "LabelShowIfUnread", - "LabelHide" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "type_: _", - "type_info": { - "Custom": { - "name": "email_label_type_enum", - "kind": { - "Enum": [ - "System", - "User" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "21ac8784f90a5e311b658fe88195bdf9c83dfc84f0b5a8e8075a7153d7f41818" -} diff --git a/rust/cloud-storage/.sqlx/query-21cce4388c4839d33ceac5f09a2f3f7a506003afe498d487699c0cb4b78c7899.json b/rust/cloud-storage/.sqlx/query-21cce4388c4839d33ceac5f09a2f3f7a506003afe498d487699c0cb4b78c7899.json deleted file mode 100644 index 4cfd33f2d4..0000000000 --- a/rust/cloud-storage/.sqlx/query-21cce4388c4839d33ceac5f09a2f3f7a506003afe498d487699c0cb4b78c7899.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.id\n FROM\n \"User\" u\n WHERE\n u.email = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "21cce4388c4839d33ceac5f09a2f3f7a506003afe498d487699c0cb4b78c7899" -} diff --git a/rust/cloud-storage/.sqlx/query-2247a3c9b543df2bdf1150a7148956f0c3c8287e3863893eb7e8761af066a46f.json b/rust/cloud-storage/.sqlx/query-2247a3c9b543df2bdf1150a7148956f0c3c8287e3863893eb7e8761af066a46f.json deleted file mode 100644 index 92694142b3..0000000000 --- a/rust/cloud-storage/.sqlx/query-2247a3c9b543df2bdf1150a7148956f0c3c8287e3863893eb7e8761af066a46f.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM comms_attachments\n WHERE id = ANY($1)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [] - }, - "hash": "2247a3c9b543df2bdf1150a7148956f0c3c8287e3863893eb7e8761af066a46f" -} diff --git a/rust/cloud-storage/.sqlx/query-22c535eec28118577d247aed68b7064a5a22071296f2603d6f86a7bc1816dd0f.json b/rust/cloud-storage/.sqlx/query-22c535eec28118577d247aed68b7064a5a22071296f2603d6f86a7bc1816dd0f.json deleted file mode 100644 index 80831ac218..0000000000 --- a/rust/cloud-storage/.sqlx/query-22c535eec28118577d247aed68b7064a5a22071296f2603d6f86a7bc1816dd0f.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Pin\" WHERE \"userId\" = $1 AND \"pinnedItemId\" = $2 AND \"pinnedItemType\" = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "22c535eec28118577d247aed68b7064a5a22071296f2603d6f86a7bc1816dd0f" -} diff --git a/rust/cloud-storage/.sqlx/query-22cfead49cd3d400a1752f2c232b9ccc7072aac9d5dd7c17a15c6be812fb3d4f.json b/rust/cloud-storage/.sqlx/query-22cfead49cd3d400a1752f2c232b9ccc7072aac9d5dd7c17a15c6be812fb3d4f.json deleted file mode 100644 index 6bff4d79af..0000000000 --- a/rust/cloud-storage/.sqlx/query-22cfead49cd3d400a1752f2c232b9ccc7072aac9d5dd7c17a15c6be812fb3d4f.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"User\"\n SET macro_user_id = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "22cfead49cd3d400a1752f2c232b9ccc7072aac9d5dd7c17a15c6be812fb3d4f" -} diff --git a/rust/cloud-storage/.sqlx/query-2323566d1f90b640bf6cbd83beb86be825ff271d9a18921835dfd1864a78ebfb.json b/rust/cloud-storage/.sqlx/query-2323566d1f90b640bf6cbd83beb86be825ff271d9a18921835dfd1864a78ebfb.json deleted file mode 100644 index 19bcc6aa4e..0000000000 --- a/rust/cloud-storage/.sqlx/query-2323566d1f90b640bf6cbd83beb86be825ff271d9a18921835dfd1864a78ebfb.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"SharePermission\" (\"isPublic\", \"publicAccessLevel\", \"createdAt\", \"updatedAt\")\n VALUES (false, NULL, NOW(), NOW())\n RETURNING id as \"id!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false - ] - }, - "hash": "2323566d1f90b640bf6cbd83beb86be825ff271d9a18921835dfd1864a78ebfb" -} diff --git a/rust/cloud-storage/.sqlx/query-233648d4502d3b4c6190603e4692c9224a44d046cecb5cce585afbb2e8aeaf49.json b/rust/cloud-storage/.sqlx/query-233648d4502d3b4c6190603e4692c9224a44d046cecb5cce585afbb2e8aeaf49.json deleted file mode 100644 index ff086d1c89..0000000000 --- a/rust/cloud-storage/.sqlx/query-233648d4502d3b4c6190603e4692c9224a44d046cecb5cce585afbb2e8aeaf49.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id,\n d.name,\n d.\"owner\",\n d.\"fileType\" as \"file_type!\",\n di.id as \"document_version_id?\"\n FROM\n \"Document\" d\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" ASC\n LIMIT 1\n ) di ON true\n WHERE\n d.\"deletedAt\" IS NULL AND\n d.id = $1 AND\n d.\"fileType\" IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "file_type!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "document_version_id?", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - false - ] - }, - "hash": "233648d4502d3b4c6190603e4692c9224a44d046cecb5cce585afbb2e8aeaf49" -} diff --git a/rust/cloud-storage/.sqlx/query-2386c156456dbaea33ec5071907677174bdfc3048719f1be818c11b6dd7ada01.json b/rust/cloud-storage/.sqlx/query-2386c156456dbaea33ec5071907677174bdfc3048719f1be818c11b6dd7ada01.json deleted file mode 100644 index 5c0001485c..0000000000 --- a/rust/cloud-storage/.sqlx/query-2386c156456dbaea33ec5071907677174bdfc3048719f1be818c11b6dd7ada01.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n esm.link_id, esm.message_id\n FROM email_scheduled_messages esm\n JOIN email_messages em ON em.id = esm.message_id\n WHERE\n esm.send_time < now()\n AND esm.sent = FALSE\n AND em.is_draft = TRUE\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - false - ] - }, - "hash": "2386c156456dbaea33ec5071907677174bdfc3048719f1be818c11b6dd7ada01" -} diff --git a/rust/cloud-storage/.sqlx/query-2434f8a0e387b85009c8857ab719928f6e922ecf302228837e4d0686866ac515.json b/rust/cloud-storage/.sqlx/query-2434f8a0e387b85009c8857ab719928f6e922ecf302228837e4d0686866ac515.json deleted file mode 100644 index 2b787b4f2b..0000000000 --- a/rust/cloud-storage/.sqlx/query-2434f8a0e387b85009c8857ab719928f6e922ecf302228837e4d0686866ac515.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"ChatMessage\"\n SET \"content\" = $1, \"updatedAt\" = NOW()\n WHERE \"id\" = $2 AND \"chatId\" = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Jsonb", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "2434f8a0e387b85009c8857ab719928f6e922ecf302228837e4d0686866ac515" -} diff --git a/rust/cloud-storage/.sqlx/query-2443fe54c4008a741bf932783b861f1049c87b024003d7a6781ed24d82f095e8.json b/rust/cloud-storage/.sqlx/query-2443fe54c4008a741bf932783b861f1049c87b024003d7a6781ed24d82f095e8.json deleted file mode 100644 index 15f9c1c609..0000000000 --- a/rust/cloud-storage/.sqlx/query-2443fe54c4008a741bf932783b861f1049c87b024003d7a6781ed24d82f095e8.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT l.id\n FROM email_labels l\n JOIN email_links el ON el.id = l.link_id\n JOIN team_user tu ON tu.user_id = el.macro_id\n WHERE l.name = 'TRASH' AND tu.team_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "2443fe54c4008a741bf932783b861f1049c87b024003d7a6781ed24d82f095e8" -} diff --git a/rust/cloud-storage/.sqlx/query-2448b50af4a227c3a7d638e1377145f8a813091547e4f47a9f1fed4b8959e4bf.json b/rust/cloud-storage/.sqlx/query-2448b50af4a227c3a7d638e1377145f8a813091547e4f47a9f1fed4b8959e4bf.json deleted file mode 100644 index 7ec90a9c87..0000000000 --- a/rust/cloud-storage/.sqlx/query-2448b50af4a227c3a7d638e1377145f8a813091547e4f47a9f1fed4b8959e4bf.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n id,\n email,\n \"organizationId\" as \"organization_id?\"\n FROM \"User\"\n WHERE \"id\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "email", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "organization_id?", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - true - ] - }, - "hash": "2448b50af4a227c3a7d638e1377145f8a813091547e4f47a9f1fed4b8959e4bf" -} diff --git a/rust/cloud-storage/.sqlx/query-244c5d4b6165e48a376b1a33583bcc6cbe5e22bd559419180a6c2f2855ff607e.json b/rust/cloud-storage/.sqlx/query-244c5d4b6165e48a376b1a33583bcc6cbe5e22bd559419180a6c2f2855ff607e.json deleted file mode 100644 index 7303f3cfa9..0000000000 --- a/rust/cloud-storage/.sqlx/query-244c5d4b6165e48a376b1a33583bcc6cbe5e22bd559419180a6c2f2855ff607e.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n channel_id,\n thread_id,\n sender_id,\n content,\n created_at,\n updated_at,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages\n WHERE channel_id = $1\n AND (created_at, id) > ($2, $3)\n ORDER BY created_at ASC, id ASC\n LIMIT $4\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "edited_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Timestamptz", - "Uuid", - "Int8" - ] - }, - "nullable": [ - false, - false, - true, - false, - false, - false, - false, - null, - null - ] - }, - "hash": "244c5d4b6165e48a376b1a33583bcc6cbe5e22bd559419180a6c2f2855ff607e" -} diff --git a/rust/cloud-storage/.sqlx/query-2500e65cc47f0cfb5cf99c7b4aa87ca672780591c4b7b2ff5429121d5b4594bf.json b/rust/cloud-storage/.sqlx/query-2500e65cc47f0cfb5cf99c7b4aa87ca672780591c4b7b2ff5429121d5b4594bf.json deleted file mode 100644 index e6831d38ae..0000000000 --- a/rust/cloud-storage/.sqlx/query-2500e65cc47f0cfb5cf99c7b4aa87ca672780591c4b7b2ff5429121d5b4594bf.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as \"document_id\",\n COALESCE(db.id, di.id) as \"document_version_id!\",\n d.name as \"document_name\",\n d.\"fileType\" as \"file_type\",\n d.\"branchedFromId\" as branched_from_id,\n d.\"branchedFromVersionId\" as branched_from_version_id,\n d.\"documentFamilyId\" as document_family_id,\n d.\"createdAt\"::timestamptz as created_at,\n d.\"updatedAt\"::timestamptz as updated_at\n FROM\n \"Document\" d\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" DESC\n LIMIT 1\n ) di ON d.\"fileType\" IS DISTINCT FROM 'docx'\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n WHERE\n d.owner = $1 AND d.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "document_version_id!", - "type_info": "Int8" - }, - { - "ordinal": 2, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - null, - false, - true, - true, - true, - true, - null, - null - ] - }, - "hash": "2500e65cc47f0cfb5cf99c7b4aa87ca672780591c4b7b2ff5429121d5b4594bf" -} diff --git a/rust/cloud-storage/.sqlx/query-2524aba87b62046462d33a88cd3ccd9818906c386468c40410d1e96f1aeb4e27.json b/rust/cloud-storage/.sqlx/query-2524aba87b62046462d33a88cd3ccd9818906c386468c40410d1e96f1aeb4e27.json deleted file mode 100644 index 772c090515..0000000000 --- a/rust/cloud-storage/.sqlx/query-2524aba87b62046462d33a88cd3ccd9818906c386468c40410d1e96f1aeb4e27.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id\n FROM email_contacts\n WHERE LOWER(email_address) = LOWER($1) AND link_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "2524aba87b62046462d33a88cd3ccd9818906c386468c40410d1e96f1aeb4e27" -} diff --git a/rust/cloud-storage/.sqlx/query-2576862c3cfe8c3efaf56031067a7251ed3737e3aa63d2213520a9f9b83a281c.json b/rust/cloud-storage/.sqlx/query-2576862c3cfe8c3efaf56031067a7251ed3737e3aa63d2213520a9f9b83a281c.json deleted file mode 100644 index 661cc4ff38..0000000000 --- a/rust/cloud-storage/.sqlx/query-2576862c3cfe8c3efaf56031067a7251ed3737e3aa63d2213520a9f9b83a281c.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT id, user_id, default_view_id FROM excluded_default_view WHERE user_id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "default_view_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "2576862c3cfe8c3efaf56031067a7251ed3737e3aa63d2213520a9f9b83a281c" -} diff --git a/rust/cloud-storage/.sqlx/query-25ecb2c575d0ba90bea0d500ac8522346fb8bc6aa9bf669219c300cc398a1108.json b/rust/cloud-storage/.sqlx/query-25ecb2c575d0ba90bea0d500ac8522346fb8bc6aa9bf669219c300cc398a1108.json deleted file mode 100644 index 19945e3ba5..0000000000 --- a/rust/cloud-storage/.sqlx/query-25ecb2c575d0ba90bea0d500ac8522346fb8bc6aa9bf669219c300cc398a1108.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH message AS (\n SELECT id\n FROM comms_messages\n WHERE id = $2 AND channel_id = $1\n ),\n inserted AS (\n INSERT INTO comms_reactions (message_id, emoji, user_id)\n SELECT id, $3, $4\n FROM message\n ON CONFLICT DO NOTHING\n )\n SELECT EXISTS (SELECT 1 FROM message) AS \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Varchar", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "25ecb2c575d0ba90bea0d500ac8522346fb8bc6aa9bf669219c300cc398a1108" -} diff --git a/rust/cloud-storage/.sqlx/query-2611958405cf94c91ef85a09da00b0a8701621b42e4c57e74d2da40062d577d4.json b/rust/cloud-storage/.sqlx/query-2611958405cf94c91ef85a09da00b0a8701621b42e4c57e74d2da40062d577d4.json deleted file mode 100644 index 06196d06b6..0000000000 --- a/rust/cloud-storage/.sqlx/query-2611958405cf94c91ef85a09da00b0a8701621b42e4c57e74d2da40062d577d4.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH PinnedItems AS (\n SELECT\n p.\"pinnedItemId\" as pin_item_id,\n p.\"pinnedItemType\" as pin_item_type,\n p.\"pinIndex\" as pin_index\n FROM \"Pin\" p\n WHERE p.\"userId\" = $1\n ), Combined AS (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"projectId\" as \"project_id\",\n di.sha as \"sha\",\n NULL as \"is_persistent\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n pi.pin_index as \"pin_index\",\n CASE \n WHEN dt.sub_type = 'task' \n AND ep_status.values->'value' ? $2\n THEN true \n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL \n END as \"is_completed\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status \n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id \n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $3\n INNER JOIN PinnedItems pi ON pi.pin_item_id = d.id AND pi.pin_item_type = 'document'\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.\"documentId\",\n i.\"sha\",\n i.\"createdAt\",\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n UNION ALL\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"projectId\" as \"project_id\",\n NULL as \"sha\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as sub_type,\n pi.pin_index as \"pin_index\",\n NULL as \"is_completed\"\n FROM \"Chat\" c\n INNER JOIN PinnedItems pi ON pi.pin_item_id = c.id AND pi.pin_item_type = 'chat'\n UNION ALL\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at\",\n p.\"updatedAt\"::timestamptz as \"updated_at\",\n p.\"parentId\" as \"project_id\",\n NULL as \"sha\",\n NULL as \"is_persistent\",\n NULL as sub_type,\n pi.pin_index as \"pin_index\",\n NULL as \"is_completed\"\n FROM \"Project\" p\n INNER JOIN PinnedItems pi ON pi.pin_item_id = p.id AND pi.pin_item_type = 'project'\n )\n SELECT * FROM Combined\n ORDER BY pin_index ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_type!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_version_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "user_id!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "name!", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 8, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 13, - "name": "is_persistent", - "type_info": "Bool" - }, - { - "ordinal": 14, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 15, - "name": "pin_index", - "type_info": "Int4" - }, - { - "ordinal": 16, - "name": "is_completed", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Uuid" - ] - }, - "nullable": [ - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null - ] - }, - "hash": "2611958405cf94c91ef85a09da00b0a8701621b42e4c57e74d2da40062d577d4" -} diff --git a/rust/cloud-storage/.sqlx/query-26ab5fa9630526b99a3937baff648f056a532178864f1f62ce55d107d1702f7f.json b/rust/cloud-storage/.sqlx/query-26ab5fa9630526b99a3937baff648f056a532178864f1f62ce55d107d1702f7f.json deleted file mode 100644 index 204ec15fdc..0000000000 --- a/rust/cloud-storage/.sqlx/query-26ab5fa9630526b99a3937baff648f056a532178864f1f62ce55d107d1702f7f.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT link_id, signature_on_replies_forwards\n FROM email_settings\n WHERE link_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "signature_on_replies_forwards", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "26ab5fa9630526b99a3937baff648f056a532178864f1f62ce55d107d1702f7f" -} diff --git a/rust/cloud-storage/.sqlx/query-26c357f323179bc7c5c64492521aa202a0a8119036d4be0975aaac1ce6d96cd2.json b/rust/cloud-storage/.sqlx/query-26c357f323179bc7c5c64492521aa202a0a8119036d4be0975aaac1ce6d96cd2.json deleted file mode 100644 index 77a2fec9fa..0000000000 --- a/rust/cloud-storage/.sqlx/query-26c357f323179bc7c5c64492521aa202a0a8119036d4be0975aaac1ce6d96cd2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.email\n FROM \"UserHistory\" uh\n JOIN \"User\" u ON uh.\"userId\" = u.id\n WHERE uh.\"itemId\" = $1 AND uh.\"itemType\" = 'document'\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "26c357f323179bc7c5c64492521aa202a0a8119036d4be0975aaac1ce6d96cd2" -} diff --git a/rust/cloud-storage/.sqlx/query-270cd8ae6b47508cb7e4e920bd76cb0f6177d685bddedb06f1892d0014af6f01.json b/rust/cloud-storage/.sqlx/query-270cd8ae6b47508cb7e4e920bd76cb0f6177d685bddedb06f1892d0014af6f01.json deleted file mode 100644 index ee1916f8f5..0000000000 --- a/rust/cloud-storage/.sqlx/query-270cd8ae6b47508cb7e4e920bd76cb0f6177d685bddedb06f1892d0014af6f01.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM notification_user_device_registration\n WHERE device_token = $1 AND device_type = $2\n RETURNING device_endpoint\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "device_endpoint", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - { - "Custom": { - "name": "notification_device_type_option", - "kind": { - "Enum": [ - "ios", - "android", - "iosvoip" - ] - } - } - } - ] - }, - "nullable": [ - false - ] - }, - "hash": "270cd8ae6b47508cb7e4e920bd76cb0f6177d685bddedb06f1892d0014af6f01" -} diff --git a/rust/cloud-storage/.sqlx/query-270e056bb1d522c9f46b8f8f0fde1d3307bf0627fe420be6bc0509072bae1565.json b/rust/cloud-storage/.sqlx/query-270e056bb1d522c9f46b8f8f0fde1d3307bf0627fe420be6bc0509072bae1565.json deleted file mode 100644 index df429bfdc5..0000000000 --- a/rust/cloud-storage/.sqlx/query-270e056bb1d522c9f46b8f8f0fde1d3307bf0627fe420be6bc0509072bae1565.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"sharePermissionId\" as share_permission_id\n FROM \"ProjectPermission\"\n WHERE \"projectId\"=$1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "270e056bb1d522c9f46b8f8f0fde1d3307bf0627fe420be6bc0509072bae1565" -} diff --git a/rust/cloud-storage/.sqlx/query-273231d502cf7d6ac6e29d3007fb5bf5fff4d5bc979ed1555df61f4666e1121e.json b/rust/cloud-storage/.sqlx/query-273231d502cf7d6ac6e29d3007fb5bf5fff4d5bc979ed1555df61f4666e1121e.json deleted file mode 100644 index 9e4157d065..0000000000 --- a/rust/cloud-storage/.sqlx/query-273231d502cf7d6ac6e29d3007fb5bf5fff4d5bc979ed1555df61f4666e1121e.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM team\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "273231d502cf7d6ac6e29d3007fb5bf5fff4d5bc979ed1555df61f4666e1121e" -} diff --git a/rust/cloud-storage/.sqlx/query-275669451834ace05bb416ced2daa303d315804838e6d3847718eecd239864ee.json b/rust/cloud-storage/.sqlx/query-275669451834ace05bb416ced2daa303d315804838e6d3847718eecd239864ee.json deleted file mode 100644 index 4186d5178a..0000000000 --- a/rust/cloud-storage/.sqlx/query-275669451834ace05bb416ced2daa303d315804838e6d3847718eecd239864ee.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE calls\n SET preview_url = $2\n WHERE recording_key = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "275669451834ace05bb416ced2daa303d315804838e6d3847718eecd239864ee" -} diff --git a/rust/cloud-storage/.sqlx/query-2765a1391d0f36121f7b42445e00be69a87c2a9c380a8fc2c64afa9fb509e9d8.json b/rust/cloud-storage/.sqlx/query-2765a1391d0f36121f7b42445e00be69a87c2a9c380a8fc2c64afa9fb509e9d8.json deleted file mode 100644 index d54e213bf6..0000000000 --- a/rust/cloud-storage/.sqlx/query-2765a1391d0f36121f7b42445e00be69a87c2a9c380a8fc2c64afa9fb509e9d8.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id as \"id!: Uuid\",\n foreign_entity_id as \"foreign_entity_id!: String\",\n foreign_entity_source as \"foreign_entity_source!: String\",\n metadata as \"metadata!: serde_json::Value\",\n stored_for_id as \"stored_for_id!: String\",\n stored_for_auth_entity as \"stored_for_auth_entity!: String\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\"\n FROM foreign_entity\n WHERE id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "foreign_entity_id!: String", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "foreign_entity_source!: String", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "metadata!: serde_json::Value", - "type_info": "Jsonb" - }, - { - "ordinal": 4, - "name": "stored_for_id!: String", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "stored_for_auth_entity!: String", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "created_at!: DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at!: DateTime", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "2765a1391d0f36121f7b42445e00be69a87c2a9c380a8fc2c64afa9fb509e9d8" -} diff --git a/rust/cloud-storage/.sqlx/query-278876b19e66f90a52e4a982f6dc6376849461c5df6a9cb1037d1eee6e30cfab.json b/rust/cloud-storage/.sqlx/query-278876b19e66f90a52e4a982f6dc6376849461c5df6a9cb1037d1eee6e30cfab.json deleted file mode 100644 index 090c1515dc..0000000000 --- a/rust/cloud-storage/.sqlx/query-278876b19e66f90a52e4a982f6dc6376849461c5df6a9cb1037d1eee6e30cfab.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n COALESCE(db.id, di.id) as \"id!\",\n d.uploaded\n FROM\n \"Document\" d\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" ASC\n LIMIT 1\n ) di ON d.\"fileType\" IS DISTINCT FROM 'docx'\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" ASC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n WHERE\n d.id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "uploaded", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null, - false - ] - }, - "hash": "278876b19e66f90a52e4a982f6dc6376849461c5df6a9cb1037d1eee6e30cfab" -} diff --git a/rust/cloud-storage/.sqlx/query-279926d74db34fd618a6b507e2ec60160ef8399af5cfa11393a2e1e8d9762d65.json b/rust/cloud-storage/.sqlx/query-279926d74db34fd618a6b507e2ec60160ef8399af5cfa11393a2e1e8d9762d65.json deleted file mode 100644 index 0216da5e97..0000000000 --- a/rust/cloud-storage/.sqlx/query-279926d74db34fd618a6b507e2ec60160ef8399af5cfa11393a2e1e8d9762d65.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM entity_access\n WHERE entity_id = ANY($1)\n AND granted_from_project_id = ANY($2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "279926d74db34fd618a6b507e2ec60160ef8399af5cfa11393a2e1e8d9762d65" -} diff --git a/rust/cloud-storage/.sqlx/query-27af0e4ef3bfa65509108039027a7a0891ce7e5f9d3ff36e6598d5f51650416c.json b/rust/cloud-storage/.sqlx/query-27af0e4ef3bfa65509108039027a7a0891ce7e5f9d3ff36e6598d5f51650416c.json deleted file mode 100644 index 0a50742ac6..0000000000 --- a/rust/cloud-storage/.sqlx/query-27af0e4ef3bfa65509108039027a7a0891ce7e5f9d3ff36e6598d5f51650416c.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Project\" (\"name\", \"userId\", \"parentId\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, NOW(), NOW())\n RETURNING id, name, \"userId\"::text as user_id, \"createdAt\"::timestamptz as created_at, \"deletedAt\"::timestamptz as deleted_at,\n \"updatedAt\"::timestamptz as updated_at, \"parentId\" as parent_id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "parent_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - null, - null, - null, - true - ] - }, - "hash": "27af0e4ef3bfa65509108039027a7a0891ce7e5f9d3ff36e6598d5f51650416c" -} diff --git a/rust/cloud-storage/.sqlx/query-27cffe57cded3d1b63df02e8dca8b2158fe2072af6b7baacd30b3f0095cb7e0c.json b/rust/cloud-storage/.sqlx/query-27cffe57cded3d1b63df02e8dca8b2158fe2072af6b7baacd30b3f0095cb7e0c.json deleted file mode 100644 index 53bc4e1cd9..0000000000 --- a/rust/cloud-storage/.sqlx/query-27cffe57cded3d1b63df02e8dca8b2158fe2072af6b7baacd30b3f0095cb7e0c.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT link_id, message_id, send_time, sent, processing\n FROM email_scheduled_messages\n WHERE message_id = ANY($1) AND sent = false\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "send_time", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "sent", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "processing", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - false, - false - ] - }, - "hash": "27cffe57cded3d1b63df02e8dca8b2158fe2072af6b7baacd30b3f0095cb7e0c" -} diff --git a/rust/cloud-storage/.sqlx/query-28baf072b97758fba3e18900b97176766a0cd023d6730538b6e5c936ae7bdb48.json b/rust/cloud-storage/.sqlx/query-28baf072b97758fba3e18900b97176766a0cd023d6730538b6e5c936ae7bdb48.json deleted file mode 100644 index d1cec003c4..0000000000 --- a/rust/cloud-storage/.sqlx/query-28baf072b97758fba3e18900b97176766a0cd023d6730538b6e5c936ae7bdb48.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id AS \"call_id!\",\n started_at AS \"started_at!\"\n FROM call_records\n WHERE\n ($2::timestamptz IS NULL OR started_at >= $2)\n AND ($3::timestamptz IS NULL OR started_at < $3)\n AND (\n $4::timestamptz IS NULL\n OR (started_at, id) > ($4, $5::uuid)\n )\n ORDER BY started_at ASC, id ASC\n LIMIT $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "call_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "started_at!", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Int8", - "Timestamptz", - "Timestamptz", - "Timestamptz", - "Uuid" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "28baf072b97758fba3e18900b97176766a0cd023d6730538b6e5c936ae7bdb48" -} diff --git a/rust/cloud-storage/.sqlx/query-28c518d844cd4d843c097af1551f6f384a4763514d278b5444341390f58a8281.json b/rust/cloud-storage/.sqlx/query-28c518d844cd4d843c097af1551f6f384a4763514d278b5444341390f58a8281.json deleted file mode 100644 index 98ceb2aeec..0000000000 --- a/rust/cloud-storage/.sqlx/query-28c518d844cd4d843c097af1551f6f384a4763514d278b5444341390f58a8281.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE \"Project\" SET \"updatedAt\" = NOW() WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "28c518d844cd4d843c097af1551f6f384a4763514d278b5444341390f58a8281" -} diff --git a/rust/cloud-storage/.sqlx/query-28df117b319120af2c7f9b3dbfdd45539b62c00cb222b029e501cd7a40e83ccd.json b/rust/cloud-storage/.sqlx/query-28df117b319120af2c7f9b3dbfdd45539b62c00cb222b029e501cd7a40e83ccd.json deleted file mode 100644 index 50a96efdf5..0000000000 --- a/rust/cloud-storage/.sqlx/query-28df117b319120af2c7f9b3dbfdd45539b62c00cb222b029e501cd7a40e83ccd.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT github_key\n FROM github_pr_tasks\n WHERE task_id = $1\n ORDER BY created_at ASC, github_key ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "github_key", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "28df117b319120af2c7f9b3dbfdd45539b62c00cb222b029e501cd7a40e83ccd" -} diff --git a/rust/cloud-storage/.sqlx/query-2930435da61e2e75a6ec3a127f3f1591934bb55a9f2fed8e47dd4406085fa6b2.json b/rust/cloud-storage/.sqlx/query-2930435da61e2e75a6ec3a127f3f1591934bb55a9f2fed8e47dd4406085fa6b2.json deleted file mode 100644 index 1ccf0c370f..0000000000 --- a/rust/cloud-storage/.sqlx/query-2930435da61e2e75a6ec3a127f3f1591934bb55a9f2fed8e47dd4406085fa6b2.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as \"document_id\",\n d.owner,\n d.name as \"document_name\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"projectId\" as \"project_id\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n WHERE\n d.id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 5, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 8, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - true, - true, - false, - true, - null - ] - }, - "hash": "2930435da61e2e75a6ec3a127f3f1591934bb55a9f2fed8e47dd4406085fa6b2" -} diff --git a/rust/cloud-storage/.sqlx/query-293ae45a8798edad6555057aa63f96b7c27c4d7457aeeb615789f1ebd5468337.json b/rust/cloud-storage/.sqlx/query-293ae45a8798edad6555057aa63f96b7c27c4d7457aeeb615789f1ebd5468337.json deleted file mode 100644 index 50f4178fc0..0000000000 --- a/rust/cloud-storage/.sqlx/query-293ae45a8798edad6555057aa63f96b7c27c4d7457aeeb615789f1ebd5468337.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE bots\n SET deleted_at = now(), updated_at = now()\n WHERE id = $1\n AND deleted_at IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "293ae45a8798edad6555057aa63f96b7c27c4d7457aeeb615789f1ebd5468337" -} diff --git a/rust/cloud-storage/.sqlx/query-29496c090bdffe2b771ad704687525136fcd17a1d3e680142e5d0f9e253af578.json b/rust/cloud-storage/.sqlx/query-29496c090bdffe2b771ad704687525136fcd17a1d3e680142e5d0f9e253af578.json deleted file mode 100644 index 918f0d6d3d..0000000000 --- a/rust/cloud-storage/.sqlx/query-29496c090bdffe2b771ad704687525136fcd17a1d3e680142e5d0f9e253af578.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT message_id, send_time\n FROM email_scheduled_messages\n WHERE message_id = ANY($1) AND sent = false\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "send_time", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "29496c090bdffe2b771ad704687525136fcd17a1d3e680142e5d0f9e253af578" -} diff --git a/rust/cloud-storage/.sqlx/query-29f40fc78b59a74c6b0df0c8cb0abe9d4e5f57b4b08a18673276967b456d8bb5.json b/rust/cloud-storage/.sqlx/query-29f40fc78b59a74c6b0df0c8cb0abe9d4e5f57b4b08a18673276967b456d8bb5.json deleted file mode 100644 index fa71ec2445..0000000000 --- a/rust/cloud-storage/.sqlx/query-29f40fc78b59a74c6b0df0c8cb0abe9d4e5f57b4b08a18673276967b456d8bb5.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"UserHistory\" WHERE \"itemId\" = $1 AND \"itemType\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "29f40fc78b59a74c6b0df0c8cb0abe9d4e5f57b4b08a18673276967b456d8bb5" -} diff --git a/rust/cloud-storage/.sqlx/query-2a75819c2697a91f55f1161c1dd79d065235f02119bbb2cc2b881f6fa8f82274.json b/rust/cloud-storage/.sqlx/query-2a75819c2697a91f55f1161c1dd79d065235f02119bbb2cc2b881f6fa8f82274.json deleted file mode 100644 index 01133fef47..0000000000 --- a/rust/cloud-storage/.sqlx/query-2a75819c2697a91f55f1161c1dd79d065235f02119bbb2cc2b881f6fa8f82274.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT call_id, user_id, joined_at\n FROM call_participants\n WHERE call_id = $1 AND left_at IS NULL\n ORDER BY joined_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "call_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "joined_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "2a75819c2697a91f55f1161c1dd79d065235f02119bbb2cc2b881f6fa8f82274" -} diff --git a/rust/cloud-storage/.sqlx/query-2a7d96d4ad9f58533ca637112bdf0e50e65f9f7dade0f8e1239cc32404e2b135.json b/rust/cloud-storage/.sqlx/query-2a7d96d4ad9f58533ca637112bdf0e50e65f9f7dade0f8e1239cc32404e2b135.json deleted file mode 100644 index 8c508b8a1b..0000000000 --- a/rust/cloud-storage/.sqlx/query-2a7d96d4ad9f58533ca637112bdf0e50e65f9f7dade0f8e1239cc32404e2b135.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT l.macro_id, t.id as thread_id\n FROM UNNEST($1::text[], $2::uuid[]) AS inp(macro_id, thread_id)\n JOIN email_links l ON l.macro_id = inp.macro_id\n JOIN email_threads t ON t.link_id = l.id AND t.id = inp.thread_id\n WHERE t.latest_outbound_message_ts IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "thread_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "TextArray", - "UuidArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "2a7d96d4ad9f58533ca637112bdf0e50e65f9f7dade0f8e1239cc32404e2b135" -} diff --git a/rust/cloud-storage/.sqlx/query-2ac4359cf8918df8770a8f89b43195b87a928d18ff10c5d5dbec9bba0dc9eca1.json b/rust/cloud-storage/.sqlx/query-2ac4359cf8918df8770a8f89b43195b87a928d18ff10c5d5dbec9bba0dc9eca1.json deleted file mode 100644 index fd0b595d9d..0000000000 --- a/rust/cloud-storage/.sqlx/query-2ac4359cf8918df8770a8f89b43195b87a928d18ff10c5d5dbec9bba0dc9eca1.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT destination\n FROM email_sfs_mappings\n WHERE source = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "destination", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "2ac4359cf8918df8770a8f89b43195b87a928d18ff10c5d5dbec9bba0dc9eca1" -} diff --git a/rust/cloud-storage/.sqlx/query-2b2674801d90fb7b89f286300e8a03ec10c34ab1f8a6ecc6a9ecac5b964669a2.json b/rust/cloud-storage/.sqlx/query-2b2674801d90fb7b89f286300e8a03ec10c34ab1f8a6ecc6a9ecac5b964669a2.json deleted file mode 100644 index be3b1e901c..0000000000 --- a/rust/cloud-storage/.sqlx/query-2b2674801d90fb7b89f286300e8a03ec10c34ab1f8a6ecc6a9ecac5b964669a2.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE comms_messages\n SET\n updated_at = NOW(),\n edited_at = NOW(),\n deleted_at = CASE\n WHEN $2 = false AND (content IS NULL OR content ~ '^[\\s]*$') THEN NOW()\n ELSE deleted_at\n END\n WHERE id = $1\n RETURNING\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "edited_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Bool" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - null, - null - ] - }, - "hash": "2b2674801d90fb7b89f286300e8a03ec10c34ab1f8a6ecc6a9ecac5b964669a2" -} diff --git a/rust/cloud-storage/.sqlx/query-2b51093ef799db343575cce3aead5f7db7aed774cb8d6fd74645f5e09b2215c6.json b/rust/cloud-storage/.sqlx/query-2b51093ef799db343575cce3aead5f7db7aed774cb8d6fd74645f5e09b2215c6.json deleted file mode 100644 index 08b8cc2ff7..0000000000 --- a/rust/cloud-storage/.sqlx/query-2b51093ef799db343575cce3aead5f7db7aed774cb8d6fd74645f5e09b2215c6.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'document'\n AND source_id = $2\n AND source_type = 'team'\n AND granted_from_project_id IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "2b51093ef799db343575cce3aead5f7db7aed774cb8d6fd74645f5e09b2215c6" -} diff --git a/rust/cloud-storage/.sqlx/query-2b56d4020e5e9882bf82e2909868eda21c8f93ee647274cbd0f7f8b8cfad02bf.json b/rust/cloud-storage/.sqlx/query-2b56d4020e5e9882bf82e2909868eda21c8f93ee647274cbd0f7f8b8cfad02bf.json deleted file mode 100644 index 158ddfee1e..0000000000 --- a/rust/cloud-storage/.sqlx/query-2b56d4020e5e9882bf82e2909868eda21c8f93ee647274cbd0f7f8b8cfad02bf.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentInstanceModificationData\" (\"documentInstanceId\", \"modificationData\")\n VALUES ($1, $2);\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int8", - "Jsonb" - ] - }, - "nullable": [] - }, - "hash": "2b56d4020e5e9882bf82e2909868eda21c8f93ee647274cbd0f7f8b8cfad02bf" -} diff --git a/rust/cloud-storage/.sqlx/query-2ba42e1b8b6e432c5cbe966076ca05523a4b1f4be0798ae362a325c172b19a43.json b/rust/cloud-storage/.sqlx/query-2ba42e1b8b6e432c5cbe966076ca05523a4b1f4be0798ae362a325c172b19a43.json deleted file mode 100644 index 5ea23b9b81..0000000000 --- a/rust/cloud-storage/.sqlx/query-2ba42e1b8b6e432c5cbe966076ca05523a4b1f4be0798ae362a325c172b19a43.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT gh.history_id\n FROM email_links l\n LEFT JOIN email_gmail_histories gh ON l.id = gh.link_id\n WHERE l.email_address = $1 AND l.provider = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "history_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - ] - }, - "nullable": [ - false - ] - }, - "hash": "2ba42e1b8b6e432c5cbe966076ca05523a4b1f4be0798ae362a325c172b19a43" -} diff --git a/rust/cloud-storage/.sqlx/query-2c16c9daa8fd2542c90ea2fcd848ed60ba013aa7ee53742b7f1f677e7082ce2f.json b/rust/cloud-storage/.sqlx/query-2c16c9daa8fd2542c90ea2fcd848ed60ba013aa7ee53742b7f1f677e7082ce2f.json deleted file mode 100644 index 1efcd7e916..0000000000 --- a/rust/cloud-storage/.sqlx/query-2c16c9daa8fd2542c90ea2fcd848ed60ba013aa7ee53742b7f1f677e7082ce2f.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n id, \n link_id, \n provider_label_id, \n name, \n created_at,\n message_list_visibility as \"message_list_visibility: _\",\n label_list_visibility as \"label_list_visibility: _\",\n type as \"type_: _\"\n FROM email_labels\n WHERE id = $1 AND link_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_label_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "message_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_message_list_visibility_enum", - "kind": { - "Enum": [ - "Show", - "Hide" - ] - } - } - } - }, - { - "ordinal": 6, - "name": "label_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_label_list_visibility_enum", - "kind": { - "Enum": [ - "LabelShow", - "LabelShowIfUnread", - "LabelHide" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "type_: _", - "type_info": { - "Custom": { - "name": "email_label_type_enum", - "kind": { - "Enum": [ - "System", - "User" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "2c16c9daa8fd2542c90ea2fcd848ed60ba013aa7ee53742b7f1f677e7082ce2f" -} diff --git a/rust/cloud-storage/.sqlx/query-2c1ca56683bc4ff97f5b9768e6da72ee6558c2ea8bb9b58237370e3cb80d309c.json b/rust/cloud-storage/.sqlx/query-2c1ca56683bc4ff97f5b9768e6da72ee6558c2ea8bb9b58237370e3cb80d309c.json deleted file mode 100644 index 54b0e1cd14..0000000000 --- a/rust/cloud-storage/.sqlx/query-2c1ca56683bc4ff97f5b9768e6da72ee6558c2ea8bb9b58237370e3cb80d309c.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n a.id,\n a.message_id,\n a.provider_attachment_id,\n a.filename,\n a.mime_type,\n a.size_bytes,\n a.content_id,\n a.created_at,\n m.thread_id\n FROM\n email_attachments a\n JOIN\n email_messages m ON a.message_id = m.id\n WHERE\n m.thread_id = ANY($1)\n ORDER BY\n a.created_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_attachment_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "filename", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "mime_type", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "size_bytes", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "content_id", - "type_info": "Varchar" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "thread_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - false, - false - ] - }, - "hash": "2c1ca56683bc4ff97f5b9768e6da72ee6558c2ea8bb9b58237370e3cb80d309c" -} diff --git a/rust/cloud-storage/.sqlx/query-2c1df8ba2035cc1f63f9d566e8ac763f4d0b5e28370570971935d29237a0211a.json b/rust/cloud-storage/.sqlx/query-2c1df8ba2035cc1f63f9d566e8ac763f4d0b5e28370570971935d29237a0211a.json deleted file mode 100644 index 4e5c86734c..0000000000 --- a/rust/cloud-storage/.sqlx/query-2c1df8ba2035cc1f63f9d566e8ac763f4d0b5e28370570971935d29237a0211a.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT l.id, l.macro_id, l.fusionauth_user_id, l.email_address, l.provider as \"provider: _\",\n l.is_sync_active, l.created_at, l.updated_at\n FROM email_threads t\n JOIN email_links l ON l.id = t.link_id\n WHERE t.id = $1\n AND (\n l.macro_id = $2\n OR EXISTS (\n SELECT 1 FROM macro_user_links mul\n WHERE mul.child_macro_id = l.macro_id AND mul.primary_macro_id = $2\n )\n )\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "provider: _", - "type_info": { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_sync_active", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "2c1df8ba2035cc1f63f9d566e8ac763f4d0b5e28370570971935d29237a0211a" -} diff --git a/rust/cloud-storage/.sqlx/query-2c2e1fbbc52b300640cab8add807f581aba22df15410900b9f598daf699b60de.json b/rust/cloud-storage/.sqlx/query-2c2e1fbbc52b300640cab8add807f581aba22df15410900b9f598daf699b60de.json deleted file mode 100644 index 81c377d3c2..0000000000 --- a/rust/cloud-storage/.sqlx/query-2c2e1fbbc52b300640cab8add807f581aba22df15410900b9f598daf699b60de.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.id\n FROM \"User\" u\n WHERE u.\"id\" = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "2c2e1fbbc52b300640cab8add807f581aba22df15410900b9f598daf699b60de" -} diff --git a/rust/cloud-storage/.sqlx/query-2c523a7a5cc018de790645eef920861ebc4fc1a28d0a6e14ee1aed1d472ff87a.json b/rust/cloud-storage/.sqlx/query-2c523a7a5cc018de790645eef920861ebc4fc1a28d0a6e14ee1aed1d472ff87a.json deleted file mode 100644 index 6f5cf33ea1..0000000000 --- a/rust/cloud-storage/.sqlx/query-2c523a7a5cc018de790645eef920861ebc4fc1a28d0a6e14ee1aed1d472ff87a.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT \"fileType\" as \"file_type?\" FROM \"Document\" WHERE id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "file_type?", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "2c523a7a5cc018de790645eef920861ebc4fc1a28d0a6e14ee1aed1d472ff87a" -} diff --git a/rust/cloud-storage/.sqlx/query-2c8623569ad039d0ee10321ab06c2563d7f90f17e00e6c4e18d25bc0a7b1355b.json b/rust/cloud-storage/.sqlx/query-2c8623569ad039d0ee10321ab06c2563d7f90f17e00e6c4e18d25bc0a7b1355b.json deleted file mode 100644 index b60c8f01fa..0000000000 --- a/rust/cloud-storage/.sqlx/query-2c8623569ad039d0ee10321ab06c2563d7f90f17e00e6c4e18d25bc0a7b1355b.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n t.id as thread_id, \n t.resolved as is_resolved,\n a.uuid as anchor_uuid, \n a.page, \n a.\"originalPage\" as original_page,\n a.\"originalIndex\" as original_index,\n a.\"shouldLockOnSave\" as should_lock_on_save,\n a.\"wasEdited\" as was_edited,\n a.\"wasDeleted\" as was_deleted,\n a.\"allowableEdits\" as allowable_edits,\n a.\"xPct\" as x_pct,\n a.\"yPct\" as y_pct,\n a.\"widthPct\" as width_pct,\n a.\"heightPct\" as height_pct,\n a.rotation\n FROM \"Thread\" t\n JOIN \"PdfPlaceableCommentAnchor\" a ON t.\"id\" = a.\"threadId\"\n WHERE t.\"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "is_resolved", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "anchor_uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "page", - "type_info": "Int4" - }, - { - "ordinal": 4, - "name": "original_page", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "original_index", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "should_lock_on_save", - "type_info": "Bool" - }, - { - "ordinal": 7, - "name": "was_edited", - "type_info": "Bool" - }, - { - "ordinal": 8, - "name": "was_deleted", - "type_info": "Bool" - }, - { - "ordinal": 9, - "name": "allowable_edits", - "type_info": "Jsonb" - }, - { - "ordinal": 10, - "name": "x_pct", - "type_info": "Float8" - }, - { - "ordinal": 11, - "name": "y_pct", - "type_info": "Float8" - }, - { - "ordinal": 12, - "name": "width_pct", - "type_info": "Float8" - }, - { - "ordinal": 13, - "name": "height_pct", - "type_info": "Float8" - }, - { - "ordinal": 14, - "name": "rotation", - "type_info": "Float8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - false, - false - ] - }, - "hash": "2c8623569ad039d0ee10321ab06c2563d7f90f17e00e6c4e18d25bc0a7b1355b" -} diff --git a/rust/cloud-storage/.sqlx/query-2cbc42ba5738de1d3d5c0f16306cf0daaab7ccca3618ff516bdbf2efda3077e5.json b/rust/cloud-storage/.sqlx/query-2cbc42ba5738de1d3d5c0f16306cf0daaab7ccca3618ff516bdbf2efda3077e5.json deleted file mode 100644 index d426064cfb..0000000000 --- a/rust/cloud-storage/.sqlx/query-2cbc42ba5738de1d3d5c0f16306cf0daaab7ccca3618ff516bdbf2efda3077e5.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id FROM (\n -- Direct user grants\n SELECT source_id as user_id FROM entity_access\n WHERE entity_id = $1 AND entity_type = $2 AND source_type = 'user'\n\n UNION ALL\n\n -- Channel Members\n SELECT cp.user_id FROM comms_channel_participants cp\n WHERE cp.left_at IS NULL AND cp.channel_id IN (\n SELECT source_id::uuid FROM entity_access\n WHERE entity_id = $1 AND entity_type = $2 AND source_type = 'channel'\n )\n\n UNION ALL\n\n -- Team Members\n SELECT tu.user_id FROM team_user tu\n WHERE tu.team_id IN (\n SELECT source_id::uuid FROM entity_access\n WHERE entity_id = $1 AND entity_type = $2 AND source_type = 'team'\n )\n ) AS combined_users\n\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "2cbc42ba5738de1d3d5c0f16306cf0daaab7ccca3618ff516bdbf2efda3077e5" -} diff --git a/rust/cloud-storage/.sqlx/query-2d1112d21440f0dfdf8fcbec264389f7abdcc74544558d60d817f56ff0c14524.json b/rust/cloud-storage/.sqlx/query-2d1112d21440f0dfdf8fcbec264389f7abdcc74544558d60d817f56ff0c14524.json deleted file mode 100644 index 9d5f4be71c..0000000000 --- a/rust/cloud-storage/.sqlx/query-2d1112d21440f0dfdf8fcbec264389f7abdcc74544558d60d817f56ff0c14524.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as \"document_id\",\n d.owner,\n d.name as \"document_name\",\n d.\"fileType\" as \"file_type\",\n dst.sub_type as \"sub_type?: DocumentSubType\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dst ON dst.document_id = d.id\n WHERE d.id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - false, - false, - true, - true - ] - }, - "hash": "2d1112d21440f0dfdf8fcbec264389f7abdcc74544558d60d817f56ff0c14524" -} diff --git a/rust/cloud-storage/.sqlx/query-2d17144ac0fad7ccde292b6da4197cee6ec3a0e3eefc8711308ef3c6b3f7f30c.json b/rust/cloud-storage/.sqlx/query-2d17144ac0fad7ccde292b6da4197cee6ec3a0e3eefc8711308ef3c6b3f7f30c.json deleted file mode 100644 index b615b341e1..0000000000 --- a/rust/cloud-storage/.sqlx/query-2d17144ac0fad7ccde292b6da4197cee6ec3a0e3eefc8711308ef3c6b3f7f30c.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Chat\" SET \"tokenCount\" = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int8", - "Text" - ] - }, - "nullable": [] - }, - "hash": "2d17144ac0fad7ccde292b6da4197cee6ec3a0e3eefc8711308ef3c6b3f7f30c" -} diff --git a/rust/cloud-storage/.sqlx/query-2d57c3a99a46bf686884ad509c913941732afc0ed4d180fdd982f50cdf39b08b.json b/rust/cloud-storage/.sqlx/query-2d57c3a99a46bf686884ad509c913941732afc0ed4d180fdd982f50cdf39b08b.json deleted file mode 100644 index fef16a70f7..0000000000 --- a/rust/cloud-storage/.sqlx/query-2d57c3a99a46bf686884ad509c913941732afc0ed4d180fdd982f50cdf39b08b.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT t.email as \"email!\"\n FROM UNNEST($2::text[], $3::text[]) WITH ORDINALITY AS t(email, user_id, ord)\n WHERE NOT EXISTS (\n SELECT 1 FROM team_invite ti\n WHERE ti.team_id = $1 AND ti.email = t.email\n )\n AND NOT EXISTS (\n SELECT 1 FROM team_user tu\n WHERE tu.team_id = $1 AND tu.user_id = t.user_id\n )\n GROUP BY t.email\n ORDER BY MIN(t.ord)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray", - "TextArray" - ] - }, - "nullable": [ - null - ] - }, - "hash": "2d57c3a99a46bf686884ad509c913941732afc0ed4d180fdd982f50cdf39b08b" -} diff --git a/rust/cloud-storage/.sqlx/query-2d689689caf98fbfbb437fe34129b37a1ece02e7c4189d0619ea741f74f05bdf.json b/rust/cloud-storage/.sqlx/query-2d689689caf98fbfbb437fe34129b37a1ece02e7c4189d0619ea741f74f05bdf.json deleted file mode 100644 index 05a17cf734..0000000000 --- a/rust/cloud-storage/.sqlx/query-2d689689caf98fbfbb437fe34129b37a1ece02e7c4189d0619ea741f74f05bdf.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT DISTINCT tt.document_id\n FROM UNNEST($2::text[], $3::int4[]) AS refs(team_slug, task_num)\n JOIN github_app_installation gai\n ON gai.id = $1\n AND gai.source_type = 'team'::github_app_installation_source_type\n JOIN team t\n ON t.id = gai.source_id::uuid\n AND LOWER(t.slug) = LOWER(refs.team_slug)\n JOIN team_task tt ON tt.team_id = t.id AND tt.task_num = refs.task_num\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray", - "Int4Array" - ] - }, - "nullable": [ - false - ] - }, - "hash": "2d689689caf98fbfbb437fe34129b37a1ece02e7c4189d0619ea741f74f05bdf" -} diff --git a/rust/cloud-storage/.sqlx/query-2db06a8049c3fa54997e62b47e3862e24a45c9278ff5671e190b594d0972946f.json b/rust/cloud-storage/.sqlx/query-2db06a8049c3fa54997e62b47e3862e24a45c9278ff5671e190b594d0972946f.json deleted file mode 100644 index 7115b37189..0000000000 --- a/rust/cloud-storage/.sqlx/query-2db06a8049c3fa54997e62b47e3862e24a45c9278ff5671e190b594d0972946f.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT hidden FROM crm_companies WHERE id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "hidden", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "2db06a8049c3fa54997e62b47e3862e24a45c9278ff5671e190b594d0972946f" -} diff --git a/rust/cloud-storage/.sqlx/query-2e069f7c63dac759abe54f685567743862bb918f45f0a21481e044ff99427976.json b/rust/cloud-storage/.sqlx/query-2e069f7c63dac759abe54f685567743862bb918f45f0a21481e044ff99427976.json deleted file mode 100644 index 35d3cece1c..0000000000 --- a/rust/cloud-storage/.sqlx/query-2e069f7c63dac759abe54f685567743862bb918f45f0a21481e044ff99427976.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE user_notification\n SET done = true\n WHERE notification_id = $1 AND user_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "2e069f7c63dac759abe54f685567743862bb918f45f0a21481e044ff99427976" -} diff --git a/rust/cloud-storage/.sqlx/query-2e0d56c9e8fecdbbd5ca1853876f9bf94f8980710a99f36274ab20bd75514a52.json b/rust/cloud-storage/.sqlx/query-2e0d56c9e8fecdbbd5ca1853876f9bf94f8980710a99f36274ab20bd75514a52.json deleted file mode 100644 index e08e9ad42e..0000000000 --- a/rust/cloud-storage/.sqlx/query-2e0d56c9e8fecdbbd5ca1853876f9bf94f8980710a99f36274ab20bd75514a52.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n VALUES ($1, 'document', $2, 'team', $3)\n ON CONFLICT (entity_id, entity_type, source_id, source_type)\n WHERE granted_from_project_id IS NULL\n DO UPDATE SET access_level = EXCLUDED.access_level, updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - { - "Custom": { - "name": "\"AccessLevel\"", - "kind": { - "Enum": [ - "view", - "comment", - "edit", - "owner" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "2e0d56c9e8fecdbbd5ca1853876f9bf94f8980710a99f36274ab20bd75514a52" -} diff --git a/rust/cloud-storage/.sqlx/query-2e318ed8eff90b0e145afae548e3f895f7b7c4f8458df987c7bed9054fbc3450.json b/rust/cloud-storage/.sqlx/query-2e318ed8eff90b0e145afae548e3f895f7b7c4f8458df987c7bed9054fbc3450.json deleted file mode 100644 index 7dc8bf69a0..0000000000 --- a/rust/cloud-storage/.sqlx/query-2e318ed8eff90b0e145afae548e3f895f7b7c4f8458df987c7bed9054fbc3450.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n name\n FROM\n \"Organization\"\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int4" - ] - }, - "nullable": [ - false - ] - }, - "hash": "2e318ed8eff90b0e145afae548e3f895f7b7c4f8458df987c7bed9054fbc3450" -} diff --git a/rust/cloud-storage/.sqlx/query-2e5e76597cf6fe734978fef0762c7c86aeba3b076e8684a85696045ed3a4636e.json b/rust/cloud-storage/.sqlx/query-2e5e76597cf6fe734978fef0762c7c86aeba3b076e8684a85696045ed3a4636e.json deleted file mode 100644 index 7c3172354d..0000000000 --- a/rust/cloud-storage/.sqlx/query-2e5e76597cf6fe734978fef0762c7c86aeba3b076e8684a85696045ed3a4636e.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_scheduled_messages\n WHERE link_id = $1 AND message_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "2e5e76597cf6fe734978fef0762c7c86aeba3b076e8684a85696045ed3a4636e" -} diff --git a/rust/cloud-storage/.sqlx/query-2e86cba5f8e5a4358520e11e33cea6c51ce2ca2d05b985a30debdb97f9d7d78a.json b/rust/cloud-storage/.sqlx/query-2e86cba5f8e5a4358520e11e33cea6c51ce2ca2d05b985a30debdb97f9d7d78a.json deleted file mode 100644 index 38ea8a45d4..0000000000 --- a/rust/cloud-storage/.sqlx/query-2e86cba5f8e5a4358520e11e33cea6c51ce2ca2d05b985a30debdb97f9d7d78a.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"PdfPlaceableCommentAnchor\" SET\n \"page\" = COALESCE($1, \"page\"),\n \"originalPage\" = COALESCE($2, \"originalPage\"),\n \"originalIndex\" = COALESCE($3, \"originalIndex\"),\n \"xPct\" = COALESCE($4, \"xPct\"),\n \"yPct\" = COALESCE($5, \"yPct\"),\n \"widthPct\" = COALESCE($6, \"widthPct\"),\n \"heightPct\" = COALESCE($7, \"heightPct\"),\n \"rotation\" = COALESCE($8, \"rotation\"),\n \"allowableEdits\" = COALESCE($9, \"allowableEdits\"),\n \"wasEdited\" = COALESCE($10, \"wasEdited\"),\n \"wasDeleted\" = COALESCE($11, \"wasDeleted\"),\n \"shouldLockOnSave\" = COALESCE($12, \"shouldLockOnSave\")\n WHERE uuid = $13\n RETURNING \n uuid, \n \"documentId\" as document_id,\n owner, \n \"threadId\" as thread_id, \n page, \n \"originalPage\" as original_page, \n \"originalIndex\" as original_index, \n \"xPct\" as x_pct, \n \"yPct\" as y_pct, \n \"widthPct\" as width_pct, \n \"heightPct\" as height_pct, \n rotation,\n \"allowableEdits\" as allowable_edits, \n \"wasEdited\" as was_edited, \n \"wasDeleted\" as was_deleted, \n \"shouldLockOnSave\" as should_lock_on_save\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "page", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "original_page", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "original_index", - "type_info": "Int4" - }, - { - "ordinal": 7, - "name": "x_pct", - "type_info": "Float8" - }, - { - "ordinal": 8, - "name": "y_pct", - "type_info": "Float8" - }, - { - "ordinal": 9, - "name": "width_pct", - "type_info": "Float8" - }, - { - "ordinal": 10, - "name": "height_pct", - "type_info": "Float8" - }, - { - "ordinal": 11, - "name": "rotation", - "type_info": "Float8" - }, - { - "ordinal": 12, - "name": "allowable_edits", - "type_info": "Jsonb" - }, - { - "ordinal": 13, - "name": "was_edited", - "type_info": "Bool" - }, - { - "ordinal": 14, - "name": "was_deleted", - "type_info": "Bool" - }, - { - "ordinal": 15, - "name": "should_lock_on_save", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Int4", - "Int4", - "Int4", - "Float8", - "Float8", - "Float8", - "Float8", - "Float8", - "Jsonb", - "Bool", - "Bool", - "Bool", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false - ] - }, - "hash": "2e86cba5f8e5a4358520e11e33cea6c51ce2ca2d05b985a30debdb97f9d7d78a" -} diff --git a/rust/cloud-storage/.sqlx/query-2e94210011a9636d994437cbe074d904d563e57443cc3f65432e1db986f016dc.json b/rust/cloud-storage/.sqlx/query-2e94210011a9636d994437cbe074d904d563e57443cc3f65432e1db986f016dc.json deleted file mode 100644 index c8f7b6d614..0000000000 --- a/rust/cloud-storage/.sqlx/query-2e94210011a9636d994437cbe074d904d563e57443cc3f65432e1db986f016dc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT sender_id\n FROM comms_messages\n WHERE id = $1\n ORDER BY created_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sender_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "2e94210011a9636d994437cbe074d904d563e57443cc3f65432e1db986f016dc" -} diff --git a/rust/cloud-storage/.sqlx/query-2f1f54eaf23c0c277b0685c35ae75eea5921057be13e25a9609410d6ac5b17ba.json b/rust/cloud-storage/.sqlx/query-2f1f54eaf23c0c277b0685c35ae75eea5921057be13e25a9609410d6ac5b17ba.json deleted file mode 100644 index 1428af8b0e..0000000000 --- a/rust/cloud-storage/.sqlx/query-2f1f54eaf23c0c277b0685c35ae75eea5921057be13e25a9609410d6ac5b17ba.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"User\" (\"id\", \"email\", \"stripeCustomerId\", \"organizationId\", \"macro_user_id\")\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Int4", - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "2f1f54eaf23c0c277b0685c35ae75eea5921057be13e25a9609410d6ac5b17ba" -} diff --git a/rust/cloud-storage/.sqlx/query-2f25b7a9ef03d53404c384af4763ec5ce5f48079d5b040724b62f1964e49c932.json b/rust/cloud-storage/.sqlx/query-2f25b7a9ef03d53404c384af4763ec5ce5f48079d5b040724b62f1964e49c932.json deleted file mode 100644 index bf7d0c2a17..0000000000 --- a/rust/cloud-storage/.sqlx/query-2f25b7a9ef03d53404c384af4763ec5ce5f48079d5b040724b62f1964e49c932.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH message AS (\n SELECT id\n FROM comms_messages\n WHERE id = $2 AND channel_id = $1\n ),\n deleted AS (\n DELETE FROM comms_reactions r\n USING message m\n WHERE r.message_id = m.id\n AND r.emoji = $3\n AND r.user_id = $4\n )\n SELECT EXISTS (SELECT 1 FROM message) AS \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "2f25b7a9ef03d53404c384af4763ec5ce5f48079d5b040724b62f1964e49c932" -} diff --git a/rust/cloud-storage/.sqlx/query-2f26d3b3e0337d1b7b7c31345c0cde73657c5fc5e53fd86a8a2eb14ad063af2c.json b/rust/cloud-storage/.sqlx/query-2f26d3b3e0337d1b7b7c31345c0cde73657c5fc5e53fd86a8a2eb14ad063af2c.json deleted file mode 100644 index d3ca62a73c..0000000000 --- a/rust/cloud-storage/.sqlx/query-2f26d3b3e0337d1b7b7c31345c0cde73657c5fc5e53fd86a8a2eb14ad063af2c.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n channel_id,\n id\n FROM comms_messages\n WHERE\n $3::bool IS NULL\n OR ($3 AND deleted_at IS NOT NULL)\n OR (NOT $3 AND deleted_at IS NULL)\n ORDER BY created_at ASC\n LIMIT $1\n OFFSET $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8", - "Bool" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "2f26d3b3e0337d1b7b7c31345c0cde73657c5fc5e53fd86a8a2eb14ad063af2c" -} diff --git a/rust/cloud-storage/.sqlx/query-2f51ce444a7d59339909afba8296d2076f0654d89c89495858fec18432df7074.json b/rust/cloud-storage/.sqlx/query-2f51ce444a7d59339909afba8296d2076f0654d89c89495858fec18432df7074.json deleted file mode 100644 index 538ce89fdb..0000000000 --- a/rust/cloud-storage/.sqlx/query-2f51ce444a7d59339909afba8296d2076f0654d89c89495858fec18432df7074.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH ApplicableLabelIDs AS (\n SELECT id\n FROM email_labels\n WHERE link_id = ANY($1)\n AND (name = 'INBOX')\n ),\n QualifyingMessages AS (\n SELECT m.thread_id,\n m.internal_date_ts,\n m.created_at AS fallback_ts,\n m.is_draft,\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name\n FROM email_messages m\n WHERE m.link_id = ANY($1)\n AND NOT EXISTS (\n SELECT 1\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id\n AND l.name = 'TRASH'\n AND l.link_id = m.link_id\n )\n AND EXISTS (\n SELECT 1\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id\n AND l.name = 'IMPORTANT'\n )\n AND EXISTS (\n SELECT 1\n FROM email_message_labels ml\n JOIN ApplicableLabelIDs ali ON ml.label_id = ali.id\n WHERE ml.message_id = m.id\n )\n\n UNION ALL\n\n SELECT m.thread_id,\n m.internal_date_ts,\n m.created_at AS fallback_ts,\n m.is_draft,\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name\n FROM email_messages m\n WHERE m.link_id = ANY($1)\n AND m.is_draft = TRUE\n AND NOT EXISTS (\n SELECT 1\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id\n AND l.name = 'TRASH'\n AND l.link_id = m.link_id\n )\n ),\n AllImportantThreads AS (\n -- From all qualifying messages, get the single most recent one per thread.\n SELECT DISTINCT ON (thread_id)\n thread_id,\n internal_date_ts,\n fallback_ts,\n is_draft,\n subject,\n snippet,\n from_contact_id,\n from_name\n FROM QualifyingMessages\n ORDER BY thread_id, COALESCE(internal_date_ts, fallback_ts) DESC\n ),\n ImportantWithSortKey AS (\n -- Join with user_history to calculate the final effective sort key.\n SELECT\n ait.thread_id,\n ait.internal_date_ts,\n ait.fallback_ts,\n ait.is_draft,\n ait.subject,\n ait.snippet,\n ait.from_contact_id,\n ait.from_name,\n COALESCE(ait.internal_date_ts, ait.fallback_ts) as created_at,\n COALESCE(ait.internal_date_ts, ait.fallback_ts) as updated_at,\n uh.updated_at as viewed_at,\n -- This CASE statement dynamically selects the correct timestamp for sorting.\n -- For 'updated_at' and 'created_at', we use the important message timestamp\n -- For 'viewed_at', we use the history timestamp.\n -- For 'viewed_updated', we use the history timestamp if it exists, otherwise the important message timestamp.\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, COALESCE(ait.internal_date_ts, ait.fallback_ts))\n ELSE COALESCE(ait.internal_date_ts, ait.fallback_ts)\n END AS effective_ts\n FROM AllImportantThreads ait\n JOIN email_threads tt ON tt.id = ait.thread_id\n -- This has to be a left join to support all sort methods.\n LEFT JOIN email_user_history uh ON uh.thread_id = ait.thread_id AND uh.link_id = tt.link_id\n )\n SELECT\n isk.thread_id as \"id!\",\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n isk.effective_ts as \"sort_ts!\",\n isk.created_at as \"created_at!\",\n isk.updated_at as \"updated_at!\",\n t.project_id,\n isk.viewed_at as \"viewed_at?\",\n isk.is_draft as \"is_draft!\",\n -- It's the important view - all threads here are important\n true as \"is_important!\",\n isk.subject as \"name?\",\n isk.snippet as \"snippet?\",\n c.email_address AS \"sender_email?\",\n COALESCE(isk.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM ImportantWithSortKey isk\n JOIN email_threads t ON isk.thread_id = t.id\n LEFT JOIN email_contacts c ON isk.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n WHERE\n ($3::timestamptz IS NULL) OR (isk.effective_ts, isk.thread_id) < ($3::timestamptz, $4::uuid)\n ORDER BY isk.effective_ts DESC, isk.thread_id DESC\n LIMIT $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "inbox_visible", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "sort_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "viewed_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "is_draft!", - "type_info": "Bool" - }, - { - "ordinal": 10, - "name": "is_important!", - "type_info": "Bool" - }, - { - "ordinal": 11, - "name": "name?", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "snippet?", - "type_info": "Text" - }, - { - "ordinal": 13, - "name": "sender_email?", - "type_info": "Varchar" - }, - { - "ordinal": 14, - "name": "sender_name?", - "type_info": "Varchar" - }, - { - "ordinal": 15, - "name": "sender_photo_url?", - "type_info": "Text" - }, - { - "ordinal": 16, - "name": "owner_id!", - "type_info": "Text" - }, - { - "ordinal": 17, - "name": "link_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "Int8", - "Timestamptz", - "Uuid", - "Text" - ] - }, - "nullable": [ - null, - true, - false, - false, - null, - null, - null, - true, - false, - null, - null, - null, - null, - false, - null, - true, - false, - false - ] - }, - "hash": "2f51ce444a7d59339909afba8296d2076f0654d89c89495858fec18432df7074" -} diff --git a/rust/cloud-storage/.sqlx/query-2f57ef816b974c70f46ed469ff98a316ee83b8e0b87a504a40ab4eb6f91c9bf6.json b/rust/cloud-storage/.sqlx/query-2f57ef816b974c70f46ed469ff98a316ee83b8e0b87a504a40ab4eb6f91c9bf6.json deleted file mode 100644 index 8dab22de3e..0000000000 --- a/rust/cloud-storage/.sqlx/query-2f57ef816b974c70f46ed469ff98a316ee83b8e0b87a504a40ab4eb6f91c9bf6.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"PdfHighlightRect\" (\"pdfHighlightAnchorId\", \"top\", \"left\", \"width\", \"height\")\n SELECT *\n FROM UNNEST(\n $1::uuid[], \n $2::double precision[], \n $3::double precision[], \n $4::double precision[], \n $5::double precision[]\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "Float8Array", - "Float8Array", - "Float8Array", - "Float8Array" - ] - }, - "nullable": [] - }, - "hash": "2f57ef816b974c70f46ed469ff98a316ee83b8e0b87a504a40ab4eb6f91c9bf6" -} diff --git a/rust/cloud-storage/.sqlx/query-304363603c60b5894a3e692b394aa320b6d72a5851a596cec6dc37b6ef5f80e6.json b/rust/cloud-storage/.sqlx/query-304363603c60b5894a3e692b394aa320b6d72a5851a596cec6dc37b6ef5f80e6.json deleted file mode 100644 index c120389544..0000000000 --- a/rust/cloud-storage/.sqlx/query-304363603c60b5894a3e692b394aa320b6d72a5851a596cec6dc37b6ef5f80e6.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT l.macro_id as \"macro_id!\"\n FROM email_threads t\n JOIN email_links l ON t.link_id = l.id\n WHERE t.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "304363603c60b5894a3e692b394aa320b6d72a5851a596cec6dc37b6ef5f80e6" -} diff --git a/rust/cloud-storage/.sqlx/query-30cb91911aecb757da05dab343255e9c81997db622339c1f414e36e873cb476e.json b/rust/cloud-storage/.sqlx/query-30cb91911aecb757da05dab343255e9c81997db622339c1f414e36e873cb476e.json deleted file mode 100644 index d1649a41c1..0000000000 --- a/rust/cloud-storage/.sqlx/query-30cb91911aecb757da05dab343255e9c81997db622339c1f414e36e873cb476e.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.id AS user_id,\n u.email,\n COUNT(d.id) AS document_count\n FROM\n \"User\" u\n LEFT JOIN\n \"Document\" d ON u.id = d.owner AND d.\"fileType\" IS DISTINCT FROM 'docx'\n WHERE\n u.id NOT LIKE 'macro|%'\n GROUP BY\n u.id, u.email\n ORDER BY\n document_count DESC;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "email", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - false, - null - ] - }, - "hash": "30cb91911aecb757da05dab343255e9c81997db622339c1f414e36e873cb476e" -} diff --git a/rust/cloud-storage/.sqlx/query-3152bd385bf8a62ac1258308acc31e02e1d6a1a5aa81499903ec6ca86f678219.json b/rust/cloud-storage/.sqlx/query-3152bd385bf8a62ac1258308acc31e02e1d6a1a5aa81499903ec6ca86f678219.json deleted file mode 100644 index e508902b50..0000000000 --- a/rust/cloud-storage/.sqlx/query-3152bd385bf8a62ac1258308acc31e02e1d6a1a5aa81499903ec6ca86f678219.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE team_invite\n SET last_sent_at = NOW()\n WHERE id = ANY($1::uuid[])\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [] - }, - "hash": "3152bd385bf8a62ac1258308acc31e02e1d6a1a5aa81499903ec6ca86f678219" -} diff --git a/rust/cloud-storage/.sqlx/query-317f5f566558b0a1c27174de398f923cb9e2d47d3cb0adbe628f18f753995d90.json b/rust/cloud-storage/.sqlx/query-317f5f566558b0a1c27174de398f923cb9e2d47d3cb0adbe628f18f753995d90.json deleted file mode 100644 index 8be30f3fe9..0000000000 --- a/rust/cloud-storage/.sqlx/query-317f5f566558b0a1c27174de398f923cb9e2d47d3cb0adbe628f18f753995d90.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT ea.id, ea.message_id, ea.provider_attachment_id, ea.filename, ea.mime_type, ea.size_bytes, ea.content_id, eas.sfs_id as \"sfs_id?\", ea.created_at\n FROM email_attachments ea\n LEFT JOIN email_attachments_sfs eas ON ea.id = eas.attachment_id\n WHERE ea.message_id = ANY($1)\n ORDER BY ea.message_id, ea.filename NULLS LAST\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_attachment_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "filename", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "mime_type", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "size_bytes", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "content_id", - "type_info": "Varchar" - }, - { - "ordinal": 7, - "name": "sfs_id?", - "type_info": "Uuid" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - false, - false - ] - }, - "hash": "317f5f566558b0a1c27174de398f923cb9e2d47d3cb0adbe628f18f753995d90" -} diff --git a/rust/cloud-storage/.sqlx/query-31d2504654072ca22b3fc69edcfda0a7c112bb86527c7200c38326cd920f94e8.json b/rust/cloud-storage/.sqlx/query-31d2504654072ca22b3fc69edcfda0a7c112bb86527c7200c38326cd920f94e8.json deleted file mode 100644 index 018d07b559..0000000000 --- a/rust/cloud-storage/.sqlx/query-31d2504654072ca22b3fc69edcfda0a7c112bb86527c7200c38326cd920f94e8.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH source_pairs AS (\n SELECT DISTINCT stored_for_id, stored_for_auth_entity\n FROM UNNEST($2::text[], $3::text[])\n AS source_rows(stored_for_id, stored_for_auth_entity)\n )\n SELECT EXISTS (\n SELECT 1\n FROM foreign_entity fe\n WHERE fe.id = $1\n AND EXISTS (\n SELECT 1\n FROM source_pairs s\n WHERE s.stored_for_id = fe.stored_for_id\n AND s.stored_for_auth_entity = fe.stored_for_auth_entity\n )\n ) AS \"has_access!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "has_access!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray", - "TextArray" - ] - }, - "nullable": [ - null - ] - }, - "hash": "31d2504654072ca22b3fc69edcfda0a7c112bb86527c7200c38326cd920f94e8" -} diff --git a/rust/cloud-storage/.sqlx/query-31dbb9af47386234da706e7c3175a7a2e43c2231040cc399488418eab9f6023a.json b/rust/cloud-storage/.sqlx/query-31dbb9af47386234da706e7c3175a7a2e43c2231040cc399488418eab9f6023a.json deleted file mode 100644 index 88bcfc4608..0000000000 --- a/rust/cloud-storage/.sqlx/query-31dbb9af47386234da706e7c3175a7a2e43c2231040cc399488418eab9f6023a.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO document_sub_type (document_id, sub_type)\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "31dbb9af47386234da706e7c3175a7a2e43c2231040cc399488418eab9f6023a" -} diff --git a/rust/cloud-storage/.sqlx/query-322b3420ee6b76c4b85d1953e2bfb47c8b8ba0618e2833475801815dff29d42b.json b/rust/cloud-storage/.sqlx/query-322b3420ee6b76c4b85d1953e2bfb47c8b8ba0618e2833475801815dff29d42b.json deleted file mode 100644 index baf375e8ba..0000000000 --- a/rust/cloud-storage/.sqlx/query-322b3420ee6b76c4b85d1953e2bfb47c8b8ba0618e2833475801815dff29d42b.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, name, slug, owner_id\n FROM team\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "slug", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "owner_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false - ] - }, - "hash": "322b3420ee6b76c4b85d1953e2bfb47c8b8ba0618e2833475801815dff29d42b" -} diff --git a/rust/cloud-storage/.sqlx/query-32900d38a985678b10e8b72c3a250033052a9fb05c14a92e0d2b89b3b47330a2.json b/rust/cloud-storage/.sqlx/query-32900d38a985678b10e8b72c3a250033052a9fb05c14a92e0d2b89b3b47330a2.json deleted file mode 100644 index 4a65e67f3d..0000000000 --- a/rust/cloud-storage/.sqlx/query-32900d38a985678b10e8b72c3a250033052a9fb05c14a92e0d2b89b3b47330a2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n l.id AS \"link_id!\"\n FROM\n public.email_links l\n JOIN\n public.email_user_history h ON l.id = h.link_id\n WHERE\n l.macro_id NOT LIKE '%@macro.com'\n GROUP BY\n l.id\n HAVING\n MAX(h.updated_at) < NOW() - (make_interval(days => $1))\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "link_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Int4" - ] - }, - "nullable": [ - false - ] - }, - "hash": "32900d38a985678b10e8b72c3a250033052a9fb05c14a92e0d2b89b3b47330a2" -} diff --git a/rust/cloud-storage/.sqlx/query-32bc3d9fd93e31e31e94a11d286017303907af0da309f50568bda9f6fa74c22f.json b/rust/cloud-storage/.sqlx/query-32bc3d9fd93e31e31e94a11d286017303907af0da309f50568bda9f6fa74c22f.json deleted file mode 100644 index 4748f06d4d..0000000000 --- a/rust/cloud-storage/.sqlx/query-32bc3d9fd93e31e31e94a11d286017303907af0da309f50568bda9f6fa74c22f.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO notification_email_unsubscribe_code (email, code) VALUES ($1, $2)\n ON CONFLICT (email) DO UPDATE \n SET code = notification_email_unsubscribe_code.code\n RETURNING notification_email_unsubscribe_code.code\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "code", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "32bc3d9fd93e31e31e94a11d286017303907af0da309f50568bda9f6fa74c22f" -} diff --git a/rust/cloud-storage/.sqlx/query-32d4e521979a071490ce529b37db5210b6068fa4a23b88e2b2d922f04e7129d8.json b/rust/cloud-storage/.sqlx/query-32d4e521979a071490ce529b37db5210b6068fa4a23b88e2b2d922f04e7129d8.json deleted file mode 100644 index 95e3693fce..0000000000 --- a/rust/cloud-storage/.sqlx/query-32d4e521979a071490ce529b37db5210b6068fa4a23b88e2b2d922f04e7129d8.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n c.id as comment_id, \n c.\"threadId\" as thread_id, \n c.owner, \n c.sender, \n c.text, \n c.metadata, \n c.\"createdAt\"::timestamptz as created_at, \n c.\"updatedAt\"::timestamptz as updated_at, \n c.\"deletedAt\"::timestamptz as deleted_at, \n c.order\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n WHERE t.\"documentId\" = $1 AND t.\"deletedAt\" IS NULL AND c.\"deletedAt\" IS NULL\n ORDER BY c.\"createdAt\" ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "comment_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "sender", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "text", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "order", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - true, - null, - null, - null, - true - ] - }, - "hash": "32d4e521979a071490ce529b37db5210b6068fa4a23b88e2b2d922f04e7129d8" -} diff --git a/rust/cloud-storage/.sqlx/query-3357165799ff1f7bf1de3891174668e0ab16c64bd9dfc905213681e6021474fa.json b/rust/cloud-storage/.sqlx/query-3357165799ff1f7bf1de3891174668e0ab16c64bd9dfc905213681e6021474fa.json deleted file mode 100644 index 6696253445..0000000000 --- a/rust/cloud-storage/.sqlx/query-3357165799ff1f7bf1de3891174668e0ab16c64bd9dfc905213681e6021474fa.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS(\n SELECT 1 FROM notification_message_receipt\n WHERE user_id = $1\n AND notification_id = $2\n AND failed = false\n ) as \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "3357165799ff1f7bf1de3891174668e0ab16c64bd9dfc905213681e6021474fa" -} diff --git a/rust/cloud-storage/.sqlx/query-337c5b8167734371400bf99235e441b2a8bfe4d2d7cc242195f298437d95e7c3.json b/rust/cloud-storage/.sqlx/query-337c5b8167734371400bf99235e441b2a8bfe4d2d7cc242195f298437d95e7c3.json deleted file mode 100644 index 9adfebb5e1..0000000000 --- a/rust/cloud-storage/.sqlx/query-337c5b8167734371400bf99235e441b2a8bfe4d2d7cc242195f298437d95e7c3.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM channel_notification_email_sent\n WHERE channel_id = $1 AND user_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "337c5b8167734371400bf99235e441b2a8bfe4d2d7cc242195f298437d95e7c3" -} diff --git a/rust/cloud-storage/.sqlx/query-33d640ec17b5f3daff76c169a999c7347151ce6a8bed1faa103c27a490a110d6.json b/rust/cloud-storage/.sqlx/query-33d640ec17b5f3daff76c169a999c7347151ce6a8bed1faa103c27a490a110d6.json deleted file mode 100644 index 08cef514e3..0000000000 --- a/rust/cloud-storage/.sqlx/query-33d640ec17b5f3daff76c169a999c7347151ce6a8bed1faa103c27a490a110d6.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, bot_id, token_prefix, label, last_used_at, expires_at, revoked_at, created_at\n FROM bot_tokens\n WHERE bot_id = $1\n AND revoked_at IS NULL\n ORDER BY created_at DESC, id DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "bot_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "token_prefix", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "label", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "last_used_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "expires_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "revoked_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - true, - true, - false - ] - }, - "hash": "33d640ec17b5f3daff76c169a999c7347151ce6a8bed1faa103c27a490a110d6" -} diff --git a/rust/cloud-storage/.sqlx/query-33e0a69e797d9274f49771113b4abc47b8a9fe63263b050379d73cc14ce38fd7.json b/rust/cloud-storage/.sqlx/query-33e0a69e797d9274f49771113b4abc47b8a9fe63263b050379d73cc14ce38fd7.json deleted file mode 100644 index ae0c6b9b23..0000000000 --- a/rust/cloud-storage/.sqlx/query-33e0a69e797d9274f49771113b4abc47b8a9fe63263b050379d73cc14ce38fd7.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id\n FROM\n \"Document\" d\n WHERE\n d.\"projectId\" = ANY($1::text[])\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "33e0a69e797d9274f49771113b4abc47b8a9fe63263b050379d73cc14ce38fd7" -} diff --git a/rust/cloud-storage/.sqlx/query-341489a2c91e2bf15545e01ab49df8ca99355322514ac541a95c0ef65491505d.json b/rust/cloud-storage/.sqlx/query-341489a2c91e2bf15545e01ab49df8ca99355322514ac541a95c0ef65491505d.json deleted file mode 100644 index 93f4c93d02..0000000000 --- a/rust/cloud-storage/.sqlx/query-341489a2c91e2bf15545e01ab49df8ca99355322514ac541a95c0ef65491505d.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id as \"thread_id\"\n FROM\n email_threads\n ORDER BY\n created_at ASC\n LIMIT $1\n OFFSET $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "341489a2c91e2bf15545e01ab49df8ca99355322514ac541a95c0ef65491505d" -} diff --git a/rust/cloud-storage/.sqlx/query-345333b49aa634cf527c0d5c10f6064359b93f5cadb52da18c5e12a50cf50ae1.json b/rust/cloud-storage/.sqlx/query-345333b49aa634cf527c0d5c10f6064359b93f5cadb52da18c5e12a50cf50ae1.json deleted file mode 100644 index e4348b6a7f..0000000000 --- a/rust/cloud-storage/.sqlx/query-345333b49aa634cf527c0d5c10f6064359b93f5cadb52da18c5e12a50cf50ae1.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id as entity_id,\n c.name,\n regexp_replace(\n c.name,\n $6,\n '\\1',\n 'gi'\n ) as name_highlighted,\n c.\"updatedAt\" as updated_at\n FROM \"Chat\" c\n WHERE c.id = ANY($1)\n AND c.\"deletedAt\" IS NULL\n AND c.name ILIKE $2\n AND (\n $4::timestamptz IS NULL\n OR (c.\"updatedAt\", c.id) < ($4, $5)\n )\n ORDER BY c.\"updatedAt\" DESC, c.id DESC\n LIMIT $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name_highlighted", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "updated_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "TextArray", - "Text", - "Int8", - "Timestamptz", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - null, - false - ] - }, - "hash": "345333b49aa634cf527c0d5c10f6064359b93f5cadb52da18c5e12a50cf50ae1" -} diff --git a/rust/cloud-storage/.sqlx/query-3463e587c615fd82082c41897c917aef97239bcdd408c928caffed0d69c21613.json b/rust/cloud-storage/.sqlx/query-3463e587c615fd82082c41897c917aef97239bcdd408c928caffed0d69c21613.json deleted file mode 100644 index 68c21db99b..0000000000 --- a/rust/cloud-storage/.sqlx/query-3463e587c615fd82082c41897c917aef97239bcdd408c928caffed0d69c21613.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentProcessResult\" (\"documentId\", \"content\", \"jobType\")\n SELECT $1, content, 'pdf_preprocess' FROM \"DocumentProcessResult\"\n WHERE \"documentId\" = $2 and \"jobType\" = 'pdf_preprocess'\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "3463e587c615fd82082c41897c917aef97239bcdd408c928caffed0d69c21613" -} diff --git a/rust/cloud-storage/.sqlx/query-3480a69060f20430ed75c05cf9e40734b03ec692b637f99fb61b25f9b7c54583.json b/rust/cloud-storage/.sqlx/query-3480a69060f20430ed75c05cf9e40734b03ec692b637f99fb61b25f9b7c54583.json deleted file mode 100644 index c2ea120327..0000000000 --- a/rust/cloud-storage/.sqlx/query-3480a69060f20430ed75c05cf9e40734b03ec692b637f99fb61b25f9b7c54583.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT DISTINCT id as \"id!\" FROM (\n SELECT m.sender_id AS id\n FROM comms_channel_participants cp\n JOIN comms_channels c ON c.id = cp.channel_id\n JOIN comms_messages m ON m.channel_id = c.id\n WHERE (m.id = $1 OR m.thread_id = $1) AND cp.left_at IS NULL\n UNION\n SELECT em.entity_id AS id\n FROM comms_entity_mentions em\n JOIN comms_messages m ON m.id::text = em.source_entity_id\n JOIN comms_channel_participants cp\n ON cp.channel_id = m.channel_id AND cp.user_id = em.entity_id\n WHERE (m.id = $1 OR m.thread_id = $1)\n AND em.source_entity_type = 'message'\n AND em.entity_type = 'user'\n AND cp.left_at IS NULL\n ) AS combined\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "3480a69060f20430ed75c05cf9e40734b03ec692b637f99fb61b25f9b7c54583" -} diff --git a/rust/cloud-storage/.sqlx/query-34a70ab661c087eb2c6b97d57099ac2c7ff263b9340003c319475fcafdf0356b.json b/rust/cloud-storage/.sqlx/query-34a70ab661c087eb2c6b97d57099ac2c7ff263b9340003c319475fcafdf0356b.json deleted file mode 100644 index c92d9c45fc..0000000000 --- a/rust/cloud-storage/.sqlx/query-34a70ab661c087eb2c6b97d57099ac2c7ff263b9340003c319475fcafdf0356b.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM entity_access\n WHERE entity_id = $1 AND entity_type = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "34a70ab661c087eb2c6b97d57099ac2c7ff263b9340003c319475fcafdf0356b" -} diff --git a/rust/cloud-storage/.sqlx/query-34cf0289f36241df424661c22080748ca056ffa883a4cdba1652b7b8500ba179.json b/rust/cloud-storage/.sqlx/query-34cf0289f36241df424661c22080748ca056ffa883a4cdba1652b7b8500ba179.json deleted file mode 100644 index e59236c0f1..0000000000 --- a/rust/cloud-storage/.sqlx/query-34cf0289f36241df424661c22080748ca056ffa883a4cdba1652b7b8500ba179.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChatMessage\" (\"chatId\", \"createdAt\", \"updatedAt\", \"content\", \"role\", \"model\")\n SELECT $1, \"createdAt\", \"updatedAt\", \"content\", \"role\", \"model\"\n FROM \"ChatMessage\"\n WHERE \"chatId\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "34cf0289f36241df424661c22080748ca056ffa883a4cdba1652b7b8500ba179" -} diff --git a/rust/cloud-storage/.sqlx/query-34e06c7ad5a9ddb12ac9bdfb86a0ab6388547e69762533e204f39af71d0e68ee.json b/rust/cloud-storage/.sqlx/query-34e06c7ad5a9ddb12ac9bdfb86a0ab6388547e69762533e204f39af71d0e68ee.json deleted file mode 100644 index 201e76778f..0000000000 --- a/rust/cloud-storage/.sqlx/query-34e06c7ad5a9ddb12ac9bdfb86a0ab6388547e69762533e204f39af71d0e68ee.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, 'chat', NOW(), NOW())\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "34e06c7ad5a9ddb12ac9bdfb86a0ab6388547e69762533e204f39af71d0e68ee" -} diff --git a/rust/cloud-storage/.sqlx/query-350800132ce9026847f44354b415156432c57f20036d3e05eb8a72f09d88e10f.json b/rust/cloud-storage/.sqlx/query-350800132ce9026847f44354b415156432c57f20036d3e05eb8a72f09d88e10f.json deleted file mode 100644 index 573f3269e8..0000000000 --- a/rust/cloud-storage/.sqlx/query-350800132ce9026847f44354b415156432c57f20036d3e05eb8a72f09d88e10f.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n SELECT u.user_id, u.item_id, 'project', NOW(), NOW()\n FROM UNNEST($1::text[], $2::text[]) AS u(item_id, user_id)\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = NOW();\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "350800132ce9026847f44354b415156432c57f20036d3e05eb8a72f09d88e10f" -} diff --git a/rust/cloud-storage/.sqlx/query-357682d4dddfaa980129c516f38c4176352fa9b44242cdd5abe8b4ee18a62f8e.json b/rust/cloud-storage/.sqlx/query-357682d4dddfaa980129c516f38c4176352fa9b44242cdd5abe8b4ee18a62f8e.json deleted file mode 100644 index cc59a6ec34..0000000000 --- a/rust/cloud-storage/.sqlx/query-357682d4dddfaa980129c516f38c4176352fa9b44242cdd5abe8b4ee18a62f8e.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT access_level FROM (\n -- Source 1: entity_access source_id match\n SELECT\n access_level::text FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'call'\n AND source_id = ANY($2)\n\n UNION ALL\n -- Source 2: items share permission\n SELECT\n \"publicAccessLevel\"::text AS access_level\n FROM \"SharePermission\"\n WHERE id in (\n SELECT share_permission_id\n FROM calls\n WHERE id = $1\n UNION ALL\n SELECT share_permission_id\n FROM call_records\n WHERE id = $1\n LIMIT 1\n )\n AND \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n ) AS combined_access\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "access_level", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [ - null - ] - }, - "hash": "357682d4dddfaa980129c516f38c4176352fa9b44242cdd5abe8b4ee18a62f8e" -} diff --git a/rust/cloud-storage/.sqlx/query-359a16ea19cd02675cf7f6ffb815f76ad39c5aca7b6503ae8e43ebd1cc5d733f.json b/rust/cloud-storage/.sqlx/query-359a16ea19cd02675cf7f6ffb815f76ad39c5aca7b6503ae8e43ebd1cc5d733f.json deleted file mode 100644 index f99ce906c2..0000000000 --- a/rust/cloud-storage/.sqlx/query-359a16ea19cd02675cf7f6ffb815f76ad39c5aca7b6503ae8e43ebd1cc5d733f.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_contacts (id, link_id, email_address, name)\n SELECT * FROM unnest($1::uuid[], $2::uuid[], $3::text[], $4::text[])\n ON CONFLICT (link_id, email_address) DO NOTHING\n RETURNING id, email_address\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email_address", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "UuidArray", - "TextArray", - "TextArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "359a16ea19cd02675cf7f6ffb815f76ad39c5aca7b6503ae8e43ebd1cc5d733f" -} diff --git a/rust/cloud-storage/.sqlx/query-35aa1ada3371fd09902d19b1218c2034a348d30889a11f28b98a9e4a0daf4525.json b/rust/cloud-storage/.sqlx/query-35aa1ada3371fd09902d19b1218c2034a348d30889a11f28b98a9e4a0daf4525.json deleted file mode 100644 index 0bc29e54eb..0000000000 --- a/rust/cloud-storage/.sqlx/query-35aa1ada3371fd09902d19b1218c2034a348d30889a11f28b98a9e4a0daf4525.json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\nSELECT\n ep.id as entity_property_id,\n ep.entity_id,\n ep.entity_type as \"entity_type: EntityType\",\n ep.property_definition_id,\n ep.values as \"values: sqlx::types::JsonValue\",\n ep.created_at as entity_property_created_at,\n ep.updated_at as entity_property_updated_at,\n pd.organization_id as definition_organization_id,\n pd.user_id as definition_user_id,\n pd.display_name,\n pd.data_type as \"data_type: DataType\",\n pd.is_multi_select,\n pd.specific_entity_type as \"specific_entity_type: Option\",\n pd.created_at as definition_created_at,\n pd.updated_at as definition_updated_at,\n pd.is_system as definition_is_system\nFROM entity_properties ep\nINNER JOIN property_definitions pd ON ep.property_definition_id = pd.id\nWHERE ep.entity_id = $1 AND ep.entity_type = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_property_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "entity_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "entity_type: EntityType", - "type_info": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - }, - { - "ordinal": 3, - "name": "property_definition_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "values: sqlx::types::JsonValue", - "type_info": "Jsonb" - }, - { - "ordinal": 5, - "name": "entity_property_created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "entity_property_updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "definition_organization_id", - "type_info": "Int4" - }, - { - "ordinal": 8, - "name": "definition_user_id", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "display_name", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "data_type: DataType", - "type_info": { - "Custom": { - "name": "property_data_type", - "kind": { - "Enum": [ - "BOOLEAN", - "DATE", - "NUMBER", - "STRING", - "SELECT_NUMBER", - "SELECT_STRING", - "ENTITY", - "LINK" - ] - } - } - } - }, - { - "ordinal": 11, - "name": "is_multi_select", - "type_info": "Bool" - }, - { - "ordinal": 12, - "name": "specific_entity_type: Option", - "type_info": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - }, - { - "ordinal": 13, - "name": "definition_created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 14, - "name": "definition_updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "definition_is_system", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - ] - }, - "nullable": [ - false, - false, - false, - false, - true, - false, - false, - true, - true, - false, - false, - false, - true, - false, - false, - false - ] - }, - "hash": "35aa1ada3371fd09902d19b1218c2034a348d30889a11f28b98a9e4a0daf4525" -} diff --git a/rust/cloud-storage/.sqlx/query-35d32d2785c724360d20f94c8f10207caec56d853493823994679a4b081a1c38.json b/rust/cloud-storage/.sqlx/query-35d32d2785c724360d20f94c8f10207caec56d853493823994679a4b081a1c38.json deleted file mode 100644 index 81582bc4ad..0000000000 --- a/rust/cloud-storage/.sqlx/query-35d32d2785c724360d20f94c8f10207caec56d853493823994679a4b081a1c38.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, channel_id, room_name, created_by, started_at, ended_at, duration_ms, egress_id, recording_key, preview_url, recording_started_at, custom_name, summary, share_with_team\n FROM call_records\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "room_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_by", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "started_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "ended_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "duration_ms", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "egress_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "recording_key", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "preview_url", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "recording_started_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "custom_name", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "summary", - "type_info": "Text" - }, - { - "ordinal": 13, - "name": "share_with_team", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - true, - true, - true, - true, - true, - true, - false - ] - }, - "hash": "35d32d2785c724360d20f94c8f10207caec56d853493823994679a4b081a1c38" -} diff --git a/rust/cloud-storage/.sqlx/query-35e9ea6799e4075ef4573116cc4dfb7c5904a23c2d859d838f607d1bd296777d.json b/rust/cloud-storage/.sqlx/query-35e9ea6799e4075ef4573116cc4dfb7c5904a23c2d859d838f607d1bd296777d.json deleted file mode 100644 index 9c3becc68f..0000000000 --- a/rust/cloud-storage/.sqlx/query-35e9ea6799e4075ef4573116cc4dfb7c5904a23c2d859d838f607d1bd296777d.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n d.id\n FROM \"Document\" d\n JOIN \"ItemLastAccessed\" ila ON d.id = ila.item_id\n AND ila.item_type = 'document'\n AND ila.last_accessed < NOW() - ($2 || ' days')::INTERVAL\n WHERE d.owner IN (\n SELECT \n u.\"id\"\n FROM \"User\" u\n WHERE u.\"organizationId\" = $1\n );\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int4", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "35e9ea6799e4075ef4573116cc4dfb7c5904a23c2d859d838f607d1bd296777d" -} diff --git a/rust/cloud-storage/.sqlx/query-361c3d6e5a9549af7dd9042a088005f8da9e6128de27e65a9bb69e780615bf4c.json b/rust/cloud-storage/.sqlx/query-361c3d6e5a9549af7dd9042a088005f8da9e6128de27e65a9bb69e780615bf4c.json deleted file mode 100644 index 48c07f8426..0000000000 --- a/rust/cloud-storage/.sqlx/query-361c3d6e5a9549af7dd9042a088005f8da9e6128de27e65a9bb69e780615bf4c.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO crm_domains (company_id, team_id, domain)\n VALUES ($1, $2, $3)\n ON CONFLICT (team_id, LOWER(domain)) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "361c3d6e5a9549af7dd9042a088005f8da9e6128de27e65a9bb69e780615bf4c" -} diff --git a/rust/cloud-storage/.sqlx/query-36a0d1e85cdabcc03083ebedd508372d7c83b2ffe1f393c77ceae79ba7a24199.json b/rust/cloud-storage/.sqlx/query-36a0d1e85cdabcc03083ebedd508372d7c83b2ffe1f393c77ceae79ba7a24199.json deleted file mode 100644 index 4f258d00ae..0000000000 --- a/rust/cloud-storage/.sqlx/query-36a0d1e85cdabcc03083ebedd508372d7c83b2ffe1f393c77ceae79ba7a24199.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.\"id\" as \"chat_id\",\n m.id as \"message_id\",\n c.\"userId\" as \"user_id\",\n m.\"createdAt\" as \"created_at\",\n m.\"updatedAt\" as \"updated_at\"\n FROM\n \"ChatMessage\" m\n JOIN\n \"Chat\" c on c.\"id\" = m.\"chatId\"\n WHERE\n (\n $2::bool IS NULL\n OR ($2 AND c.\"deletedAt\" IS NOT NULL)\n OR (NOT $2 AND c.\"deletedAt\" IS NULL)\n )\n AND ($3::timestamptz IS NULL OR m.\"updatedAt\" >= $3)\n AND ($4::timestamptz IS NULL OR m.\"updatedAt\" < $4)\n AND (\n $5::timestamptz IS NULL\n OR (m.\"updatedAt\", m.id) > ($5, $6::text)\n )\n ORDER BY m.\"updatedAt\" ASC, m.id ASC\n LIMIT $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "chat_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Int8", - "Bool", - "Timestamptz", - "Timestamptz", - "Timestamptz", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false - ] - }, - "hash": "36a0d1e85cdabcc03083ebedd508372d7c83b2ffe1f393c77ceae79ba7a24199" -} diff --git a/rust/cloud-storage/.sqlx/query-36dfcf982834f117d97d1ba332be6784c946f05120c7c228ff258389ceba97a1.json b/rust/cloud-storage/.sqlx/query-36dfcf982834f117d97d1ba332be6784c946f05120c7c228ff258389ceba97a1.json deleted file mode 100644 index c07ec0acbe..0000000000 --- a/rust/cloud-storage/.sqlx/query-36dfcf982834f117d97d1ba332be6784c946f05120c7c228ff258389ceba97a1.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO user_notification_type_preference (user_id, notification_event_type)\n VALUES ($1, $2)\n ON CONFLICT (user_id, notification_event_type) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Varchar" - ] - }, - "nullable": [] - }, - "hash": "36dfcf982834f117d97d1ba332be6784c946f05120c7c228ff258389ceba97a1" -} diff --git a/rust/cloud-storage/.sqlx/query-370a87eb4e8c69c5430716f06c0b23ec03e343c026d2e13ba7c4337fab85cd05.json b/rust/cloud-storage/.sqlx/query-370a87eb4e8c69c5430716f06c0b23ec03e343c026d2e13ba7c4337fab85cd05.json deleted file mode 100644 index 72262bfe13..0000000000 --- a/rust/cloud-storage/.sqlx/query-370a87eb4e8c69c5430716f06c0b23ec03e343c026d2e13ba7c4337fab85cd05.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM entity_access\n WHERE entity_id = $1\n AND entity_type = $2\n AND source_id = $3\n AND source_type = $4\n AND granted_from_project_id IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - { - "Custom": { - "name": "entity_access_source_type", - "kind": { - "Enum": [ - "channel", - "team", - "user" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "370a87eb4e8c69c5430716f06c0b23ec03e343c026d2e13ba7c4337fab85cd05" -} diff --git a/rust/cloud-storage/.sqlx/query-376d485681b329e1febf28f35020eadfdbec930e33a0666707593e20ae4f67f5.json b/rust/cloud-storage/.sqlx/query-376d485681b329e1febf28f35020eadfdbec930e33a0666707593e20ae4f67f5.json deleted file mode 100644 index 8b67204019..0000000000 --- a/rust/cloud-storage/.sqlx/query-376d485681b329e1febf28f35020eadfdbec930e33a0666707593e20ae4f67f5.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n ph.uuid, \n ph.\"documentId\" as document_id,\n ph.owner, \n ph.\"threadId\" as thread_id, \n ph.page, \n ph.red,\n ph.green, \n ph.blue, \n ph.alpha, \n ph.type as highlight_type, \n ph.text, \n ph.\"pageViewportWidth\" as page_viewport_width, \n ph.\"pageViewportHeight\" as page_viewport_height, \n ph.\"createdAt\"::timestamptz as created_at, \n ph.\"updatedAt\"::timestamptz as updated_at, \n ph.\"deletedAt\"::timestamptz as deleted_at, \n array_agg((phr.id, phr.top, phr.left, phr.width, phr.height)) as \"highlight_rects!: Vec\"\n FROM \"PdfHighlightAnchor\" ph\n JOIN \"PdfHighlightRect\" phr ON ph.uuid = phr.\"pdfHighlightAnchorId\"\n LEFT JOIN \"Thread\" t ON ph.\"threadId\" = t.id\n WHERE ph.\"documentId\" = $1\n AND ph.\"deletedAt\" IS NULL\n AND t.\"deletedAt\" IS NULL\n GROUP BY ph.uuid, ph.owner, ph.\"threadId\", ph.page, ph.red, ph.green, ph.blue, ph.alpha, ph.type, ph.text, ph.\"pageViewportWidth\", ph.\"pageViewportHeight\", ph.\"createdAt\", ph.\"updatedAt\", ph.\"deletedAt\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "page", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "red", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "green", - "type_info": "Int4" - }, - { - "ordinal": 7, - "name": "blue", - "type_info": "Int4" - }, - { - "ordinal": 8, - "name": "alpha", - "type_info": "Float8" - }, - { - "ordinal": 9, - "name": "highlight_type", - "type_info": "Int4" - }, - { - "ordinal": 10, - "name": "text", - "type_info": "Text" - }, - { - "ordinal": 11, - "name": "page_viewport_width", - "type_info": "Float8" - }, - { - "ordinal": 12, - "name": "page_viewport_height", - "type_info": "Float8" - }, - { - "ordinal": 13, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 14, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 16, - "name": "highlight_rects!: Vec", - "type_info": "RecordArray" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - null, - null, - null, - null - ] - }, - "hash": "376d485681b329e1febf28f35020eadfdbec930e33a0666707593e20ae4f67f5" -} diff --git a/rust/cloud-storage/.sqlx/query-377f7c130cc3d834870fa692f5ba36d070bce17512b9ab348d0cb40ebe4d1b08.json b/rust/cloud-storage/.sqlx/query-377f7c130cc3d834870fa692f5ba36d070bce17512b9ab348d0cb40ebe4d1b08.json deleted file mode 100644 index 9348d25315..0000000000 --- a/rust/cloud-storage/.sqlx/query-377f7c130cc3d834870fa692f5ba36d070bce17512b9ab348d0cb40ebe4d1b08.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n \"publicAccessLevel\" as \"access_level!\"\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"DocumentPermission\" WHERE \"documentId\" = $1\n )\n \n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "access_level!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "377f7c130cc3d834870fa692f5ba36d070bce17512b9ab348d0cb40ebe4d1b08" -} diff --git a/rust/cloud-storage/.sqlx/query-37c8b721c4a8e35b8cbecf02ca434d2095a2b2dbfc9d3a64e595f9725bbb0b8c.json b/rust/cloud-storage/.sqlx/query-37c8b721c4a8e35b8cbecf02ca434d2095a2b2dbfc9d3a64e595f9725bbb0b8c.json deleted file mode 100644 index b5dcd6e28f..0000000000 --- a/rust/cloud-storage/.sqlx/query-37c8b721c4a8e35b8cbecf02ca434d2095a2b2dbfc9d3a64e595f9725bbb0b8c.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH message_channel AS (\n SELECT channel_id FROM comms_messages WHERE id = $1\n ),\n mentions_to_insert AS (\n SELECT t.entity_type, t.entity_id\n FROM UNNEST($2::text[], $3::text[]) AS t(entity_type, entity_id)\n ),\n inserted_mentions AS (\n INSERT INTO comms_entity_mentions (\n id,\n source_entity_type,\n source_entity_id,\n entity_type,\n entity_id,\n user_id\n )\n SELECT gen_random_uuid(), 'message', $4::text, m.entity_type, m.entity_id, NULL\n FROM mentions_to_insert m\n WHERE NOT EXISTS (\n SELECT 1\n FROM comms_entity_mentions em\n WHERE em.source_entity_type = 'message'\n AND em.source_entity_id = $4::text\n AND em.entity_type = m.entity_type\n AND em.entity_id = m.entity_id\n )\n )\n SELECT DISTINCT cp.user_id\n FROM mentions_to_insert m\n CROSS JOIN message_channel mc\n JOIN comms_channel_participants cp ON m.entity_id = cp.user_id\n WHERE m.entity_type = 'user'\n AND cp.channel_id = mc.channel_id\n AND cp.left_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray", - "TextArray", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "37c8b721c4a8e35b8cbecf02ca434d2095a2b2dbfc9d3a64e595f9725bbb0b8c" -} diff --git a/rust/cloud-storage/.sqlx/query-38d8954ab4b43aa67742a32d78af64cfaf2c5620a534753cc358602d626693c1.json b/rust/cloud-storage/.sqlx/query-38d8954ab4b43aa67742a32d78af64cfaf2c5620a534753cc358602d626693c1.json deleted file mode 100644 index 9073b27116..0000000000 --- a/rust/cloud-storage/.sqlx/query-38d8954ab4b43aa67742a32d78af64cfaf2c5620a534753cc358602d626693c1.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id, joined_at, left_at\n FROM call_participants\n WHERE call_id = $1\n ORDER BY joined_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "joined_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 2, - "name": "left_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - true - ] - }, - "hash": "38d8954ab4b43aa67742a32d78af64cfaf2c5620a534753cc358602d626693c1" -} diff --git a/rust/cloud-storage/.sqlx/query-3907578083a1a10d49eab63c85fd92d078cbce9ef2e968480ea475623ec76f63.json b/rust/cloud-storage/.sqlx/query-3907578083a1a10d49eab63c85fd92d078cbce9ef2e968480ea475623ec76f63.json deleted file mode 100644 index 43ea9df225..0000000000 --- a/rust/cloud-storage/.sqlx/query-3907578083a1a10d49eab63c85fd92d078cbce9ef2e968480ea475623ec76f63.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n cr.id AS \"call_id!\",\n cr.channel_id AS \"channel_id!\",\n cr.created_by AS \"created_by!\",\n cc.name AS \"channel_name?\"\n FROM call_records cr\n LEFT JOIN comms_channels cc ON cc.id = cr.channel_id\n WHERE cr.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "call_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id!", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "created_by!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "channel_name?", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - true - ] - }, - "hash": "3907578083a1a10d49eab63c85fd92d078cbce9ef2e968480ea475623ec76f63" -} diff --git a/rust/cloud-storage/.sqlx/query-391f9e418d24bb793ff8e4408dd44193d3c769a6d43078570accc708e6a749b3.json b/rust/cloud-storage/.sqlx/query-391f9e418d24bb793ff8e4408dd44193d3c769a6d43078570accc708e6a749b3.json deleted file mode 100644 index 2c5537268e..0000000000 --- a/rust/cloud-storage/.sqlx/query-391f9e418d24bb793ff8e4408dd44193d3c769a6d43078570accc708e6a749b3.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE user_notification un SET seen_at = NOW()\n WHERE un.user_id = $1\n AND un.notification_id = ANY($2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "UuidArray" - ] - }, - "nullable": [] - }, - "hash": "391f9e418d24bb793ff8e4408dd44193d3c769a6d43078570accc708e6a749b3" -} diff --git a/rust/cloud-storage/.sqlx/query-39257a88a1d0bda4726e269ce262291e713cf20f121e10997bcf944f3363efb8.json b/rust/cloud-storage/.sqlx/query-39257a88a1d0bda4726e269ce262291e713cf20f121e10997bcf944f3363efb8.json deleted file mode 100644 index edc2b98e8c..0000000000 --- a/rust/cloud-storage/.sqlx/query-39257a88a1d0bda4726e269ce262291e713cf20f121e10997bcf944f3363efb8.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n bp.sha as sha,\n bp.path as path,\n bp.id as id\n FROM \"BomPart\" bp\n JOIN \"DocumentBom\" db ON bp.\"documentBomId\" = db.id\n WHERE db.\"documentId\" = $1;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "path", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "39257a88a1d0bda4726e269ce262291e713cf20f121e10997bcf944f3363efb8" -} diff --git a/rust/cloud-storage/.sqlx/query-392aaf2a2b9c1d3b0a30fdaed7107209446a4893f7f44b1d5c19cfa9fd387695.json b/rust/cloud-storage/.sqlx/query-392aaf2a2b9c1d3b0a30fdaed7107209446a4893f7f44b1d5c19cfa9fd387695.json deleted file mode 100644 index 5bf800b64e..0000000000 --- a/rust/cloud-storage/.sqlx/query-392aaf2a2b9c1d3b0a30fdaed7107209446a4893f7f44b1d5c19cfa9fd387695.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS (\n SELECT 1\n FROM public.email_threads t\n JOIN public.email_links l ON l.id = t.link_id\n WHERE t.id = $1::uuid\n AND (\n l.macro_id = $2\n OR EXISTS (\n SELECT 1\n FROM public.macro_user_links mul\n WHERE mul.child_macro_id = l.macro_id\n AND mul.primary_macro_id = $2\n )\n )\n ) AS \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "392aaf2a2b9c1d3b0a30fdaed7107209446a4893f7f44b1d5c19cfa9fd387695" -} diff --git a/rust/cloud-storage/.sqlx/query-399d9c2a1c07919059e7d5a7c58c97f9eff09db1237092b37fc80ece52ff410f.json b/rust/cloud-storage/.sqlx/query-399d9c2a1c07919059e7d5a7c58c97f9eff09db1237092b37fc80ece52ff410f.json deleted file mode 100644 index 6773f99e9e..0000000000 --- a/rust/cloud-storage/.sqlx/query-399d9c2a1c07919059e7d5a7c58c97f9eff09db1237092b37fc80ece52ff410f.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"User\" SET \"macro_user_id\" = $1 WHERE \"macro_user_id\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "399d9c2a1c07919059e7d5a7c58c97f9eff09db1237092b37fc80ece52ff410f" -} diff --git a/rust/cloud-storage/.sqlx/query-3a4acf38ce09e3278ff2020de09c48267215a33e4c8d135319959aed14edbe63.json b/rust/cloud-storage/.sqlx/query-3a4acf38ce09e3278ff2020de09c48267215a33e4c8d135319959aed14edbe63.json deleted file mode 100644 index d507796bee..0000000000 --- a/rust/cloud-storage/.sqlx/query-3a4acf38ce09e3278ff2020de09c48267215a33e4c8d135319959aed14edbe63.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ExperimentLog\" (experiment_id, user_id, \"group\")\n VALUES ($1, $2, $3)\n RETURNING experiment_id, user_id, \"group\" as experiment_group, completed\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "experiment_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "experiment_group", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "completed", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Varchar" - ] - }, - "nullable": [ - false, - false, - false, - false - ] - }, - "hash": "3a4acf38ce09e3278ff2020de09c48267215a33e4c8d135319959aed14edbe63" -} diff --git a/rust/cloud-storage/.sqlx/query-3ad109bc298d98b88d0afac7d254a35a85f1671b808c2f2b71781114bbc1d134.json b/rust/cloud-storage/.sqlx/query-3ad109bc298d98b88d0afac7d254a35a85f1671b808c2f2b71781114bbc1d134.json deleted file mode 100644 index 179c2f5674..0000000000 --- a/rust/cloud-storage/.sqlx/query-3ad109bc298d98b88d0afac7d254a35a85f1671b808c2f2b71781114bbc1d134.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT d.device_endpoint\n FROM notification_user_device_registration d\n WHERE d.device_token = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "device_endpoint", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "3ad109bc298d98b88d0afac7d254a35a85f1671b808c2f2b71781114bbc1d134" -} diff --git a/rust/cloud-storage/.sqlx/query-3ada2f8355f9c5ecd4072938c3243296615904f9af24c4e18dda50992b47d5af.json b/rust/cloud-storage/.sqlx/query-3ada2f8355f9c5ecd4072938c3243296615904f9af24c4e18dda50992b47d5af.json deleted file mode 100644 index c07d958fd5..0000000000 --- a/rust/cloud-storage/.sqlx/query-3ada2f8355f9c5ecd4072938c3243296615904f9af24c4e18dda50992b47d5af.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_activity (id, user_id, channel_id, created_at, updated_at)\n VALUES ($1, $2, $3, NOW(), NOW())\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "3ada2f8355f9c5ecd4072938c3243296615904f9af24c4e18dda50992b47d5af" -} diff --git a/rust/cloud-storage/.sqlx/query-3b147b8bcb7d08a87729fc68c562ea545e65d41bd61891ed3aad8eda3c4d90dd.json b/rust/cloud-storage/.sqlx/query-3b147b8bcb7d08a87729fc68c562ea545e65d41bd61891ed3aad8eda3c4d90dd.json deleted file mode 100644 index 3de2090f48..0000000000 --- a/rust/cloud-storage/.sqlx/query-3b147b8bcb7d08a87729fc68c562ea545e65d41bd61891ed3aad8eda3c4d90dd.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_messages (\n id, provider_id, link_id, thread_id, provider_thread_id,\n replying_to_id, subject, from_contact_id, sent_at,\n has_attachments, is_read, is_starred, is_sent, is_draft,\n body_text, body_html_sanitized, body_macro, headers_jsonb,\n created_at, updated_at\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20)\n ON CONFLICT (id) DO UPDATE SET\n provider_id = EXCLUDED.provider_id,\n thread_id = EXCLUDED.thread_id,\n provider_thread_id = EXCLUDED.provider_thread_id,\n replying_to_id = EXCLUDED.replying_to_id,\n subject = EXCLUDED.subject,\n from_contact_id = EXCLUDED.from_contact_id,\n sent_at = EXCLUDED.sent_at,\n has_attachments = EXCLUDED.has_attachments,\n is_read = EXCLUDED.is_read,\n is_starred = EXCLUDED.is_starred,\n is_sent = EXCLUDED.is_sent,\n is_draft = EXCLUDED.is_draft,\n body_text = EXCLUDED.body_text,\n body_html_sanitized = EXCLUDED.body_html_sanitized,\n body_macro = EXCLUDED.body_macro,\n headers_jsonb = EXCLUDED.headers_jsonb,\n updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Uuid", - "Uuid", - "Text", - "Uuid", - "Text", - "Uuid", - "Timestamptz", - "Bool", - "Bool", - "Bool", - "Bool", - "Bool", - "Text", - "Text", - "Text", - "Jsonb", - "Timestamptz", - "Timestamptz" - ] - }, - "nullable": [] - }, - "hash": "3b147b8bcb7d08a87729fc68c562ea545e65d41bd61891ed3aad8eda3c4d90dd" -} diff --git a/rust/cloud-storage/.sqlx/query-3b570b222c479d824a07d83d5af9bb51833195bf60052e04a1c754df22f57220.json b/rust/cloud-storage/.sqlx/query-3b570b222c479d824a07d83d5af9bb51833195bf60052e04a1c754df22f57220.json deleted file mode 100644 index 15557826d9..0000000000 --- a/rust/cloud-storage/.sqlx/query-3b570b222c479d824a07d83d5af9bb51833195bf60052e04a1c754df22f57220.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_scheduled_messages\n WHERE message_id = ANY($1) AND link_id = $2 AND sent = false\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "3b570b222c479d824a07d83d5af9bb51833195bf60052e04a1c754df22f57220" -} diff --git a/rust/cloud-storage/.sqlx/query-3bb80109f339257e2fa01b7ea05d8c9786d6202db2a9fc41186d53c430d8f155.json b/rust/cloud-storage/.sqlx/query-3bb80109f339257e2fa01b7ea05d8c9786d6202db2a9fc41186d53c430d8f155.json deleted file mode 100644 index 0d41cd1358..0000000000 --- a/rust/cloud-storage/.sqlx/query-3bb80109f339257e2fa01b7ea05d8c9786d6202db2a9fc41186d53c430d8f155.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT t.id as thread_id\n FROM email_threads t\n JOIN email_links l ON t.link_id = l.id\n WHERE l.macro_id = $1\n AND t.latest_outbound_message_ts IS NOT NULL\n ORDER BY t.latest_outbound_message_ts DESC\n LIMIT $2 OFFSET $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text", - "Int8", - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "3bb80109f339257e2fa01b7ea05d8c9786d6202db2a9fc41186d53c430d8f155" -} diff --git a/rust/cloud-storage/.sqlx/query-3bd649e798f834ea3e0fc9d6c3b03d923622666779a97429afb926c64b517e1b.json b/rust/cloud-storage/.sqlx/query-3bd649e798f834ea3e0fc9d6c3b03d923622666779a97429afb926c64b517e1b.json deleted file mode 100644 index 6e2c2d93de..0000000000 --- a/rust/cloud-storage/.sqlx/query-3bd649e798f834ea3e0fc9d6c3b03d923622666779a97429afb926c64b517e1b.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE calls SET share_with_team = $2 WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "3bd649e798f834ea3e0fc9d6c3b03d923622666779a97429afb926c64b517e1b" -} diff --git a/rust/cloud-storage/.sqlx/query-3c082e8dc2056f62233bb2d68147a491c8ccb46f90738f8ebbf25afea699876a.json b/rust/cloud-storage/.sqlx/query-3c082e8dc2056f62233bb2d68147a491c8ccb46f90738f8ebbf25afea699876a.json deleted file mode 100644 index 1f389c60ba..0000000000 --- a/rust/cloud-storage/.sqlx/query-3c082e8dc2056f62233bb2d68147a491c8ccb46f90738f8ebbf25afea699876a.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.id as user_id\n FROM \"User\" u\n WHERE u.\"organizationId\" = $1\n LIMIT $2\n OFFSET $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int4", - "Int8", - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "3c082e8dc2056f62233bb2d68147a491c8ccb46f90738f8ebbf25afea699876a" -} diff --git a/rust/cloud-storage/.sqlx/query-3c570d90cccdcc4d4546ecd377500c4882b1c7fb6c56e822cc4dfb8d4191dce4.json b/rust/cloud-storage/.sqlx/query-3c570d90cccdcc4d4546ecd377500c4882b1c7fb6c56e822cc4dfb8d4191dce4.json deleted file mode 100644 index c910776c50..0000000000 --- a/rust/cloud-storage/.sqlx/query-3c570d90cccdcc4d4546ecd377500c4882b1c7fb6c56e822cc4dfb8d4191dce4.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT et.id as thread_id, et.link_id\n FROM email_attachments ea\n INNER JOIN email_messages em ON ea.message_id = em.id\n INNER JOIN email_threads et ON em.thread_id = et.id\n WHERE ea.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "3c570d90cccdcc4d4546ecd377500c4882b1c7fb6c56e822cc4dfb8d4191dce4" -} diff --git a/rust/cloud-storage/.sqlx/query-3cc12a354bd0b48195a8f6b7b1df42d96b19eda98a61750b4405c0a0c55e50b2.json b/rust/cloud-storage/.sqlx/query-3cc12a354bd0b48195a8f6b7b1df42d96b19eda98a61750b4405c0a0c55e50b2.json deleted file mode 100644 index e8ed76ed8e..0000000000 --- a/rust/cloud-storage/.sqlx/query-3cc12a354bd0b48195a8f6b7b1df42d96b19eda98a61750b4405c0a0c55e50b2.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_scheduled_messages\n SET\n sent = true,\n updated_at = NOW()\n WHERE link_id = $1 AND message_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "3cc12a354bd0b48195a8f6b7b1df42d96b19eda98a61750b4405c0a0c55e50b2" -} diff --git a/rust/cloud-storage/.sqlx/query-3d0cc500bd9cee7fe4179b9ebc8176e5b20c478d2e5c4cba230e5fa3f57d38d6.json b/rust/cloud-storage/.sqlx/query-3d0cc500bd9cee7fe4179b9ebc8176e5b20c478d2e5c4cba230e5fa3f57d38d6.json deleted file mode 100644 index 90d7d9ea68..0000000000 --- a/rust/cloud-storage/.sqlx/query-3d0cc500bd9cee7fe4179b9ebc8176e5b20c478d2e5c4cba230e5fa3f57d38d6.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n p.id as id,\n p.name,\n p.\"userId\" as user_id,\n p.\"parentId\" as \"parent_id?\",\n p.\"createdAt\"::timestamptz as created_at,\n p.\"updatedAt\"::timestamptz as updated_at,\n p.\"deletedAt\"::timestamptz as deleted_at\n FROM\n \"Project\" p\n WHERE p.\"parentId\" = $1 AND p.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "parent_id?", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - null, - null, - null - ] - }, - "hash": "3d0cc500bd9cee7fe4179b9ebc8176e5b20c478d2e5c4cba230e5fa3f57d38d6" -} diff --git a/rust/cloud-storage/.sqlx/query-3dd2c8152498a2183ff2a944699251aaeac0e320a02b2504b1bc74402ad894cd.json b/rust/cloud-storage/.sqlx/query-3dd2c8152498a2183ff2a944699251aaeac0e320a02b2504b1bc74402ad894cd.json deleted file mode 100644 index 3bfa3d5798..0000000000 --- a/rust/cloud-storage/.sqlx/query-3dd2c8152498a2183ff2a944699251aaeac0e320a02b2504b1bc74402ad894cd.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE crm_comment c\n SET text = $3, updated_at = now()\n FROM crm_thread t\n WHERE c.id = $1\n AND c.thread_id = t.id\n AND c.deleted_at IS NULL\n AND (\n EXISTS (\n SELECT 1 FROM crm_companies co\n WHERE co.id = t.company_id\n AND co.team_id = $2\n AND ($4 OR co.hidden = FALSE)\n )\n OR EXISTS (\n SELECT 1 FROM crm_contacts ct\n JOIN crm_companies co2 ON co2.id = ct.company_id\n WHERE ct.id = t.contact_id\n AND co2.team_id = $2\n AND ($4 OR (ct.hidden = FALSE AND co2.hidden = FALSE))\n )\n )\n RETURNING c.id, c.thread_id, c.\"order\", c.owner, c.sender, c.text,\n c.metadata, c.created_at, c.updated_at, c.deleted_at\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "order", - "type_info": "Int4" - }, - { - "ordinal": 3, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "sender", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "text", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text", - "Bool" - ] - }, - "nullable": [ - false, - false, - true, - false, - true, - false, - true, - false, - false, - true - ] - }, - "hash": "3dd2c8152498a2183ff2a944699251aaeac0e320a02b2504b1bc74402ad894cd" -} diff --git a/rust/cloud-storage/.sqlx/query-3ddef23b2904342f1b84795fd71b50de4413626a5dd460c83ad9e997fb8e09ae.json b/rust/cloud-storage/.sqlx/query-3ddef23b2904342f1b84795fd71b50de4413626a5dd460c83ad9e997fb8e09ae.json deleted file mode 100644 index 53ba1ca60d..0000000000 --- a/rust/cloud-storage/.sqlx/query-3ddef23b2904342f1b84795fd71b50de4413626a5dd460c83ad9e997fb8e09ae.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Chat\" SET \"deletedAt\" = NOW() WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "3ddef23b2904342f1b84795fd71b50de4413626a5dd460c83ad9e997fb8e09ae" -} diff --git a/rust/cloud-storage/.sqlx/query-3de786ce00b9b7a2cf935b39ed0bed0d042a4133b63124b1894da135d0a9449b.json b/rust/cloud-storage/.sqlx/query-3de786ce00b9b7a2cf935b39ed0bed0d042a4133b63124b1894da135d0a9449b.json deleted file mode 100644 index 036b2d51d9..0000000000 --- a/rust/cloud-storage/.sqlx/query-3de786ce00b9b7a2cf935b39ed0bed0d042a4133b63124b1894da135d0a9449b.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.\"documentId\" as \"document_id\"\n FROM\n \"DocumentText\" d\n WHERE\n d.\"tokenCount\" = 0\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false - ] - }, - "hash": "3de786ce00b9b7a2cf935b39ed0bed0d042a4133b63124b1894da135d0a9449b" -} diff --git a/rust/cloud-storage/.sqlx/query-3e161b7906ba15490634a5375e300d649e4aa06841adb1645d4f17507cf15694.json b/rust/cloud-storage/.sqlx/query-3e161b7906ba15490634a5375e300d649e4aa06841adb1645d4f17507cf15694.json deleted file mode 100644 index 8a601b1311..0000000000 --- a/rust/cloud-storage/.sqlx/query-3e161b7906ba15490634a5375e300d649e4aa06841adb1645d4f17507cf15694.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"User\" (\"id\", \"email\", \"organizationId\", \"macro_user_id\")\n VALUES ($1, $2, $3, $4)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Int4", - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "3e161b7906ba15490634a5375e300d649e4aa06841adb1645d4f17507cf15694" -} diff --git a/rust/cloud-storage/.sqlx/query-3e259ea5cbdcfae4334cb0125de6423fa95a0c127fbeba0a59d7096b0177c072.json b/rust/cloud-storage/.sqlx/query-3e259ea5cbdcfae4334cb0125de6423fa95a0c127fbeba0a59d7096b0177c072.json deleted file mode 100644 index 8ee9d7919b..0000000000 --- a/rust/cloud-storage/.sqlx/query-3e259ea5cbdcfae4334cb0125de6423fa95a0c127fbeba0a59d7096b0177c072.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n p.id,\n p.name,\n p.\"userId\" as \"owner\",\n p.\"parentId\" as \"parent_id\",\n p.\"createdAt\"::timestamptz as \"created_at!\",\n p.\"updatedAt\"::timestamptz as \"updated_at!\"\n FROM\n \"Project\" p\n WHERE\n p.id = $1 AND p.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "parent_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at!", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - null, - null - ] - }, - "hash": "3e259ea5cbdcfae4334cb0125de6423fa95a0c127fbeba0a59d7096b0177c072" -} diff --git a/rust/cloud-storage/.sqlx/query-3e333cb74dc40b2af8d6f9ed74105709ccaeca68b0ff0906e2f6be307963b49f.json b/rust/cloud-storage/.sqlx/query-3e333cb74dc40b2af8d6f9ed74105709ccaeca68b0ff0906e2f6be307963b49f.json deleted file mode 100644 index 3f1f35a9f8..0000000000 --- a/rust/cloud-storage/.sqlx/query-3e333cb74dc40b2af8d6f9ed74105709ccaeca68b0ff0906e2f6be307963b49f.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"SharePermission\" (\"isPublic\", \"publicAccessLevel\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, NOW(), NOW())\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Bool", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "3e333cb74dc40b2af8d6f9ed74105709ccaeca68b0ff0906e2f6be307963b49f" -} diff --git a/rust/cloud-storage/.sqlx/query-3e3b2b04a9eb28ea82f8f97a2b725b205e0b6f330e4f3eb9690375e992ce2194.json b/rust/cloud-storage/.sqlx/query-3e3b2b04a9eb28ea82f8f97a2b725b205e0b6f330e4f3eb9690375e992ce2194.json deleted file mode 100644 index dad50de6d8..0000000000 --- a/rust/cloud-storage/.sqlx/query-3e3b2b04a9eb28ea82f8f97a2b725b205e0b6f330e4f3eb9690375e992ce2194.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"id\" FROM \"Chat\" WHERE \"projectId\" = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "3e3b2b04a9eb28ea82f8f97a2b725b205e0b6f330e4f3eb9690375e992ce2194" -} diff --git a/rust/cloud-storage/.sqlx/query-3e5924421ddbfb3eef5e5d949677a72f6dddf521d5df201bb11207e89be08747.json b/rust/cloud-storage/.sqlx/query-3e5924421ddbfb3eef5e5d949677a72f6dddf521d5df201bb11207e89be08747.json deleted file mode 100644 index c97deb4e61..0000000000 --- a/rust/cloud-storage/.sqlx/query-3e5924421ddbfb3eef5e5d949677a72f6dddf521d5df201bb11207e89be08747.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n macro_user_id,\n email\n FROM\n in_progress_email_link\n WHERE\n id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_user_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "email", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "3e5924421ddbfb3eef5e5d949677a72f6dddf521d5df201bb11207e89be08747" -} diff --git a/rust/cloud-storage/.sqlx/query-3e75b16310cd04a141ddede2b9360356850135fd8b7bc79ef54d6548c40dbbb0.json b/rust/cloud-storage/.sqlx/query-3e75b16310cd04a141ddede2b9360356850135fd8b7bc79ef54d6548c40dbbb0.json deleted file mode 100644 index 45457a185c..0000000000 --- a/rust/cloud-storage/.sqlx/query-3e75b16310cd04a141ddede2b9360356850135fd8b7bc79ef54d6548c40dbbb0.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT provider_id\n FROM email_threads\n WHERE link_id = $1 AND id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "provider_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - true - ] - }, - "hash": "3e75b16310cd04a141ddede2b9360356850135fd8b7bc79ef54d6548c40dbbb0" -} diff --git a/rust/cloud-storage/.sqlx/query-3e8d3378b4651a45d6e1cfee02d1d991bb8fa6a687207164d713487c524d87a6.json b/rust/cloud-storage/.sqlx/query-3e8d3378b4651a45d6e1cfee02d1d991bb8fa6a687207164d713487c524d87a6.json deleted file mode 100644 index 6496703c4d..0000000000 --- a/rust/cloud-storage/.sqlx/query-3e8d3378b4651a45d6e1cfee02d1d991bb8fa6a687207164d713487c524d87a6.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Chat\" SET \"deletedAt\" = NULL WHERE id = ANY($1);\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "3e8d3378b4651a45d6e1cfee02d1d991bb8fa6a687207164d713487c524d87a6" -} diff --git a/rust/cloud-storage/.sqlx/query-3ebdc4ec5d9a7b08d21f6e249d5c72d10d42e25aa07353aa47ebd3f1ad4f56a7.json b/rust/cloud-storage/.sqlx/query-3ebdc4ec5d9a7b08d21f6e249d5c72d10d42e25aa07353aa47ebd3f1ad4f56a7.json deleted file mode 100644 index dc0ac30179..0000000000 --- a/rust/cloud-storage/.sqlx/query-3ebdc4ec5d9a7b08d21f6e249d5c72d10d42e25aa07353aa47ebd3f1ad4f56a7.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT bp.sha\n FROM \"BomPart\" bp\n WHERE bp.\"documentBomId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sha", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "3ebdc4ec5d9a7b08d21f6e249d5c72d10d42e25aa07353aa47ebd3f1ad4f56a7" -} diff --git a/rust/cloud-storage/.sqlx/query-3eebc9f54cadfffef67a78b403320f8f305d08873a4c857c118f166d6c16b6af.json b/rust/cloud-storage/.sqlx/query-3eebc9f54cadfffef67a78b403320f8f305d08873a4c857c118f166d6c16b6af.json deleted file mode 100644 index b4e060a62c..0000000000 --- a/rust/cloud-storage/.sqlx/query-3eebc9f54cadfffef67a78b403320f8f305d08873a4c857c118f166d6c16b6af.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_activity (\n id,\n user_id,\n channel_id,\n created_at,\n updated_at\n )\n VALUES (\n $1, $2, $3, NOW(), NOW()\n )\n RETURNING \n id as \"id!: Uuid\",\n user_id as \"user_id!: String\",\n channel_id as \"channel_id!: Uuid\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\",\n viewed_at as \"viewed_at?: DateTime\",\n interacted_at as \"interacted_at?: DateTime\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id!: String", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "channel_id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "created_at!: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "updated_at!: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 5, - "name": "viewed_at?: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 6, - "name": "interacted_at?: DateTime", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true, - true - ] - }, - "hash": "3eebc9f54cadfffef67a78b403320f8f305d08873a4c857c118f166d6c16b6af" -} diff --git a/rust/cloud-storage/.sqlx/query-3eefc691aa14c4c3da377bf741138ed2f91343adfb13af0c7573dd6c29f8ac9a.json b/rust/cloud-storage/.sqlx/query-3eefc691aa14c4c3da377bf741138ed2f91343adfb13af0c7573dd6c29f8ac9a.json deleted file mode 100644 index 04379411f8..0000000000 --- a/rust/cloud-storage/.sqlx/query-3eefc691aa14c4c3da377bf741138ed2f91343adfb13af0c7573dd6c29f8ac9a.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentText\" (\"documentId\", \"content\", \"tokenCount\")\n VALUES ($1, $2, $3)\n ON CONFLICT (\"documentId\") DO UPDATE \n SET \"content\" = $2, \"tokenCount\" = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Int8" - ] - }, - "nullable": [] - }, - "hash": "3eefc691aa14c4c3da377bf741138ed2f91343adfb13af0c7573dd6c29f8ac9a" -} diff --git a/rust/cloud-storage/.sqlx/query-3f3b5a5d8734e3748d4e29d64cfa89baff99dae621e7cbd7a10017beec9485c8.json b/rust/cloud-storage/.sqlx/query-3f3b5a5d8734e3748d4e29d64cfa89baff99dae621e7cbd7a10017beec9485c8.json deleted file mode 100644 index 5c152ecd5e..0000000000 --- a/rust/cloud-storage/.sqlx/query-3f3b5a5d8734e3748d4e29d64cfa89baff99dae621e7cbd7a10017beec9485c8.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\nSELECT\n ep.entity_id,\n ep.entity_type as \"entity_type: EntityType\",\n ep.property_definition_id\nFROM entity_properties ep\nWHERE ep.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "entity_type: EntityType", - "type_info": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - }, - { - "ordinal": 2, - "name": "property_definition_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "3f3b5a5d8734e3748d4e29d64cfa89baff99dae621e7cbd7a10017beec9485c8" -} diff --git a/rust/cloud-storage/.sqlx/query-3f518302c857be0e5aa9180c4cb50a316694bb9210e88c664c4f998fd5759fb3.json b/rust/cloud-storage/.sqlx/query-3f518302c857be0e5aa9180c4cb50a316694bb9210e88c664c4f998fd5759fb3.json deleted file mode 100644 index c10bb1161a..0000000000 --- a/rust/cloud-storage/.sqlx/query-3f518302c857be0e5aa9180c4cb50a316694bb9210e88c664c4f998fd5759fb3.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ItemLastAccessed\" (\"item_id\", \"item_type\", \"last_accessed\")\n VALUES ($1, 'chat', NOW())\n ON CONFLICT (\"item_id\", \"item_type\") DO UPDATE\n SET \"last_accessed\" = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "3f518302c857be0e5aa9180c4cb50a316694bb9210e88c664c4f998fd5759fb3" -} diff --git a/rust/cloud-storage/.sqlx/query-3f5df39d7ee978e92a94f3e9c1d6f12e812b89f46a7a40cb0d4b0ff8397b1b2f.json b/rust/cloud-storage/.sqlx/query-3f5df39d7ee978e92a94f3e9c1d6f12e812b89f46a7a40cb0d4b0ff8397b1b2f.json deleted file mode 100644 index b8ae88954d..0000000000 --- a/rust/cloud-storage/.sqlx/query-3f5df39d7ee978e92a94f3e9c1d6f12e812b89f46a7a40cb0d4b0ff8397b1b2f.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT access_level FROM (\n -- Source 1: entity_access source_id match\n SELECT\n access_level::text FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'chat'\n AND source_id = ANY($2)\n\n UNION ALL\n -- Source 2: items share permission\n SELECT\n \"publicAccessLevel\"::text AS access_level\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"ChatPermission\" WHERE \"chatId\" = $3\n )\n ) AS combined_access\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "access_level", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "3f5df39d7ee978e92a94f3e9c1d6f12e812b89f46a7a40cb0d4b0ff8397b1b2f" -} diff --git a/rust/cloud-storage/.sqlx/query-3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046.json b/rust/cloud-storage/.sqlx/query-3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046.json deleted file mode 100644 index 5bc1c5aaef..0000000000 --- a/rust/cloud-storage/.sqlx/query-3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id,\n c.name,\n c.channel_type AS \"channel_type: ChannelType\",\n c.org_id,\n c.team_id,\n CASE WHEN (\n c.channel_type = 'public'\n OR\n (c.channel_type IN ('private', 'direct_message', 'team') AND EXISTS (\n SELECT 1 FROM comms_channel_participants cp\n WHERE cp.channel_id = c.id\n AND cp.user_id = $2\n AND cp.left_at IS NULL\n ))\n ) THEN true ELSE false END AS \"has_access!: bool\"\n FROM comms_channels c\n WHERE c.id::text = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "channel_type: ChannelType", - "type_info": { - "Custom": { - "name": "comms_channel_type", - "kind": { - "Enum": [ - "public", - "private", - "direct_message", - "team" - ] - } - } - } - }, - { - "ordinal": 3, - "name": "org_id", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "team_id", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "has_access!: bool", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "TextArray", - "Text" - ] - }, - "nullable": [ - false, - true, - false, - true, - true, - null - ] - }, - "hash": "3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046" -} diff --git a/rust/cloud-storage/.sqlx/query-3ff726c2ff64c69e2af5dca67815300efe7b0bcbd74ae96f3d65aeb8edd064f7.json b/rust/cloud-storage/.sqlx/query-3ff726c2ff64c69e2af5dca67815300efe7b0bcbd74ae96f3d65aeb8edd064f7.json deleted file mode 100644 index 9cd2b5c5ae..0000000000 --- a/rust/cloud-storage/.sqlx/query-3ff726c2ff64c69e2af5dca67815300efe7b0bcbd74ae96f3d65aeb8edd064f7.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n p.id,\n p.name,\n p.\"userId\" as user_id,\n p.\"parentId\" as parent_id,\n p.\"createdAt\"::timestamptz as created_at,\n p.\"updatedAt\"::timestamptz as updated_at,\n p.\"deletedAt\"::timestamptz as deleted_at\n FROM \"Project\" p\n WHERE id = $1 AND p.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "parent_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - null, - null, - null - ] - }, - "hash": "3ff726c2ff64c69e2af5dca67815300efe7b0bcbd74ae96f3d65aeb8edd064f7" -} diff --git a/rust/cloud-storage/.sqlx/query-402db336b46141f0ff5f728de492c3c3897c0c17a0f53ce67c915b20e07b3545.json b/rust/cloud-storage/.sqlx/query-402db336b46141f0ff5f728de492c3c3897c0c17a0f53ce67c915b20e07b3545.json deleted file mode 100644 index 8733c29969..0000000000 --- a/rust/cloud-storage/.sqlx/query-402db336b46141f0ff5f728de492c3c3897c0c17a0f53ce67c915b20e07b3545.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, source_entity_type, source_entity_id, entity_type, entity_id, user_id, created_at\n FROM comms_entity_mentions\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "source_entity_type", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "source_entity_id", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "entity_type", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "entity_id", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "user_id", - "type_info": "Varchar" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true, - false - ] - }, - "hash": "402db336b46141f0ff5f728de492c3c3897c0c17a0f53ce67c915b20e07b3545" -} diff --git a/rust/cloud-storage/.sqlx/query-40791e0cf94fdc888849594849e83daebe532ed4f8935d06815c24289d3c91c2.json b/rust/cloud-storage/.sqlx/query-40791e0cf94fdc888849594849e83daebe532ed4f8935d06815c24289d3c91c2.json deleted file mode 100644 index 5fc1c6cc19..0000000000 --- a/rust/cloud-storage/.sqlx/query-40791e0cf94fdc888849594849e83daebe532ed4f8935d06815c24289d3c91c2.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n provider_id,\n global_id,\n thread_id,\n provider_thread_id,\n replying_to_id,\n link_id,\n provider_history_id,\n internal_date_ts,\n snippet,\n size_estimate,\n subject,\n from_name,\n from_contact_id,\n sent_at,\n has_attachments,\n is_read,\n is_starred,\n is_sent,\n is_draft,\n headers_jsonb,\n created_at,\n updated_at,\n -- No body attributes\n NULL as \"body_text?\",\n NULL as \"body_html_sanitized?\",\n NULL as \"body_macro?\"\n FROM email_messages\n WHERE thread_id = $1\n ORDER BY internal_date_ts DESC NULLS LAST\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 6, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 21, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 22, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 23, - "name": "body_text?", - "type_info": "Text" - }, - { - "ordinal": 24, - "name": "body_html_sanitized?", - "type_info": "Text" - }, - { - "ordinal": 25, - "name": "body_macro?", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - true, - false, - true, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - true, - false, - false, - null, - null, - null - ] - }, - "hash": "40791e0cf94fdc888849594849e83daebe532ed4f8935d06815c24289d3c91c2" -} diff --git a/rust/cloud-storage/.sqlx/query-40955b135c91071078ae79b3be1c76ed21031ab2497aa0c137a5644f7e7e6e7c.json b/rust/cloud-storage/.sqlx/query-40955b135c91071078ae79b3be1c76ed21031ab2497aa0c137a5644f7e7e6e7c.json deleted file mode 100644 index 6d4d559663..0000000000 --- a/rust/cloud-storage/.sqlx/query-40955b135c91071078ae79b3be1c76ed21031ab2497aa0c137a5644f7e7e6e7c.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM call_records WHERE id = $1 RETURNING recording_key, preview_url\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "recording_key", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "preview_url", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - true, - true - ] - }, - "hash": "40955b135c91071078ae79b3be1c76ed21031ab2497aa0c137a5644f7e7e6e7c" -} diff --git a/rust/cloud-storage/.sqlx/query-4095df49b0672e4a41dee5acbe6be80494d59ba5242b073b9dbefbf8752a39f6.json b/rust/cloud-storage/.sqlx/query-4095df49b0672e4a41dee5acbe6be80494d59ba5242b073b9dbefbf8752a39f6.json deleted file mode 100644 index e34db5f9bb..0000000000 --- a/rust/cloud-storage/.sqlx/query-4095df49b0672e4a41dee5acbe6be80494d59ba5242b073b9dbefbf8752a39f6.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n organization_id,\n retention_days\n FROM\n \"OrganizationRetentionPolicy\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "organization_id", - "type_info": "Int4" - }, - { - "ordinal": 1, - "name": "retention_days", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - true - ] - }, - "hash": "4095df49b0672e4a41dee5acbe6be80494d59ba5242b073b9dbefbf8752a39f6" -} diff --git a/rust/cloud-storage/.sqlx/query-40980d3ade1b42b14019fa0add93fb37a8a26d78f4e275d9bca1ebaa7e558f6b.json b/rust/cloud-storage/.sqlx/query-40980d3ade1b42b14019fa0add93fb37a8a26d78f4e275d9bca1ebaa7e558f6b.json deleted file mode 100644 index b420aa09dc..0000000000 --- a/rust/cloud-storage/.sqlx/query-40980d3ade1b42b14019fa0add93fb37a8a26d78f4e275d9bca1ebaa7e558f6b.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE crm_contacts SET hidden = TRUE WHERE company_id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "40980d3ade1b42b14019fa0add93fb37a8a26d78f4e275d9bca1ebaa7e558f6b" -} diff --git a/rust/cloud-storage/.sqlx/query-40bfe125ad0bde96466e2a8ed9083c72877347fafb9fbcde0935ac10290b7cb0.json b/rust/cloud-storage/.sqlx/query-40bfe125ad0bde96466e2a8ed9083c72877347fafb9fbcde0935ac10290b7cb0.json deleted file mode 100644 index 0cbe128b65..0000000000 --- a/rust/cloud-storage/.sqlx/query-40bfe125ad0bde96466e2a8ed9083c72877347fafb9fbcde0935ac10290b7cb0.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT DISTINCT m.thread_id as \"thread_id!\"\n FROM email_messages m\n WHERE m.from_contact_id = ANY($1)\n UNION\n SELECT DISTINCT m.thread_id as \"thread_id!\"\n FROM email_messages m\n JOIN email_message_recipients mr ON m.id = mr.message_id\n WHERE mr.contact_id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - null - ] - }, - "hash": "40bfe125ad0bde96466e2a8ed9083c72877347fafb9fbcde0935ac10290b7cb0" -} diff --git a/rust/cloud-storage/.sqlx/query-4103298cf62438b69d534ac4092423b210d7bcf2202ca38480fd7ce026977166.json b/rust/cloud-storage/.sqlx/query-4103298cf62438b69d534ac4092423b210d7bcf2202ca38480fd7ce026977166.json deleted file mode 100644 index a1def484e8..0000000000 --- a/rust/cloud-storage/.sqlx/query-4103298cf62438b69d534ac4092423b210d7bcf2202ca38480fd7ce026977166.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT channel_id, user_id\n FROM comms_channel_participants\n WHERE channel_id = ANY($1) AND left_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "4103298cf62438b69d534ac4092423b210d7bcf2202ca38480fd7ce026977166" -} diff --git a/rust/cloud-storage/.sqlx/query-411177d8b75b7150971074b41fd825873d729e28915a0fd36335b36494a93c53.json b/rust/cloud-storage/.sqlx/query-411177d8b75b7150971074b41fd825873d729e28915a0fd36335b36494a93c53.json deleted file mode 100644 index c832a3e0d2..0000000000 --- a/rust/cloud-storage/.sqlx/query-411177d8b75b7150971074b41fd825873d729e28915a0fd36335b36494a93c53.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE \"Chat\" SET \"projectId\" = $1 WHERE id = $2", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "411177d8b75b7150971074b41fd825873d729e28915a0fd36335b36494a93c53" -} diff --git a/rust/cloud-storage/.sqlx/query-4123b0f2a6fa02a9191a87f2484cb27fd4220b15126fd010acbf4b954a9afb68.json b/rust/cloud-storage/.sqlx/query-4123b0f2a6fa02a9191a87f2484cb27fd4220b15126fd010acbf4b954a9afb68.json deleted file mode 100644 index 1990ecc0d6..0000000000 --- a/rust/cloud-storage/.sqlx/query-4123b0f2a6fa02a9191a87f2484cb27fd4220b15126fd010acbf4b954a9afb68.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT elem->>'entity_id' as \"subtask_id!\"\n FROM entity_properties,\n jsonb_array_elements(values->'value') elem\n WHERE entity_id = $1\n AND entity_type = 'TASK'\n AND property_definition_id = $2\n AND values IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "subtask_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "4123b0f2a6fa02a9191a87f2484cb27fd4220b15126fd010acbf4b954a9afb68" -} diff --git a/rust/cloud-storage/.sqlx/query-414c3ac70d95caaaf4c7fdb0556c287e3755f19187f07ec05d4ce0c60a5df751.json b/rust/cloud-storage/.sqlx/query-414c3ac70d95caaaf4c7fdb0556c287e3755f19187f07ec05d4ce0c60a5df751.json deleted file mode 100644 index 12cc6e12d0..0000000000 --- a/rust/cloud-storage/.sqlx/query-414c3ac70d95caaaf4c7fdb0556c287e3755f19187f07ec05d4ce0c60a5df751.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, channel_id, room_name, created_by, created_at, egress_id\n FROM calls\n WHERE channel_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "room_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_by", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "egress_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true - ] - }, - "hash": "414c3ac70d95caaaf4c7fdb0556c287e3755f19187f07ec05d4ce0c60a5df751" -} diff --git a/rust/cloud-storage/.sqlx/query-41682a8f6e1e2fb8836f76ca3ceab5fe676b45c9942ec0c99486c03e52733a47.json b/rust/cloud-storage/.sqlx/query-41682a8f6e1e2fb8836f76ca3ceab5fe676b45c9942ec0c99486c03e52733a47.json deleted file mode 100644 index 7eab7370d7..0000000000 --- a/rust/cloud-storage/.sqlx/query-41682a8f6e1e2fb8836f76ca3ceab5fe676b45c9942ec0c99486c03e52733a47.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO property_options (\n id,\n property_definition_id,\n display_order,\n number_value,\n string_value\n )\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id, created_at, updated_at\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 2, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Int4", - "Float8", - "Text" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "41682a8f6e1e2fb8836f76ca3ceab5fe676b45c9942ec0c99486c03e52733a47" -} diff --git a/rust/cloud-storage/.sqlx/query-41de07226ced9b95c7419c9e6d5d9bd9c5890cf1c144f0f8905664cd72c7f132.json b/rust/cloud-storage/.sqlx/query-41de07226ced9b95c7419c9e6d5d9bd9c5890cf1c144f0f8905664cd72c7f132.json deleted file mode 100644 index b75a3a2ff5..0000000000 --- a/rust/cloud-storage/.sqlx/query-41de07226ced9b95c7419c9e6d5d9bd9c5890cf1c144f0f8905664cd72c7f132.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n VALUES ($1, $2, $3, $4, $5)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - { - "Custom": { - "name": "entity_access_source_type", - "kind": { - "Enum": [ - "channel", - "team", - "user" - ] - } - } - }, - { - "Custom": { - "name": "\"AccessLevel\"", - "kind": { - "Enum": [ - "view", - "comment", - "edit", - "owner" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "41de07226ced9b95c7419c9e6d5d9bd9c5890cf1c144f0f8905664cd72c7f132" -} diff --git a/rust/cloud-storage/.sqlx/query-41ef28446ebbd766c0778fd56fb8ee8094c2cb84ed3f4dab9e890d441611722b.json b/rust/cloud-storage/.sqlx/query-41ef28446ebbd766c0778fd56fb8ee8094c2cb84ed3f4dab9e890d441611722b.json deleted file mode 100644 index 4eaee7da4e..0000000000 --- a/rust/cloud-storage/.sqlx/query-41ef28446ebbd766c0778fd56fb8ee8094c2cb84ed3f4dab9e890d441611722b.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": " \n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n UserAccessibleItems AS (\n SELECT DISTINCT\n ea.entity_id::text as item_id,\n ea.entity_type as item_type\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n ),\n Combined AS (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\",\n d.\"projectId\" as \"project_id\",\n NULL as \"is_persistent\",\n di.sha as \"sha\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", d.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN d.\"createdAt\"\n ELSE d.\"updatedAt\"\n END::timestamptz as \"sort_ts!\",\n CASE\n WHEN dt.sub_type = 'task'\n AND ep_status.values->'value' ? $6\n THEN true\n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL\n END as \"is_completed\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status\n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id\n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $7\n INNER JOIN UserAccessibleItems uai ON uai.item_id = d.id AND uai.item_type = 'document'\n -- This MUST be a LEFT JOIN to support all three sort methods\n LEFT JOIN \"UserHistory\" uh ON uh.\"itemId\" = d.id AND uh.\"itemType\" = 'document' AND uh.\"userId\" = $1\n LEFT JOIN LATERAL (\n SELECT b.id\n FROM \"DocumentBom\" b\n WHERE b.\"documentId\" = d.id\n ORDER BY b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT i.id, i.sha\n FROM \"DocumentInstance\" i\n WHERE i.\"documentId\" = d.id\n ORDER BY i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n WHERE d.\"deletedAt\" IS NULL\n\n UNION ALL\n\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at!\",\n c.\"updatedAt\"::timestamptz as \"updated_at!\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", c.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN c.\"createdAt\"\n ELSE c.\"updatedAt\"\n END::timestamptz as \"sort_ts!\",\n NULL as \"is_completed\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Chat\" c\n INNER JOIN UserAccessibleItems uai ON uai.item_id = c.id AND uai.item_type = 'chat'\n LEFT JOIN \"UserHistory\" uh ON uh.\"itemId\" = c.id AND uh.\"itemType\" = 'chat' AND uh.\"userId\" = $1\n WHERE c.\"deletedAt\" IS NULL\n\n UNION ALL\n\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at!\",\n p.\"updatedAt\"::timestamptz as \"updated_at!\",\n p.\"parentId\" as \"project_id\",\n NULL as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", p.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN p.\"createdAt\"\n ELSE p.\"updatedAt\"\n END::timestamptz as \"sort_ts!\",\n NULL as \"is_completed\",\n p.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Project\" p\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = p.id\n AND uai.item_type = 'project'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = p.id\n AND uh.\"itemType\" = 'project'\n AND uh.\"userId\" = $1\n WHERE p.\"deletedAt\" IS NULL\n )\n SELECT Combined.* FROM Combined\n LEFT JOIN frecency_aggregates fa\n ON fa.entity_id = Combined.\"id!\"\n AND fa.entity_type = Combined.\"item_type!\"\n AND fa.user_id = $1\n WHERE fa.id IS NULL\n AND (\n ($4::timestamptz IS NULL)\n OR\n (Combined.\"sort_ts!\", Combined.\"id!\"::text) < ($4, $5)\n )\n ORDER BY Combined.\"sort_ts!\" DESC, Combined.\"id!\" DESC\n LIMIT $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_type!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_version_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "user_id!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "name!", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 8, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "is_persistent", - "type_info": "Bool" - }, - { - "ordinal": 13, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 14, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 15, - "name": "viewed_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 16, - "name": "sort_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 17, - "name": "is_completed", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Int8", - "Timestamptz", - "Text", - "Text", - "Uuid" - ] - }, - "nullable": [ - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null - ] - }, - "hash": "41ef28446ebbd766c0778fd56fb8ee8094c2cb84ed3f4dab9e890d441611722b" -} diff --git a/rust/cloud-storage/.sqlx/query-41f77dad73c881816d91df173411d39329574a7a99ae1d295fcd43afa5963408.json b/rust/cloud-storage/.sqlx/query-41f77dad73c881816d91df173411d39329574a7a99ae1d295fcd43afa5963408.json deleted file mode 100644 index 13c88a263e..0000000000 --- a/rust/cloud-storage/.sqlx/query-41f77dad73c881816d91df173411d39329574a7a99ae1d295fcd43afa5963408.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChannelSharePermission\" (\"share_permission_id\", \"channel_id\", \"access_level\")\n VALUES ($1, $2, $3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - { - "Custom": { - "name": "\"AccessLevel\"", - "kind": { - "Enum": [ - "view", - "comment", - "edit", - "owner" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "41f77dad73c881816d91df173411d39329574a7a99ae1d295fcd43afa5963408" -} diff --git a/rust/cloud-storage/.sqlx/query-42175eb671a66713c2bb172aed854b0fd109b0089bbb4951379ea045012ad6f6.json b/rust/cloud-storage/.sqlx/query-42175eb671a66713c2bb172aed854b0fd109b0089bbb4951379ea045012ad6f6.json deleted file mode 100644 index cc245b938c..0000000000 --- a/rust/cloud-storage/.sqlx/query-42175eb671a66713c2bb172aed854b0fd109b0089bbb4951379ea045012ad6f6.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id FROM email_links\n WHERE macro_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "42175eb671a66713c2bb172aed854b0fd109b0089bbb4951379ea045012ad6f6" -} diff --git a/rust/cloud-storage/.sqlx/query-42546a42d5b23be78e06b0bdf3188821246cd0b2d459d8dc667be1e6c8de1c98.json b/rust/cloud-storage/.sqlx/query-42546a42d5b23be78e06b0bdf3188821246cd0b2d459d8dc667be1e6c8de1c98.json deleted file mode 100644 index 001698c6b2..0000000000 --- a/rust/cloud-storage/.sqlx/query-42546a42d5b23be78e06b0bdf3188821246cd0b2d459d8dc667be1e6c8de1c98.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.\"id\" as id\n FROM \"Document\" d\n INNER JOIN \"UserHistory\" uh ON uh.\"itemId\" = d.\"id\" AND uh.\"itemType\" = 'document'\n INNER JOIN \"User\" u ON u.id = uh.\"userId\"\n WHERE d.id = $1 AND u.id != d.\"owner\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "42546a42d5b23be78e06b0bdf3188821246cd0b2d459d8dc667be1e6c8de1c98" -} diff --git a/rust/cloud-storage/.sqlx/query-4264fcdaec0d80ff28c8ff6e2443f685b084283f4fb1cc683330b7c7875ca312.json b/rust/cloud-storage/.sqlx/query-4264fcdaec0d80ff28c8ff6e2443f685b084283f4fb1cc683330b7c7875ca312.json deleted file mode 100644 index 7b86d66efe..0000000000 --- a/rust/cloud-storage/.sqlx/query-4264fcdaec0d80ff28c8ff6e2443f685b084283f4fb1cc683330b7c7875ca312.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE call_records SET summary = $2 WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "4264fcdaec0d80ff28c8ff6e2443f685b084283f4fb1cc683330b7c7875ca312" -} diff --git a/rust/cloud-storage/.sqlx/query-428083ae29c00ef5dfae2fadc0d3ebe3c3191c212f37631feda29343104f9548.json b/rust/cloud-storage/.sqlx/query-428083ae29c00ef5dfae2fadc0d3ebe3c3191c212f37631feda29343104f9548.json deleted file mode 100644 index dff060816a..0000000000 --- a/rust/cloud-storage/.sqlx/query-428083ae29c00ef5dfae2fadc0d3ebe3c3191c212f37631feda29343104f9548.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"User\"\n SET \"firstName\" = $1,\n \"lastName\" = $2,\n \"title\" = $3,\n \"industry\" = $4\n WHERE id = $5\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Varchar", - "Varchar", - "Varchar", - "Varchar", - "Text" - ] - }, - "nullable": [] - }, - "hash": "428083ae29c00ef5dfae2fadc0d3ebe3c3191c212f37631feda29343104f9548" -} diff --git a/rust/cloud-storage/.sqlx/query-429ca8e2c629499903d69292063060cafd143f63c7548ffdb8ae19461d0f0c76.json b/rust/cloud-storage/.sqlx/query-429ca8e2c629499903d69292063060cafd143f63c7548ffdb8ae19461d0f0c76.json deleted file mode 100644 index 3f7b7596cb..0000000000 --- a/rust/cloud-storage/.sqlx/query-429ca8e2c629499903d69292063060cafd143f63c7548ffdb8ae19461d0f0c76.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO bots (\n id, kind, owner_user_id, team_id, name, handle, description, avatar_url, created_by\n )\n VALUES ($1, 'owned', $2, $3, $4, $5, $6, $7, $8)\n RETURNING\n id,\n kind,\n owner_user_id,\n team_id,\n name,\n handle,\n description,\n avatar_url,\n created_by,\n created_at,\n updated_at,\n deleted_at\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "kind", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "team_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "handle", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "description", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "avatar_url", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "created_by", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Uuid", - "Text", - "Text", - "Text", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - true, - true, - false, - false, - true, - true, - true, - false, - false, - true - ] - }, - "hash": "429ca8e2c629499903d69292063060cafd143f63c7548ffdb8ae19461d0f0c76" -} diff --git a/rust/cloud-storage/.sqlx/query-42a7d2fb1eb1c98ae10f8375a262c48cb828e3c0ed342d0c2b090c2a69c62a2f.json b/rust/cloud-storage/.sqlx/query-42a7d2fb1eb1c98ae10f8375a262c48cb828e3c0ed342d0c2b090c2a69c62a2f.json deleted file mode 100644 index 9335e3b082..0000000000 --- a/rust/cloud-storage/.sqlx/query-42a7d2fb1eb1c98ae10f8375a262c48cb828e3c0ed342d0c2b090c2a69c62a2f.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE call_records SET share_with_team = $2 WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "42a7d2fb1eb1c98ae10f8375a262c48cb828e3c0ed342d0c2b090c2a69c62a2f" -} diff --git a/rust/cloud-storage/.sqlx/query-42e46f8f1c2cbf80383f65dd19d4efa3ae9c2697363d56278789de68b2295366.json b/rust/cloud-storage/.sqlx/query-42e46f8f1c2cbf80383f65dd19d4efa3ae9c2697363d56278789de68b2295366.json deleted file mode 100644 index 018330cc92..0000000000 --- a/rust/cloud-storage/.sqlx/query-42e46f8f1c2cbf80383f65dd19d4efa3ae9c2697363d56278789de68b2295366.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Chat\" (\"userId\", name, \"projectId\")\n VALUES ($1, $2, $3)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "42e46f8f1c2cbf80383f65dd19d4efa3ae9c2697363d56278789de68b2295366" -} diff --git a/rust/cloud-storage/.sqlx/query-42f09cdfac72096bac4124c84318142bbc2bc0256ff84a6ba9ab2f98fd9fb0c1.json b/rust/cloud-storage/.sqlx/query-42f09cdfac72096bac4124c84318142bbc2bc0256ff84a6ba9ab2f98fd9fb0c1.json deleted file mode 100644 index a7dfaf200c..0000000000 --- a/rust/cloud-storage/.sqlx/query-42f09cdfac72096bac4124c84318142bbc2bc0256ff84a6ba9ab2f98fd9fb0c1.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM \"OrganizationEmailMatches\" WHERE \"organizationId\" = $1 AND email = $2", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int4", - "Text" - ] - }, - "nullable": [] - }, - "hash": "42f09cdfac72096bac4124c84318142bbc2bc0256ff84a6ba9ab2f98fd9fb0c1" -} diff --git a/rust/cloud-storage/.sqlx/query-435f8b35060d08ba47b4676c968b0543e406adc48edfd2a72ed715164c4a093b.json b/rust/cloud-storage/.sqlx/query-435f8b35060d08ba47b4676c968b0543e406adc48edfd2a72ed715164c4a093b.json deleted file mode 100644 index bd8240acd1..0000000000 --- a/rust/cloud-storage/.sqlx/query-435f8b35060d08ba47b4676c968b0543e406adc48edfd2a72ed715164c4a093b.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT call_id AS \"id!\", user_id AS \"user_id!\", joined_at AS \"joined_at!\", left_at\n FROM call_participants\n WHERE call_id = ANY($1)\n UNION ALL\n SELECT call_record_id AS \"id!\", user_id AS \"user_id!\", joined_at AS \"joined_at!\", left_at\n FROM call_record_participants\n WHERE call_record_id = ANY($2)\n ORDER BY 3 ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "joined_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "left_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "UuidArray" - ] - }, - "nullable": [ - null, - null, - null, - null - ] - }, - "hash": "435f8b35060d08ba47b4676c968b0543e406adc48edfd2a72ed715164c4a093b" -} diff --git a/rust/cloud-storage/.sqlx/query-444840cacdf181727100b5ee338de844abb56d9cb3a88034db7b285fcff7e9b7.json b/rust/cloud-storage/.sqlx/query-444840cacdf181727100b5ee338de844abb56d9cb3a88034db7b285fcff7e9b7.json deleted file mode 100644 index 0f87a4867d..0000000000 --- a/rust/cloud-storage/.sqlx/query-444840cacdf181727100b5ee338de844abb56d9cb3a88034db7b285fcff7e9b7.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id FROM call_records WHERE egress_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "444840cacdf181727100b5ee338de844abb56d9cb3a88034db7b285fcff7e9b7" -} diff --git a/rust/cloud-storage/.sqlx/query-4465cdde5f953cd550e7190572d8e5e4c70fce8558763d56a3f57e99474a9aeb.json b/rust/cloud-storage/.sqlx/query-4465cdde5f953cd550e7190572d8e5e4c70fce8558763d56a3f57e99474a9aeb.json deleted file mode 100644 index a891deb671..0000000000 --- a/rust/cloud-storage/.sqlx/query-4465cdde5f953cd550e7190572d8e5e4c70fce8558763d56a3f57e99474a9aeb.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_channels (id, name, owner_id, org_id, channel_type)\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Varchar", - "Text", - "Int8", - { - "Custom": { - "name": "comms_channel_type", - "kind": { - "Enum": [ - "public", - "private", - "direct_message", - "team" - ] - } - } - } - ] - }, - "nullable": [ - false - ] - }, - "hash": "4465cdde5f953cd550e7190572d8e5e4c70fce8558763d56a3f57e99474a9aeb" -} diff --git a/rust/cloud-storage/.sqlx/query-44682e65711eb45a1dbec725646b7b0e02ced66e66f2d985f3da2d3eb7ad8c60.json b/rust/cloud-storage/.sqlx/query-44682e65711eb45a1dbec725646b7b0e02ced66e66f2d985f3da2d3eb7ad8c60.json deleted file mode 100644 index 2bb459c23a..0000000000 --- a/rust/cloud-storage/.sqlx/query-44682e65711eb45a1dbec725646b7b0e02ced66e66f2d985f3da2d3eb7ad8c60.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT ml.message_id, el.provider_label_id\n FROM email_message_labels ml\n JOIN email_labels el ON el.id = ml.label_id\n WHERE ml.message_id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_label_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "44682e65711eb45a1dbec725646b7b0e02ced66e66f2d985f3da2d3eb7ad8c60" -} diff --git a/rust/cloud-storage/.sqlx/query-44a05989da2597deae3eaded94e7270307a3e4f36625e76d489d4bc39b66e759.json b/rust/cloud-storage/.sqlx/query-44a05989da2597deae3eaded94e7270307a3e4f36625e76d489d4bc39b66e759.json deleted file mode 100644 index fad533832f..0000000000 --- a/rust/cloud-storage/.sqlx/query-44a05989da2597deae3eaded94e7270307a3e4f36625e76d489d4bc39b66e759.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n pp.\"sharePermissionId\" as share_permission_id\n FROM \"ProjectPermission\" pp\n WHERE pp.\"projectId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "44a05989da2597deae3eaded94e7270307a3e4f36625e76d489d4bc39b66e759" -} diff --git a/rust/cloud-storage/.sqlx/query-44aa0fedb485db7f86d0dd21c5ac83ffd5ac9b4ce85a5d08d0fc5095efa73505.json b/rust/cloud-storage/.sqlx/query-44aa0fedb485db7f86d0dd21c5ac83ffd5ac9b4ce85a5d08d0fc5095efa73505.json deleted file mode 100644 index 3d662e3a32..0000000000 --- a/rust/cloud-storage/.sqlx/query-44aa0fedb485db7f86d0dd21c5ac83ffd5ac9b4ce85a5d08d0fc5095efa73505.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT oem.email\n FROM \"OrganizationEmailMatches\" oem\n JOIN \"Organization\" o ON o.\"id\" = oem.\"organizationId\"\n WHERE oem.\"organizationId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "Int4" - ] - }, - "nullable": [ - false - ] - }, - "hash": "44aa0fedb485db7f86d0dd21c5ac83ffd5ac9b4ce85a5d08d0fc5095efa73505" -} diff --git a/rust/cloud-storage/.sqlx/query-44cc40d5175302af5445a34d4add1e7dc2d0cea3efa5b87c16cb2416b43fc098.json b/rust/cloud-storage/.sqlx/query-44cc40d5175302af5445a34d4add1e7dc2d0cea3efa5b87c16cb2416b43fc098.json deleted file mode 100644 index 7eadb2f534..0000000000 --- a/rust/cloud-storage/.sqlx/query-44cc40d5175302af5445a34d4add1e7dc2d0cea3efa5b87c16cb2416b43fc098.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n VALUES ($1, $2, $3, $4, $5)\n ON CONFLICT DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - { - "Custom": { - "name": "entity_access_source_type", - "kind": { - "Enum": [ - "channel", - "team", - "user" - ] - } - } - }, - { - "Custom": { - "name": "\"AccessLevel\"", - "kind": { - "Enum": [ - "view", - "comment", - "edit", - "owner" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "44cc40d5175302af5445a34d4add1e7dc2d0cea3efa5b87c16cb2416b43fc098" -} diff --git a/rust/cloud-storage/.sqlx/query-45063eedc20b7eb86019e69545c2e8b441f1e9e067086b05617437b6f43bc329.json b/rust/cloud-storage/.sqlx/query-45063eedc20b7eb86019e69545c2e8b441f1e9e067086b05617437b6f43bc329.json deleted file mode 100644 index 6a8b3392e5..0000000000 --- a/rust/cloud-storage/.sqlx/query-45063eedc20b7eb86019e69545c2e8b441f1e9e067086b05617437b6f43bc329.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Chat\"\n SET \"deletedAt\" = NULL\n WHERE id = $1\n RETURNING \"userId\" as owner\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "owner", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "45063eedc20b7eb86019e69545c2e8b441f1e9e067086b05617437b6f43bc329" -} diff --git a/rust/cloud-storage/.sqlx/query-45064c055927af781bc06e3a602a9efbefbd111110b9f0fab5cf029e70208c1e.json b/rust/cloud-storage/.sqlx/query-45064c055927af781bc06e3a602a9efbefbd111110b9f0fab5cf029e70208c1e.json deleted file mode 100644 index 8e34d4b90f..0000000000 --- a/rust/cloud-storage/.sqlx/query-45064c055927af781bc06e3a602a9efbefbd111110b9f0fab5cf029e70208c1e.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH user_channels AS (\n SELECT DISTINCT c.*\n FROM comms_channels c\n INNER JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n ),\n channel_participants_json AS (\n SELECT \n uc.id as channel_id,\n ARRAY_AGG(\n json_build_object(\n 'channel_id', cp.channel_id,\n 'user_id', cp.user_id,\n 'role', cp.role,\n 'joined_at', cp.joined_at,\n 'left_at', cp.left_at\n )\n ) as participants\n FROM user_channels uc\n JOIN comms_channel_participants cp ON cp.channel_id = uc.id\n WHERE cp.left_at IS NULL\n GROUP BY uc.id\n )\n SELECT \n uc.id as \"id!\",\n uc.name as \"name\",\n uc.channel_type as \"channel_type!: ChannelType\",\n uc.team_id,\n uc.org_id,\n uc.created_at as \"created_at!\",\n uc.updated_at as \"updated_at!\",\n uc.owner_id as \"owner_id!\",\n cpj.participants as \"participants_json?\"\n FROM user_channels uc\n LEFT JOIN channel_participants_json cpj ON cpj.channel_id = uc.id\n ORDER BY uc.created_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "channel_type!: ChannelType", - "type_info": { - "Custom": { - "name": "comms_channel_type", - "kind": { - "Enum": [ - "public", - "private", - "direct_message", - "team" - ] - } - } - } - }, - { - "ordinal": 3, - "name": "team_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "org_id", - "type_info": "Int8" - }, - { - "ordinal": 5, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "owner_id!", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "participants_json?", - "type_info": "JsonArray" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - true, - false, - true, - true, - false, - false, - false, - null - ] - }, - "hash": "45064c055927af781bc06e3a602a9efbefbd111110b9f0fab5cf029e70208c1e" -} diff --git a/rust/cloud-storage/.sqlx/query-4511579c08d1a9b52afd1279a058c1a7fd6ded6c7e73a7a2dea50fd492d5e88b.json b/rust/cloud-storage/.sqlx/query-4511579c08d1a9b52afd1279a058c1a7fd6ded6c7e73a7a2dea50fd492d5e88b.json deleted file mode 100644 index b1716363e9..0000000000 --- a/rust/cloud-storage/.sqlx/query-4511579c08d1a9b52afd1279a058c1a7fd6ded6c7e73a7a2dea50fd492d5e88b.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_scheduled_messages\n WHERE link_id = $1 AND message_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "4511579c08d1a9b52afd1279a058c1a7fd6ded6c7e73a7a2dea50fd492d5e88b" -} diff --git a/rust/cloud-storage/.sqlx/query-45267fb7a6016603a87fca1f2314d86540a99362db746fa2a04a2369bac18095.json b/rust/cloud-storage/.sqlx/query-45267fb7a6016603a87fca1f2314d86540a99362db746fa2a04a2369bac18095.json deleted file mode 100644 index 945660d977..0000000000 --- a/rust/cloud-storage/.sqlx/query-45267fb7a6016603a87fca1f2314d86540a99362db746fa2a04a2369bac18095.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT name FROM \"Project\" WHERE id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "45267fb7a6016603a87fca1f2314d86540a99362db746fa2a04a2369bac18095" -} diff --git a/rust/cloud-storage/.sqlx/query-454e1202630627f0f8c9f876f1917d6cfbed8fc192939cc0e5e43b86905a4ca2.json b/rust/cloud-storage/.sqlx/query-454e1202630627f0f8c9f876f1917d6cfbed8fc192939cc0e5e43b86905a4ca2.json deleted file mode 100644 index 0e8a2423f4..0000000000 --- a/rust/cloud-storage/.sqlx/query-454e1202630627f0f8c9f876f1917d6cfbed8fc192939cc0e5e43b86905a4ca2.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"OrganizationInvitation\"\n WHERE email = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "454e1202630627f0f8c9f876f1917d6cfbed8fc192939cc0e5e43b86905a4ca2" -} diff --git a/rust/cloud-storage/.sqlx/query-45a55e0ea2f0cc2d7583ede119ffd4059933d25cca50775c74f1ef5a0224493c.json b/rust/cloud-storage/.sqlx/query-45a55e0ea2f0cc2d7583ede119ffd4059933d25cca50775c74f1ef5a0224493c.json deleted file mode 100644 index 58bc367329..0000000000 --- a/rust/cloud-storage/.sqlx/query-45a55e0ea2f0cc2d7583ede119ffd4059933d25cca50775c74f1ef5a0224493c.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.thread_id,\n c.id, c.link_id, c.email_address, COALESCE(m.from_name, c.name) as \"name\", c.sfs_photo_url\n FROM email_messages m\n JOIN email_contacts c ON m.from_contact_id = c.id\n WHERE m.thread_id = ANY($1) AND m.from_contact_id IS NOT NULL\n ORDER BY m.created_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "sfs_photo_url", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - false, - null, - true - ] - }, - "hash": "45a55e0ea2f0cc2d7583ede119ffd4059933d25cca50775c74f1ef5a0224493c" -} diff --git a/rust/cloud-storage/.sqlx/query-45ac2a692bf3676d053ca1905fe8586ff1dd139822d3cbde8e125add5575194a.json b/rust/cloud-storage/.sqlx/query-45ac2a692bf3676d053ca1905fe8586ff1dd139822d3cbde8e125add5575194a.json deleted file mode 100644 index fcef7e28e8..0000000000 --- a/rust/cloud-storage/.sqlx/query-45ac2a692bf3676d053ca1905fe8586ff1dd139822d3cbde8e125add5575194a.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT values as \"values: serde_json::Value\"\n FROM entity_properties\n WHERE entity_id = $1\n AND entity_type = $2\n AND property_definition_id = $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "values: serde_json::Value", - "type_info": "Jsonb" - } - ], - "parameters": { - "Left": [ - "Text", - { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - }, - "Uuid" - ] - }, - "nullable": [ - true - ] - }, - "hash": "45ac2a692bf3676d053ca1905fe8586ff1dd139822d3cbde8e125add5575194a" -} diff --git a/rust/cloud-storage/.sqlx/query-45e8619173ce143a2908e7874cac1d14a38ad27be4af19f4558d1439e5e1108b.json b/rust/cloud-storage/.sqlx/query-45e8619173ce143a2908e7874cac1d14a38ad27be4af19f4558d1439e5e1108b.json deleted file mode 100644 index 8cd4920d2d..0000000000 --- a/rust/cloud-storage/.sqlx/query-45e8619173ce143a2908e7874cac1d14a38ad27be4af19f4558d1439e5e1108b.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE crm_companies\n SET hidden = FALSE\n WHERE id = $1 AND team_id = $2\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "45e8619173ce143a2908e7874cac1d14a38ad27be4af19f4558d1439e5e1108b" -} diff --git a/rust/cloud-storage/.sqlx/query-460e4c3dcd4adba352eb7c00381bac9d3c4b8b107dd02fd35ec991e848919eed.json b/rust/cloud-storage/.sqlx/query-460e4c3dcd4adba352eb7c00381bac9d3c4b8b107dd02fd35ec991e848919eed.json deleted file mode 100644 index f875ee7641..0000000000 --- a/rust/cloud-storage/.sqlx/query-460e4c3dcd4adba352eb7c00381bac9d3c4b8b107dd02fd35ec991e848919eed.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n link_id,\n fusionauth_user_id,\n threads_requested_limit,\n total_threads,\n threads_retrieved_count,\n status as \"status: db::backfill::BackfillJobStatus\",\n created_at,\n updated_at\n FROM email_backfill_jobs\n WHERE link_id = $1 AND status IN ('Init', 'InProgress')\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "threads_requested_limit", - "type_info": "Int4" - }, - { - "ordinal": 4, - "name": "total_threads", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "threads_retrieved_count", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "status: db::backfill::BackfillJobStatus", - "type_info": { - "Custom": { - "name": "email_backfill_job_status", - "kind": { - "Enum": [ - "Init", - "InProgress", - "Complete", - "Cancelled", - "Failed" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - false, - true, - false, - false, - false, - false, - false - ] - }, - "hash": "460e4c3dcd4adba352eb7c00381bac9d3c4b8b107dd02fd35ec991e848919eed" -} diff --git a/rust/cloud-storage/.sqlx/query-46529d3ed1fd86a194a7e99458b4f95a0dc0ae92127693240ce9dc0acc3b7467.json b/rust/cloud-storage/.sqlx/query-46529d3ed1fd86a194a7e99458b4f95a0dc0ae92127693240ce9dc0acc3b7467.json deleted file mode 100644 index 348c31b38b..0000000000 --- a/rust/cloud-storage/.sqlx/query-46529d3ed1fd86a194a7e99458b4f95a0dc0ae92127693240ce9dc0acc3b7467.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChannelSharePermission\" (\"share_permission_id\", \"channel_id\", \"access_level\")\n VALUES ($1, $2, $3)\n ON CONFLICT (\"share_permission_id\", \"channel_id\") DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - { - "Custom": { - "name": "\"AccessLevel\"", - "kind": { - "Enum": [ - "view", - "comment", - "edit", - "owner" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "46529d3ed1fd86a194a7e99458b4f95a0dc0ae92127693240ce9dc0acc3b7467" -} diff --git a/rust/cloud-storage/.sqlx/query-4656631949bab512d00e10664be31128b89c8047812362331ded6b6e0a12e1ac.json b/rust/cloud-storage/.sqlx/query-4656631949bab512d00e10664be31128b89c8047812362331ded6b6e0a12e1ac.json deleted file mode 100644 index f621865b2b..0000000000 --- a/rust/cloud-storage/.sqlx/query-4656631949bab512d00e10664be31128b89c8047812362331ded6b6e0a12e1ac.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n email,\n team_id,\n team_role as \"team_role!: TeamRole\",\n invited_by,\n created_at as \"created_at!: chrono::DateTime\",\n last_sent_at as \"last_sent_at!: chrono::DateTime\"\n FROM team_invite\n WHERE email = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "team_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "team_role!: TeamRole", - "type_info": { - "Custom": { - "name": "team_role", - "kind": { - "Enum": [ - "member", - "admin", - "owner" - ] - } - } - } - }, - { - "ordinal": 4, - "name": "invited_by", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "created_at!: chrono::DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 6, - "name": "last_sent_at!: chrono::DateTime", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "4656631949bab512d00e10664be31128b89c8047812362331ded6b6e0a12e1ac" -} diff --git a/rust/cloud-storage/.sqlx/query-467fc7bd79aaa296588af3527f1d1fa944740f01ce65798b18269b099a65a283.json b/rust/cloud-storage/.sqlx/query-467fc7bd79aaa296588af3527f1d1fa944740f01ce65798b18269b099a65a283.json deleted file mode 100644 index f7c0d8d0b0..0000000000 --- a/rust/cloud-storage/.sqlx/query-467fc7bd79aaa296588af3527f1d1fa944740f01ce65798b18269b099a65a283.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"sharePermissionId\" as id FROM \"ProjectPermission\" WHERE \"projectId\" = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "467fc7bd79aaa296588af3527f1d1fa944740f01ce65798b18269b099a65a283" -} diff --git a/rust/cloud-storage/.sqlx/query-46ffaa1a906d49a47c765c9c03d89e50037adc4b72c364bdb4282ab0c8cf1237.json b/rust/cloud-storage/.sqlx/query-46ffaa1a906d49a47c765c9c03d89e50037adc4b72c364bdb4282ab0c8cf1237.json deleted file mode 100644 index c91a76ff52..0000000000 --- a/rust/cloud-storage/.sqlx/query-46ffaa1a906d49a47c765c9c03d89e50037adc4b72c364bdb4282ab0c8cf1237.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM entity_access\n WHERE entity_id = $1 AND entity_type = $2\n AND source_id = ANY($3) AND source_type = 'channel'\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "46ffaa1a906d49a47c765c9c03d89e50037adc4b72c364bdb4282ab0c8cf1237" -} diff --git a/rust/cloud-storage/.sqlx/query-472e132fc9b3df044b4f267507ab146a3631e9fb26323cae0e49e9d25d7d0767.json b/rust/cloud-storage/.sqlx/query-472e132fc9b3df044b4f267507ab146a3631e9fb26323cae0e49e9d25d7d0767.json deleted file mode 100644 index be450e8629..0000000000 --- a/rust/cloud-storage/.sqlx/query-472e132fc9b3df044b4f267507ab146a3631e9fb26323cae0e49e9d25d7d0767.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n COALESCE(u.email, NULLIF(split_part(request_user.user_id, '|', 2), ''), request_user.user_id) AS \"user_email!\",\n gl.github_username AS \"github_username?\",\n t.slug AS \"team_slug?\",\n tt.task_num AS \"team_task_id?\"\n FROM (SELECT $1::text AS user_id) request_user\n LEFT JOIN \"User\" u ON u.id = request_user.user_id\n LEFT JOIN LATERAL (\n SELECT github_username\n FROM github_links\n WHERE macro_id = request_user.user_id\n ORDER BY updated_at DESC\n LIMIT 1\n ) gl ON true\n LEFT JOIN LATERAL (\n SELECT team_id\n FROM team_user\n WHERE user_id = request_user.user_id\n ORDER BY team_id\n LIMIT 1\n ) tu ON true\n LEFT JOIN team t ON t.id = tu.team_id\n LEFT JOIN team_task tt ON tt.team_id = tu.team_id AND tt.document_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_email!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "github_username?", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "team_slug?", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "team_task_id?", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - null, - true, - true, - true - ] - }, - "hash": "472e132fc9b3df044b4f267507ab146a3631e9fb26323cae0e49e9d25d7d0767" -} diff --git a/rust/cloud-storage/.sqlx/query-473db34286d4aeefece0b6a97cea69cad83d20908c700d750a4047ce5bee30f4.json b/rust/cloud-storage/.sqlx/query-473db34286d4aeefece0b6a97cea69cad83d20908c700d750a4047ce5bee30f4.json deleted file mode 100644 index f182e4bc32..0000000000 --- a/rust/cloud-storage/.sqlx/query-473db34286d4aeefece0b6a97cea69cad83d20908c700d750a4047ce5bee30f4.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_attachments_drafts ead\n USING email_messages m\n WHERE ead.draft_id = m.id\n AND ead.id = $1 AND ead.draft_id = $2 AND m.link_id = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "473db34286d4aeefece0b6a97cea69cad83d20908c700d750a4047ce5bee30f4" -} diff --git a/rust/cloud-storage/.sqlx/query-47527ceedb84aa81cf48fd3529718a5303e9f456e3db0ac35840627b086d3995.json b/rust/cloud-storage/.sqlx/query-47527ceedb84aa81cf48fd3529718a5303e9f456e3db0ac35840627b086d3995.json deleted file mode 100644 index 76fa7f167e..0000000000 --- a/rust/cloud-storage/.sqlx/query-47527ceedb84aa81cf48fd3529718a5303e9f456e3db0ac35840627b086d3995.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n UserAccessibleDocuments AS (\n SELECT DISTINCT ON (entity_id) entity_id, access_level\n FROM entity_access\n WHERE source_id = ANY(SELECT source_id FROM user_source_ids)\n AND entity_type = 'document'\n ORDER BY entity_id,\n CASE access_level::text\n WHEN 'owner' THEN 4\n WHEN 'edit' THEN 3\n WHEN 'comment' THEN 2\n WHEN 'view' THEN 1\n ELSE 0\n END DESC\n )\n SELECT\n d.id as \"document_id!\",\n d.name as \"document_name!\",\n d.owner as \"owner!\",\n d.\"fileType\" as \"file_type\",\n d.\"projectId\" as \"project_id\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\",\n uad.access_level::text as \"access_level!\"\n FROM \"Document\" d\n INNER JOIN UserAccessibleDocuments uad ON uad.entity_id = d.id::uuid\n WHERE d.\"deletedAt\" IS NULL\n AND ($2::text[] IS NULL OR d.\"fileType\" = ANY($2))\n AND (\n CASE uad.access_level::text\n WHEN 'owner' THEN 4\n WHEN 'edit' THEN 3\n WHEN 'comment' THEN 2\n WHEN 'view' THEN 1\n ELSE 0\n END >=\n CASE $3\n WHEN 'owner' THEN 4\n WHEN 'edit' THEN 3\n WHEN 'comment' THEN 2\n WHEN 'view' THEN 1\n ELSE 0\n END\n )\n ORDER BY d.\"updatedAt\" DESC\n LIMIT $4 OFFSET $5\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "document_name!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "access_level!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray", - "Text", - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - null, - null, - null, - null - ] - }, - "hash": "47527ceedb84aa81cf48fd3529718a5303e9f456e3db0ac35840627b086d3995" -} diff --git a/rust/cloud-storage/.sqlx/query-47f0213791a57c90d28af2015b1de283865e6bbf5776a9f482a5d21568c14d3e.json b/rust/cloud-storage/.sqlx/query-47f0213791a57c90d28af2015b1de283865e6bbf5776a9f482a5d21568c14d3e.json deleted file mode 100644 index 1d742c4cac..0000000000 --- a/rust/cloud-storage/.sqlx/query-47f0213791a57c90d28af2015b1de283865e6bbf5776a9f482a5d21568c14d3e.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"User\"\n SET \"aiDataConsent\" = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Bool", - "Text" - ] - }, - "nullable": [] - }, - "hash": "47f0213791a57c90d28af2015b1de283865e6bbf5776a9f482a5d21568c14d3e" -} diff --git a/rust/cloud-storage/.sqlx/query-47fb0faaa3568c45ff7abcc6b1b1229d7042950891759db010a27c5a18ed2909.json b/rust/cloud-storage/.sqlx/query-47fb0faaa3568c45ff7abcc6b1b1229d7042950891759db010a27c5a18ed2909.json deleted file mode 100644 index 7013b71318..0000000000 --- a/rust/cloud-storage/.sqlx/query-47fb0faaa3568c45ff7abcc6b1b1229d7042950891759db010a27c5a18ed2909.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT d.id\n FROM \"Document\" d\n WHERE d.\"deletedAt\" IS NOT NULL AND d.\"deletedAt\" <= $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Timestamp" - ] - }, - "nullable": [ - false - ] - }, - "hash": "47fb0faaa3568c45ff7abcc6b1b1229d7042950891759db010a27c5a18ed2909" -} diff --git a/rust/cloud-storage/.sqlx/query-4825133a0ea4f2d839f5976681269e6ad7a517fd29a3d2a7634cc655bf7f2bfb.json b/rust/cloud-storage/.sqlx/query-4825133a0ea4f2d839f5976681269e6ad7a517fd29a3d2a7634cc655bf7f2bfb.json deleted file mode 100644 index e9ccf34748..0000000000 --- a/rust/cloud-storage/.sqlx/query-4825133a0ea4f2d839f5976681269e6ad7a517fd29a3d2a7634cc655bf7f2bfb.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"entity_access\"\n WHERE entity_id = ANY($1) AND entity_type = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "Text" - ] - }, - "nullable": [] - }, - "hash": "4825133a0ea4f2d839f5976681269e6ad7a517fd29a3d2a7634cc655bf7f2bfb" -} diff --git a/rust/cloud-storage/.sqlx/query-48293aa40f783e58d4f49e2d0495255d70d2b790baa1bfb5397913d2a4b1dd8f.json b/rust/cloud-storage/.sqlx/query-48293aa40f783e58d4f49e2d0495255d70d2b790baa1bfb5397913d2a4b1dd8f.json deleted file mode 100644 index d5d5bbf1a9..0000000000 --- a/rust/cloud-storage/.sqlx/query-48293aa40f783e58d4f49e2d0495255d70d2b790baa1bfb5397913d2a4b1dd8f.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"OrganizationRetentionPolicy\" \n SET \"retention_days\" = $2\n WHERE \"organization_id\" = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int4", - "Int4" - ] - }, - "nullable": [] - }, - "hash": "48293aa40f783e58d4f49e2d0495255d70d2b790baa1bfb5397913d2a4b1dd8f" -} diff --git a/rust/cloud-storage/.sqlx/query-483f8f8ef068fb6394d5af8d06068d4463413d22894b6c6b72965f90d8ef0436.json b/rust/cloud-storage/.sqlx/query-483f8f8ef068fb6394d5af8d06068d4463413d22894b6c6b72965f90d8ef0436.json deleted file mode 100644 index 338983b3a7..0000000000 --- a/rust/cloud-storage/.sqlx/query-483f8f8ef068fb6394d5af8d06068d4463413d22894b6c6b72965f90d8ef0436.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM \"UserHistory\" WHERE \"userId\" = $1 AND \"itemId\" = $2 AND \"itemType\" = $3", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "483f8f8ef068fb6394d5af8d06068d4463413d22894b6c6b72965f90d8ef0436" -} diff --git a/rust/cloud-storage/.sqlx/query-4857541516ce135939f34754fde00c114cdf9ed7f203553020cf032732892e80.json b/rust/cloud-storage/.sqlx/query-4857541516ce135939f34754fde00c114cdf9ed7f203553020cf032732892e80.json deleted file mode 100644 index cb80ad13ca..0000000000 --- a/rust/cloud-storage/.sqlx/query-4857541516ce135939f34754fde00c114cdf9ed7f203553020cf032732892e80.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_links_history (id, link_id, fusionauth_user_id, email_address, provider, created_at)\n VALUES ($1, $2, $3, $4, $5, NOW())\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text", - "Varchar", - { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "4857541516ce135939f34754fde00c114cdf9ed7f203553020cf032732892e80" -} diff --git a/rust/cloud-storage/.sqlx/query-48697f17a7121986cc770d6698fbca7bf107ae20dbadbf64a7799ab162b2feb4.json b/rust/cloud-storage/.sqlx/query-48697f17a7121986cc770d6698fbca7bf107ae20dbadbf64a7799ab162b2feb4.json deleted file mode 100644 index 3fdea7e232..0000000000 --- a/rust/cloud-storage/.sqlx/query-48697f17a7121986cc770d6698fbca7bf107ae20dbadbf64a7799ab162b2feb4.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n un.user_id as owner_id,\n un.notification_id,\n n.event_item_id,\n n.event_item_type,\n un.sent,\n un.done,\n un.created_at::timestamptz as \"created_at!\",\n un.seen_at::timestamptz as viewed_at,\n un.created_at::timestamptz as \"updated_at!\",\n un.deleted_at::timestamptz,\n n.metadata as \"notification_metadata: serde_json::Value\",\n n.notification_event_type as notification_event_type,\n n.sender_id as sender_id\n FROM user_notification un\n JOIN notification n ON n.id = un.notification_id\n WHERE un.user_id = $1\n AND un.notification_id = $2\n AND un.deleted_at IS NULL\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "owner_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "notification_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "event_item_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "event_item_type", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "sent", - "type_info": "Bool" - }, - { - "ordinal": 5, - "name": "done", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "viewed_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "notification_metadata: serde_json::Value", - "type_info": "Jsonb" - }, - { - "ordinal": 11, - "name": "notification_event_type", - "type_info": "Varchar" - }, - { - "ordinal": 12, - "name": "sender_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - null, - null, - null, - null, - false, - false, - true - ] - }, - "hash": "48697f17a7121986cc770d6698fbca7bf107ae20dbadbf64a7799ab162b2feb4" -} diff --git a/rust/cloud-storage/.sqlx/query-48b369655e2258f40d38ab1352825be135e66c8215c051a56c7aa032b2abbd02.json b/rust/cloud-storage/.sqlx/query-48b369655e2258f40d38ab1352825be135e66c8215c051a56c7aa032b2abbd02.json deleted file mode 100644 index 8c77e4ca15..0000000000 --- a/rust/cloud-storage/.sqlx/query-48b369655e2258f40d38ab1352825be135e66c8215c051a56c7aa032b2abbd02.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ThreadAnchor\" (\"threadId\", \"anchorId\", \"anchorTableName\")\n VALUES ($1, $2, $3::\"anchor_table_name\")\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int8", - "Uuid", - { - "Custom": { - "name": "anchor_table_name", - "kind": { - "Enum": [ - "PdfPlaceableCommentAnchor", - "PdfHighlightAnchor" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "48b369655e2258f40d38ab1352825be135e66c8215c051a56c7aa032b2abbd02" -} diff --git a/rust/cloud-storage/.sqlx/query-48df79c41ba4ec7fa2454ac962aee9ff97875c9e2335b46fe13b2bbdee721186.json b/rust/cloud-storage/.sqlx/query-48df79c41ba4ec7fa2454ac962aee9ff97875c9e2335b46fe13b2bbdee721186.json deleted file mode 100644 index b38dcf84f8..0000000000 --- a/rust/cloud-storage/.sqlx/query-48df79c41ba4ec7fa2454ac962aee9ff97875c9e2335b46fe13b2bbdee721186.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT id, link_id, email_address, email_domain, is_important, created_at\n FROM email_filters\n WHERE link_id = $1\n ORDER BY created_at DESC", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "email_domain", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "is_important", - "type_info": "Bool" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - true, - true, - false, - false - ] - }, - "hash": "48df79c41ba4ec7fa2454ac962aee9ff97875c9e2335b46fe13b2bbdee721186" -} diff --git a/rust/cloud-storage/.sqlx/query-49044852c3fc5c0183d7253e27ec923e43d1d9abcfa5ad3fd714ce35c3c0e3f0.json b/rust/cloud-storage/.sqlx/query-49044852c3fc5c0183d7253e27ec923e43d1d9abcfa5ad3fd714ce35c3c0e3f0.json deleted file mode 100644 index 223773f5ff..0000000000 --- a/rust/cloud-storage/.sqlx/query-49044852c3fc5c0183d7253e27ec923e43d1d9abcfa5ad3fd714ce35c3c0e3f0.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT u.user_id\n FROM user_notification_item_unsubscribe u\n WHERE u.item_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "49044852c3fc5c0183d7253e27ec923e43d1d9abcfa5ad3fd714ce35c3c0e3f0" -} diff --git a/rust/cloud-storage/.sqlx/query-4942eda5f2d8832fc43c02a17aae1ec8ed06a16fc14ae6d4046eb75bc427fb69.json b/rust/cloud-storage/.sqlx/query-4942eda5f2d8832fc43c02a17aae1ec8ed06a16fc14ae6d4046eb75bc427fb69.json deleted file mode 100644 index b4e8c85aaf..0000000000 --- a/rust/cloud-storage/.sqlx/query-4942eda5f2d8832fc43c02a17aae1ec8ed06a16fc14ae6d4046eb75bc427fb69.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, macro_id, fusionauth_user_id as \"fusionauth_user_id: Uuid\", github_username, github_user_id, created_at, updated_at\n FROM github_links\n WHERE macro_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "github_username", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "github_user_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "4942eda5f2d8832fc43c02a17aae1ec8ed06a16fc14ae6d4046eb75bc427fb69" -} diff --git a/rust/cloud-storage/.sqlx/query-4948508d8a7862e5986502d9373c0b1a97e277c5c50d9f14dd86c121164b486b.json b/rust/cloud-storage/.sqlx/query-4948508d8a7862e5986502d9373c0b1a97e277c5c50d9f14dd86c121164b486b.json deleted file mode 100644 index afedbb4e78..0000000000 --- a/rust/cloud-storage/.sqlx/query-4948508d8a7862e5986502d9373c0b1a97e277c5c50d9f14dd86c121164b486b.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO crm_contact_sources (contact_id, link_id)\n VALUES ($1, $2)\n ON CONFLICT (contact_id, link_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "4948508d8a7862e5986502d9373c0b1a97e277c5c50d9f14dd86c121164b486b" -} diff --git a/rust/cloud-storage/.sqlx/query-4962707d2bc90c036ab1540db476ad45483ad784af4908660342b1c57f045095.json b/rust/cloud-storage/.sqlx/query-4962707d2bc90c036ab1540db476ad45483ad784af4908660342b1c57f045095.json deleted file mode 100644 index ac1dfe7b9e..0000000000 --- a/rust/cloud-storage/.sqlx/query-4962707d2bc90c036ab1540db476ad45483ad784af4908660342b1c57f045095.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, message_id, channel_id, entity_type, entity_id, width, height, created_at\n FROM comms_attachments\n WHERE message_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "entity_type", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "entity_id", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "width", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "height", - "type_info": "Int4" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true, - true, - false - ] - }, - "hash": "4962707d2bc90c036ab1540db476ad45483ad784af4908660342b1c57f045095" -} diff --git a/rust/cloud-storage/.sqlx/query-49b6375ff01eeccbeecacee87258d2b4c354daa345b9c838adc1fadbc6a1cbb5.json b/rust/cloud-storage/.sqlx/query-49b6375ff01eeccbeecacee87258d2b4c354daa345b9c838adc1fadbc6a1cbb5.json deleted file mode 100644 index 32e2bdf85e..0000000000 --- a/rust/cloud-storage/.sqlx/query-49b6375ff01eeccbeecacee87258d2b4c354daa345b9c838adc1fadbc6a1cbb5.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT location\n FROM \"UserDocumentViewLocation\"\n WHERE user_id = $1 AND document_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "location", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "49b6375ff01eeccbeecacee87258d2b4c354daa345b9c838adc1fadbc6a1cbb5" -} diff --git a/rust/cloud-storage/.sqlx/query-49cbada51408e2501723f7a1de4e170efcab0fcd922e2c5a79772256c1e51baa.json b/rust/cloud-storage/.sqlx/query-49cbada51408e2501723f7a1de4e170efcab0fcd922e2c5a79772256c1e51baa.json deleted file mode 100644 index 08ee66140d..0000000000 --- a/rust/cloud-storage/.sqlx/query-49cbada51408e2501723f7a1de4e170efcab0fcd922e2c5a79772256c1e51baa.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_messages\n SET\n is_draft = $1,\n updated_at = NOW()\n WHERE\n id = $2\n AND link_id = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Bool", - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "49cbada51408e2501723f7a1de4e170efcab0fcd922e2c5a79772256c1e51baa" -} diff --git a/rust/cloud-storage/.sqlx/query-4a02aab26f16872fc4f19617011e4dc054b233dea57f9c78a4f2ba5b19284f62.json b/rust/cloud-storage/.sqlx/query-4a02aab26f16872fc4f19617011e4dc054b233dea57f9c78a4f2ba5b19284f62.json deleted file mode 100644 index 9b18331876..0000000000 --- a/rust/cloud-storage/.sqlx/query-4a02aab26f16872fc4f19617011e4dc054b233dea57f9c78a4f2ba5b19284f62.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n oi.email\n FROM \"OrganizationInvitation\" oi\n WHERE oi.organization_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int4" - ] - }, - "nullable": [ - false - ] - }, - "hash": "4a02aab26f16872fc4f19617011e4dc054b233dea57f9c78a4f2ba5b19284f62" -} diff --git a/rust/cloud-storage/.sqlx/query-4a158c278c77c87d5394e9cf1166ceff6eead17cf856cf45a6a49896626b6bdf.json b/rust/cloud-storage/.sqlx/query-4a158c278c77c87d5394e9cf1166ceff6eead17cf856cf45a6a49896626b6bdf.json deleted file mode 100644 index 42a00e0acb..0000000000 --- a/rust/cloud-storage/.sqlx/query-4a158c278c77c87d5394e9cf1166ceff6eead17cf856cf45a6a49896626b6bdf.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE scheduled_action\n SET next_run_at = $1, updated_at = now()\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Timestamptz", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "4a158c278c77c87d5394e9cf1166ceff6eead17cf856cf45a6a49896626b6bdf" -} diff --git a/rust/cloud-storage/.sqlx/query-4a8b04d2fa922cd2f007241f83d6ad7e4dbcb5e7f6b0560316ca474878971e63.json b/rust/cloud-storage/.sqlx/query-4a8b04d2fa922cd2f007241f83d6ad7e4dbcb5e7f6b0560316ca474878971e63.json deleted file mode 100644 index c905db25bd..0000000000 --- a/rust/cloud-storage/.sqlx/query-4a8b04d2fa922cd2f007241f83d6ad7e4dbcb5e7f6b0560316ca474878971e63.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, macro_id, fusionauth_user_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at\n FROM email_links\n WHERE fusionauth_user_id = $1 AND email_address = $2 AND provider = $3\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "provider: _", - "type_info": { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_sync_active", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "4a8b04d2fa922cd2f007241f83d6ad7e4dbcb5e7f6b0560316ca474878971e63" -} diff --git a/rust/cloud-storage/.sqlx/query-4aeb58db6713bcb7ba53c394a0cde88693c45f2184b1d9553a9baa36cbef6380.json b/rust/cloud-storage/.sqlx/query-4aeb58db6713bcb7ba53c394a0cde88693c45f2184b1d9553a9baa36cbef6380.json deleted file mode 100644 index 259b042985..0000000000 --- a/rust/cloud-storage/.sqlx/query-4aeb58db6713bcb7ba53c394a0cde88693c45f2184b1d9553a9baa36cbef6380.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT link_id, contacts_sync_token, other_contacts_sync_token\n FROM email_sync_tokens\n WHERE link_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "contacts_sync_token", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "other_contacts_sync_token", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - true - ] - }, - "hash": "4aeb58db6713bcb7ba53c394a0cde88693c45f2184b1d9553a9baa36cbef6380" -} diff --git a/rust/cloud-storage/.sqlx/query-4aff42ef43f7b7ef454cc331d2e96f3fc28bd7c823b9eb181eb0c9fba7635c37.json b/rust/cloud-storage/.sqlx/query-4aff42ef43f7b7ef454cc331d2e96f3fc28bd7c823b9eb181eb0c9fba7635c37.json deleted file mode 100644 index 223860f0ff..0000000000 --- a/rust/cloud-storage/.sqlx/query-4aff42ef43f7b7ef454cc331d2e96f3fc28bd7c823b9eb181eb0c9fba7635c37.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT message_id, emoji, user_id\n FROM comms_reactions\n WHERE message_id = ANY($1)\n ORDER BY created_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "emoji", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "4aff42ef43f7b7ef454cc331d2e96f3fc28bd7c823b9eb181eb0c9fba7635c37" -} diff --git a/rust/cloud-storage/.sqlx/query-4b483617cc20e22761392cb54e682762a83c3dbeec3eacfeaadae1ca8aff376c.json b/rust/cloud-storage/.sqlx/query-4b483617cc20e22761392cb54e682762a83c3dbeec3eacfeaadae1ca8aff376c.json deleted file mode 100644 index 70a5865537..0000000000 --- a/rust/cloud-storage/.sqlx/query-4b483617cc20e22761392cb54e682762a83c3dbeec3eacfeaadae1ca8aff376c.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, username, stripe_customer_id\n FROM macro_user\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "username", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "stripe_customer_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "4b483617cc20e22761392cb54e682762a83c3dbeec3eacfeaadae1ca8aff376c" -} diff --git a/rust/cloud-storage/.sqlx/query-4b75a017d1bfeb600d0b75c58220b27c51a57253d0d82c55793eb5b0852d476f.json b/rust/cloud-storage/.sqlx/query-4b75a017d1bfeb600d0b75c58220b27c51a57253d0d82c55793eb5b0852d476f.json deleted file mode 100644 index a8c8857eae..0000000000 --- a/rust/cloud-storage/.sqlx/query-4b75a017d1bfeb600d0b75c58220b27c51a57253d0d82c55793eb5b0852d476f.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_contacts\n SET name = data.name, updated_at = now()\n FROM (SELECT unnest($1::uuid[]) as id, unnest($2::text[]) as name) as data\n WHERE email_contacts.id = data.id\n AND email_contacts.name IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "4b75a017d1bfeb600d0b75c58220b27c51a57253d0d82c55793eb5b0852d476f" -} diff --git a/rust/cloud-storage/.sqlx/query-4bce30abb40ab058dd6e4681f28e4e0761b29a596122af48beb1a062bd157844.json b/rust/cloud-storage/.sqlx/query-4bce30abb40ab058dd6e4681f28e4e0761b29a596122af48beb1a062bd157844.json deleted file mode 100644 index 4a8318f952..0000000000 --- a/rust/cloud-storage/.sqlx/query-4bce30abb40ab058dd6e4681f28e4e0761b29a596122af48beb1a062bd157844.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n a.user_id as \"user_id!: String\",\n a.updated_at\n FROM comms_activity a\n WHERE channel_id = $1 AND user_id = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id!: String", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "updated_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "4bce30abb40ab058dd6e4681f28e4e0761b29a596122af48beb1a062bd157844" -} diff --git a/rust/cloud-storage/.sqlx/query-4be607458d6cc823fa5a692842b502b405bd0e971be8425d4573846beadb6bf3.json b/rust/cloud-storage/.sqlx/query-4be607458d6cc823fa5a692842b502b405bd0e971be8425d4573846beadb6bf3.json deleted file mode 100644 index b502f33690..0000000000 --- a/rust/cloud-storage/.sqlx/query-4be607458d6cc823fa5a692842b502b405bd0e971be8425d4573846beadb6bf3.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Project\" (\"name\", \"userId\", \"parentId\", \"createdAt\", \"updatedAt\", \"uploadPending\", \"uploadRequestId\")\n VALUES ($1, $2, $3, NOW(), NOW(), TRUE, $4)\n RETURNING id, name, \"userId\"::text as user_id, \"createdAt\"::timestamptz as created_at, \"deletedAt\"::timestamptz as deleted_at,\n \"updatedAt\"::timestamptz as updated_at, \"parentId\" as parent_id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "parent_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - null, - null, - null, - true - ] - }, - "hash": "4be607458d6cc823fa5a692842b502b405bd0e971be8425d4573846beadb6bf3" -} diff --git a/rust/cloud-storage/.sqlx/query-4beff28bd0fc4ab7fbe74078b14f100a55cf2bb037ec171c3bcc8650edd73548.json b/rust/cloud-storage/.sqlx/query-4beff28bd0fc4ab7fbe74078b14f100a55cf2bb037ec171c3bcc8650edd73548.json deleted file mode 100644 index 966f64c84d..0000000000 --- a/rust/cloud-storage/.sqlx/query-4beff28bd0fc4ab7fbe74078b14f100a55cf2bb037ec171c3bcc8650edd73548.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"account_merge_request\" (id, macro_user_id, to_merge_macro_user_id, code, created_at)\n VALUES ($1, $2, $3, $4, NOW())\n RETURNING \"code\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "code", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "4beff28bd0fc4ab7fbe74078b14f100a55cf2bb037ec171c3bcc8650edd73548" -} diff --git a/rust/cloud-storage/.sqlx/query-4c11c2c42479bad0cd549ab31c1dcb90b605b55480a604c4e047c450b5ab433f.json b/rust/cloud-storage/.sqlx/query-4c11c2c42479bad0cd549ab31c1dcb90b605b55480a604c4e047c450b5ab433f.json deleted file mode 100644 index c5070fa577..0000000000 --- a/rust/cloud-storage/.sqlx/query-4c11c2c42479bad0cd549ab31c1dcb90b605b55480a604c4e047c450b5ab433f.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Document\" d\n LEFT JOIN \"DocumentText\" dt ON d.id = dt.\"documentId\"\n WHERE d.\"deletedAt\" IS NULL\n AND dt.\"documentId\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - null - ] - }, - "hash": "4c11c2c42479bad0cd549ab31c1dcb90b605b55480a604c4e047c450b5ab433f" -} diff --git a/rust/cloud-storage/.sqlx/query-4c8f1c99fe7ca583e05b4ef8aba08d4fdf58135dc3e99ed73381a29f94b8a270.json b/rust/cloud-storage/.sqlx/query-4c8f1c99fe7ca583e05b4ef8aba08d4fdf58135dc3e99ed73381a29f94b8a270.json deleted file mode 100644 index ca98651009..0000000000 --- a/rust/cloud-storage/.sqlx/query-4c8f1c99fe7ca583e05b4ef8aba08d4fdf58135dc3e99ed73381a29f94b8a270.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT team_id\n FROM team_user\n WHERE user_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "team_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "4c8f1c99fe7ca583e05b4ef8aba08d4fdf58135dc3e99ed73381a29f94b8a270" -} diff --git a/rust/cloud-storage/.sqlx/query-4c9cd8085118a9ee2076c12a09f4e41c9e9d93550acd5c691de63e313a5c9b54.json b/rust/cloud-storage/.sqlx/query-4c9cd8085118a9ee2076c12a09f4e41c9e9d93550acd5c691de63e313a5c9b54.json deleted file mode 100644 index 3b9dad77be..0000000000 --- a/rust/cloud-storage/.sqlx/query-4c9cd8085118a9ee2076c12a09f4e41c9e9d93550acd5c691de63e313a5c9b54.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n LOWER(c.email_address) AS \"email!\",\n c.name AS \"name\",\n MIN(m.internal_date_ts) AS \"first_at!\",\n MAX(m.internal_date_ts) AS \"last_at!\"\n FROM email_messages m\n JOIN email_message_recipients r ON r.message_id = m.id\n JOIN email_contacts c ON c.id = r.contact_id\n WHERE m.link_id = $1\n AND m.is_sent = true\n AND m.internal_date_ts IS NOT NULL\n GROUP BY LOWER(c.email_address), c.name\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "first_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "last_at!", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null, - true, - null, - null - ] - }, - "hash": "4c9cd8085118a9ee2076c12a09f4e41c9e9d93550acd5c691de63e313a5c9b54" -} diff --git a/rust/cloud-storage/.sqlx/query-4ca8409d9a2c8bf1634c3b1543e02daa92a5a01f2ad46d8124e0568ce8b17073.json b/rust/cloud-storage/.sqlx/query-4ca8409d9a2c8bf1634c3b1543e02daa92a5a01f2ad46d8124e0568ce8b17073.json deleted file mode 100644 index e71deba787..0000000000 --- a/rust/cloud-storage/.sqlx/query-4ca8409d9a2c8bf1634c3b1543e02daa92a5a01f2ad46d8124e0568ce8b17073.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Document\" d\n WHERE d.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - null - ] - }, - "hash": "4ca8409d9a2c8bf1634c3b1543e02daa92a5a01f2ad46d8124e0568ce8b17073" -} diff --git a/rust/cloud-storage/.sqlx/query-4cc88f2a38cb0722282ef262adefd9fcb0d4778c5dc308720710e8f5e9995911.json b/rust/cloud-storage/.sqlx/query-4cc88f2a38cb0722282ef262adefd9fcb0d4778c5dc308720710e8f5e9995911.json deleted file mode 100644 index e243f96402..0000000000 --- a/rust/cloud-storage/.sqlx/query-4cc88f2a38cb0722282ef262adefd9fcb0d4778c5dc308720710e8f5e9995911.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n mr.message_id,\n c.email_address,\n COALESCE(mr.name, c.name) as \"name\",\n c.sfs_photo_url,\n mr.recipient_type as \"recipient_type!: DbRecipientType\"\n FROM email_messages m\n JOIN email_message_recipients mr ON m.id = mr.message_id\n JOIN email_contacts c ON mr.contact_id = c.id\n WHERE m.id = ANY($1)\n ORDER BY mr.message_id, mr.recipient_type\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "sfs_photo_url", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "recipient_type!: DbRecipientType", - "type_info": { - "Custom": { - "name": "email_recipient_type", - "kind": { - "Enum": [ - "TO", - "CC", - "BCC" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - null, - true, - false - ] - }, - "hash": "4cc88f2a38cb0722282ef262adefd9fcb0d4778c5dc308720710e8f5e9995911" -} diff --git a/rust/cloud-storage/.sqlx/query-4d0f38e351a6a9b4a559ae4df808653289e7abb1719b58fd0a4d7e8f6cedb423.json b/rust/cloud-storage/.sqlx/query-4d0f38e351a6a9b4a559ae4df808653289e7abb1719b58fd0a4d7e8f6cedb423.json deleted file mode 100644 index c04f432a08..0000000000 --- a/rust/cloud-storage/.sqlx/query-4d0f38e351a6a9b4a559ae4df808653289e7abb1719b58fd0a4d7e8f6cedb423.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"ChatMessage\"\n WHERE id = $1\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "4d0f38e351a6a9b4a559ae4df808653289e7abb1719b58fd0a4d7e8f6cedb423" -} diff --git a/rust/cloud-storage/.sqlx/query-4d4c2b67879a26c0ad31c817024f3e6bec03dc90a97d3082614d72ad35e6f5d7.json b/rust/cloud-storage/.sqlx/query-4d4c2b67879a26c0ad31c817024f3e6bec03dc90a97d3082614d72ad35e6f5d7.json deleted file mode 100644 index 82c45ef9d9..0000000000 --- a/rust/cloud-storage/.sqlx/query-4d4c2b67879a26c0ad31c817024f3e6bec03dc90a97d3082614d72ad35e6f5d7.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO call_records (id, channel_id, room_name, created_by, started_at, ended_at, duration_ms, egress_id, recording_key, preview_url, recording_started_at, share_permission_id, share_with_team)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text", - "Text", - "Timestamptz", - "Timestamptz", - "Int8", - "Text", - "Text", - "Text", - "Timestamptz", - "Text", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "4d4c2b67879a26c0ad31c817024f3e6bec03dc90a97d3082614d72ad35e6f5d7" -} diff --git a/rust/cloud-storage/.sqlx/query-4d82dec72e255478981441dc566b2fc4fc9f5d61726741284b1301af69517705.json b/rust/cloud-storage/.sqlx/query-4d82dec72e255478981441dc566b2fc4fc9f5d61726741284b1301af69517705.json deleted file mode 100644 index ba05826e24..0000000000 --- a/rust/cloud-storage/.sqlx/query-4d82dec72e255478981441dc566b2fc4fc9f5d61726741284b1301af69517705.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_backfill_jobs\n SET total_threads = $1, updated_at = now()\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int4", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "4d82dec72e255478981441dc566b2fc4fc9f5d61726741284b1301af69517705" -} diff --git a/rust/cloud-storage/.sqlx/query-4dcee20753a8996e6dfab48fc0dcb6ab0ea074976d13639ccc6d6932f79fae13.json b/rust/cloud-storage/.sqlx/query-4dcee20753a8996e6dfab48fc0dcb6ab0ea074976d13639ccc6d6932f79fae13.json deleted file mode 100644 index c1dc3557e2..0000000000 --- a/rust/cloud-storage/.sqlx/query-4dcee20753a8996e6dfab48fc0dcb6ab0ea074976d13639ccc6d6932f79fae13.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT c.owner\n FROM crm_comment c\n JOIN crm_thread t ON t.id = c.thread_id\n WHERE c.id = $1\n AND c.deleted_at IS NULL\n AND (\n EXISTS (\n SELECT 1 FROM crm_companies co\n WHERE co.id = t.company_id\n AND co.team_id = $2\n AND ($3 OR co.hidden = FALSE)\n )\n OR EXISTS (\n SELECT 1 FROM crm_contacts ct\n JOIN crm_companies co2 ON co2.id = ct.company_id\n WHERE ct.id = t.contact_id\n AND co2.team_id = $2\n AND ($3 OR (ct.hidden = FALSE AND co2.hidden = FALSE))\n )\n )\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "owner", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Bool" - ] - }, - "nullable": [ - false - ] - }, - "hash": "4dcee20753a8996e6dfab48fc0dcb6ab0ea074976d13639ccc6d6932f79fae13" -} diff --git a/rust/cloud-storage/.sqlx/query-4dd84a2e543e14d4ed1655a0895eab7815948fcad38c5ce05925ebc4a5ebea69.json b/rust/cloud-storage/.sqlx/query-4dd84a2e543e14d4ed1655a0895eab7815948fcad38c5ce05925ebc4a5ebea69.json deleted file mode 100644 index dfc668e9a2..0000000000 --- a/rust/cloud-storage/.sqlx/query-4dd84a2e543e14d4ed1655a0895eab7815948fcad38c5ce05925ebc4a5ebea69.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT link_id, message_id, send_time, sent, processing\n FROM email_scheduled_messages\n WHERE link_id = $1 AND message_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "send_time", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "sent", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "processing", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false - ] - }, - "hash": "4dd84a2e543e14d4ed1655a0895eab7815948fcad38c5ce05925ebc4a5ebea69" -} diff --git a/rust/cloud-storage/.sqlx/query-4e096eb7d3c507e3647685073fba7b3f36ef0e70c887db31f5cc5a8eb8ee1844.json b/rust/cloud-storage/.sqlx/query-4e096eb7d3c507e3647685073fba7b3f36ef0e70c887db31f5cc5a8eb8ee1844.json deleted file mode 100644 index 55fcda1121..0000000000 --- a/rust/cloud-storage/.sqlx/query-4e096eb7d3c507e3647685073fba7b3f36ef0e70c887db31f5cc5a8eb8ee1844.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM user_notification\n WHERE user_id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "4e096eb7d3c507e3647685073fba7b3f36ef0e70c887db31f5cc5a8eb8ee1844" -} diff --git a/rust/cloud-storage/.sqlx/query-4e188b522b313eaf51caac616fe177abfe97c6ce6291ba8f83148ba02eaead73.json b/rust/cloud-storage/.sqlx/query-4e188b522b313eaf51caac616fe177abfe97c6ce6291ba8f83148ba02eaead73.json deleted file mode 100644 index 6908ba7727..0000000000 --- a/rust/cloud-storage/.sqlx/query-4e188b522b313eaf51caac616fe177abfe97c6ce6291ba8f83148ba02eaead73.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as entity_id,\n d.name,\n regexp_replace(\n d.name,\n $6,\n '\\1',\n 'gi'\n ) as name_highlighted,\n d.\"updatedAt\" as updated_at\n FROM \"Document\" d\n WHERE d.id = ANY($1)\n AND d.\"deletedAt\" IS NULL\n AND d.name ILIKE $2\n AND (\n $4::timestamptz IS NULL\n OR (d.\"updatedAt\", d.id) < ($4, $5)\n )\n ORDER BY d.\"updatedAt\" DESC, d.id DESC\n LIMIT $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name_highlighted", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "updated_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "TextArray", - "Text", - "Int8", - "Timestamptz", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - null, - false - ] - }, - "hash": "4e188b522b313eaf51caac616fe177abfe97c6ce6291ba8f83148ba02eaead73" -} diff --git a/rust/cloud-storage/.sqlx/query-4e6737a5a777280784037e88ccdda4e6e89dae702e5b50269db6e17265d14643.json b/rust/cloud-storage/.sqlx/query-4e6737a5a777280784037e88ccdda4e6e89dae702e5b50269db6e17265d14643.json deleted file mode 100644 index df6dc3c263..0000000000 --- a/rust/cloud-storage/.sqlx/query-4e6737a5a777280784037e88ccdda4e6e89dae702e5b50269db6e17265d14643.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n m.channel_id AS \"channel_id: uuid::Uuid\",\n c.name AS \"channel_name?\", -- Option\n m.id AS \"message_id: uuid::Uuid\",\n m.thread_id AS \"thread_id?: uuid::Uuid\",\n m.sender_id AS \"sender_id!\", -- String\n m.content AS \"message_content!\", -- String\n m.created_at AS \"message_created_at!: chrono::DateTime\",\n em.created_at AS \"attachment_created_at!: chrono::DateTime\"\n FROM comms_entity_mentions em\n JOIN comms_messages m ON (em.source_entity_id = m.id::text AND em.source_entity_type = 'message')\n JOIN comms_channels c ON m.channel_id = c.id\n JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE em.entity_type = $1\n AND em.entity_id = $2\n AND cp.user_id = $3\n AND cp.left_at IS NULL\n AND m.deleted_at IS NULL\n ORDER BY em.created_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_name?", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "message_id: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "thread_id?: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "sender_id!", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "message_content!", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "message_created_at!: chrono::DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "attachment_created_at!: chrono::DateTime", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text" - ] - }, - "nullable": [ - false, - true, - false, - true, - false, - false, - false, - false - ] - }, - "hash": "4e6737a5a777280784037e88ccdda4e6e89dae702e5b50269db6e17265d14643" -} diff --git a/rust/cloud-storage/.sqlx/query-4e9e26869da9b5473f0876a70c68dd69f6539902e580bdeaeaabdbf4d72793ef.json b/rust/cloud-storage/.sqlx/query-4e9e26869da9b5473f0876a70c68dd69f6539902e580bdeaeaabdbf4d72793ef.json deleted file mode 100644 index ad1c3e2279..0000000000 --- a/rust/cloud-storage/.sqlx/query-4e9e26869da9b5473f0876a70c68dd69f6539902e580bdeaeaabdbf4d72793ef.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Chat\" SET \"projectId\" = NULL WHERE \"id\" = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "4e9e26869da9b5473f0876a70c68dd69f6539902e580bdeaeaabdbf4d72793ef" -} diff --git a/rust/cloud-storage/.sqlx/query-4eb050dbd9d68aa914696bdf5c03315c56e84c969498cb55c34bd93d937dd924.json b/rust/cloud-storage/.sqlx/query-4eb050dbd9d68aa914696bdf5c03315c56e84c969498cb55c34bd93d937dd924.json deleted file mode 100644 index 8629eccbfd..0000000000 --- a/rust/cloud-storage/.sqlx/query-4eb050dbd9d68aa914696bdf5c03315c56e84c969498cb55c34bd93d937dd924.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"macro_user\" WHERE \"id\" = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "4eb050dbd9d68aa914696bdf5c03315c56e84c969498cb55c34bd93d937dd924" -} diff --git a/rust/cloud-storage/.sqlx/query-4eef29ad204776f70531f685f709f4e18f2b4f992d73ad2b608b77869a7856a9.json b/rust/cloud-storage/.sqlx/query-4eef29ad204776f70531f685f709f4e18f2b4f992d73ad2b608b77869a7856a9.json deleted file mode 100644 index 0d82c0646c..0000000000 --- a/rust/cloud-storage/.sqlx/query-4eef29ad204776f70531f685f709f4e18f2b4f992d73ad2b608b77869a7856a9.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n property_definition_id,\n display_order,\n string_value,\n number_value\n FROM property_options\n WHERE property_definition_id = ANY($1)\n ORDER BY display_order\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "property_definition_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "display_order", - "type_info": "Int4" - }, - { - "ordinal": 3, - "name": "string_value", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "number_value", - "type_info": "Float8" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - true, - true - ] - }, - "hash": "4eef29ad204776f70531f685f709f4e18f2b4f992d73ad2b608b77869a7856a9" -} diff --git a/rust/cloud-storage/.sqlx/query-4fba8b3d9705b745d4e20a4da319ad7cdfe99f883f0e27a402545ce0b3557ed1.json b/rust/cloud-storage/.sqlx/query-4fba8b3d9705b745d4e20a4da319ad7cdfe99f883f0e27a402545ce0b3557ed1.json deleted file mode 100644 index 098f13951c..0000000000 --- a/rust/cloud-storage/.sqlx/query-4fba8b3d9705b745d4e20a4da319ad7cdfe99f883f0e27a402545ce0b3557ed1.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.replying_to_id,\n m.provider_history_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n NULL::TEXT as body_text,\n NULL::TEXT as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n JOIN email_links l ON m.link_id = l.id\n WHERE m.id = $1 AND l.fusionauth_user_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 21, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 22, - "name": "body_macro", - "type_info": "Text" - }, - { - "ordinal": 23, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 24, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 25, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - null, - null, - null, - true, - false, - false - ] - }, - "hash": "4fba8b3d9705b745d4e20a4da319ad7cdfe99f883f0e27a402545ce0b3557ed1" -} diff --git a/rust/cloud-storage/.sqlx/query-4fd61bd738465d867065c6cf22fd4c322073f31bf3123cf8504bac3ac225191b.json b/rust/cloud-storage/.sqlx/query-4fd61bd738465d867065c6cf22fd4c322073f31bf3123cf8504bac3ac225191b.json deleted file mode 100644 index ee973b2f6e..0000000000 --- a/rust/cloud-storage/.sqlx/query-4fd61bd738465d867065c6cf22fd4c322073f31bf3123cf8504bac3ac225191b.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.replying_to_id, \n m.provider_history_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n NULL::TEXT as body_text,\n NULL::TEXT as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n WHERE m.provider_id = $1 AND m.link_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 21, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 22, - "name": "body_macro", - "type_info": "Text" - }, - { - "ordinal": 23, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 24, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 25, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - null, - null, - null, - true, - false, - false - ] - }, - "hash": "4fd61bd738465d867065c6cf22fd4c322073f31bf3123cf8504bac3ac225191b" -} diff --git a/rust/cloud-storage/.sqlx/query-4febc8d1902ceb02cc22d1bf9d9f1ebd8a471c3b0e6e4016de97a8fbfd1288b7.json b/rust/cloud-storage/.sqlx/query-4febc8d1902ceb02cc22d1bf9d9f1ebd8a471c3b0e6e4016de97a8fbfd1288b7.json deleted file mode 100644 index ab86a1c245..0000000000 --- a/rust/cloud-storage/.sqlx/query-4febc8d1902ceb02cc22d1bf9d9f1ebd8a471c3b0e6e4016de97a8fbfd1288b7.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentView\" (\"document_id\", \"user_id\", \"created_at\")\n VALUES ($1, $2, NOW())\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "4febc8d1902ceb02cc22d1bf9d9f1ebd8a471c3b0e6e4016de97a8fbfd1288b7" -} diff --git a/rust/cloud-storage/.sqlx/query-500452d6337cfbc2d9a919268021835385045e45c20aaba40ed940cf3f25a07a.json b/rust/cloud-storage/.sqlx/query-500452d6337cfbc2d9a919268021835385045e45c20aaba40ed940cf3f25a07a.json deleted file mode 100644 index 494c00db71..0000000000 --- a/rust/cloud-storage/.sqlx/query-500452d6337cfbc2d9a919268021835385045e45c20aaba40ed940cf3f25a07a.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id, \n team_role as \"team_role!: TeamRole\"\n FROM team_user\n WHERE team_id = $1\n AND user_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "team_role!: TeamRole", - "type_info": { - "Custom": { - "name": "team_role", - "kind": { - "Enum": [ - "member", - "admin", - "owner" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "500452d6337cfbc2d9a919268021835385045e45c20aaba40ed940cf3f25a07a" -} diff --git a/rust/cloud-storage/.sqlx/query-500f0b56eb070f7bb2a4ea9a95337f7074464d19fc6646401072914709be353e.json b/rust/cloud-storage/.sqlx/query-500f0b56eb070f7bb2a4ea9a95337f7074464d19fc6646401072914709be353e.json deleted file mode 100644 index 840766dcab..0000000000 --- a/rust/cloud-storage/.sqlx/query-500f0b56eb070f7bb2a4ea9a95337f7074464d19fc6646401072914709be353e.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.provider_history_id,\n m.replying_to_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n m.body_text as body_text,\n m.body_html_sanitized as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n JOIN email_links l ON m.link_id = l.id\n WHERE m.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 21, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 22, - "name": "body_macro", - "type_info": "Text" - }, - { - "ordinal": 23, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 24, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 25, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - true, - true, - null, - true, - false, - false - ] - }, - "hash": "500f0b56eb070f7bb2a4ea9a95337f7074464d19fc6646401072914709be353e" -} diff --git a/rust/cloud-storage/.sqlx/query-50318d6d13fb931307f2115b33d277b5298c45ed798719e792e722bd30615a95.json b/rust/cloud-storage/.sqlx/query-50318d6d13fb931307f2115b33d277b5298c45ed798719e792e722bd30615a95.json deleted file mode 100644 index 7a4d0490be..0000000000 --- a/rust/cloud-storage/.sqlx/query-50318d6d13fb931307f2115b33d277b5298c45ed798719e792e722bd30615a95.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, macro_id, fusionauth_user_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at\n FROM email_links\n WHERE macro_id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "provider: _", - "type_info": { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_sync_active", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "50318d6d13fb931307f2115b33d277b5298c45ed798719e792e722bd30615a95" -} diff --git a/rust/cloud-storage/.sqlx/query-504e516996c2c65d7b2d7c47bdc5fbab6644ddd99a4913bc05ffd713f0c4ad5b.json b/rust/cloud-storage/.sqlx/query-504e516996c2c65d7b2d7c47bdc5fbab6644ddd99a4913bc05ffd713f0c4ad5b.json deleted file mode 100644 index 59020de757..0000000000 --- a/rust/cloud-storage/.sqlx/query-504e516996c2c65d7b2d7c47bdc5fbab6644ddd99a4913bc05ffd713f0c4ad5b.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE crm_thread\n SET updated_at = now(), metadata = COALESCE($2, metadata)\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Jsonb" - ] - }, - "nullable": [] - }, - "hash": "504e516996c2c65d7b2d7c47bdc5fbab6644ddd99a4913bc05ffd713f0c4ad5b" -} diff --git a/rust/cloud-storage/.sqlx/query-506f7fbc61e5c2b0caedcc8ca1af001b1da7b88bcd175929f42b88146d4707f8.json b/rust/cloud-storage/.sqlx/query-506f7fbc61e5c2b0caedcc8ca1af001b1da7b88bcd175929f42b88146d4707f8.json deleted file mode 100644 index b0dbe81774..0000000000 --- a/rust/cloud-storage/.sqlx/query-506f7fbc61e5c2b0caedcc8ca1af001b1da7b88bcd175929f42b88146d4707f8.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n a.channel_id AS \"channel_id: uuid::Uuid\",\n c.name AS \"channel_name?\", -- Option\n a.message_id AS \"message_id: uuid::Uuid\",\n m.thread_id AS \"thread_id?: uuid::Uuid\",\n m.sender_id AS \"sender_id!\", -- String\n m.content AS \"message_content!\", -- String\n m.created_at AS \"message_created_at!: chrono::DateTime\",\n a.created_at AS \"attachment_created_at!: chrono::DateTime\"\n FROM comms_attachments a\n JOIN comms_messages m ON a.message_id = m.id\n JOIN comms_channels c ON a.channel_id = c.id\n JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE a.entity_type = $1\n AND a.entity_id = $2\n AND cp.user_id = $3\n AND cp.left_at IS NULL\n AND m.deleted_at IS NULL\n ORDER BY a.created_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_name?", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "message_id: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "thread_id?: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "sender_id!", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "message_content!", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "message_created_at!: chrono::DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "attachment_created_at!: chrono::DateTime", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text" - ] - }, - "nullable": [ - false, - true, - false, - true, - false, - false, - false, - false - ] - }, - "hash": "506f7fbc61e5c2b0caedcc8ca1af001b1da7b88bcd175929f42b88146d4707f8" -} diff --git a/rust/cloud-storage/.sqlx/query-514af45f8facfb915211cc9b0a92991b831dc11f9ab91d92b368340fa0aa8f8f.json b/rust/cloud-storage/.sqlx/query-514af45f8facfb915211cc9b0a92991b831dc11f9ab91d92b368340fa0aa8f8f.json deleted file mode 100644 index 877c7bc78a..0000000000 --- a/rust/cloud-storage/.sqlx/query-514af45f8facfb915211cc9b0a92991b831dc11f9ab91d92b368340fa0aa8f8f.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"DocumentPermission\"\n WHERE \"sharePermissionId\" = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "514af45f8facfb915211cc9b0a92991b831dc11f9ab91d92b368340fa0aa8f8f" -} diff --git a/rust/cloud-storage/.sqlx/query-5183d95583de1d3aa5cb183c528a2ea768622c3b189ffa6664c15669f7d78b90.json b/rust/cloud-storage/.sqlx/query-5183d95583de1d3aa5cb183c528a2ea768622c3b189ffa6664c15669f7d78b90.json deleted file mode 100644 index 3c5f804ed2..0000000000 --- a/rust/cloud-storage/.sqlx/query-5183d95583de1d3aa5cb183c528a2ea768622c3b189ffa6664c15669f7d78b90.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as document_id,\n d.owner as owner,\n d.name as document_name,\n db.id as \"document_version_id!\",\n d.\"fileType\" as \"file_type?\",\n d.\"createdAt\"::timestamptz as created_at,\n d.\"updatedAt\"::timestamptz as updated_at,\n db.bom_parts as \"document_bom?\",\n d.\"projectId\" as \"project_id?\",\n p.name as \"project_name?\"\n FROM\n \"Document\" d\n LEFT JOIN LATERAL (\n SELECT\n b.id,\n (\n SELECT\n json_agg(\n json_build_object(\n 'id', bp.id,\n 'sha', bp.sha,\n 'path', bp.path\n )\n )\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = b.id\n ) as bom_parts\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT\n p.name\n FROM \"Project\" p\n WHERE p.id = d.\"projectId\"\n ) p ON d.\"projectId\" IS NOT NULL\n WHERE d.\"fileType\" = 'docx' AND d.\"deletedAt\" IS NULL AND d.uploaded = true\n ORDER BY d.\"updatedAt\" DESC\n LIMIT $1 OFFSET $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "document_version_id!", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "file_type?", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "document_bom?", - "type_info": "Json" - }, - { - "ordinal": 8, - "name": "project_id?", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "project_name?", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - false, - true, - null, - null, - null, - true, - false - ] - }, - "hash": "5183d95583de1d3aa5cb183c528a2ea768622c3b189ffa6664c15669f7d78b90" -} diff --git a/rust/cloud-storage/.sqlx/query-51873bdb08381231f01403f4e58bb5f5d73338d8cb9ec96c67fd8d6ea4746970.json b/rust/cloud-storage/.sqlx/query-51873bdb08381231f01403f4e58bb5f5d73338d8cb9ec96c67fd8d6ea4746970.json deleted file mode 100644 index 7d015cf85e..0000000000 --- a/rust/cloud-storage/.sqlx/query-51873bdb08381231f01403f4e58bb5f5d73338d8cb9ec96c67fd8d6ea4746970.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM \"User\" WHERE id = $1 RETURNING id, email, \"organizationId\" as organization_id", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "email", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "organization_id", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - true - ] - }, - "hash": "51873bdb08381231f01403f4e58bb5f5d73338d8cb9ec96c67fd8d6ea4746970" -} diff --git a/rust/cloud-storage/.sqlx/query-518eb6a40898a1d2037db11af3e2cfa426a24d03d78ddea8c6c837143bb1d6bf.json b/rust/cloud-storage/.sqlx/query-518eb6a40898a1d2037db11af3e2cfa426a24d03d78ddea8c6c837143bb1d6bf.json deleted file mode 100644 index 44695a2b80..0000000000 --- a/rust/cloud-storage/.sqlx/query-518eb6a40898a1d2037db11af3e2cfa426a24d03d78ddea8c6c837143bb1d6bf.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_message_labels\n WHERE label_id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "518eb6a40898a1d2037db11af3e2cfa426a24d03d78ddea8c6c837143bb1d6bf" -} diff --git a/rust/cloud-storage/.sqlx/query-51c9b178186c513e2359c6ae0d9eb291f29d3fe5dca1bfa5ae426aad4a086ccd.json b/rust/cloud-storage/.sqlx/query-51c9b178186c513e2359c6ae0d9eb291f29d3fe5dca1bfa5ae426aad4a086ccd.json deleted file mode 100644 index d1507c076c..0000000000 --- a/rust/cloud-storage/.sqlx/query-51c9b178186c513e2359c6ae0d9eb291f29d3fe5dca1bfa5ae426aad4a086ccd.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT source_id AS \"source_id!\", source_type::text AS \"source_type!\"\n FROM github_app_installation\n WHERE id = $1\n ORDER BY source_type, source_id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "source_id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "source_type!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - null - ] - }, - "hash": "51c9b178186c513e2359c6ae0d9eb291f29d3fe5dca1bfa5ae426aad4a086ccd" -} diff --git a/rust/cloud-storage/.sqlx/query-52274fa0bcbaf995cd7ccf4025dcae43516d969d93066adf3bea59f64fcce246.json b/rust/cloud-storage/.sqlx/query-52274fa0bcbaf995cd7ccf4025dcae43516d969d93066adf3bea59f64fcce246.json deleted file mode 100644 index 2d58ede92f..0000000000 --- a/rust/cloud-storage/.sqlx/query-52274fa0bcbaf995cd7ccf4025dcae43516d969d93066adf3bea59f64fcce246.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n \"id\" as \"merge_request_id!\",\n \"to_merge_macro_user_id\" as \"to_merge_macro_user_id!\"\n FROM \"account_merge_request\"\n WHERE \"code\" = $1 AND \"macro_user_id\" = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "merge_request_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "to_merge_macro_user_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "52274fa0bcbaf995cd7ccf4025dcae43516d969d93066adf3bea59f64fcce246" -} diff --git a/rust/cloud-storage/.sqlx/query-523326bd4435e4f15ca5e0cc7f015e99eac0492d7e855375a0389e246c400049.json b/rust/cloud-storage/.sqlx/query-523326bd4435e4f15ca5e0cc7f015e99eac0492d7e855375a0389e246c400049.json deleted file mode 100644 index 167cd55550..0000000000 --- a/rust/cloud-storage/.sqlx/query-523326bd4435e4f15ca5e0cc7f015e99eac0492d7e855375a0389e246c400049.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH trash_labels AS (\n SELECT id, link_id FROM email_labels WHERE link_id = ANY($1) AND name = 'TRASH'\n ),\n important_labels AS (\n SELECT id, link_id FROM email_labels WHERE link_id = ANY($1) AND name = 'IMPORTANT'\n )\n SELECT\n t.id,\n t.provider_id,\n TRUE AS \"inbox_visible!\",\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN important_labels il ON ml.label_id = il.id\n WHERE m_imp.thread_id = t.id\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Efficiently find and sort ONLY the top N+1 candidate threads.\n -- This subquery is fast as it only touches `threads` and `user_history`.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.is_read,\n t.project_id,\n t.latest_inbound_message_ts AS created_at,\n t.latest_inbound_message_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_inbound_message_ts)\n ELSE t.latest_inbound_message_ts\n END AS effective_ts\n FROM email_threads t\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n t.link_id = ANY($1)\n AND t.inbox_visible = TRUE\n AND t.latest_inbound_message_ts IS NOT NULL\n\n -- The cursor logic is moved inside this subquery for maximum efficiency.\n AND (($3::timestamptz IS NULL) OR (\n -- This CASE must exactly match the one that defines `effective_ts`\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_inbound_message_ts)\n ELSE t.latest_inbound_message_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC -- fall back to updated_at if effective_ts is the same\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find its latest non-trashed message.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name,\n m.is_draft\n FROM email_messages m\n WHERE m.thread_id = t.id\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN trash_labels tl ON ml.label_id = tl.id\n WHERE ml.message_id = m.id\n )\n ORDER BY m.internal_date_ts DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details for the final result set.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n -- Final ordering is preserved because the input `t` is already sorted.\n ORDER BY t.effective_ts DESC, t.updated_at DESC -- fall back to updated_at if effective_ts is the same\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "inbox_visible!", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "sort_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "viewed_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "name?", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "snippet?", - "type_info": "Text" - }, - { - "ordinal": 11, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 12, - "name": "is_important!", - "type_info": "Bool" - }, - { - "ordinal": 13, - "name": "sender_email?", - "type_info": "Varchar" - }, - { - "ordinal": 14, - "name": "sender_name?", - "type_info": "Varchar" - }, - { - "ordinal": 15, - "name": "sender_photo_url?", - "type_info": "Text" - }, - { - "ordinal": 16, - "name": "owner_id!", - "type_info": "Text" - }, - { - "ordinal": 17, - "name": "link_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "Int8", - "Timestamptz", - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - true, - null, - false, - null, - true, - true, - true, - false, - true, - true, - false, - null, - false, - null, - true, - false, - false - ] - }, - "hash": "523326bd4435e4f15ca5e0cc7f015e99eac0492d7e855375a0389e246c400049" -} diff --git a/rust/cloud-storage/.sqlx/query-525b9b86055a3dc112adcb8973efb21edf79cf3409c9d1fbcb71c4564b6b453d.json b/rust/cloud-storage/.sqlx/query-525b9b86055a3dc112adcb8973efb21edf79cf3409c9d1fbcb71c4564b6b453d.json deleted file mode 100644 index 57bef9cf37..0000000000 --- a/rust/cloud-storage/.sqlx/query-525b9b86055a3dc112adcb8973efb21edf79cf3409c9d1fbcb71c4564b6b453d.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id,\n c.name,\n c.model,\n c.\"userId\" as \"user_id\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.\"projectId\" as \"project_id\",\n c.\"tokenCount\" as \"token_count\",\n c.\"isPersistent\" as \"is_persistent\"\n FROM \"Chat\" c WHERE c.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "model", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "token_count", - "type_info": "Int8" - }, - { - "ordinal": 9, - "name": "is_persistent", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - null, - null, - null, - true, - true, - false - ] - }, - "hash": "525b9b86055a3dc112adcb8973efb21edf79cf3409c9d1fbcb71c4564b6b453d" -} diff --git a/rust/cloud-storage/.sqlx/query-5293063d6203fdce622e3265581cb505e07534de33d0275ed860aea9f6614fc7.json b/rust/cloud-storage/.sqlx/query-5293063d6203fdce622e3265581cb505e07534de33d0275ed860aea9f6614fc7.json deleted file mode 100644 index b51c26591f..0000000000 --- a/rust/cloud-storage/.sqlx/query-5293063d6203fdce622e3265581cb505e07534de33d0275ed860aea9f6614fc7.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n UserAccessibleItems AS (\n SELECT DISTINCT\n ea.entity_id::text as item_id,\n ea.entity_type as item_type\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n ),\n Combined AS (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\", \n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\",\n d.\"projectId\" as \"project_id\",\n NULL as \"is_persistent\",\n di.sha as \"sha\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n d.\"updatedAt\"::timestamptz as \"sort_ts!\",\n CASE\n WHEN dt.sub_type = 'task'\n AND ep_status.values->'value' ? $5\n THEN true\n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL\n END as \"is_completed\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status\n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id\n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $6\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = d.id\n AND uai.item_type = 'document'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = d.id\n AND uh.\"itemType\" = 'document'\n AND uh.\"userId\" = $1\n LEFT JOIN LATERAL (\n SELECT b.id\n FROM \"DocumentBom\" b\n WHERE b.\"documentId\" = d.id\n ORDER BY b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT i.id, i.sha\n FROM \"DocumentInstance\" i\n WHERE i.\"documentId\" = d.id\n ORDER BY i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n WHERE d.\"deletedAt\" IS NULL\n AND d.id = ANY($2::text[])\n\n UNION ALL\n\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at!\",\n c.\"updatedAt\"::timestamptz as \"updated_at!\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n c.\"updatedAt\"::timestamptz as \"sort_ts!\",\n NULL as \"is_completed\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Chat\" c\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = c.id\n AND uai.item_type = 'chat'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = c.id\n AND uh.\"itemType\" = 'chat'\n AND uh.\"userId\" = $1\n WHERE c.\"deletedAt\" IS NULL\n AND c.id = ANY($3::text[])\n\n UNION ALL\n\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at!\",\n p.\"updatedAt\"::timestamptz as \"updated_at!\",\n p.\"parentId\" as \"project_id\",\n NULL as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n p.\"updatedAt\"::timestamptz as \"sort_ts!\",\n NULL as \"is_completed\",\n p.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Project\" p\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = p.id\n AND uai.item_type = 'project'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = p.id\n AND uh.\"itemType\" = 'project'\n AND uh.\"userId\" = $1\n WHERE p.\"deletedAt\" IS NULL\n AND p.id = ANY($4::text[])\n )\n SELECT * \n FROM Combined\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_type!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_version_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "user_id!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "name!", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 8, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "is_persistent", - "type_info": "Bool" - }, - { - "ordinal": 13, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 14, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 15, - "name": "viewed_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 16, - "name": "sort_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 17, - "name": "is_completed", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray", - "TextArray", - "TextArray", - "Text", - "Uuid" - ] - }, - "nullable": [ - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null - ] - }, - "hash": "5293063d6203fdce622e3265581cb505e07534de33d0275ed860aea9f6614fc7" -} diff --git a/rust/cloud-storage/.sqlx/query-52bd1907e946a5c7b45c1954491c0d10a911eecd17e12d2c3937dae20ae71bef.json b/rust/cloud-storage/.sqlx/query-52bd1907e946a5c7b45c1954491c0d10a911eecd17e12d2c3937dae20ae71bef.json deleted file mode 100644 index 03329c31cb..0000000000 --- a/rust/cloud-storage/.sqlx/query-52bd1907e946a5c7b45c1954491c0d10a911eecd17e12d2c3937dae20ae71bef.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Chat\" c\n WHERE c.\"userId\" = $1 and c.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "52bd1907e946a5c7b45c1954491c0d10a911eecd17e12d2c3937dae20ae71bef" -} diff --git a/rust/cloud-storage/.sqlx/query-530dbf9753f99470bd1928f17721031cd3fcee89685f44afc0d0305ec6231093.json b/rust/cloud-storage/.sqlx/query-530dbf9753f99470bd1928f17721031cd3fcee89685f44afc0d0305ec6231093.json deleted file mode 100644 index dea819c66a..0000000000 --- a/rust/cloud-storage/.sqlx/query-530dbf9753f99470bd1928f17721031cd3fcee89685f44afc0d0305ec6231093.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n di.id,\n d.uploaded\n FROM \"DocumentInstance\" di\n JOIN \"Document\" d ON di.\"documentId\" = d.id\n WHERE di.\"documentId\" = $1\n ORDER BY di.\"createdAt\" DESC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "uploaded", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "530dbf9753f99470bd1928f17721031cd3fcee89685f44afc0d0305ec6231093" -} diff --git a/rust/cloud-storage/.sqlx/query-532bde51c937e59bf4b6bd5ad735cd58ff2db92684a0c685bad7e8f133521563.json b/rust/cloud-storage/.sqlx/query-532bde51c937e59bf4b6bd5ad735cd58ff2db92684a0c685bad7e8f133521563.json deleted file mode 100644 index a6d05ec2f1..0000000000 --- a/rust/cloud-storage/.sqlx/query-532bde51c937e59bf4b6bd5ad735cd58ff2db92684a0c685bad7e8f133521563.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT e.id, e.active, e.\"started_at\"::timestamptz as started_at, e.\"ended_at\"::timestamptz as ended_at\n FROM \"Experiment\" e\n WHERE e.active = true\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "active", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "started_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "ended_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - false, - null, - null - ] - }, - "hash": "532bde51c937e59bf4b6bd5ad735cd58ff2db92684a0c685bad7e8f133521563" -} diff --git a/rust/cloud-storage/.sqlx/query-53803816cc7149ffc49cd92a665229df9ec397fa2035c305d00133abeea39358.json b/rust/cloud-storage/.sqlx/query-53803816cc7149ffc49cd92a665229df9ec397fa2035c305d00133abeea39358.json deleted file mode 100644 index e2c0dec188..0000000000 --- a/rust/cloud-storage/.sqlx/query-53803816cc7149ffc49cd92a665229df9ec397fa2035c305d00133abeea39358.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT a.owner, d.owner as document_owner\n FROM \"PdfPlaceableCommentAnchor\" a\n JOIN \"Thread\" t ON a.\"threadId\" = t.id\n JOIN \"Document\" d ON a.\"documentId\" = d.id\n WHERE a.uuid = $1 AND t.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "document_owner", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "53803816cc7149ffc49cd92a665229df9ec397fa2035c305d00133abeea39358" -} diff --git a/rust/cloud-storage/.sqlx/query-54155d1cfe6997b0dfe33cf72d9f3e2a1bf3af9a8fb1487fd32fb3f833641046.json b/rust/cloud-storage/.sqlx/query-54155d1cfe6997b0dfe33cf72d9f3e2a1bf3af9a8fb1487fd32fb3f833641046.json deleted file mode 100644 index 50fcaa7372..0000000000 --- a/rust/cloud-storage/.sqlx/query-54155d1cfe6997b0dfe33cf72d9f3e2a1bf3af9a8fb1487fd32fb3f833641046.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT macro_user_id FROM \"User\"\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "54155d1cfe6997b0dfe33cf72d9f3e2a1bf3af9a8fb1487fd32fb3f833641046" -} diff --git a/rust/cloud-storage/.sqlx/query-541d038f1693e63ee6d4626f58580bca194989d88fd991abe2efd2c66d5a5e8e.json b/rust/cloud-storage/.sqlx/query-541d038f1693e63ee6d4626f58580bca194989d88fd991abe2efd2c66d5a5e8e.json deleted file mode 100644 index bc71f8c000..0000000000 --- a/rust/cloud-storage/.sqlx/query-541d038f1693e63ee6d4626f58580bca194989d88fd991abe2efd2c66d5a5e8e.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_messages\n SET\n replying_to_id = $1,\n updated_at = NOW()\n WHERE\n id = $2\n AND link_id = $3\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "541d038f1693e63ee6d4626f58580bca194989d88fd991abe2efd2c66d5a5e8e" -} diff --git a/rust/cloud-storage/.sqlx/query-5429a0ff80ba0e9394eb205bddbb2dc247030b9e6eb3a750e30cdd770bf92fa9.json b/rust/cloud-storage/.sqlx/query-5429a0ff80ba0e9394eb205bddbb2dc247030b9e6eb3a750e30cdd770bf92fa9.json deleted file mode 100644 index 77d591f6f4..0000000000 --- a/rust/cloud-storage/.sqlx/query-5429a0ff80ba0e9394eb205bddbb2dc247030b9e6eb3a750e30cdd770bf92fa9.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_channels (id, name, owner_id, org_id, team_id, channel_type)\n VALUES ($1, $2, $3, $4, $5, $6)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Varchar", - "Text", - "Int8", - "Uuid", - { - "Custom": { - "name": "comms_channel_type", - "kind": { - "Enum": [ - "public", - "private", - "direct_message", - "team" - ] - } - } - } - ] - }, - "nullable": [ - false - ] - }, - "hash": "5429a0ff80ba0e9394eb205bddbb2dc247030b9e6eb3a750e30cdd770bf92fa9" -} diff --git a/rust/cloud-storage/.sqlx/query-547e3772bb1def3090b8647fcec5795696c6d02cbabc4619d6c384bfb5bff330.json b/rust/cloud-storage/.sqlx/query-547e3772bb1def3090b8647fcec5795696c6d02cbabc4619d6c384bfb5bff330.json deleted file mode 100644 index 9ddc4e92bd..0000000000 --- a/rust/cloud-storage/.sqlx/query-547e3772bb1def3090b8647fcec5795696c6d02cbabc4619d6c384bfb5bff330.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM macro_user_links\n WHERE primary_macro_id = $1\n AND child_macro_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "547e3772bb1def3090b8647fcec5795696c6d02cbabc4619d6c384bfb5bff330" -} diff --git a/rust/cloud-storage/.sqlx/query-54880d69ab1555eb66227f63e0e4b3d940d114ee09eaa06916c48da29b8ce62e.json b/rust/cloud-storage/.sqlx/query-54880d69ab1555eb66227f63e0e4b3d940d114ee09eaa06916c48da29b8ce62e.json deleted file mode 100644 index d410732247..0000000000 --- a/rust/cloud-storage/.sqlx/query-54880d69ab1555eb66227f63e0e4b3d940d114ee09eaa06916c48da29b8ce62e.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH SingleAttachmentChats AS (\n SELECT\n \"chatId\",\n COUNT(*) as attachment_count\n FROM \"ChatAttachment\"\n GROUP BY \"chatId\"\n HAVING COUNT(*) = 1\n )\n SELECT\n c.id,\n c.name,\n c.\"userId\" as \"user_id\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.model,\n c.\"tokenCount\" as \"token_count\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\"\n FROM \"Chat\" c\n INNER JOIN \"ChatAttachment\" ca ON c.id = ca.\"chatId\"\n INNER JOIN SingleAttachmentChats sac ON c.id = sac.\"chatId\"\n WHERE\n ca.\"entity_id\"::TEXT = $1 AND c.\"userId\" = $2\n AND\n c.\"deletedAt\" IS NULL\n\n ORDER BY c.\"updatedAt\" DESC\n LIMIT 1;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "model", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "token_count", - "type_info": "Int8" - }, - { - "ordinal": 8, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "is_persistent", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - null, - null, - null, - false, - true, - true, - false - ] - }, - "hash": "54880d69ab1555eb66227f63e0e4b3d940d114ee09eaa06916c48da29b8ce62e" -} diff --git a/rust/cloud-storage/.sqlx/query-54eb040ca9944d83dd7a79c3a6bb5d7c6f8264109d57c825e903233bb7ea22ff.json b/rust/cloud-storage/.sqlx/query-54eb040ca9944d83dd7a79c3a6bb5d7c6f8264109d57c825e903233bb7ea22ff.json deleted file mode 100644 index cd2311d8f0..0000000000 --- a/rust/cloud-storage/.sqlx/query-54eb040ca9944d83dd7a79c3a6bb5d7c6f8264109d57c825e903233bb7ea22ff.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"User\"\n SET id = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "54eb040ca9944d83dd7a79c3a6bb5d7c6f8264109d57c825e903233bb7ea22ff" -} diff --git a/rust/cloud-storage/.sqlx/query-5553458fc15f58a3a981b54210e10ebf8de2788f357c3af3932a6516c235271e.json b/rust/cloud-storage/.sqlx/query-5553458fc15f58a3a981b54210e10ebf8de2788f357c3af3932a6516c235271e.json deleted file mode 100644 index da513430f1..0000000000 --- a/rust/cloud-storage/.sqlx/query-5553458fc15f58a3a981b54210e10ebf8de2788f357c3af3932a6516c235271e.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Experiment\" SET active = false AND ended_at = NOW() WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "5553458fc15f58a3a981b54210e10ebf8de2788f357c3af3932a6516c235271e" -} diff --git a/rust/cloud-storage/.sqlx/query-55776d3a26b7c89897de6d58d17686ac9efbb516589692adcb97ffd1ace56ac9.json b/rust/cloud-storage/.sqlx/query-55776d3a26b7c89897de6d58d17686ac9efbb516589692adcb97ffd1ace56ac9.json deleted file mode 100644 index f0d020a34b..0000000000 --- a/rust/cloud-storage/.sqlx/query-55776d3a26b7c89897de6d58d17686ac9efbb516589692adcb97ffd1ace56ac9.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO call_transcripts (call_id, segment_id, speaker_id, diarized_speaker_id, content, started_at, ended_at, voice_id, sequence_num)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, (\n SELECT COALESCE(MAX(sequence_num), 0) + 1\n FROM call_transcripts\n WHERE call_id = $1\n ))\n ON CONFLICT (call_id, segment_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Text", - "Text", - "Timestamptz", - "Timestamptz", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "55776d3a26b7c89897de6d58d17686ac9efbb516589692adcb97ffd1ace56ac9" -} diff --git a/rust/cloud-storage/.sqlx/query-56187151cc2545db5e5b43235d9aa3a88303c3508b7218179e27812e3cad7ec2.json b/rust/cloud-storage/.sqlx/query-56187151cc2545db5e5b43235d9aa3a88303c3508b7218179e27812e3cad7ec2.json deleted file mode 100644 index 985e7caf0e..0000000000 --- a/rust/cloud-storage/.sqlx/query-56187151cc2545db5e5b43235d9aa3a88303c3508b7218179e27812e3cad7ec2.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n link_id,\n fusionauth_user_id,\n threads_requested_limit,\n total_threads,\n threads_retrieved_count,\n status as \"status: db::backfill::BackfillJobStatus\",\n created_at,\n updated_at\n FROM email_backfill_jobs\n WHERE link_id = $1\n ORDER BY created_at DESC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "threads_requested_limit", - "type_info": "Int4" - }, - { - "ordinal": 4, - "name": "total_threads", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "threads_retrieved_count", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "status: db::backfill::BackfillJobStatus", - "type_info": { - "Custom": { - "name": "email_backfill_job_status", - "kind": { - "Enum": [ - "Init", - "InProgress", - "Complete", - "Cancelled", - "Failed" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - false, - true, - false, - false, - false, - false, - false - ] - }, - "hash": "56187151cc2545db5e5b43235d9aa3a88303c3508b7218179e27812e3cad7ec2" -} diff --git a/rust/cloud-storage/.sqlx/query-56322decea30dff649d294afbf0be6a894f1c511b957f6988b966d730d47bc59.json b/rust/cloud-storage/.sqlx/query-56322decea30dff649d294afbf0be6a894f1c511b957f6988b966d730d47bc59.json deleted file mode 100644 index 40327ffc79..0000000000 --- a/rust/cloud-storage/.sqlx/query-56322decea30dff649d294afbf0be6a894f1c511b957f6988b966d730d47bc59.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO resolved_message_content (\"messageId\", \"content\")\n VALUES ($1, $2)\n ON CONFLICT (\"messageId\") DO UPDATE SET \"content\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Jsonb" - ] - }, - "nullable": [] - }, - "hash": "56322decea30dff649d294afbf0be6a894f1c511b957f6988b966d730d47bc59" -} diff --git a/rust/cloud-storage/.sqlx/query-569440328317c8738d56baf89e528c093cc117a1ff6a8628f3bea4ea860c2dfd.json b/rust/cloud-storage/.sqlx/query-569440328317c8738d56baf89e528c093cc117a1ff6a8628f3bea4ea860c2dfd.json deleted file mode 100644 index e3d5edd8c0..0000000000 --- a/rust/cloud-storage/.sqlx/query-569440328317c8738d56baf89e528c093cc117a1ff6a8628f3bea4ea860c2dfd.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n a.uuid, \n a.\"threadId\" as thread_id,\n a.page, \n a.red, \n a.green, \n a.blue, \n a.alpha,\n a.type as highlight_type, \n a.text,\n a.\"pageViewportWidth\" as page_viewport_width, \n a.\"pageViewportHeight\" as page_viewport_height, \n a.\"createdAt\"::timestamptz as created_at, \n a.\"updatedAt\"::timestamptz as updated_at\n FROM \"PdfHighlightAnchor\" a\n WHERE a.\"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 2, - "name": "page", - "type_info": "Int4" - }, - { - "ordinal": 3, - "name": "red", - "type_info": "Int4" - }, - { - "ordinal": 4, - "name": "green", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "blue", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "alpha", - "type_info": "Float8" - }, - { - "ordinal": 7, - "name": "highlight_type", - "type_info": "Int4" - }, - { - "ordinal": 8, - "name": "text", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "page_viewport_width", - "type_info": "Float8" - }, - { - "ordinal": 10, - "name": "page_viewport_height", - "type_info": "Float8" - }, - { - "ordinal": 11, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 12, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - null, - null - ] - }, - "hash": "569440328317c8738d56baf89e528c093cc117a1ff6a8628f3bea4ea860c2dfd" -} diff --git a/rust/cloud-storage/.sqlx/query-56bc98d55555a5605ffe1fb098c61a56fe28b866c4e6684d4208f97a21a7c5d8.json b/rust/cloud-storage/.sqlx/query-56bc98d55555a5605ffe1fb098c61a56fe28b866c4e6684d4208f97a21a7c5d8.json deleted file mode 100644 index c75072ce00..0000000000 --- a/rust/cloud-storage/.sqlx/query-56bc98d55555a5605ffe1fb098c61a56fe28b866c4e6684d4208f97a21a7c5d8.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n SELECT u.user_id, u.item_id, 'chat', NOW(), NOW()\n FROM UNNEST($1::text[], $2::text[]) AS u(item_id, user_id)\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = NOW();\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "56bc98d55555a5605ffe1fb098c61a56fe28b866c4e6684d4208f97a21a7c5d8" -} diff --git a/rust/cloud-storage/.sqlx/query-56bd1e06751e63ed197d0d29b48585d16912c6fd506196d2058ee41c09e71433.json b/rust/cloud-storage/.sqlx/query-56bd1e06751e63ed197d0d29b48585d16912c6fd506196d2058ee41c09e71433.json deleted file mode 100644 index ccf176175d..0000000000 --- a/rust/cloud-storage/.sqlx/query-56bd1e06751e63ed197d0d29b48585d16912c6fd506196d2058ee41c09e71433.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO\n in_progress_email_link (id, macro_user_id, email, created_at)\n VALUES\n ($1, $2, $3, NOW())\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "56bd1e06751e63ed197d0d29b48585d16912c6fd506196d2058ee41c09e71433" -} diff --git a/rust/cloud-storage/.sqlx/query-56f380911d1ece3f1a04ad73ffdf724d132c32f4971d533f7dbe0a42e283ebce.json b/rust/cloud-storage/.sqlx/query-56f380911d1ece3f1a04ad73ffdf724d132c32f4971d533f7dbe0a42e283ebce.json deleted file mode 100644 index c55fe1a69c..0000000000 --- a/rust/cloud-storage/.sqlx/query-56f380911d1ece3f1a04ad73ffdf724d132c32f4971d533f7dbe0a42e283ebce.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id\n FROM comms_channels\n WHERE channel_type = 'direct_message'::comms_channel_type\n AND EXISTS (\n SELECT 1\n FROM comms_channel_participants cp\n WHERE cp.channel_id = comms_channels.id\n AND cp.user_id = $1\n )\n AND EXISTS (\n SELECT 1\n FROM comms_channel_participants cp\n WHERE cp.channel_id = comms_channels.id\n AND cp.user_id = $2\n )\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "56f380911d1ece3f1a04ad73ffdf724d132c32f4971d533f7dbe0a42e283ebce" -} diff --git a/rust/cloud-storage/.sqlx/query-573a66f6ce27f28db10933bb330aa7edfb6bc776504942fd6f5ab4302a49a857.json b/rust/cloud-storage/.sqlx/query-573a66f6ce27f28db10933bb330aa7edfb6bc776504942fd6f5ab4302a49a857.json deleted file mode 100644 index 3d3519dd4d..0000000000 --- a/rust/cloud-storage/.sqlx/query-573a66f6ce27f28db10933bb330aa7edfb6bc776504942fd6f5ab4302a49a857.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE call_records\n SET recording_started_at = $2\n WHERE egress_id = $1\n AND recording_started_at IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Timestamptz" - ] - }, - "nullable": [] - }, - "hash": "573a66f6ce27f28db10933bb330aa7edfb6bc776504942fd6f5ab4302a49a857" -} diff --git a/rust/cloud-storage/.sqlx/query-575a01f5f6907c1586c226426b338c649fa27b433650b735c685e60ad9435a4b.json b/rust/cloud-storage/.sqlx/query-575a01f5f6907c1586c226426b338c649fa27b433650b735c685e60ad9435a4b.json deleted file mode 100644 index 389dd19f0b..0000000000 --- a/rust/cloud-storage/.sqlx/query-575a01f5f6907c1586c226426b338c649fa27b433650b735c685e60ad9435a4b.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id\n FROM\n \"Document\" d\n WHERE\n d.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "575a01f5f6907c1586c226426b338c649fa27b433650b735c685e60ad9435a4b" -} diff --git a/rust/cloud-storage/.sqlx/query-5766ebb8dbd1ad5d06624c7e715e3d2e68f8539e835552e8c8ca0d562adbbefe.json b/rust/cloud-storage/.sqlx/query-5766ebb8dbd1ad5d06624c7e715e3d2e68f8539e835552e8c8ca0d562adbbefe.json deleted file mode 100644 index 15af8c6d02..0000000000 --- a/rust/cloud-storage/.sqlx/query-5766ebb8dbd1ad5d06624c7e715e3d2e68f8539e835552e8c8ca0d562adbbefe.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT bp.sha\n FROM \"BomPart\" bp\n JOIN \"DocumentBom\" db ON bp.\"documentBomId\" = db.id\n WHERE db.\"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sha", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "5766ebb8dbd1ad5d06624c7e715e3d2e68f8539e835552e8c8ca0d562adbbefe" -} diff --git a/rust/cloud-storage/.sqlx/query-57fc603adf83fd7c07968425c98f9a57924573692cf0529ad021b6eef00ce99e.json b/rust/cloud-storage/.sqlx/query-57fc603adf83fd7c07968425c98f9a57924573692cf0529ad021b6eef00ce99e.json deleted file mode 100644 index 27b7d76a6f..0000000000 --- a/rust/cloud-storage/.sqlx/query-57fc603adf83fd7c07968425c98f9a57924573692cf0529ad021b6eef00ce99e.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChatMessage\" (\"id\", \"chatId\", \"content\", \"role\", \"model\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Jsonb", - "Text", - "Text", - "Timestamp", - "Timestamp" - ] - }, - "nullable": [ - false - ] - }, - "hash": "57fc603adf83fd7c07968425c98f9a57924573692cf0529ad021b6eef00ce99e" -} diff --git a/rust/cloud-storage/.sqlx/query-582f4f2d5a5e9c72835d0a043f743a94d927a08a81b8687714a96bd52a94cfcf.json b/rust/cloud-storage/.sqlx/query-582f4f2d5a5e9c72835d0a043f743a94d927a08a81b8687714a96bd52a94cfcf.json deleted file mode 100644 index 3c62d246ab..0000000000 --- a/rust/cloud-storage/.sqlx/query-582f4f2d5a5e9c72835d0a043f743a94d927a08a81b8687714a96bd52a94cfcf.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, thread_id, \"order\", owner, sender, text, metadata,\n created_at, updated_at, deleted_at\n FROM crm_comment\n WHERE thread_id = ANY($1) AND deleted_at IS NULL\n ORDER BY created_at ASC, id ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "order", - "type_info": "Int4" - }, - { - "ordinal": 3, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "sender", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "text", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - true, - false, - true, - false, - true, - false, - false, - true - ] - }, - "hash": "582f4f2d5a5e9c72835d0a043f743a94d927a08a81b8687714a96bd52a94cfcf" -} diff --git a/rust/cloud-storage/.sqlx/query-58443a6571e2b390002d7a3ba3954182467bb638a6d399b3ea8212d1a026d4fd.json b/rust/cloud-storage/.sqlx/query-58443a6571e2b390002d7a3ba3954182467bb638a6d399b3ea8212d1a026d4fd.json deleted file mode 100644 index 41e02b32b7..0000000000 --- a/rust/cloud-storage/.sqlx/query-58443a6571e2b390002d7a3ba3954182467bb638a6d399b3ea8212d1a026d4fd.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE contacts_backfill_outbox SET applied_at = now() WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int4" - ] - }, - "nullable": [] - }, - "hash": "58443a6571e2b390002d7a3ba3954182467bb638a6d399b3ea8212d1a026d4fd" -} diff --git a/rust/cloud-storage/.sqlx/query-584a3f488f9149430d13e21a9bf1bef7da249de88d145a2925832425785250f8.json b/rust/cloud-storage/.sqlx/query-584a3f488f9149430d13e21a9bf1bef7da249de88d145a2925832425785250f8.json deleted file mode 100644 index b6ea64eede..0000000000 --- a/rust/cloud-storage/.sqlx/query-584a3f488f9149430d13e21a9bf1bef7da249de88d145a2925832425785250f8.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n LENGTH(REGEXP_REPLACE(d.\"content\", '\\s', '', 'g')) AS content_length\n FROM\n \"DocumentText\" d\n WHERE\n d.\"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "content_length", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "584a3f488f9149430d13e21a9bf1bef7da249de88d145a2925832425785250f8" -} diff --git a/rust/cloud-storage/.sqlx/query-587ab2cbf540d6f98236ca8cc3c098a0efa439c0ccefa93c46971a0f2fe7efcf.json b/rust/cloud-storage/.sqlx/query-587ab2cbf540d6f98236ca8cc3c098a0efa439c0ccefa93c46971a0f2fe7efcf.json deleted file mode 100644 index 6fa7775825..0000000000 --- a/rust/cloud-storage/.sqlx/query-587ab2cbf540d6f98236ca8cc3c098a0efa439c0ccefa93c46971a0f2fe7efcf.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, team_id, email\n FROM team_invite\n WHERE team_id = $1\n AND email = ANY($2::text[])\n AND last_sent_at < NOW() - INTERVAL '5 minutes'\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "team_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "email", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "587ab2cbf540d6f98236ca8cc3c098a0efa439c0ccefa93c46971a0f2fe7efcf" -} diff --git a/rust/cloud-storage/.sqlx/query-58a665360907b8fc412e9f8dcb73696b517ecdd60243bf27c9564c7b969f1143.json b/rust/cloud-storage/.sqlx/query-58a665360907b8fc412e9f8dcb73696b517ecdd60243bf27c9564c7b969f1143.json deleted file mode 100644 index a506603753..0000000000 --- a/rust/cloud-storage/.sqlx/query-58a665360907b8fc412e9f8dcb73696b517ecdd60243bf27c9564c7b969f1143.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT a.id, a.channel_id, a.message_id, m.sender_id,\n a.entity_type, a.entity_id,\n a.width AS \"width?\", a.height AS \"height?\", a.created_at\n FROM comms_attachments a\n JOIN comms_messages m ON m.id = a.message_id\n WHERE a.channel_id = $1\n AND m.deleted_at IS NULL\n AND ($2::timestamptz IS NULL OR (a.created_at, a.id) < ($2, $3))\n AND ($5::bool IS NULL\n OR ($5 = true AND a.entity_type LIKE 'static/%')\n OR ($5 = false AND a.entity_type NOT LIKE 'static/%'))\n ORDER BY a.created_at DESC, a.id DESC\n LIMIT $4\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "entity_type", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "entity_id", - "type_info": "Varchar" - }, - { - "ordinal": 6, - "name": "width?", - "type_info": "Int4" - }, - { - "ordinal": 7, - "name": "height?", - "type_info": "Int4" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Timestamptz", - "Uuid", - "Int8", - "Bool" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - true, - false - ] - }, - "hash": "58a665360907b8fc412e9f8dcb73696b517ecdd60243bf27c9564c7b969f1143" -} diff --git a/rust/cloud-storage/.sqlx/query-58b8b566779518776b13cabdb3498ac55b426b0493e769ea607618db7e246a71.json b/rust/cloud-storage/.sqlx/query-58b8b566779518776b13cabdb3498ac55b426b0493e769ea607618db7e246a71.json deleted file mode 100644 index 2a84c80297..0000000000 --- a/rust/cloud-storage/.sqlx/query-58b8b566779518776b13cabdb3498ac55b426b0493e769ea607618db7e246a71.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_scheduled_messages (\n link_id, message_id, send_time, sent,\n created_at, updated_at\n )\n VALUES ($1, $2, $3, $4, NOW(), NOW())\n ON CONFLICT (link_id, message_id) DO UPDATE SET\n send_time = EXCLUDED.send_time,\n sent = EXCLUDED.sent,\n updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Timestamptz", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "58b8b566779518776b13cabdb3498ac55b426b0493e769ea607618db7e246a71" -} diff --git a/rust/cloud-storage/.sqlx/query-58bcc36d5e748a63f9f35516f0c0ace37f77dd6806bf7f26211b3faa0fa84422.json b/rust/cloud-storage/.sqlx/query-58bcc36d5e748a63f9f35516f0c0ace37f77dd6806bf7f26211b3faa0fa84422.json deleted file mode 100644 index 34a8fe34a1..0000000000 --- a/rust/cloud-storage/.sqlx/query-58bcc36d5e748a63f9f35516f0c0ace37f77dd6806bf7f26211b3faa0fa84422.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id\n FROM macro_user\n WHERE username = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "58bcc36d5e748a63f9f35516f0c0ace37f77dd6806bf7f26211b3faa0fa84422" -} diff --git a/rust/cloud-storage/.sqlx/query-58bf14acad4a08a6fa2da18e244676169f0bc6f606b04b1e8e3080fe95717b41.json b/rust/cloud-storage/.sqlx/query-58bf14acad4a08a6fa2da18e244676169f0bc6f606b04b1e8e3080fe95717b41.json deleted file mode 100644 index 2a861ab825..0000000000 --- a/rust/cloud-storage/.sqlx/query-58bf14acad4a08a6fa2da18e244676169f0bc6f606b04b1e8e3080fe95717b41.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"deletedAt\" as deleted_at FROM \"Project\" WHERE \"id\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "deleted_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "58bf14acad4a08a6fa2da18e244676169f0bc6f606b04b1e8e3080fe95717b41" -} diff --git a/rust/cloud-storage/.sqlx/query-5904887b6e8f4db0d2bd73b6e2921530de25c237c7e369b43a60ed7c28958fb8.json b/rust/cloud-storage/.sqlx/query-5904887b6e8f4db0d2bd73b6e2921530de25c237c7e369b43a60ed7c28958fb8.json deleted file mode 100644 index db2b1c4b96..0000000000 --- a/rust/cloud-storage/.sqlx/query-5904887b6e8f4db0d2bd73b6e2921530de25c237c7e369b43a60ed7c28958fb8.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n sp.id as id\n FROM\n \"EmailThreadPermission\" tp\n JOIN \"SharePermission\" sp ON tp.\"sharePermissionId\" = sp.id\n WHERE\n tp.\"threadId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "5904887b6e8f4db0d2bd73b6e2921530de25c237c7e369b43a60ed7c28958fb8" -} diff --git a/rust/cloud-storage/.sqlx/query-5915728325fe5163ae5f18a99350e0cb5153d368eceb75d03b4cf1adfd1f58bf.json b/rust/cloud-storage/.sqlx/query-5915728325fe5163ae5f18a99350e0cb5153d368eceb75d03b4cf1adfd1f58bf.json deleted file mode 100644 index 514e8d9770..0000000000 --- a/rust/cloud-storage/.sqlx/query-5915728325fe5163ae5f18a99350e0cb5153d368eceb75d03b4cf1adfd1f58bf.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n \"publicAccessLevel\" as \"access_level!\"\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"ChatPermission\" WHERE \"chatId\" = $1\n )\n\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "access_level!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "5915728325fe5163ae5f18a99350e0cb5153d368eceb75d03b4cf1adfd1f58bf" -} diff --git a/rust/cloud-storage/.sqlx/query-5929a15919ba9b705c47c77ccc0ac1d7893590a8513c5d2019793598704f64fb.json b/rust/cloud-storage/.sqlx/query-5929a15919ba9b705c47c77ccc0ac1d7893590a8513c5d2019793598704f64fb.json deleted file mode 100644 index 7d59021fcd..0000000000 --- a/rust/cloud-storage/.sqlx/query-5929a15919ba9b705c47c77ccc0ac1d7893590a8513c5d2019793598704f64fb.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.\"id\" as \"chat_id\",\n m.id as \"message_id\",\n c.\"userId\" as \"user_id\",\n m.\"createdAt\" as \"created_at\",\n m.\"updatedAt\" as \"updated_at\"\n FROM\n \"ChatMessage\" m\n JOIN\n \"Chat\" c on c.\"id\" = m.\"chatId\"\n WHERE\n c.\"userId\" = ANY($1)\n AND (\n $3::bool IS NULL\n OR ($3 AND c.\"deletedAt\" IS NOT NULL)\n OR (NOT $3 AND c.\"deletedAt\" IS NULL)\n )\n AND ($4::timestamptz IS NULL OR m.\"updatedAt\" >= $4)\n AND ($5::timestamptz IS NULL OR m.\"updatedAt\" < $5)\n AND (\n $6::timestamptz IS NULL\n OR (m.\"updatedAt\", m.id) > ($6, $7::text)\n )\n ORDER BY m.\"updatedAt\" ASC, m.id ASC\n LIMIT $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "chat_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "TextArray", - "Int8", - "Bool", - "Timestamptz", - "Timestamptz", - "Timestamptz", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false - ] - }, - "hash": "5929a15919ba9b705c47c77ccc0ac1d7893590a8513c5d2019793598704f64fb" -} diff --git a/rust/cloud-storage/.sqlx/query-594849eb57f03099052b5415a963968dd31da940638917a96ab12dfc5a98bfa4.json b/rust/cloud-storage/.sqlx/query-594849eb57f03099052b5415a963968dd31da940638917a96ab12dfc5a98bfa4.json deleted file mode 100644 index c06c14d875..0000000000 --- a/rust/cloud-storage/.sqlx/query-594849eb57f03099052b5415a963968dd31da940638917a96ab12dfc5a98bfa4.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, macro_id, fusionauth_user_id as \"fusionauth_user_id: Uuid\", github_username, github_user_id, created_at, updated_at\n FROM github_links\n WHERE github_user_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "github_username", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "github_user_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "594849eb57f03099052b5415a963968dd31da940638917a96ab12dfc5a98bfa4" -} diff --git a/rust/cloud-storage/.sqlx/query-5959ff0d2410e3f2599a53bc1bf0de19c2d6e90cb030f64dccf965a0515b467e.json b/rust/cloud-storage/.sqlx/query-5959ff0d2410e3f2599a53bc1bf0de19c2d6e90cb030f64dccf965a0515b467e.json deleted file mode 100644 index 0d532ee4ad..0000000000 --- a/rust/cloud-storage/.sqlx/query-5959ff0d2410e3f2599a53bc1bf0de19c2d6e90cb030f64dccf965a0515b467e.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\",\n d.\"projectId\" as \"project_id\",\n NULL as \"is_persistent\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n CASE \n WHEN dt.sub_type = 'task' \n AND ep_status.values->'value' ? $2\n THEN true \n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL \n END as \"is_completed\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status \n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id \n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $3\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n WHERE d.owner = $1 AND d.\"deletedAt\" IS NOT NULL\n UNION ALL\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sub_type\",\n NULL as \"is_completed\"\n FROM \"Chat\" c\n WHERE c.\"userId\" = $1 AND c.\"deletedAt\" IS NOT NULL\n UNION ALL\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at\",\n p.\"updatedAt\"::timestamptz as \"updated_at\",\n p.\"deletedAt\"::timestamptz as \"deleted_at\",\n p.\"parentId\" as \"project_id\",\n NULL as \"is_persistent\",\n NULL as \"sub_type\",\n NULL as \"is_completed\"\n FROM \"Project\" p\n WHERE p.\"userId\" = $1 AND p.\"deletedAt\" IS NOT NULL\n ORDER BY deleted_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_type!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_version_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "user_id!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "name!", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "is_persistent", - "type_info": "Bool" - }, - { - "ordinal": 11, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 12, - "name": "is_completed", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Uuid" - ] - }, - "nullable": [ - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null - ] - }, - "hash": "5959ff0d2410e3f2599a53bc1bf0de19c2d6e90cb030f64dccf965a0515b467e" -} diff --git a/rust/cloud-storage/.sqlx/query-59eb39577b1b566ef0a95f74f75904a62689388c0b28b77a02946952e6aa8b36.json b/rust/cloud-storage/.sqlx/query-59eb39577b1b566ef0a95f74f75904a62689388c0b28b77a02946952e6aa8b36.json deleted file mode 100644 index bf8b77e46c..0000000000 --- a/rust/cloud-storage/.sqlx/query-59eb39577b1b566ef0a95f74f75904a62689388c0b28b77a02946952e6aa8b36.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_messages m\n SET\n is_starred = $1,\n updated_at = NOW()\n WHERE\n m.id = ANY($2)\n AND m.link_id = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Bool", - "UuidArray", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "59eb39577b1b566ef0a95f74f75904a62689388c0b28b77a02946952e6aa8b36" -} diff --git a/rust/cloud-storage/.sqlx/query-59ed63c0cb97189af71b12a68e7a516b7122cb0462db7ecc569b2e55a6e5057f.json b/rust/cloud-storage/.sqlx/query-59ed63c0cb97189af71b12a68e7a516b7122cb0462db7ecc569b2e55a6e5057f.json deleted file mode 100644 index 9a379e32b6..0000000000 --- a/rust/cloud-storage/.sqlx/query-59ed63c0cb97189af71b12a68e7a516b7122cb0462db7ecc569b2e55a6e5057f.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n input.domain AS \"domain!\",\n (d.id IS NOT NULL) AS \"exists!\",\n COALESCE(c.hidden, FALSE) AS \"company_hidden!\",\n COALESCE(c.email_sync, FALSE) AS \"email_sync!\"\n FROM UNNEST($2::text[]) WITH ORDINALITY AS input(domain, ord)\n LEFT JOIN crm_domains d\n ON d.team_id = $1 AND LOWER(d.domain) = input.domain\n LEFT JOIN crm_companies c\n ON c.id = d.company_id\n ORDER BY input.ord\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "domain!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "exists!", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "company_hidden!", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "email_sync!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [ - null, - null, - null, - null - ] - }, - "hash": "59ed63c0cb97189af71b12a68e7a516b7122cb0462db7ecc569b2e55a6e5057f" -} diff --git a/rust/cloud-storage/.sqlx/query-5a1016dee1c30860cc21fed65aa3a7f7f3c37e866d38c2ab99cfeb2fe940b2c8.json b/rust/cloud-storage/.sqlx/query-5a1016dee1c30860cc21fed65aa3a7f7f3c37e866d38c2ab99cfeb2fe940b2c8.json deleted file mode 100644 index 4a5f27b20e..0000000000 --- a/rust/cloud-storage/.sqlx/query-5a1016dee1c30860cc21fed65aa3a7f7f3c37e866d38c2ab99cfeb2fe940b2c8.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n p.id\n FROM\n \"Project\" p\n WHERE\n p.id = ANY($1)\n AND p.\"userId\" = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "5a1016dee1c30860cc21fed65aa3a7f7f3c37e866d38c2ab99cfeb2fe940b2c8" -} diff --git a/rust/cloud-storage/.sqlx/query-5a175ba3589c494d31510ec831a37d0febf04a956ff09e0a57665211118e876a.json b/rust/cloud-storage/.sqlx/query-5a175ba3589c494d31510ec831a37d0febf04a956ff09e0a57665211118e876a.json deleted file mode 100644 index cd933c59fc..0000000000 --- a/rust/cloud-storage/.sqlx/query-5a175ba3589c494d31510ec831a37d0febf04a956ff09e0a57665211118e876a.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "INSERT INTO saved_view (id, user_id, name, config, created_at, updated_at) \n VALUES ($1, $2, $3, $4, $5, $6)", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Jsonb", - "Timestamptz", - "Timestamptz" - ] - }, - "nullable": [] - }, - "hash": "5a175ba3589c494d31510ec831a37d0febf04a956ff09e0a57665211118e876a" -} diff --git a/rust/cloud-storage/.sqlx/query-5a45cbeeb6fa756b256688f6c4e05be4abae89c4eb3c5532a96b91f3d07e232f.json b/rust/cloud-storage/.sqlx/query-5a45cbeeb6fa756b256688f6c4e05be4abae89c4eb3c5532a96b91f3d07e232f.json deleted file mode 100644 index e76379715c..0000000000 --- a/rust/cloud-storage/.sqlx/query-5a45cbeeb6fa756b256688f6c4e05be4abae89c4eb3c5532a96b91f3d07e232f.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT link_id, message_id, send_time, sent, processing\n FROM email_scheduled_messages\n WHERE message_id = $1 and sent = false\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "send_time", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "sent", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "processing", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false - ] - }, - "hash": "5a45cbeeb6fa756b256688f6c4e05be4abae89c4eb3c5532a96b91f3d07e232f" -} diff --git a/rust/cloud-storage/.sqlx/query-5b17a30f841372cce9989af409baf993e24bfe90d3a3553f6851b3e92c8540eb.json b/rust/cloud-storage/.sqlx/query-5b17a30f841372cce9989af409baf993e24bfe90d3a3553f6851b3e92c8540eb.json deleted file mode 100644 index 113b9e269a..0000000000 --- a/rust/cloud-storage/.sqlx/query-5b17a30f841372cce9989af409baf993e24bfe90d3a3553f6851b3e92c8540eb.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n entity_id,\n source_id,\n source_type as \"source_type:EntityAccessSourceType\",\n access_level as \"access_level:AccessLevel\"\n FROM entity_access\n WHERE entity_id = ANY($1) AND entity_type = 'project' AND granted_from_project_id IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "source_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "source_type:EntityAccessSourceType", - "type_info": { - "Custom": { - "name": "entity_access_source_type", - "kind": { - "Enum": [ - "channel", - "team", - "user" - ] - } - } - } - }, - { - "ordinal": 3, - "name": "access_level:AccessLevel", - "type_info": { - "Custom": { - "name": "\"AccessLevel\"", - "kind": { - "Enum": [ - "view", - "comment", - "edit", - "owner" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - false - ] - }, - "hash": "5b17a30f841372cce9989af409baf993e24bfe90d3a3553f6851b3e92c8540eb" -} diff --git a/rust/cloud-storage/.sqlx/query-5b5a3e0954cb8130b507b73e771624fa3af4166de80e72dbcae524f63af9ae2e.json b/rust/cloud-storage/.sqlx/query-5b5a3e0954cb8130b507b73e771624fa3af4166de80e72dbcae524f63af9ae2e.json deleted file mode 100644 index 18f74966db..0000000000 --- a/rust/cloud-storage/.sqlx/query-5b5a3e0954cb8130b507b73e771624fa3af4166de80e72dbcae524f63af9ae2e.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n email,\n team_id,\n team_role as \"team_role!: TeamRole\",\n invited_by,\n created_at as \"created_at!: chrono::DateTime\",\n last_sent_at as \"last_sent_at!: chrono::DateTime\"\n FROM team_invite\n WHERE team_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "team_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "team_role!: TeamRole", - "type_info": { - "Custom": { - "name": "team_role", - "kind": { - "Enum": [ - "member", - "admin", - "owner" - ] - } - } - } - }, - { - "ordinal": 4, - "name": "invited_by", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "created_at!: chrono::DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 6, - "name": "last_sent_at!: chrono::DateTime", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "5b5a3e0954cb8130b507b73e771624fa3af4166de80e72dbcae524f63af9ae2e" -} diff --git a/rust/cloud-storage/.sqlx/query-5b8af25b1f47229f74c98541bbd200ba0582eaece5a30939ed5527bc05970795.json b/rust/cloud-storage/.sqlx/query-5b8af25b1f47229f74c98541bbd200ba0582eaece5a30939ed5527bc05970795.json deleted file mode 100644 index 8ae9384b70..0000000000 --- a/rust/cloud-storage/.sqlx/query-5b8af25b1f47229f74c98541bbd200ba0582eaece5a30939ed5527bc05970795.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n bt.id AS token_id,\n bt.bot_id,\n bt.token_hash,\n bt.token_prefix,\n bt.label,\n bt.last_used_at,\n bt.expires_at,\n bt.revoked_at,\n bt.created_at,\n b.kind\n FROM bot_tokens bt\n JOIN bots b ON b.id = bt.bot_id\n WHERE bt.token_prefix = $1\n AND b.deleted_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "token_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "bot_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "token_hash", - "type_info": "Bytea" - }, - { - "ordinal": 3, - "name": "token_prefix", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "label", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "last_used_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "expires_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "revoked_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "kind", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - true, - true, - true, - true, - false, - false - ] - }, - "hash": "5b8af25b1f47229f74c98541bbd200ba0582eaece5a30939ed5527bc05970795" -} diff --git a/rust/cloud-storage/.sqlx/query-5bb9c628efd6afd6b7858e11b0f470fdaf0bbd407265fabd04e1201cd3754809.json b/rust/cloud-storage/.sqlx/query-5bb9c628efd6afd6b7858e11b0f470fdaf0bbd407265fabd04e1201cd3754809.json deleted file mode 100644 index 5c4bb33e1d..0000000000 --- a/rust/cloud-storage/.sqlx/query-5bb9c628efd6afd6b7858e11b0f470fdaf0bbd407265fabd04e1201cd3754809.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n CASE\n WHEN mui.profile_picture IS NOT NULL AND mui.profile_picture != ''\n THEN mui.profile_picture\n ELSE NULL\n END AS \"profile_picture_url?: String\",\n NULLIF(TRIM(CONCAT_WS(' ', NULLIF(first_name, 'N/A'), NULLIF(last_name, 'N/A'))), '') AS \"display_name?: String\"\n FROM macro_user_info mui\n JOIN \"User\" u ON u.macro_user_id = mui.macro_user_id\n WHERE u.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "profile_picture_url?: String", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "display_name?: String", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null, - null - ] - }, - "hash": "5bb9c628efd6afd6b7858e11b0f470fdaf0bbd407265fabd04e1201cd3754809" -} diff --git a/rust/cloud-storage/.sqlx/query-5c110b698a00004a548556064f3ec7f96170613378e2fc37f78f2585a26f91f0.json b/rust/cloud-storage/.sqlx/query-5c110b698a00004a548556064f3ec7f96170613378e2fc37f78f2585a26f91f0.json deleted file mode 100644 index ab05ec9386..0000000000 --- a/rust/cloud-storage/.sqlx/query-5c110b698a00004a548556064f3ec7f96170613378e2fc37f78f2585a26f91f0.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n -- Get all entities the user has access to via entity_access\n UserAccessibleEntities AS (\n SELECT DISTINCT\n ea.entity_id,\n ea.entity_type\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n AND ($2::text IS NULL OR ea.entity_type = $2)\n ),\n -- Filter out deleted items and optionally exclude owned\n FilteredItems AS (\n SELECT uae.entity_id::text as item_id, uae.entity_type as item_type\n FROM UserAccessibleEntities uae\n LEFT JOIN \"Document\" d ON uae.entity_type = 'document' AND uae.entity_id::text = d.id\n LEFT JOIN \"Chat\" c ON uae.entity_type = 'chat' AND uae.entity_id::text = c.id\n LEFT JOIN \"Project\" p ON uae.entity_type = 'project' AND uae.entity_id::text = p.id\n WHERE\n (uae.entity_type = 'document' AND d.\"deletedAt\" IS NULL\n AND ($3 = false OR d.owner != $1)) OR\n (uae.entity_type = 'chat' AND c.\"deletedAt\" IS NULL\n AND ($3 = false OR c.\"userId\" != $1)) OR\n (uae.entity_type = 'project' AND p.\"deletedAt\" IS NULL\n AND ($3 = false OR p.\"userId\" != $1))\n )\n SELECT item_id as \"item_id!\", item_type as \"item_type!\" FROM FilteredItems\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "item_type!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Bool" - ] - }, - "nullable": [ - null, - false - ] - }, - "hash": "5c110b698a00004a548556064f3ec7f96170613378e2fc37f78f2585a26f91f0" -} diff --git a/rust/cloud-storage/.sqlx/query-5c138b3279b9ec08049316d52887064c46d9799c3d1282237646ec295890b2f7.json b/rust/cloud-storage/.sqlx/query-5c138b3279b9ec08049316d52887064c46d9799c3d1282237646ec295890b2f7.json deleted file mode 100644 index 47d617747d..0000000000 --- a/rust/cloud-storage/.sqlx/query-5c138b3279b9ec08049316d52887064c46d9799c3d1282237646ec295890b2f7.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"UploadJob\" SET \"documentId\" = $1 WHERE \"jobId\" = $2;\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "5c138b3279b9ec08049316d52887064c46d9799c3d1282237646ec295890b2f7" -} diff --git a/rust/cloud-storage/.sqlx/query-5c7aee79058a9904924fdd338d6823a3b0caf86fa2ff09ea307703a57ed72c68.json b/rust/cloud-storage/.sqlx/query-5c7aee79058a9904924fdd338d6823a3b0caf86fa2ff09ea307703a57ed72c68.json deleted file mode 100644 index 452c6fa17c..0000000000 --- a/rust/cloud-storage/.sqlx/query-5c7aee79058a9904924fdd338d6823a3b0caf86fa2ff09ea307703a57ed72c68.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_activity (id, user_id, channel_id, interacted_at)\n VALUES ($1, $2, $3, NOW())\n ON CONFLICT (user_id, channel_id) DO UPDATE\n SET interacted_at = NOW(), updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "5c7aee79058a9904924fdd338d6823a3b0caf86fa2ff09ea307703a57ed72c68" -} diff --git a/rust/cloud-storage/.sqlx/query-5ca006bf302d626774ecb05adde9c5bd7f594804d634f2d805ef47f997b270df.json b/rust/cloud-storage/.sqlx/query-5ca006bf302d626774ecb05adde9c5bd7f594804d634f2d805ef47f997b270df.json deleted file mode 100644 index daa8c66b98..0000000000 --- a/rust/cloud-storage/.sqlx/query-5ca006bf302d626774ecb05adde9c5bd7f594804d634f2d805ef47f997b270df.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Project\"\n WHERE id = ANY($1)", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "5ca006bf302d626774ecb05adde9c5bd7f594804d634f2d805ef47f997b270df" -} diff --git a/rust/cloud-storage/.sqlx/query-5cf744cd176688700ea98da0351a8c39369e808fdcb9ae39bb8e31ef99bbf3e8.json b/rust/cloud-storage/.sqlx/query-5cf744cd176688700ea98da0351a8c39369e808fdcb9ae39bb8e31ef99bbf3e8.json deleted file mode 100644 index 28507e9701..0000000000 --- a/rust/cloud-storage/.sqlx/query-5cf744cd176688700ea98da0351a8c39369e808fdcb9ae39bb8e31ef99bbf3e8.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Thread\" t\n SET \"updatedAt\" = NOW(), \"metadata\" = $3\n WHERE t.\"documentId\" = $1 AND t.\"deletedAt\" IS NULL AND t.id = $2\n RETURNING\n t.id as thread_id, \n t.resolved, \n t.\"documentId\" as document_id, \n t.\"createdAt\"::timestamptz as created_at, \n t.\"updatedAt\"::timestamptz as updated_at, \n t.\"deletedAt\"::timestamptz as deleted_at, \n t.metadata, \n t.owner\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "resolved", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 7, - "name": "owner", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Int8", - "Jsonb" - ] - }, - "nullable": [ - false, - false, - false, - null, - null, - null, - true, - false - ] - }, - "hash": "5cf744cd176688700ea98da0351a8c39369e808fdcb9ae39bb8e31ef99bbf3e8" -} diff --git a/rust/cloud-storage/.sqlx/query-5d7c176f88f6883ffdd41a43969a101f26817ebd80c68dbeffe7c3226ab67a41.json b/rust/cloud-storage/.sqlx/query-5d7c176f88f6883ffdd41a43969a101f26817ebd80c68dbeffe7c3226ab67a41.json deleted file mode 100644 index 0010b2933a..0000000000 --- a/rust/cloud-storage/.sqlx/query-5d7c176f88f6883ffdd41a43969a101f26817ebd80c68dbeffe7c3226ab67a41.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO call_record_participants (call_record_id, user_id, joined_at, left_at)\n SELECT $1, user_id, joined_at, left_at\n FROM call_participants\n WHERE call_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "5d7c176f88f6883ffdd41a43969a101f26817ebd80c68dbeffe7c3226ab67a41" -} diff --git a/rust/cloud-storage/.sqlx/query-5d922b5d0478e241a8b0bb3062a61448366cff0f2db4b3bade0294bf0e4a9bf0.json b/rust/cloud-storage/.sqlx/query-5d922b5d0478e241a8b0bb3062a61448366cff0f2db4b3bade0294bf0e4a9bf0.json deleted file mode 100644 index 8627106f3b..0000000000 --- a/rust/cloud-storage/.sqlx/query-5d922b5d0478e241a8b0bb3062a61448366cff0f2db4b3bade0294bf0e4a9bf0.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT name\n FROM \"Chat\"\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "5d922b5d0478e241a8b0bb3062a61448366cff0f2db4b3bade0294bf0e4a9bf0" -} diff --git a/rust/cloud-storage/.sqlx/query-5dc0e1bcbf170bd9bbf24c739411500b574a43db370a9c995599ae8aaca20f23.json b/rust/cloud-storage/.sqlx/query-5dc0e1bcbf170bd9bbf24c739411500b574a43db370a9c995599ae8aaca20f23.json deleted file mode 100644 index 5301e22ea0..0000000000 --- a/rust/cloud-storage/.sqlx/query-5dc0e1bcbf170bd9bbf24c739411500b574a43db370a9c995599ae8aaca20f23.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n channel_id,\n thread_id,\n sender_id,\n content,\n created_at,\n updated_at,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages\n WHERE id = $1 AND channel_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "edited_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - true, - false, - false, - false, - false, - null, - null - ] - }, - "hash": "5dc0e1bcbf170bd9bbf24c739411500b574a43db370a9c995599ae8aaca20f23" -} diff --git a/rust/cloud-storage/.sqlx/query-5df7eb0451abdb0810c1329807dab9213313858eceaea2015c5e6d584d2f168d.json b/rust/cloud-storage/.sqlx/query-5df7eb0451abdb0810c1329807dab9213313858eceaea2015c5e6d584d2f168d.json deleted file mode 100644 index cf67130e20..0000000000 --- a/rust/cloud-storage/.sqlx/query-5df7eb0451abdb0810c1329807dab9213313858eceaea2015c5e6d584d2f168d.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_user_history (link_id, thread_id, created_at, updated_at)\n VALUES ($1, $2, NOW(), NOW())\n ON CONFLICT (link_id, thread_id)\n DO UPDATE SET\n updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "5df7eb0451abdb0810c1329807dab9213313858eceaea2015c5e6d584d2f168d" -} diff --git a/rust/cloud-storage/.sqlx/query-5e4e9cc4a9c2a48dcd4e3988d5dbe7b95b9ceab66d44b0a0158ae65aedd79d02.json b/rust/cloud-storage/.sqlx/query-5e4e9cc4a9c2a48dcd4e3988d5dbe7b95b9ceab66d44b0a0158ae65aedd79d02.json deleted file mode 100644 index c255288f22..0000000000 --- a/rust/cloud-storage/.sqlx/query-5e4e9cc4a9c2a48dcd4e3988d5dbe7b95b9ceab66d44b0a0158ae65aedd79d02.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE scheduled_action\n SET name = $1,\n schedule = $2,\n kind = $3,\n timezone = $4,\n task = $5,\n next_run_at = $6,\n enabled = $7,\n updated_at = now()\n WHERE id = $8\n RETURNING id, owner, name, schedule, kind, timezone, task, claimed, created_at, updated_at, next_run_at, enabled\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "schedule", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "kind", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "timezone", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "task", - "type_info": "Jsonb" - }, - { - "ordinal": 7, - "name": "claimed", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "next_run_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "enabled", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Text", - "Jsonb", - "Timestamptz", - "Bool", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - false - ] - }, - "hash": "5e4e9cc4a9c2a48dcd4e3988d5dbe7b95b9ceab66d44b0a0158ae65aedd79d02" -} diff --git a/rust/cloud-storage/.sqlx/query-5e5f447067de6cef4513c80eae341ba63241b13c30a3413e83f0206497a5591a.json b/rust/cloud-storage/.sqlx/query-5e5f447067de6cef4513c80eae341ba63241b13c30a3413e83f0206497a5591a.json deleted file mode 100644 index a24328f55e..0000000000 --- a/rust/cloud-storage/.sqlx/query-5e5f447067de6cef4513c80eae341ba63241b13c30a3413e83f0206497a5591a.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(*) as count\n FROM \"BomPart\"\n WHERE sha = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "5e5f447067de6cef4513c80eae341ba63241b13c30a3413e83f0206497a5591a" -} diff --git a/rust/cloud-storage/.sqlx/query-5eabbc475e918d8ff312b3c8a4197f5cbc314f1462ba6368aa297ff3758f5e61.json b/rust/cloud-storage/.sqlx/query-5eabbc475e918d8ff312b3c8a4197f5cbc314f1462ba6368aa297ff3758f5e61.json deleted file mode 100644 index 525c2a1b1d..0000000000 --- a/rust/cloud-storage/.sqlx/query-5eabbc475e918d8ff312b3c8a4197f5cbc314f1462ba6368aa297ff3758f5e61.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO notification_email_sent (user_id)\n VALUES ($1)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "5eabbc475e918d8ff312b3c8a4197f5cbc314f1462ba6368aa297ff3758f5e61" -} diff --git a/rust/cloud-storage/.sqlx/query-5ec52bf99ec6fbfa8759ae070b48113cdb5f9a4526c72be1fcce6b3bb2e88d2a.json b/rust/cloud-storage/.sqlx/query-5ec52bf99ec6fbfa8759ae070b48113cdb5f9a4526c72be1fcce6b3bb2e88d2a.json deleted file mode 100644 index 1a727dbbb9..0000000000 --- a/rust/cloud-storage/.sqlx/query-5ec52bf99ec6fbfa8759ae070b48113cdb5f9a4526c72be1fcce6b3bb2e88d2a.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM notification\n WHERE event_item_id = $1 AND event_item_type = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "5ec52bf99ec6fbfa8759ae070b48113cdb5f9a4526c72be1fcce6b3bb2e88d2a" -} diff --git a/rust/cloud-storage/.sqlx/query-5ee7a600e71709918f23db0066f39b2a7a87880e5a9c6aa565ac85e0efdde85d.json b/rust/cloud-storage/.sqlx/query-5ee7a600e71709918f23db0066f39b2a7a87880e5a9c6aa565ac85e0efdde85d.json deleted file mode 100644 index db49ce7734..0000000000 --- a/rust/cloud-storage/.sqlx/query-5ee7a600e71709918f23db0066f39b2a7a87880e5a9c6aa565ac85e0efdde85d.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT SUM(ead.size)::BIGINT\n FROM email_attachments_drafts ead\n JOIN email_messages m ON ead.draft_id = m.id\n WHERE ead.draft_id = $1 AND m.link_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sum", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "5ee7a600e71709918f23db0066f39b2a7a87880e5a9c6aa565ac85e0efdde85d" -} diff --git a/rust/cloud-storage/.sqlx/query-5f05ad6ca76854ac7e9257b63a5ce27e9f8c6a5ba43888d9e357b10d95e0f6f2.json b/rust/cloud-storage/.sqlx/query-5f05ad6ca76854ac7e9257b63a5ce27e9f8c6a5ba43888d9e357b10d95e0f6f2.json deleted file mode 100644 index 964ba5a296..0000000000 --- a/rust/cloud-storage/.sqlx/query-5f05ad6ca76854ac7e9257b63a5ce27e9f8c6a5ba43888d9e357b10d95e0f6f2.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n di.sha\n FROM\n \"DocumentInstance\" di\n WHERE di.\"documentId\" = $1 AND di.id = $2\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sha", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "5f05ad6ca76854ac7e9257b63a5ce27e9f8c6a5ba43888d9e357b10d95e0f6f2" -} diff --git a/rust/cloud-storage/.sqlx/query-5f8bb3fa254adef0d6b582d2d964d9f77f55d10e070be80de74d22e18ba8a7d4.json b/rust/cloud-storage/.sqlx/query-5f8bb3fa254adef0d6b582d2d964d9f77f55d10e070be80de74d22e18ba8a7d4.json deleted file mode 100644 index 318dfc48ff..0000000000 --- a/rust/cloud-storage/.sqlx/query-5f8bb3fa254adef0d6b582d2d964d9f77f55d10e070be80de74d22e18ba8a7d4.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT mui.profile_picture\n FROM macro_user_info mui\n JOIN \"User\" u ON mui.macro_user_id = u.macro_user_id\n WHERE u.id = $1 AND mui.profile_picture IS NOT NULL\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "profile_picture", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "5f8bb3fa254adef0d6b582d2d964d9f77f55d10e070be80de74d22e18ba8a7d4" -} diff --git a/rust/cloud-storage/.sqlx/query-5f8f702012590c04c79b43fdb82d0252976b275c608a3eb96e3043a1a02d452f.json b/rust/cloud-storage/.sqlx/query-5f8f702012590c04c79b43fdb82d0252976b275c608a3eb96e3043a1a02d452f.json deleted file mode 100644 index f34fbaf789..0000000000 --- a/rust/cloud-storage/.sqlx/query-5f8f702012590c04c79b43fdb82d0252976b275c608a3eb96e3043a1a02d452f.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id,\n d.name,\n d.owner,\n d.\"fileType\" as \"file_type!\",\n di.id as \"document_version_id?\"\n FROM\n \"Document\" d\n LEFT JOIN \"DocumentText\" dt ON d.id = dt.\"documentId\"\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" ASC\n LIMIT 1\n ) di ON true\n WHERE\n d.\"deletedAt\" IS NULL\n AND dt.\"documentId\" IS NULL\n AND d.\"fileType\" IS NOT NULL\n ORDER BY d.\"createdAt\" DESC\n LIMIT $1 OFFSET $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "file_type!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "document_version_id?", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - true, - false - ] - }, - "hash": "5f8f702012590c04c79b43fdb82d0252976b275c608a3eb96e3043a1a02d452f" -} diff --git a/rust/cloud-storage/.sqlx/query-5f9f23e45c696db3baa3b172efb66ba931aeb9036344782bd4a5e277df2c7ce2.json b/rust/cloud-storage/.sqlx/query-5f9f23e45c696db3baa3b172efb66ba931aeb9036344782bd4a5e277df2c7ce2.json deleted file mode 100644 index 026cb1931b..0000000000 --- a/rust/cloud-storage/.sqlx/query-5f9f23e45c696db3baa3b172efb66ba931aeb9036344782bd4a5e277df2c7ce2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.content\n FROM\n \"DocumentText\" d\n WHERE\n d.\"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "content", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "5f9f23e45c696db3baa3b172efb66ba931aeb9036344782bd4a5e277df2c7ce2" -} diff --git a/rust/cloud-storage/.sqlx/query-5fabf029c6dd06505963dab2b60eccb8ea77088f535970dbcf5f80d57a9a4c5b.json b/rust/cloud-storage/.sqlx/query-5fabf029c6dd06505963dab2b60eccb8ea77088f535970dbcf5f80d57a9a4c5b.json deleted file mode 100644 index c853ae04b7..0000000000 --- a/rust/cloud-storage/.sqlx/query-5fabf029c6dd06505963dab2b60eccb8ea77088f535970dbcf5f80d57a9a4c5b.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n id,\n organization_id,\n user_id,\n display_name,\n data_type as \"data_type: DataType\",\n is_multi_select,\n specific_entity_type as \"specific_entity_type: Option\",\n created_at,\n updated_at,\n is_system\n FROM property_definitions\n WHERE id = $1\n AND is_system = FALSE\n AND (\n user_id = $2\n OR ($3::int IS NOT NULL AND organization_id = $3)\n )\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "organization_id", - "type_info": "Int4" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "display_name", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "data_type: DataType", - "type_info": { - "Custom": { - "name": "property_data_type", - "kind": { - "Enum": [ - "BOOLEAN", - "DATE", - "NUMBER", - "STRING", - "SELECT_NUMBER", - "SELECT_STRING", - "ENTITY", - "LINK" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_multi_select", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "specific_entity_type: Option", - "type_info": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "is_system", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Int4" - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - false, - true, - false, - false, - false - ] - }, - "hash": "5fabf029c6dd06505963dab2b60eccb8ea77088f535970dbcf5f80d57a9a4c5b" -} diff --git a/rust/cloud-storage/.sqlx/query-5fc28ed3d53550bec9f1d5fdd1c330f4678e3d3d44f1369bdd0b31f21600fdb1.json b/rust/cloud-storage/.sqlx/query-5fc28ed3d53550bec9f1d5fdd1c330f4678e3d3d44f1369bdd0b31f21600fdb1.json deleted file mode 100644 index fcde9acfef..0000000000 --- a/rust/cloud-storage/.sqlx/query-5fc28ed3d53550bec9f1d5fdd1c330f4678e3d3d44f1369bdd0b31f21600fdb1.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH spam_labels AS (\n SELECT id, link_id FROM email_labels WHERE link_id = ANY($1) AND name = 'SPAM'\n ),\n trash_labels AS (\n SELECT id, link_id FROM email_labels WHERE link_id = ANY($1) AND name = 'TRASH'\n ),\n important_labels AS (\n SELECT id, link_id FROM email_labels WHERE link_id = ANY($1) AND name = 'IMPORTANT'\n )\n SELECT\n t.id,\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN important_labels il ON ml.label_id = il.id\n WHERE m_imp.thread_id = t.id\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Efficiently find, sort, and limit the top N+1 threads.\n -- This subquery only touches `threads` and `user_history`, making it very fast.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.inbox_visible,\n t.is_read,\n t.project_id,\n t.latest_non_spam_message_ts AS created_at,\n t.latest_non_spam_message_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_non_spam_message_ts)\n ELSE t.latest_non_spam_message_ts\n END AS effective_ts\n FROM email_threads t\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n t.link_id = ANY($1)\n AND t.latest_non_spam_message_ts IS NOT NULL\n\n -- Cursor logic is moved inside for maximum efficiency\n AND (($3::timestamptz IS NULL) OR (\n -- This CASE must exactly match the one that defines `effective_ts`\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_non_spam_message_ts)\n ELSE t.latest_non_spam_message_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find its latest non-SPAM/TRASH message.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.is_draft,\n m.from_contact_id,\n m.from_name\n FROM email_messages m\n WHERE m.thread_id = t.id\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN spam_labels sl ON ml.label_id = sl.id\n WHERE ml.message_id = m.id\n )\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN trash_labels tl ON ml.label_id = tl.id\n WHERE ml.message_id = m.id\n )\n ORDER BY m.internal_date_ts DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details for the final result set.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n ORDER BY t.effective_ts DESC, t.updated_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "inbox_visible", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "sort_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "viewed_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "name?", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "snippet?", - "type_info": "Text" - }, - { - "ordinal": 11, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 12, - "name": "is_important!", - "type_info": "Bool" - }, - { - "ordinal": 13, - "name": "sender_email?", - "type_info": "Varchar" - }, - { - "ordinal": 14, - "name": "sender_name?", - "type_info": "Varchar" - }, - { - "ordinal": 15, - "name": "sender_photo_url?", - "type_info": "Text" - }, - { - "ordinal": 16, - "name": "owner_id!", - "type_info": "Text" - }, - { - "ordinal": 17, - "name": "link_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "Int8", - "Timestamptz", - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - true, - false, - false, - null, - true, - true, - true, - false, - true, - true, - false, - null, - false, - null, - true, - false, - false - ] - }, - "hash": "5fc28ed3d53550bec9f1d5fdd1c330f4678e3d3d44f1369bdd0b31f21600fdb1" -} diff --git a/rust/cloud-storage/.sqlx/query-5fd1abfdae31c22ce5c71a9c3e9607566b99dbd819d7bca5a88e62fac00098d4.json b/rust/cloud-storage/.sqlx/query-5fd1abfdae31c22ce5c71a9c3e9607566b99dbd819d7bca5a88e62fac00098d4.json deleted file mode 100644 index ad058d2085..0000000000 --- a/rust/cloud-storage/.sqlx/query-5fd1abfdae31c22ce5c71a9c3e9607566b99dbd819d7bca5a88e62fac00098d4.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE notification\n SET apns_collapse_key = $2\n WHERE id = $1\n RETURNING\n event_item_id,\n event_item_type,\n notification_event_type,\n apns_collapse_key as \"apns_collapse_key!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "event_item_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "event_item_type", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "notification_event_type", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "apns_collapse_key!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true - ] - }, - "hash": "5fd1abfdae31c22ce5c71a9c3e9607566b99dbd819d7bca5a88e62fac00098d4" -} diff --git a/rust/cloud-storage/.sqlx/query-5fd401a3c1bd6de73881967420cd5056b6e87465a3e8c7bcde2db81b75ba2f57.json b/rust/cloud-storage/.sqlx/query-5fd401a3c1bd6de73881967420cd5056b6e87465a3e8c7bcde2db81b75ba2f57.json deleted file mode 100644 index de122edc97..0000000000 --- a/rust/cloud-storage/.sqlx/query-5fd401a3c1bd6de73881967420cd5056b6e87465a3e8c7bcde2db81b75ba2f57.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM foreign_entity\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "5fd401a3c1bd6de73881967420cd5056b6e87465a3e8c7bcde2db81b75ba2f57" -} diff --git a/rust/cloud-storage/.sqlx/query-5ff5a0e3731dc62354f69e26961fee699c6de82cfa14ba2a403486731366d664.json b/rust/cloud-storage/.sqlx/query-5ff5a0e3731dc62354f69e26961fee699c6de82cfa14ba2a403486731366d664.json deleted file mode 100644 index e22db21cde..0000000000 --- a/rust/cloud-storage/.sqlx/query-5ff5a0e3731dc62354f69e26961fee699c6de82cfa14ba2a403486731366d664.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT r.emoji, r.user_id, r.created_at\n FROM comms_reactions r\n JOIN comms_messages m ON m.id = r.message_id\n WHERE r.message_id = $1 AND m.channel_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "emoji", - "type_info": "Varchar" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "5ff5a0e3731dc62354f69e26961fee699c6de82cfa14ba2a403486731366d664" -} diff --git a/rust/cloud-storage/.sqlx/query-5ffee439386fd24fee2bfa20caa76b882f5be1d44a2a06a71783418fc5ef381b.json b/rust/cloud-storage/.sqlx/query-5ffee439386fd24fee2bfa20caa76b882f5be1d44a2a06a71783418fc5ef381b.json deleted file mode 100644 index ac050656e7..0000000000 --- a/rust/cloud-storage/.sqlx/query-5ffee439386fd24fee2bfa20caa76b882f5be1d44a2a06a71783418fc5ef381b.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n SELECT $1, $2, u.user_id, 'user', $3\n FROM UNNEST($4::text[]) as u(user_id)\n ON CONFLICT (entity_id, entity_type, source_id, source_type)\n WHERE granted_from_project_id IS NULL\n AND access_level != 'owner' -- this prevents us from overriding the owner user\n DO UPDATE SET access_level = EXCLUDED.access_level, updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - { - "Custom": { - "name": "\"AccessLevel\"", - "kind": { - "Enum": [ - "view", - "comment", - "edit", - "owner" - ] - } - } - }, - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "5ffee439386fd24fee2bfa20caa76b882f5be1d44a2a06a71783418fc5ef381b" -} diff --git a/rust/cloud-storage/.sqlx/query-601165c041981d75e53661a10ffd67a55ae4e7f2cf8bdde6ad1c834196934cf4.json b/rust/cloud-storage/.sqlx/query-601165c041981d75e53661a10ffd67a55ae4e7f2cf8bdde6ad1c834196934cf4.json deleted file mode 100644 index 684abe4cf8..0000000000 --- a/rust/cloud-storage/.sqlx/query-601165c041981d75e53661a10ffd67a55ae4e7f2cf8bdde6ad1c834196934cf4.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM macro_user WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "601165c041981d75e53661a10ffd67a55ae4e7f2cf8bdde6ad1c834196934cf4" -} diff --git a/rust/cloud-storage/.sqlx/query-60160128531d4bd143edb6e3af105954c5f749b5a76592d8ba8bd78d3ed410cc.json b/rust/cloud-storage/.sqlx/query-60160128531d4bd143edb6e3af105954c5f749b5a76592d8ba8bd78d3ed410cc.json deleted file mode 100644 index 07556c0356..0000000000 --- a/rust/cloud-storage/.sqlx/query-60160128531d4bd143edb6e3af105954c5f749b5a76592d8ba8bd78d3ed410cc.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id, url, server_name, credentials, enabled\n FROM mcp_servers\n WHERE user_id = $1 AND url = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "url", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "server_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "credentials", - "type_info": "Bytea" - }, - { - "ordinal": 4, - "name": "enabled", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - false - ] - }, - "hash": "60160128531d4bd143edb6e3af105954c5f749b5a76592d8ba8bd78d3ed410cc" -} diff --git a/rust/cloud-storage/.sqlx/query-6038d459d2d8e60479180f5b8a756380bda195f4769b6420e601ed147a9439f9.json b/rust/cloud-storage/.sqlx/query-6038d459d2d8e60479180f5b8a756380bda195f4769b6420e601ed147a9439f9.json deleted file mode 100644 index 7f19805b0c..0000000000 --- a/rust/cloud-storage/.sqlx/query-6038d459d2d8e60479180f5b8a756380bda195f4769b6420e601ed147a9439f9.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.\"id\" as \"item_id!\",\n c.created_at as \"created_at!\",\n c.updated_at as \"updated_at!\",\n uh.viewed_at as \"viewed_at?\",\n uh.interacted_at as \"interacted_at?\",\n c.owner_id as \"user_id\",\n c.channel_type AS \"channel_type: ChannelType\"\n FROM\n comms_channels c\n LEFT JOIN\n comms_activity uh ON uh.channel_id = c.id\n AND uh.user_id = $1\n WHERE\n c.id = ANY($2)\n ORDER BY\n c.updated_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 2, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "viewed_at?", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "interacted_at?", - "type_info": "Timestamp" - }, - { - "ordinal": 5, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "channel_type: ChannelType", - "type_info": { - "Custom": { - "name": "comms_channel_type", - "kind": { - "Enum": [ - "public", - "private", - "direct_message", - "team" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Text", - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - false, - false - ] - }, - "hash": "6038d459d2d8e60479180f5b8a756380bda195f4769b6420e601ed147a9439f9" -} diff --git a/rust/cloud-storage/.sqlx/query-60707c986f365c7b49d1938285b601338c1d98e45b630d1a3e1622fb16ad58b6.json b/rust/cloud-storage/.sqlx/query-60707c986f365c7b49d1938285b601338c1d98e45b630d1a3e1622fb16ad58b6.json deleted file mode 100644 index 395a3e1776..0000000000 --- a/rust/cloud-storage/.sqlx/query-60707c986f365c7b49d1938285b601338c1d98e45b630d1a3e1622fb16ad58b6.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id,\n m.link_id,\n m.thread_id,\n m.provider_thread_id,\n m.headers_jsonb,\n m.is_sent,\n m.is_draft\n FROM email_messages m\n WHERE m.link_id = $1\n AND m.is_draft = true\n AND jsonb_path_exists(\n m.headers_jsonb,\n '$[*] ? (@.\"Macro-In-Reply-To\" == $macro_uuid)'::jsonpath,\n jsonb_build_object('macro_uuid', $2::text)\n )\n ORDER BY m.created_at DESC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 5, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "is_draft", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - false, - false - ] - }, - "hash": "60707c986f365c7b49d1938285b601338c1d98e45b630d1a3e1622fb16ad58b6" -} diff --git a/rust/cloud-storage/.sqlx/query-607eecc4c046c7bae3bdcdc4e20a5bfa78673bf04979c01365b9e9a35398125f.json b/rust/cloud-storage/.sqlx/query-607eecc4c046c7bae3bdcdc4e20a5bfa78673bf04979c01365b9e9a35398125f.json deleted file mode 100644 index 29844bb1d6..0000000000 --- a/rust/cloud-storage/.sqlx/query-607eecc4c046c7bae3bdcdc4e20a5bfa78673bf04979c01365b9e9a35398125f.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"sharePermissionId\" as \"share_permission_id!\"\n FROM \"EmailThreadPermission\"\n WHERE \"threadId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "607eecc4c046c7bae3bdcdc4e20a5bfa78673bf04979c01365b9e9a35398125f" -} diff --git a/rust/cloud-storage/.sqlx/query-609f0f7ffb41618435bfabd82f782666220cf9bf24918ba7c7b9fce1fcd5783e.json b/rust/cloud-storage/.sqlx/query-609f0f7ffb41618435bfabd82f782666220cf9bf24918ba7c7b9fce1fcd5783e.json deleted file mode 100644 index aceea5d3e6..0000000000 --- a/rust/cloud-storage/.sqlx/query-609f0f7ffb41618435bfabd82f782666220cf9bf24918ba7c7b9fce1fcd5783e.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH per_speaker AS (\n SELECT\n u.macro_user_id,\n COUNT(*) AS total_segments,\n COUNT(t.diarized_speaker_id) AS diarized_segments,\n COUNT(DISTINCT t.diarized_speaker_id) AS distinct_diarized_speaker_ids,\n ARRAY_AGG(DISTINCT t.voice_id) FILTER (WHERE t.voice_id IS NOT NULL) AS voice_ids,\n MIN(t.sequence_num) AS first_sequence_num\n FROM call_record_transcripts t\n JOIN \"User\" u\n ON u.id = t.speaker_id\n AND u.macro_user_id IS NOT NULL\n WHERE t.call_record_id = $1\n GROUP BY t.speaker_id, u.macro_user_id\n )\n SELECT macro_user_id AS \"macro_user_id!\", voices.voice_id AS \"voice_id!\"\n FROM per_speaker\n CROSS JOIN LATERAL UNNEST(voice_ids) AS voices(voice_id)\n WHERE total_segments = diarized_segments\n AND distinct_diarized_speaker_ids = 1\n ORDER BY first_sequence_num ASC, voices.voice_id ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "voice_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - null - ] - }, - "hash": "609f0f7ffb41618435bfabd82f782666220cf9bf24918ba7c7b9fce1fcd5783e" -} diff --git a/rust/cloud-storage/.sqlx/query-60d9e2a257fd628f345cb615e9d6d201ca5190bdbca1c90001a98c46b789771f.json b/rust/cloud-storage/.sqlx/query-60d9e2a257fd628f345cb615e9d6d201ca5190bdbca1c90001a98c46b789771f.json deleted file mode 100644 index 287c0eb3ce..0000000000 --- a/rust/cloud-storage/.sqlx/query-60d9e2a257fd628f345cb615e9d6d201ca5190bdbca1c90001a98c46b789771f.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT schedule, timezone\n FROM scheduled_action\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "schedule", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "timezone", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "60d9e2a257fd628f345cb615e9d6d201ca5190bdbca1c90001a98c46b789771f" -} diff --git a/rust/cloud-storage/.sqlx/query-6107da3c9e3018aed3dce2c0a29baa584754659223dc45b3adbf30959b7f739e.json b/rust/cloud-storage/.sqlx/query-6107da3c9e3018aed3dce2c0a29baa584754659223dc45b3adbf30959b7f739e.json deleted file mode 100644 index 70975b0a69..0000000000 --- a/rust/cloud-storage/.sqlx/query-6107da3c9e3018aed3dce2c0a29baa584754659223dc45b3adbf30959b7f739e.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"SharePermission\"\n WHERE id IN (\n SELECT \"sharePermissionId\"\n FROM \"ChatPermission\"\n WHERE \"chatId\" = ANY($1)\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "6107da3c9e3018aed3dce2c0a29baa584754659223dc45b3adbf30959b7f739e" -} diff --git a/rust/cloud-storage/.sqlx/query-61246005cb69889a67ac46d2032f4fe9c1da7b19594f1b7dc59f2ed0a613dec1.json b/rust/cloud-storage/.sqlx/query-61246005cb69889a67ac46d2032f4fe9c1da7b19594f1b7dc59f2ed0a613dec1.json deleted file mode 100644 index ccd0aadea5..0000000000 --- a/rust/cloud-storage/.sqlx/query-61246005cb69889a67ac46d2032f4fe9c1da7b19594f1b7dc59f2ed0a613dec1.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_messages (id, channel_id, sender_id, content, thread_id)\n VALUES ($1, $2, $3, $4, $5)\n RETURNING\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at as \"edited_at: chrono::DateTime\",\n deleted_at as \"deleted_at: chrono::DateTime\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "edited_at: chrono::DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 8, - "name": "deleted_at: chrono::DateTime", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text", - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - true, - true - ] - }, - "hash": "61246005cb69889a67ac46d2032f4fe9c1da7b19594f1b7dc59f2ed0a613dec1" -} diff --git a/rust/cloud-storage/.sqlx/query-614ef7fa61ce3e4521e8923ebe706ae249491210d011843f13d67214f65565c3.json b/rust/cloud-storage/.sqlx/query-614ef7fa61ce3e4521e8923ebe706ae249491210d011843f13d67214f65565c3.json deleted file mode 100644 index 989dd359c2..0000000000 --- a/rust/cloud-storage/.sqlx/query-614ef7fa61ce3e4521e8923ebe706ae249491210d011843f13d67214f65565c3.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_threads (id, provider_id, link_id, inbox_visible, is_read, latest_inbound_message_ts,\n latest_outbound_message_ts, latest_non_spam_message_ts)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n ON CONFLICT (link_id, provider_id) WHERE provider_id IS NOT NULL DO UPDATE\n SET\n latest_inbound_message_ts = EXCLUDED.latest_inbound_message_ts,\n updated_at = NOW()\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Uuid", - "Bool", - "Bool", - "Timestamptz", - "Timestamptz", - "Timestamptz" - ] - }, - "nullable": [ - false - ] - }, - "hash": "614ef7fa61ce3e4521e8923ebe706ae249491210d011843f13d67214f65565c3" -} diff --git a/rust/cloud-storage/.sqlx/query-6177b5abe20800c5fbfb07f78f44f933169f5ee39129b4bd6fa372311cdc15bb.json b/rust/cloud-storage/.sqlx/query-6177b5abe20800c5fbfb07f78f44f933169f5ee39129b4bd6fa372311cdc15bb.json deleted file mode 100644 index bcd3092856..0000000000 --- a/rust/cloud-storage/.sqlx/query-6177b5abe20800c5fbfb07f78f44f933169f5ee39129b4bd6fa372311cdc15bb.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_channel_participants (channel_id, user_id, role, left_at)\n VALUES ($1, $2, 'member'::comms_participant_role, NULL)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "6177b5abe20800c5fbfb07f78f44f933169f5ee39129b4bd6fa372311cdc15bb" -} diff --git a/rust/cloud-storage/.sqlx/query-61d663d08e05ea919df584b273c67e2d99c3981222a87e823892706e4b9354ac.json b/rust/cloud-storage/.sqlx/query-61d663d08e05ea919df584b273c67e2d99c3981222a87e823892706e4b9354ac.json deleted file mode 100644 index a25b42db28..0000000000 --- a/rust/cloud-storage/.sqlx/query-61d663d08e05ea919df584b273c67e2d99c3981222a87e823892706e4b9354ac.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE crm_companies\n SET updated_at = now(),\n first_interaction = CASE\n WHEN $4 THEN LEAST(first_interaction, $2)\n ELSE first_interaction\n END,\n last_interaction = GREATEST(last_interaction, $3)\n WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Timestamptz", - "Timestamptz", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "61d663d08e05ea919df584b273c67e2d99c3981222a87e823892706e4b9354ac" -} diff --git a/rust/cloud-storage/.sqlx/query-61e82a1be0d1352b8a1147bbff2dc3bd8e945b75380f112bb1118491b3d03f96.json b/rust/cloud-storage/.sqlx/query-61e82a1be0d1352b8a1147bbff2dc3bd8e945b75380f112bb1118491b3d03f96.json deleted file mode 100644 index d8e19e46a0..0000000000 --- a/rust/cloud-storage/.sqlx/query-61e82a1be0d1352b8a1147bbff2dc3bd8e945b75380f112bb1118491b3d03f96.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO team_invite (id, team_id, email, team_role, invited_by, created_at, last_sent_at)\n SELECT\n t.id,\n $1::uuid,\n t.email,\n $2,\n $3::text,\n NOW(),\n NOW()\n FROM UNNEST($4::uuid[], $5::text[], $6::text[]) AS t(id, email, user_id)\n WHERE NOT EXISTS (\n SELECT 1 FROM team_invite ti\n WHERE ti.team_id = $1 AND ti.email = t.email\n )\n AND NOT EXISTS (\n SELECT 1 FROM team_user tu\n WHERE tu.team_id = $1 AND tu.user_id = t.user_id\n )\n RETURNING id, team_id, email\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "team_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "email", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "name": "team_role", - "kind": { - "Enum": [ - "member", - "admin", - "owner" - ] - } - } - }, - "Text", - "UuidArray", - "TextArray", - "TextArray" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "61e82a1be0d1352b8a1147bbff2dc3bd8e945b75380f112bb1118491b3d03f96" -} diff --git a/rust/cloud-storage/.sqlx/query-6206a64301c4a62de624c6cb0db3c1053c050c7529496a73e3cf74d728f5b6ff.json b/rust/cloud-storage/.sqlx/query-6206a64301c4a62de624c6cb0db3c1053c050c7529496a73e3cf74d728f5b6ff.json deleted file mode 100644 index 0dc7579362..0000000000 --- a/rust/cloud-storage/.sqlx/query-6206a64301c4a62de624c6cb0db3c1053c050c7529496a73e3cf74d728f5b6ff.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"RolesOnUsers\" (\"userId\", \"roleId\")\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "6206a64301c4a62de624c6cb0db3c1053c050c7529496a73e3cf74d728f5b6ff" -} diff --git a/rust/cloud-storage/.sqlx/query-621186dcec072b603a5f3d7b9e987a1638589d539c60d9dc5c2ab0865ff062d6.json b/rust/cloud-storage/.sqlx/query-621186dcec072b603a5f3d7b9e987a1638589d539c60d9dc5c2ab0865ff062d6.json deleted file mode 100644 index d0a749ebd2..0000000000 --- a/rust/cloud-storage/.sqlx/query-621186dcec072b603a5f3d7b9e987a1638589d539c60d9dc5c2ab0865ff062d6.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id FROM user_mute_notification\n WHERE user_id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "621186dcec072b603a5f3d7b9e987a1638589d539c60d9dc5c2ab0865ff062d6" -} diff --git a/rust/cloud-storage/.sqlx/query-625ee33d48768e369ee1fe3abe27811ad04313b1aa31f4b51abe5fd3bf569674.json b/rust/cloud-storage/.sqlx/query-625ee33d48768e369ee1fe3abe27811ad04313b1aa31f4b51abe5fd3bf569674.json deleted file mode 100644 index d374c2f79f..0000000000 --- a/rust/cloud-storage/.sqlx/query-625ee33d48768e369ee1fe3abe27811ad04313b1aa31f4b51abe5fd3bf569674.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM user_notification_type_preference\n WHERE user_id = $1 AND notification_event_type = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "625ee33d48768e369ee1fe3abe27811ad04313b1aa31f4b51abe5fd3bf569674" -} diff --git a/rust/cloud-storage/.sqlx/query-62e6fee27bdd5c6fb4d7d7037977655784e36ba1b3285b607ff59d9d88829f7a.json b/rust/cloud-storage/.sqlx/query-62e6fee27bdd5c6fb4d7d7037977655784e36ba1b3285b607ff59d9d88829f7a.json deleted file mode 100644 index ab0474981a..0000000000 --- a/rust/cloud-storage/.sqlx/query-62e6fee27bdd5c6fb4d7d7037977655784e36ba1b3285b607ff59d9d88829f7a.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM github_app_installation\n WHERE source_id = $1\n AND source_type = 'team'::github_app_installation_source_type\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "62e6fee27bdd5c6fb4d7d7037977655784e36ba1b3285b607ff59d9d88829f7a" -} diff --git a/rust/cloud-storage/.sqlx/query-6343ce39e05b97056a1e0f7d24f929f7aac2269af2ec0830f98558045826576f.json b/rust/cloud-storage/.sqlx/query-6343ce39e05b97056a1e0f7d24f929f7aac2269af2ec0830f98558045826576f.json deleted file mode 100644 index c06bc55385..0000000000 --- a/rust/cloud-storage/.sqlx/query-6343ce39e05b97056a1e0f7d24f929f7aac2269af2ec0830f98558045826576f.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT content\n FROM \"ChatMessage\"\n WHERE \"id\" = $1 AND \"chatId\" = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "content", - "type_info": "Jsonb" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "6343ce39e05b97056a1e0f7d24f929f7aac2269af2ec0830f98558045826576f" -} diff --git a/rust/cloud-storage/.sqlx/query-63492b018803ce26db5891964a0f52f37d2f54bd8243265c6561f4423af8617c.json b/rust/cloud-storage/.sqlx/query-63492b018803ce26db5891964a0f52f37d2f54bd8243265c6561f4423af8617c.json deleted file mode 100644 index 6d97183829..0000000000 --- a/rust/cloud-storage/.sqlx/query-63492b018803ce26db5891964a0f52f37d2f54bd8243265c6561f4423af8617c.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO entity_properties (id, entity_id, entity_type, property_definition_id, values)\n SELECT \n u.id,\n u.entity_id,\n 'TASK'::property_entity_type,\n u.property_definition_id,\n NULL\n FROM UNNEST(\n $1::UUID[],\n $2::TEXT[],\n $3::UUID[]\n ) AS u(id, entity_id, property_definition_id)\n ON CONFLICT (entity_id, entity_type, property_definition_id)\n DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "TextArray", - "UuidArray" - ] - }, - "nullable": [] - }, - "hash": "63492b018803ce26db5891964a0f52f37d2f54bd8243265c6561f4423af8617c" -} diff --git a/rust/cloud-storage/.sqlx/query-638409c05db350cedd85b28991817b43793526453437ac01d9d20df52ff87ced.json b/rust/cloud-storage/.sqlx/query-638409c05db350cedd85b28991817b43793526453437ac01d9d20df52ff87ced.json deleted file mode 100644 index b36019aa97..0000000000 --- a/rust/cloud-storage/.sqlx/query-638409c05db350cedd85b28991817b43793526453437ac01d9d20df52ff87ced.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n \"userId\" as user_id\n FROM\n \"Project\"\n WHERE\n \"deletedAt\" IS NULL\n ORDER BY\n \"createdAt\" DESC\n LIMIT $1 OFFSET $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "638409c05db350cedd85b28991817b43793526453437ac01d9d20df52ff87ced" -} diff --git a/rust/cloud-storage/.sqlx/query-63a478f0ae0ec6d9e9cb4c3de55a880b859bc61f745087e067f6b05e6878cc04.json b/rust/cloud-storage/.sqlx/query-63a478f0ae0ec6d9e9cb4c3de55a880b859bc61f745087e067f6b05e6878cc04.json deleted file mode 100644 index 31007ad5b4..0000000000 --- a/rust/cloud-storage/.sqlx/query-63a478f0ae0ec6d9e9cb4c3de55a880b859bc61f745087e067f6b05e6878cc04.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"organizationId\" as id\n FROM \"OrganizationIT\"\n WHERE \"email\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "63a478f0ae0ec6d9e9cb4c3de55a880b859bc61f745087e067f6b05e6878cc04" -} diff --git a/rust/cloud-storage/.sqlx/query-63a5819e9b22bf76402a3afcdfb6bc6cd3a96d84e15909c85c8e6ec4a8b69e42.json b/rust/cloud-storage/.sqlx/query-63a5819e9b22bf76402a3afcdfb6bc6cd3a96d84e15909c85c8e6ec4a8b69e42.json deleted file mode 100644 index ac6c699e55..0000000000 --- a/rust/cloud-storage/.sqlx/query-63a5819e9b22bf76402a3afcdfb6bc6cd3a96d84e15909c85c8e6ec4a8b69e42.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO user_mute_notification (user_id) VALUES ($1)\n ON CONFLICT (user_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "63a5819e9b22bf76402a3afcdfb6bc6cd3a96d84e15909c85c8e6ec4a8b69e42" -} diff --git a/rust/cloud-storage/.sqlx/query-63b8a0bc87e00d95ca046f0602a14ef73e9c8ebffb19a40ed7e059004d9bdb9a.json b/rust/cloud-storage/.sqlx/query-63b8a0bc87e00d95ca046f0602a14ef73e9c8ebffb19a40ed7e059004d9bdb9a.json deleted file mode 100644 index 2e97e18d29..0000000000 --- a/rust/cloud-storage/.sqlx/query-63b8a0bc87e00d95ca046f0602a14ef73e9c8ebffb19a40ed7e059004d9bdb9a.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM comms_channel_participants\n WHERE user_id = $2\n AND channel_id IN (\n SELECT id FROM comms_channels WHERE team_id = $1\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "63b8a0bc87e00d95ca046f0602a14ef73e9c8ebffb19a40ed7e059004d9bdb9a" -} diff --git a/rust/cloud-storage/.sqlx/query-63ca13cc79c27b5267ebbf53491b657ca7671e1ab9d1a4691372693a9f9a4ff8.json b/rust/cloud-storage/.sqlx/query-63ca13cc79c27b5267ebbf53491b657ca7671e1ab9d1a4691372693a9f9a4ff8.json deleted file mode 100644 index a110bb67c6..0000000000 --- a/rust/cloud-storage/.sqlx/query-63ca13cc79c27b5267ebbf53491b657ca7671e1ab9d1a4691372693a9f9a4ff8.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT DISTINCT cp.user_id\n FROM comms_channel_participants cp\n WHERE cp.channel_id = $1 AND cp.left_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "63ca13cc79c27b5267ebbf53491b657ca7671e1ab9d1a4691372693a9f9a4ff8" -} diff --git a/rust/cloud-storage/.sqlx/query-63eecd3605682482786210e65ac14cd04b67b741bac7bac67471bcfe21205d80.json b/rust/cloud-storage/.sqlx/query-63eecd3605682482786210e65ac14cd04b67b741bac7bac67471bcfe21205d80.json deleted file mode 100644 index 8437d9133a..0000000000 --- a/rust/cloud-storage/.sqlx/query-63eecd3605682482786210e65ac14cd04b67b741bac7bac67471bcfe21205d80.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n eaf.attachment_id,\n eaf.message_id AS draft_id,\n ea.provider_attachment_id,\n orig_msg.provider_id AS \"message_provider_id!\",\n ea.filename,\n ea.mime_type,\n ea.size_bytes\n FROM email_attachments_fwd eaf\n JOIN email_attachments ea ON eaf.attachment_id = ea.id\n JOIN email_messages orig_msg ON ea.message_id = orig_msg.id\n WHERE eaf.message_id = ANY($1)\n ORDER BY eaf.message_id, ea.filename ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "attachment_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "draft_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_attachment_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "message_provider_id!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "filename", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "mime_type", - "type_info": "Varchar" - }, - { - "ordinal": 6, - "name": "size_bytes", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - true, - true, - true, - true, - true - ] - }, - "hash": "63eecd3605682482786210e65ac14cd04b67b741bac7bac67471bcfe21205d80" -} diff --git a/rust/cloud-storage/.sqlx/query-6405181c054f5b865e4dafb1a665d33e0f3cdd3a3bab22f0fd1eb5e71c46a935.json b/rust/cloud-storage/.sqlx/query-6405181c054f5b865e4dafb1a665d33e0f3cdd3a3bab22f0fd1eb5e71c46a935.json deleted file mode 100644 index 03bae7e074..0000000000 --- a/rust/cloud-storage/.sqlx/query-6405181c054f5b865e4dafb1a665d33e0f3cdd3a3bab22f0fd1eb5e71c46a935.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO macro_user_info (macro_user_id, industry, title, first_name, last_name, profile_picture, profile_picture_hash)\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n ON CONFLICT (macro_user_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Text", - "Text", - "Text", - "Varchar" - ] - }, - "nullable": [] - }, - "hash": "6405181c054f5b865e4dafb1a665d33e0f3cdd3a3bab22f0fd1eb5e71c46a935" -} diff --git a/rust/cloud-storage/.sqlx/query-64335bf8a0c673f907b40511dc568f1cd36c04d98b98016eaed27a98622c05c4.json b/rust/cloud-storage/.sqlx/query-64335bf8a0c673f907b40511dc568f1cd36c04d98b98016eaed27a98622c05c4.json deleted file mode 100644 index 3760d059dc..0000000000 --- a/rust/cloud-storage/.sqlx/query-64335bf8a0c673f907b40511dc568f1cd36c04d98b98016eaed27a98622c05c4.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id,\n m.link_id,\n m.thread_id,\n m.provider_thread_id,\n m.headers_jsonb,\n m.is_sent,\n m.is_draft\n FROM email_messages m\n WHERE m.id = $1 AND m.link_id = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 5, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "is_draft", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - false, - false - ] - }, - "hash": "64335bf8a0c673f907b40511dc568f1cd36c04d98b98016eaed27a98622c05c4" -} diff --git a/rust/cloud-storage/.sqlx/query-643b149e8a3c616d39850f156f37cdc1a007500afdc7c8e232a59a8b60824962.json b/rust/cloud-storage/.sqlx/query-643b149e8a3c616d39850f156f37cdc1a007500afdc7c8e232a59a8b60824962.json deleted file mode 100644 index 70b89288cf..0000000000 --- a/rust/cloud-storage/.sqlx/query-643b149e8a3c616d39850f156f37cdc1a007500afdc7c8e232a59a8b60824962.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n channel_id,\n user_id,\n role AS \"role: ParticipantRole\",\n joined_at,\n left_at::timestamptz AS \"left_at?\"\n FROM comms_channel_participants\n WHERE channel_id = $1 AND left_at IS NULL\n ORDER BY joined_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "role: ParticipantRole", - "type_info": { - "Custom": { - "name": "comms_participant_role", - "kind": { - "Enum": [ - "owner", - "admin", - "member" - ] - } - } - } - }, - { - "ordinal": 3, - "name": "joined_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "left_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - true - ] - }, - "hash": "643b149e8a3c616d39850f156f37cdc1a007500afdc7c8e232a59a8b60824962" -} diff --git a/rust/cloud-storage/.sqlx/query-64407ed474bb1ea2930c431fad30657cfa6d5e400247cbf304a3d28cde13c39d.json b/rust/cloud-storage/.sqlx/query-64407ed474bb1ea2930c431fad30657cfa6d5e400247cbf304a3d28cde13c39d.json deleted file mode 100644 index 388d284af5..0000000000 --- a/rust/cloud-storage/.sqlx/query-64407ed474bb1ea2930c431fad30657cfa6d5e400247cbf304a3d28cde13c39d.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.email\n FROM\n \"User\" u\n LIMIT $1 OFFSET $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "64407ed474bb1ea2930c431fad30657cfa6d5e400247cbf304a3d28cde13c39d" -} diff --git a/rust/cloud-storage/.sqlx/query-6450fb466802ad93f651d24054fd250abab1fda9e01dfd44d7e02e53f107816f.json b/rust/cloud-storage/.sqlx/query-6450fb466802ad93f651d24054fd250abab1fda9e01dfd44d7e02e53f107816f.json deleted file mode 100644 index 63509f18c0..0000000000 --- a/rust/cloud-storage/.sqlx/query-6450fb466802ad93f651d24054fd250abab1fda9e01dfd44d7e02e53f107816f.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, owner, name, schedule, kind, timezone, task, claimed, created_at, updated_at, next_run_at, enabled\n FROM scheduled_action\n WHERE enabled\n AND (claimed IS NULL OR claimed < $1)\n ORDER BY next_run_at ASC\n LIMIT $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "schedule", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "kind", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "timezone", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "task", - "type_info": "Jsonb" - }, - { - "ordinal": 7, - "name": "claimed", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "next_run_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "enabled", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Timestamptz", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - false - ] - }, - "hash": "6450fb466802ad93f651d24054fd250abab1fda9e01dfd44d7e02e53f107816f" -} diff --git a/rust/cloud-storage/.sqlx/query-64d3a59468f973251be473a78180d6178a8fbdfe21983501c6baf4ce30cbe5d2.json b/rust/cloud-storage/.sqlx/query-64d3a59468f973251be473a78180d6178a8fbdfe21983501c6baf4ce30cbe5d2.json deleted file mode 100644 index 1336af405e..0000000000 --- a/rust/cloud-storage/.sqlx/query-64d3a59468f973251be473a78180d6178a8fbdfe21983501c6baf4ce30cbe5d2.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"SharePermission\"\n WHERE \"id\" = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "64d3a59468f973251be473a78180d6178a8fbdfe21983501c6baf4ce30cbe5d2" -} diff --git a/rust/cloud-storage/.sqlx/query-650ab172f8fa2dd93e941fc49ce22a86ce4333805799488d1c37df47d928ddc2.json b/rust/cloud-storage/.sqlx/query-650ab172f8fa2dd93e941fc49ce22a86ce4333805799488d1c37df47d928ddc2.json deleted file mode 100644 index 7a14f8736e..0000000000 --- a/rust/cloud-storage/.sqlx/query-650ab172f8fa2dd93e941fc49ce22a86ce4333805799488d1c37df47d928ddc2.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentBom\" (\"documentId\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $2)\n RETURNING id, \"createdAt\"::timestamptz as \"created_at\", \"updatedAt\"::timestamptz as \"updated_at\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 2, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Timestamp" - ] - }, - "nullable": [ - false, - null, - null - ] - }, - "hash": "650ab172f8fa2dd93e941fc49ce22a86ce4333805799488d1c37df47d928ddc2" -} diff --git a/rust/cloud-storage/.sqlx/query-65312be3e9b6d4bb6debf39d7fe4f0abbb105b8fb03e44c12f7241fc52b022d4.json b/rust/cloud-storage/.sqlx/query-65312be3e9b6d4bb6debf39d7fe4f0abbb105b8fb03e44c12f7241fc52b022d4.json deleted file mode 100644 index b03cf39b93..0000000000 --- a/rust/cloud-storage/.sqlx/query-65312be3e9b6d4bb6debf39d7fe4f0abbb105b8fb03e44c12f7241fc52b022d4.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id as \"id\",\n c.name as \"name\",\n c.\"projectId\" as \"project_id\",\n c.\"userId\" as \"user_id\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Chat\" c\n WHERE\n c.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - true, - false, - null - ] - }, - "hash": "65312be3e9b6d4bb6debf39d7fe4f0abbb105b8fb03e44c12f7241fc52b022d4" -} diff --git a/rust/cloud-storage/.sqlx/query-654e58c390f6a8935cd310d596202b9b2036019140bb0da9d2f033cdba2289f3.json b/rust/cloud-storage/.sqlx/query-654e58c390f6a8935cd310d596202b9b2036019140bb0da9d2f033cdba2289f3.json deleted file mode 100644 index 4b5337dcfa..0000000000 --- a/rust/cloud-storage/.sqlx/query-654e58c390f6a8935cd310d596202b9b2036019140bb0da9d2f033cdba2289f3.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n ct.id AS contact_id,\n co.id AS company_id,\n co.email_sync AS \"email_sync!\"\n FROM crm_contacts ct\n JOIN crm_companies co ON co.id = ct.company_id\n JOIN crm_domains d ON d.company_id = co.id\n WHERE co.team_id = $1\n AND LOWER(ct.email) = $2\n AND LOWER(d.domain) = $3\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "company_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "email_sync!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "654e58c390f6a8935cd310d596202b9b2036019140bb0da9d2f033cdba2289f3" -} diff --git a/rust/cloud-storage/.sqlx/query-65818d5e257f9e76534f4ac3414f98f24d1991cacd53b806e81746c16144cc83.json b/rust/cloud-storage/.sqlx/query-65818d5e257f9e76534f4ac3414f98f24d1991cacd53b806e81746c16144cc83.json deleted file mode 100644 index 05a8dc4343..0000000000 --- a/rust/cloud-storage/.sqlx/query-65818d5e257f9e76534f4ac3414f98f24d1991cacd53b806e81746c16144cc83.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Pin\" WHERE \"pinnedItemId\" = $1 AND \"pinnedItemType\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "65818d5e257f9e76534f4ac3414f98f24d1991cacd53b806e81746c16144cc83" -} diff --git a/rust/cloud-storage/.sqlx/query-65af936c2ba7200bb57024fb52cd27fbb4ac3a6b655e5dc2c11ea4c802587214.json b/rust/cloud-storage/.sqlx/query-65af936c2ba7200bb57024fb52cd27fbb4ac3a6b655e5dc2c11ea4c802587214.json deleted file mode 100644 index 9e5261243d..0000000000 --- a/rust/cloud-storage/.sqlx/query-65af936c2ba7200bb57024fb52cd27fbb4ac3a6b655e5dc2c11ea4c802587214.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id as \"document_id\"\n FROM\n \"Document\"\n WHERE\n \"deletedAt\" IS NULL\n ORDER BY\n \"createdAt\" ASC\n LIMIT $1\n OFFSET $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "65af936c2ba7200bb57024fb52cd27fbb4ac3a6b655e5dc2c11ea4c802587214" -} diff --git a/rust/cloud-storage/.sqlx/query-65d1dc0e96a4a41d52387f43fe08cea15b4124517eeed1d24ab006dd33e409e1.json b/rust/cloud-storage/.sqlx/query-65d1dc0e96a4a41d52387f43fe08cea15b4124517eeed1d24ab006dd33e409e1.json deleted file mode 100644 index 0ce7460420..0000000000 --- a/rust/cloud-storage/.sqlx/query-65d1dc0e96a4a41d52387f43fe08cea15b4124517eeed1d24ab006dd33e409e1.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM crm_contact_sources cs\n USING crm_contacts ct, crm_companies co\n WHERE cs.contact_id = ct.id\n AND ct.company_id = co.id\n AND co.team_id = $1\n AND cs.link_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "65d1dc0e96a4a41d52387f43fe08cea15b4124517eeed1d24ab006dd33e409e1" -} diff --git a/rust/cloud-storage/.sqlx/query-65d9a861790a256c2ce832e94358efde2c37d0ddcb6fa557b800cb442f7ba10e.json b/rust/cloud-storage/.sqlx/query-65d9a861790a256c2ce832e94358efde2c37d0ddcb6fa557b800cb442f7ba10e.json deleted file mode 100644 index 3280603281..0000000000 --- a/rust/cloud-storage/.sqlx/query-65d9a861790a256c2ce832e94358efde2c37d0ddcb6fa557b800cb442f7ba10e.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM email_threads WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "65d9a861790a256c2ce832e94358efde2c37d0ddcb6fa557b800cb442f7ba10e" -} diff --git a/rust/cloud-storage/.sqlx/query-65fbbdc4a8b2ac4be0283f4297875cb62de647cebc07d42b93e58f35fb34e7bd.json b/rust/cloud-storage/.sqlx/query-65fbbdc4a8b2ac4be0283f4297875cb62de647cebc07d42b93e58f35fb34e7bd.json deleted file mode 100644 index 729e87f57f..0000000000 --- a/rust/cloud-storage/.sqlx/query-65fbbdc4a8b2ac4be0283f4297875cb62de647cebc07d42b93e58f35fb34e7bd.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT ea.id, ea.message_id, ea.provider_attachment_id, ea.filename, ea.mime_type, ea.size_bytes, ea.content_id, eas.sfs_id as \"sfs_id?\", ea.created_at\n FROM email_attachments ea LEFT JOIN email_attachments_sfs eas on ea.id = eas.attachment_id\n WHERE message_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_attachment_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "filename", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "mime_type", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "size_bytes", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "content_id", - "type_info": "Varchar" - }, - { - "ordinal": 7, - "name": "sfs_id?", - "type_info": "Uuid" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - false, - false - ] - }, - "hash": "65fbbdc4a8b2ac4be0283f4297875cb62de647cebc07d42b93e58f35fb34e7bd" -} diff --git a/rust/cloud-storage/.sqlx/query-660327b68f707d334f921f00cca0ab2977e09a30aa82b70b78e51c4a0877f229.json b/rust/cloud-storage/.sqlx/query-660327b68f707d334f921f00cca0ab2977e09a30aa82b70b78e51c4a0877f229.json deleted file mode 100644 index d5a1752e44..0000000000 --- a/rust/cloud-storage/.sqlx/query-660327b68f707d334f921f00cca0ab2977e09a30aa82b70b78e51c4a0877f229.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id as message_id,\n c.id,\n c.link_id,\n c.email_address,\n COALESCE(m.from_name, c.name) as \"name\",\n c.original_photo_url,\n c.sfs_photo_url,\n c.created_at,\n c.updated_at\n FROM email_messages m\n INNER JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.id = ANY($1)\n AND m.from_contact_id IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "original_photo_url", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "sfs_photo_url", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - false, - null, - true, - true, - false, - false - ] - }, - "hash": "660327b68f707d334f921f00cca0ab2977e09a30aa82b70b78e51c4a0877f229" -} diff --git a/rust/cloud-storage/.sqlx/query-66106766fa34cf3660615011a75f7640171d9adbb9f95962db83d979d02cc2d5.json b/rust/cloud-storage/.sqlx/query-66106766fa34cf3660615011a75f7640171d9adbb9f95962db83d979d02cc2d5.json deleted file mode 100644 index ad286ad459..0000000000 --- a/rust/cloud-storage/.sqlx/query-66106766fa34cf3660615011a75f7640171d9adbb9f95962db83d979d02cc2d5.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentBom\" (\"documentId\")\n VALUES ($1)\n RETURNING id, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 2, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - null, - null - ] - }, - "hash": "66106766fa34cf3660615011a75f7640171d9adbb9f95962db83d979d02cc2d5" -} diff --git a/rust/cloud-storage/.sqlx/query-663a12ade5ccf4613703c0ad368772673560741961c20f5c401b59b5c5f6027d.json b/rust/cloud-storage/.sqlx/query-663a12ade5ccf4613703c0ad368772673560741961c20f5c401b59b5c5f6027d.json deleted file mode 100644 index 565892f3ba..0000000000 --- a/rust/cloud-storage/.sqlx/query-663a12ade5ccf4613703c0ad368772673560741961c20f5c401b59b5c5f6027d.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"ChatMessage\"\n WHERE id = $1\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "663a12ade5ccf4613703c0ad368772673560741961c20f5c401b59b5c5f6027d" -} diff --git a/rust/cloud-storage/.sqlx/query-6656045ae486ab93f763edc9734b18f0867a279705c7f5a91775754f3cfbe83c.json b/rust/cloud-storage/.sqlx/query-6656045ae486ab93f763edc9734b18f0867a279705c7f5a91775754f3cfbe83c.json deleted file mode 100644 index 1537df5b97..0000000000 --- a/rust/cloud-storage/.sqlx/query-6656045ae486ab93f763edc9734b18f0867a279705c7f5a91775754f3cfbe83c.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id AS \"id!\", thread_id AS \"thread_id!\", sender_id AS \"sender_id!\",\n content AS \"content!\", created_at AS \"created_at!\", updated_at AS \"updated_at!\",\n edited_at::timestamptz AS \"edited_at?\",\n reply_count AS \"reply_count!\", latest_reply_at AS \"latest_reply_at?\"\n FROM (\n SELECT\n r.id,\n r.thread_id,\n r.sender_id,\n r.content,\n r.created_at,\n r.updated_at,\n r.edited_at,\n COUNT(*) OVER (PARTITION BY r.thread_id) AS reply_count,\n MAX(r.created_at) OVER (PARTITION BY r.thread_id)::timestamptz AS latest_reply_at,\n ROW_NUMBER() OVER (\n PARTITION BY r.thread_id\n ORDER BY r.created_at ASC, r.id ASC\n ) AS rn\n FROM comms_messages r\n WHERE r.thread_id = ANY($1) AND r.deleted_at IS NULL\n ) sub\n WHERE rn <= $2\n ORDER BY thread_id, created_at ASC, id ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "thread_id!", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "edited_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "reply_count!", - "type_info": "Int8" - }, - { - "ordinal": 8, - "name": "latest_reply_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "Int8" - ] - }, - "nullable": [ - false, - true, - false, - false, - false, - false, - null, - null, - null - ] - }, - "hash": "6656045ae486ab93f763edc9734b18f0867a279705c7f5a91775754f3cfbe83c" -} diff --git a/rust/cloud-storage/.sqlx/query-666ad2a732546aa9a48262eeaeba037263a6ef8f1daf5eb8ee95ee50ad97f3c0.json b/rust/cloud-storage/.sqlx/query-666ad2a732546aa9a48262eeaeba037263a6ef8f1daf5eb8ee95ee50ad97f3c0.json deleted file mode 100644 index 6614498635..0000000000 --- a/rust/cloud-storage/.sqlx/query-666ad2a732546aa9a48262eeaeba037263a6ef8f1daf5eb8ee95ee50ad97f3c0.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Chat\" SET \"projectId\" = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "666ad2a732546aa9a48262eeaeba037263a6ef8f1daf5eb8ee95ee50ad97f3c0" -} diff --git a/rust/cloud-storage/.sqlx/query-66db94821f8946fd3494e1ae5df52425ff06f3bdc9bf008414db8301161d1f4f.json b/rust/cloud-storage/.sqlx/query-66db94821f8946fd3494e1ae5df52425ff06f3bdc9bf008414db8301161d1f4f.json deleted file mode 100644 index 4e6df68b0f..0000000000 --- a/rust/cloud-storage/.sqlx/query-66db94821f8946fd3494e1ae5df52425ff06f3bdc9bf008414db8301161d1f4f.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.name,\n d.\"fileType\" as \"file_type!\"\n FROM\n \"Document\" d\n WHERE\n d.id = $1 AND d.\"fileType\" IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "file_type!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "66db94821f8946fd3494e1ae5df52425ff06f3bdc9bf008414db8301161d1f4f" -} diff --git a/rust/cloud-storage/.sqlx/query-67255839adc83c0e1dfba11289811d0e6c269464a8506f0ec29db94b7841a038.json b/rust/cloud-storage/.sqlx/query-67255839adc83c0e1dfba11289811d0e6c269464a8506f0ec29db94b7841a038.json deleted file mode 100644 index 38af92f8da..0000000000 --- a/rust/cloud-storage/.sqlx/query-67255839adc83c0e1dfba11289811d0e6c269464a8506f0ec29db94b7841a038.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n b.id,\n b.kind,\n b.owner_user_id,\n b.team_id,\n b.name,\n b.handle,\n b.description,\n b.avatar_url,\n b.created_by,\n b.created_at,\n b.updated_at,\n b.deleted_at\n FROM bots b\n JOIN comms_channel_participants cp\n ON cp.user_id = ('bot|' || b.id::text)\n WHERE cp.channel_id = $1\n AND cp.left_at IS NULL\n AND b.deleted_at IS NULL\n ORDER BY b.created_at ASC, b.id ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "kind", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "team_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "handle", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "description", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "avatar_url", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "created_by", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - true, - true, - false, - false, - true, - true, - true, - false, - false, - true - ] - }, - "hash": "67255839adc83c0e1dfba11289811d0e6c269464a8506f0ec29db94b7841a038" -} diff --git a/rust/cloud-storage/.sqlx/query-679af359cf0fccd5b687fe58ece3b1052fe8c636b986fb6f59f67fcfd08fce38.json b/rust/cloud-storage/.sqlx/query-679af359cf0fccd5b687fe58ece3b1052fe8c636b986fb6f59f67fcfd08fce38.json deleted file mode 100644 index 02e4d8a7ad..0000000000 --- a/rust/cloud-storage/.sqlx/query-679af359cf0fccd5b687fe58ece3b1052fe8c636b986fb6f59f67fcfd08fce38.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE \"Chat\" SET \"projectId\"=$2 WHERE \"id\"=$1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "679af359cf0fccd5b687fe58ece3b1052fe8c636b986fb6f59f67fcfd08fce38" -} diff --git a/rust/cloud-storage/.sqlx/query-679d0dd86957b91b759135cf9fc7314630cfd377b004a8c1dfedbf5764137ebd.json b/rust/cloud-storage/.sqlx/query-679d0dd86957b91b759135cf9fc7314630cfd377b004a8c1dfedbf5764137ebd.json deleted file mode 100644 index 1bc2f8db8f..0000000000 --- a/rust/cloud-storage/.sqlx/query-679d0dd86957b91b759135cf9fc7314630cfd377b004a8c1dfedbf5764137ebd.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "INSERT INTO email_filters (link_id, email_address, is_important)\n VALUES ($1, $2, $3)\n ON CONFLICT (link_id, lower(email_address)) WHERE email_address IS NOT NULL\n DO UPDATE SET is_important = EXCLUDED.is_important\n RETURNING id, link_id, email_address, email_domain, is_important, created_at", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "email_domain", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "is_important", - "type_info": "Bool" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Varchar", - "Bool" - ] - }, - "nullable": [ - false, - false, - true, - true, - false, - false - ] - }, - "hash": "679d0dd86957b91b759135cf9fc7314630cfd377b004a8c1dfedbf5764137ebd" -} diff --git a/rust/cloud-storage/.sqlx/query-67d6061e983a68f7c75c0272885bb866cacda011d43947e9dd29e0ec60f42d2b.json b/rust/cloud-storage/.sqlx/query-67d6061e983a68f7c75c0272885bb866cacda011d43947e9dd29e0ec60f42d2b.json deleted file mode 100644 index d83f78a498..0000000000 --- a/rust/cloud-storage/.sqlx/query-67d6061e983a68f7c75c0272885bb866cacda011d43947e9dd29e0ec60f42d2b.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"id\", \"stripeCustomerId\" as \"stripe_customer_id?\"\n FROM \"User\"\n WHERE \"email\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "stripe_customer_id?", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "67d6061e983a68f7c75c0272885bb866cacda011d43947e9dd29e0ec60f42d2b" -} diff --git a/rust/cloud-storage/.sqlx/query-68374c56646f19df2212ced86e1ab0010e207e54ef3453edc0df2180a5e402ba.json b/rust/cloud-storage/.sqlx/query-68374c56646f19df2212ced86e1ab0010e207e54ef3453edc0df2180a5e402ba.json deleted file mode 100644 index 017a2449e4..0000000000 --- a/rust/cloud-storage/.sqlx/query-68374c56646f19df2212ced86e1ab0010e207e54ef3453edc0df2180a5e402ba.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO channel_notification_email_sent (channel_id, user_id)\n SELECT $1, u FROM UNNEST($2::text[]) AS u\n ON CONFLICT (channel_id, user_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "68374c56646f19df2212ced86e1ab0010e207e54ef3453edc0df2180a5e402ba" -} diff --git a/rust/cloud-storage/.sqlx/query-68ab26135b27913a38d7670c8c1a304b0d9676ba2fb8cd7ac3e9c9906e5726d7.json b/rust/cloud-storage/.sqlx/query-68ab26135b27913a38d7670c8c1a304b0d9676ba2fb8cd7ac3e9c9906e5726d7.json deleted file mode 100644 index 60b912d427..0000000000 --- a/rust/cloud-storage/.sqlx/query-68ab26135b27913a38d7670c8c1a304b0d9676ba2fb8cd7ac3e9c9906e5726d7.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM \"Document\" WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "68ab26135b27913a38d7670c8c1a304b0d9676ba2fb8cd7ac3e9c9906e5726d7" -} diff --git a/rust/cloud-storage/.sqlx/query-68ad8e75246fed44a1e258483299257bc04def00c6417bee80f7816d1a085578.json b/rust/cloud-storage/.sqlx/query-68ad8e75246fed44a1e258483299257bc04def00c6417bee80f7816d1a085578.json deleted file mode 100644 index ae58693603..0000000000 --- a/rust/cloud-storage/.sqlx/query-68ad8e75246fed44a1e258483299257bc04def00c6417bee80f7816d1a085578.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT id, user_id, name, config, created_at, updated_at FROM saved_view WHERE user_id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "config", - "type_info": "Jsonb" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false - ] - }, - "hash": "68ad8e75246fed44a1e258483299257bc04def00c6417bee80f7816d1a085578" -} diff --git a/rust/cloud-storage/.sqlx/query-691f6d6cfbd8bd9e7bd3e141231efe90a96a9ba79d142abbcd4846b3400dfa57.json b/rust/cloud-storage/.sqlx/query-691f6d6cfbd8bd9e7bd3e141231efe90a96a9ba79d142abbcd4846b3400dfa57.json deleted file mode 100644 index dd55647733..0000000000 --- a/rust/cloud-storage/.sqlx/query-691f6d6cfbd8bd9e7bd3e141231efe90a96a9ba79d142abbcd4846b3400dfa57.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO macro_user_voice (macro_user_id, voice_id)\n VALUES ($1, $2)\n ON CONFLICT (macro_user_id, voice_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "691f6d6cfbd8bd9e7bd3e141231efe90a96a9ba79d142abbcd4846b3400dfa57" -} diff --git a/rust/cloud-storage/.sqlx/query-6925ae890683c9b94bc1f89f1d8fbe0b72aafdd053092bbbd4b1f918d3e194e2.json b/rust/cloud-storage/.sqlx/query-6925ae890683c9b94bc1f89f1d8fbe0b72aafdd053092bbbd4b1f918d3e194e2.json deleted file mode 100644 index 21c0c2a5d1..0000000000 --- a/rust/cloud-storage/.sqlx/query-6925ae890683c9b94bc1f89f1d8fbe0b72aafdd053092bbbd4b1f918d3e194e2.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"RolesOnUsers\" (\"userId\", \"roleId\")\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "6925ae890683c9b94bc1f89f1d8fbe0b72aafdd053092bbbd4b1f918d3e194e2" -} diff --git a/rust/cloud-storage/.sqlx/query-69de5e91294da24e3c0c22ff7cbb156ec4433cb228a034aed09e059ef005e92e.json b/rust/cloud-storage/.sqlx/query-69de5e91294da24e3c0c22ff7cbb156ec4433cb228a034aed09e059ef005e92e.json deleted file mode 100644 index cdecd21b19..0000000000 --- a/rust/cloud-storage/.sqlx/query-69de5e91294da24e3c0c22ff7cbb156ec4433cb228a034aed09e059ef005e92e.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE user_notification\n SET done = $3\n WHERE user_id = $1\n AND notification_id = ANY($2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "UuidArray", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "69de5e91294da24e3c0c22ff7cbb156ec4433cb228a034aed09e059ef005e92e" -} diff --git a/rust/cloud-storage/.sqlx/query-6a9de1564f16007df9f5758baad9f9d5c22ca624f08f29bed7fe9e265288eba9.json b/rust/cloud-storage/.sqlx/query-6a9de1564f16007df9f5758baad9f9d5c22ca624f08f29bed7fe9e265288eba9.json deleted file mode 100644 index 80b721af4a..0000000000 --- a/rust/cloud-storage/.sqlx/query-6a9de1564f16007df9f5758baad9f9d5c22ca624f08f29bed7fe9e265288eba9.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE task_duplicate_match\n SET status = 'dismissed',\n dismissed_by = $3,\n dismissed_at = NOW(),\n updated_at = NOW()\n WHERE id = $1\n AND (task_id = $2 OR duplicate_task_id = $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "6a9de1564f16007df9f5758baad9f9d5c22ca624f08f29bed7fe9e265288eba9" -} diff --git a/rust/cloud-storage/.sqlx/query-6aa68cd66ced924e43b012c317e1efe33721073350ae49882e066ac544bbb995.json b/rust/cloud-storage/.sqlx/query-6aa68cd66ced924e43b012c317e1efe33721073350ae49882e066ac544bbb995.json deleted file mode 100644 index d29fdf9117..0000000000 --- a/rust/cloud-storage/.sqlx/query-6aa68cd66ced924e43b012c317e1efe33721073350ae49882e066ac544bbb995.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_links_history\n SET deleted_at = NOW(),\n deletion_reason = $2\n WHERE link_id = $1\n AND deleted_at IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "6aa68cd66ced924e43b012c317e1efe33721073350ae49882e066ac544bbb995" -} diff --git a/rust/cloud-storage/.sqlx/query-6ac0f229f06980ddbc62f5f5056b7996d92d842e88d386cb0b65fb11468cdc57.json b/rust/cloud-storage/.sqlx/query-6ac0f229f06980ddbc62f5f5056b7996d92d842e88d386cb0b65fb11468cdc57.json deleted file mode 100644 index c1dc3cfe3e..0000000000 --- a/rust/cloud-storage/.sqlx/query-6ac0f229f06980ddbc62f5f5056b7996d92d842e88d386cb0b65fb11468cdc57.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"PdfHighlightAnchor\"\n SET \"deletedAt\" = NOW()\n WHERE uuid = $1 AND \"deletedAt\" IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "6ac0f229f06980ddbc62f5f5056b7996d92d842e88d386cb0b65fb11468cdc57" -} diff --git a/rust/cloud-storage/.sqlx/query-6b5a41c0c33c20537ef484ad312d80da7dfa7251e2333f8981e2a76f40e623c2.json b/rust/cloud-storage/.sqlx/query-6b5a41c0c33c20537ef484ad312d80da7dfa7251e2333f8981e2a76f40e623c2.json deleted file mode 100644 index 9cd4ca4c09..0000000000 --- a/rust/cloud-storage/.sqlx/query-6b5a41c0c33c20537ef484ad312d80da7dfa7251e2333f8981e2a76f40e623c2.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id as \"link_id\"\n FROM email_links\n WHERE\n is_sync_active = TRUE\n AND provider = $1\n AND (abs(hashtext(id::text)) % 24) = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "link_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - }, - "Int4" - ] - }, - "nullable": [ - false - ] - }, - "hash": "6b5a41c0c33c20537ef484ad312d80da7dfa7251e2333f8981e2a76f40e623c2" -} diff --git a/rust/cloud-storage/.sqlx/query-6b5d1c6cd2318d630632681a46fc22d2c1075924eb4c5089bd81b1f3b72e0455.json b/rust/cloud-storage/.sqlx/query-6b5d1c6cd2318d630632681a46fc22d2c1075924eb4c5089bd81b1f3b72e0455.json deleted file mode 100644 index 639f950925..0000000000 --- a/rust/cloud-storage/.sqlx/query-6b5d1c6cd2318d630632681a46fc22d2c1075924eb4c5089bd81b1f3b72e0455.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO in_progress_user_link (id, macro_user_id)\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "6b5d1c6cd2318d630632681a46fc22d2c1075924eb4c5089bd81b1f3b72e0455" -} diff --git a/rust/cloud-storage/.sqlx/query-6b7094e2eaf150972507f937e120984ee4911e974d0bcc78248c022d44fa20f1.json b/rust/cloud-storage/.sqlx/query-6b7094e2eaf150972507f937e120984ee4911e974d0bcc78248c022d44fa20f1.json deleted file mode 100644 index 396f195c48..0000000000 --- a/rust/cloud-storage/.sqlx/query-6b7094e2eaf150972507f937e120984ee4911e974d0bcc78248c022d44fa20f1.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"sharePermissionId\" as id FROM \"ChatPermission\" WHERE \"chatId\" = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "6b7094e2eaf150972507f937e120984ee4911e974d0bcc78248c022d44fa20f1" -} diff --git a/rust/cloud-storage/.sqlx/query-6b9cf167af68aad294c96f81d6bc995ead4fd6f968ef17176a770ffa46b44f64.json b/rust/cloud-storage/.sqlx/query-6b9cf167af68aad294c96f81d6bc995ead4fd6f968ef17176a770ffa46b44f64.json deleted file mode 100644 index 531266f154..0000000000 --- a/rust/cloud-storage/.sqlx/query-6b9cf167af68aad294c96f81d6bc995ead4fd6f968ef17176a770ffa46b44f64.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS (\n SELECT 1\n FROM comms_channel_participants\n WHERE channel_id = $1\n AND user_id = $2\n AND role IN (\n 'admin'::comms_participant_role,\n 'owner'::comms_participant_role\n )\n ) AS \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "6b9cf167af68aad294c96f81d6bc995ead4fd6f968ef17176a770ffa46b44f64" -} diff --git a/rust/cloud-storage/.sqlx/query-6bb0523c1a1fec5d2d8600d1d18e7156eebd31e6d39dd4b9f6bbb397bd8a5f56.json b/rust/cloud-storage/.sqlx/query-6bb0523c1a1fec5d2d8600d1d18e7156eebd31e6d39dd4b9f6bbb397bd8a5f56.json deleted file mode 100644 index 261784e01a..0000000000 --- a/rust/cloud-storage/.sqlx/query-6bb0523c1a1fec5d2d8600d1d18e7156eebd31e6d39dd4b9f6bbb397bd8a5f56.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n user_id,\n channel_id,\n joined_at,\n left_at::timestamptz AS \"left_at?\",\n role AS \"role: ParticipantRole\"\n FROM comms_channel_participants\n WHERE channel_id = $1 AND left_at IS NULL\n ORDER BY joined_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "joined_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "left_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "role: ParticipantRole", - "type_info": { - "Custom": { - "name": "comms_participant_role", - "kind": { - "Enum": [ - "owner", - "admin", - "member" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - true, - false - ] - }, - "hash": "6bb0523c1a1fec5d2d8600d1d18e7156eebd31e6d39dd4b9f6bbb397bd8a5f56" -} diff --git a/rust/cloud-storage/.sqlx/query-6c022c7b1e5e5faf6f388528436453738aa66c36c46313ca18c7570b406553f6.json b/rust/cloud-storage/.sqlx/query-6c022c7b1e5e5faf6f388528436453738aa66c36c46313ca18c7570b406553f6.json deleted file mode 100644 index 2f59f37298..0000000000 --- a/rust/cloud-storage/.sqlx/query-6c022c7b1e5e5faf6f388528436453738aa66c36c46313ca18c7570b406553f6.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_threads\n SET\n inbox_visible = $1,\n is_read = $2,\n latest_inbound_message_ts = $3,\n latest_outbound_message_ts = $4,\n latest_non_spam_message_ts = $5,\n updated_at = NOW()\n WHERE\n id = $6 AND\n link_id = $7\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Bool", - "Bool", - "Timestamptz", - "Timestamptz", - "Timestamptz", - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "6c022c7b1e5e5faf6f388528436453738aa66c36c46313ca18c7570b406553f6" -} diff --git a/rust/cloud-storage/.sqlx/query-6c7eb689e2b36b5f9d73ebb66746c36ad70078feb62d295e33506f317fe07bb1.json b/rust/cloud-storage/.sqlx/query-6c7eb689e2b36b5f9d73ebb66746c36ad70078feb62d295e33506f317fe07bb1.json deleted file mode 100644 index 4a2b3313e7..0000000000 --- a/rust/cloud-storage/.sqlx/query-6c7eb689e2b36b5f9d73ebb66746c36ad70078feb62d295e33506f317fe07bb1.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM notification_user_device_registration\n WHERE device_endpoint = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "6c7eb689e2b36b5f9d73ebb66746c36ad70078feb62d295e33506f317fe07bb1" -} diff --git a/rust/cloud-storage/.sqlx/query-6c8ac695bf54550d865d143ee7a01a65dc6bad54ef3c3462f7bf5727f9ab3a42.json b/rust/cloud-storage/.sqlx/query-6c8ac695bf54550d865d143ee7a01a65dc6bad54ef3c3462f7bf5727f9ab3a42.json deleted file mode 100644 index b3228c70bf..0000000000 --- a/rust/cloud-storage/.sqlx/query-6c8ac695bf54550d865d143ee7a01a65dc6bad54ef3c3462f7bf5727f9ab3a42.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id,\n d.\"owner\",\n d.name,\n d.\"fileType\" as \"file_type!\",\n di.id as \"document_version_id?\"\n FROM\n \"Document\" d\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" ASC\n LIMIT 1\n ) di ON true\n WHERE\n d.\"deletedAt\" IS NULL\n AND d.\"fileType\" IS NOT NULL\n ORDER BY d.\"createdAt\" DESC\n LIMIT $1 OFFSET $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "file_type!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "document_version_id?", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - true, - false - ] - }, - "hash": "6c8ac695bf54550d865d143ee7a01a65dc6bad54ef3c3462f7bf5727f9ab3a42" -} diff --git a/rust/cloud-storage/.sqlx/query-6ca4be786e151f81e8e7d6b13ada596369e6a42d1371b871c7739e2dc0ff0b11.json b/rust/cloud-storage/.sqlx/query-6ca4be786e151f81e8e7d6b13ada596369e6a42d1371b871c7739e2dc0ff0b11.json deleted file mode 100644 index 1a27c4b4be..0000000000 --- a/rust/cloud-storage/.sqlx/query-6ca4be786e151f81e8e7d6b13ada596369e6a42d1371b871c7739e2dc0ff0b11.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Chat\" SET \"name\" = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "6ca4be786e151f81e8e7d6b13ada596369e6a42d1371b871c7739e2dc0ff0b11" -} diff --git a/rust/cloud-storage/.sqlx/query-6cde7e3ff4993fc1a8ed1ae8b9d0cb0d1dde7ec2707d52d5d2211d5569d0a949.json b/rust/cloud-storage/.sqlx/query-6cde7e3ff4993fc1a8ed1ae8b9d0cb0d1dde7ec2707d52d5d2211d5569d0a949.json deleted file mode 100644 index 1a4d8c724e..0000000000 --- a/rust/cloud-storage/.sqlx/query-6cde7e3ff4993fc1a8ed1ae8b9d0cb0d1dde7ec2707d52d5d2211d5569d0a949.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT id, comms_channel_id, user_ids\n FROM contacts_backfill_outbox\n WHERE applied_at IS NULL\n ORDER BY id", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int4" - }, - { - "ordinal": 1, - "name": "comms_channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "user_ids", - "type_info": "Jsonb" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "6cde7e3ff4993fc1a8ed1ae8b9d0cb0d1dde7ec2707d52d5d2211d5569d0a949" -} diff --git a/rust/cloud-storage/.sqlx/query-6ce3b9755eb7d0e6eff85dfb08d9ca5ab3dffaa6794fe78612b94389ee90e3b4.json b/rust/cloud-storage/.sqlx/query-6ce3b9755eb7d0e6eff85dfb08d9ca5ab3dffaa6794fe78612b94389ee90e3b4.json deleted file mode 100644 index 15267a7827..0000000000 --- a/rust/cloud-storage/.sqlx/query-6ce3b9755eb7d0e6eff85dfb08d9ca5ab3dffaa6794fe78612b94389ee90e3b4.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as document_id\n FROM\n \"Document\" d\n WHERE\n d.owner = $1 AND d.\"deletedAt\" IS NULL AND d.\"fileType\" = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "6ce3b9755eb7d0e6eff85dfb08d9ca5ab3dffaa6794fe78612b94389ee90e3b4" -} diff --git a/rust/cloud-storage/.sqlx/query-6ce4faf9e5f20226d7e2fad64816fe432ac1128af2df592077c848e75009509d.json b/rust/cloud-storage/.sqlx/query-6ce4faf9e5f20226d7e2fad64816fe432ac1128af2df592077c848e75009509d.json deleted file mode 100644 index 8022a373f9..0000000000 --- a/rust/cloud-storage/.sqlx/query-6ce4faf9e5f20226d7e2fad64816fe432ac1128af2df592077c848e75009509d.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE \"Chat\" SET \"deletedAt\" = NOW() WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "6ce4faf9e5f20226d7e2fad64816fe432ac1128af2df592077c848e75009509d" -} diff --git a/rust/cloud-storage/.sqlx/query-6d419ad1a1c53be5ee3edf5667c55489e99232e1dbd25cbb3f31746b4b9614ab.json b/rust/cloud-storage/.sqlx/query-6d419ad1a1c53be5ee3edf5667c55489e99232e1dbd25cbb3f31746b4b9614ab.json deleted file mode 100644 index 6c45bc7756..0000000000 --- a/rust/cloud-storage/.sqlx/query-6d419ad1a1c53be5ee3edf5667c55489e99232e1dbd25cbb3f31746b4b9614ab.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Pin\" WHERE \"pinnedItemId\" = $1 AND \"pinnedItemType\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "6d419ad1a1c53be5ee3edf5667c55489e99232e1dbd25cbb3f31746b4b9614ab" -} diff --git a/rust/cloud-storage/.sqlx/query-6dd441191ae20b764a7b3e66633b9f9e666235381e20631e0ed08d095a29507e.json b/rust/cloud-storage/.sqlx/query-6dd441191ae20b764a7b3e66633b9f9e666235381e20631e0ed08d095a29507e.json deleted file mode 100644 index da7a35be6f..0000000000 --- a/rust/cloud-storage/.sqlx/query-6dd441191ae20b764a7b3e66633b9f9e666235381e20631e0ed08d095a29507e.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS (\n SELECT 1 FROM crm_comment\n WHERE thread_id = $1 AND deleted_at IS NULL\n ) AS \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "6dd441191ae20b764a7b3e66633b9f9e666235381e20631e0ed08d095a29507e" -} diff --git a/rust/cloud-storage/.sqlx/query-6dde3a5ced431932d021e43180e45071efd36c3088dab4feada6254bc1aa41f2.json b/rust/cloud-storage/.sqlx/query-6dde3a5ced431932d021e43180e45071efd36c3088dab4feada6254bc1aa41f2.json deleted file mode 100644 index b996369a66..0000000000 --- a/rust/cloud-storage/.sqlx/query-6dde3a5ced431932d021e43180e45071efd36c3088dab4feada6254bc1aa41f2.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS(\n SELECT 1\n FROM macro_user_links\n WHERE primary_macro_id = $1\n AND child_macro_id = $2\n ) AS \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "6dde3a5ced431932d021e43180e45071efd36c3088dab4feada6254bc1aa41f2" -} diff --git a/rust/cloud-storage/.sqlx/query-6ddfc76d4a95ab81c18c930d8c08c51813d41f72f734271c538bd3e5377e2a4c.json b/rust/cloud-storage/.sqlx/query-6ddfc76d4a95ab81c18c930d8c08c51813d41f72f734271c538bd3e5377e2a4c.json deleted file mode 100644 index 6cf849fd5c..0000000000 --- a/rust/cloud-storage/.sqlx/query-6ddfc76d4a95ab81c18c930d8c08c51813d41f72f734271c538bd3e5377e2a4c.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n em.source_entity_type,\n em.source_entity_id,\n em.entity_type,\n em.entity_id,\n em.user_id,\n em.created_at\n FROM comms_entity_mentions em\n WHERE em.entity_type = $1\n AND em.entity_id = $2\n AND em.source_entity_type != 'message'\n ORDER BY em.created_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "source_entity_type", - "type_info": "Varchar" - }, - { - "ordinal": 1, - "name": "source_entity_id", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "entity_type", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "entity_id", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "user_id", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - true, - false - ] - }, - "hash": "6ddfc76d4a95ab81c18c930d8c08c51813d41f72f734271c538bd3e5377e2a4c" -} diff --git a/rust/cloud-storage/.sqlx/query-6e755ab9205277781336779cc7c41346b3432771aa29162272624e4bed3e54e5.json b/rust/cloud-storage/.sqlx/query-6e755ab9205277781336779cc7c41346b3432771aa29162272624e4bed3e54e5.json deleted file mode 100644 index 4e92123853..0000000000 --- a/rust/cloud-storage/.sqlx/query-6e755ab9205277781336779cc7c41346b3432771aa29162272624e4bed3e54e5.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT d.\"documentId\" as \"document_id\"\n FROM \"DocumentText\" as d\n WHERE d.\"documentId\" = ANY($1)\n AND d.\"tokenCount\" > 0\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "6e755ab9205277781336779cc7c41346b3432771aa29162272624e4bed3e54e5" -} diff --git a/rust/cloud-storage/.sqlx/query-6e98cffdfa6200686281b3c2c540f07f517dca38e8a70bad08b4b655cb1cd550.json b/rust/cloud-storage/.sqlx/query-6e98cffdfa6200686281b3c2c540f07f517dca38e8a70bad08b4b655cb1cd550.json deleted file mode 100644 index b666e9c736..0000000000 --- a/rust/cloud-storage/.sqlx/query-6e98cffdfa6200686281b3c2c540f07f517dca38e8a70bad08b4b655cb1cd550.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO github_app_installation (id, source_id, source_type)\n SELECT $1::text, source_id, source_type::github_app_installation_source_type\n FROM UNNEST($2::text[], $3::text[])\n AS source_rows(source_id, source_type)\n ON CONFLICT (id, source_id, source_type) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "6e98cffdfa6200686281b3c2c540f07f517dca38e8a70bad08b4b655cb1cd550" -} diff --git a/rust/cloud-storage/.sqlx/query-6ea5fe0c08693b233361460d1a1b46168b4bf9848d252242a06569301144a4f6.json b/rust/cloud-storage/.sqlx/query-6ea5fe0c08693b233361460d1a1b46168b4bf9848d252242a06569301144a4f6.json deleted file mode 100644 index 2f6283b3bf..0000000000 --- a/rust/cloud-storage/.sqlx/query-6ea5fe0c08693b233361460d1a1b46168b4bf9848d252242a06569301144a4f6.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as \"document_id\",\n d.owner,\n d.name as \"document_name\",\n d.\"fileType\" as \"file_type\",\n dst.sub_type as \"sub_type?: DocumentSubType\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dst ON dst.document_id = d.id\n WHERE d.id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - false - ] - }, - "hash": "6ea5fe0c08693b233361460d1a1b46168b4bf9848d252242a06569301144a4f6" -} diff --git a/rust/cloud-storage/.sqlx/query-6f84ce5949c02518f69930a6a30b78c285f0440e2c5157d1ef2ee614cc2105f3.json b/rust/cloud-storage/.sqlx/query-6f84ce5949c02518f69930a6a30b78c285f0440e2c5157d1ef2ee614cc2105f3.json deleted file mode 100644 index 030f8c2f2f..0000000000 --- a/rust/cloud-storage/.sqlx/query-6f84ce5949c02518f69930a6a30b78c285f0440e2c5157d1ef2ee614cc2105f3.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id\n FROM email_labels\n WHERE link_id = $1 AND provider_label_id = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "6f84ce5949c02518f69930a6a30b78c285f0440e2c5157d1ef2ee614cc2105f3" -} diff --git a/rust/cloud-storage/.sqlx/query-6f9c55c52025db2dbe4b76be30d2ca5c95970ef6ad421ec0f5fbe89bea212ff5.json b/rust/cloud-storage/.sqlx/query-6f9c55c52025db2dbe4b76be30d2ca5c95970ef6ad421ec0f5fbe89bea212ff5.json deleted file mode 100644 index 0d25c6312d..0000000000 --- a/rust/cloud-storage/.sqlx/query-6f9c55c52025db2dbe4b76be30d2ca5c95970ef6ad421ec0f5fbe89bea212ff5.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS (\n SELECT 1\n FROM task_duplicate_match\n WHERE id = $1\n AND (task_id = $2 OR duplicate_task_id = $2)\n )\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "6f9c55c52025db2dbe4b76be30d2ca5c95970ef6ad421ec0f5fbe89bea212ff5" -} diff --git a/rust/cloud-storage/.sqlx/query-6ff2b4ae4df25f6fe125338e274f4149fe8829da208e8689ccd7e2154e8d7136.json b/rust/cloud-storage/.sqlx/query-6ff2b4ae4df25f6fe125338e274f4149fe8829da208e8689ccd7e2154e8d7136.json deleted file mode 100644 index 8d0fb607f9..0000000000 --- a/rust/cloud-storage/.sqlx/query-6ff2b4ae4df25f6fe125338e274f4149fe8829da208e8689ccd7e2154e8d7136.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id as \"comment_id!\",\n c.\"threadId\" as \"thread_id!\",\n c.owner as \"owner!\",\n c.sender,\n c.text as \"text!\",\n c.metadata,\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.order\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n WHERE t.\"documentId\" = $1\n AND t.\"deletedAt\" IS NULL\n AND c.\"deletedAt\" IS NULL\n ORDER BY c.\"createdAt\" ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "comment_id!", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "thread_id!", - "type_info": "Int8" - }, - { - "ordinal": 2, - "name": "owner!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "sender", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "text!", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "order", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - true, - null, - null, - null, - true - ] - }, - "hash": "6ff2b4ae4df25f6fe125338e274f4149fe8829da208e8689ccd7e2154e8d7136" -} diff --git a/rust/cloud-storage/.sqlx/query-704f8353c3a52412d8cbab60b9b32edf0d811d09c54b66522e38366cdefd98a6.json b/rust/cloud-storage/.sqlx/query-704f8353c3a52412d8cbab60b9b32edf0d811d09c54b66522e38366cdefd98a6.json deleted file mode 100644 index 65a9a6fecc..0000000000 --- a/rust/cloud-storage/.sqlx/query-704f8353c3a52412d8cbab60b9b32edf0d811d09c54b66522e38366cdefd98a6.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_attachments_sfs (id, attachment_id, sfs_id)\n VALUES ($1, $2, $3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "704f8353c3a52412d8cbab60b9b32edf0d811d09c54b66522e38366cdefd98a6" -} diff --git a/rust/cloud-storage/.sqlx/query-706da2cb5edbf06f5304e87bed3866c7a6ba7f2a405b174a238623f5e496886c.json b/rust/cloud-storage/.sqlx/query-706da2cb5edbf06f5304e87bed3866c7a6ba7f2a405b174a238623f5e496886c.json deleted file mode 100644 index c729246c07..0000000000 --- a/rust/cloud-storage/.sqlx/query-706da2cb5edbf06f5304e87bed3866c7a6ba7f2a405b174a238623f5e496886c.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM comms_entity_mentions\n WHERE source_entity_id = ANY($1)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "706da2cb5edbf06f5304e87bed3866c7a6ba7f2a405b174a238623f5e496886c" -} diff --git a/rust/cloud-storage/.sqlx/query-7078d46dbcbe1c4201bcb4f63d98400d28bde0e2c3af5211a83a01165f751029.json b/rust/cloud-storage/.sqlx/query-7078d46dbcbe1c4201bcb4f63d98400d28bde0e2c3af5211a83a01165f751029.json deleted file mode 100644 index b7e5230b4c..0000000000 --- a/rust/cloud-storage/.sqlx/query-7078d46dbcbe1c4201bcb4f63d98400d28bde0e2c3af5211a83a01165f751029.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM entity_access\n WHERE (source_id = ANY($1) AND source_type = 'channel')\n AND (entity_id = ANY($2) OR granted_from_project_id = ANY($3))\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "UuidArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "7078d46dbcbe1c4201bcb4f63d98400d28bde0e2c3af5211a83a01165f751029" -} diff --git a/rust/cloud-storage/.sqlx/query-70f12c0591fd0f66402ffc3720a5f5f7c6116cd761471bd5e03f528bf32effa5.json b/rust/cloud-storage/.sqlx/query-70f12c0591fd0f66402ffc3720a5f5f7c6116cd761471bd5e03f528bf32effa5.json deleted file mode 100644 index 020d3dd88c..0000000000 --- a/rust/cloud-storage/.sqlx/query-70f12c0591fd0f66402ffc3720a5f5f7c6116cd761471bd5e03f528bf32effa5.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"sharePermissionId\" as id FROM \"DocumentPermission\" WHERE \"documentId\" = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "70f12c0591fd0f66402ffc3720a5f5f7c6116cd761471bd5e03f528bf32effa5" -} diff --git a/rust/cloud-storage/.sqlx/query-714f0e8d34476dcc43f7ee64ea1a429f9420fe1403f56b6c472640efd43451ce.json b/rust/cloud-storage/.sqlx/query-714f0e8d34476dcc43f7ee64ea1a429f9420fe1403f56b6c472640efd43451ce.json deleted file mode 100644 index 5fa3db5f43..0000000000 --- a/rust/cloud-storage/.sqlx/query-714f0e8d34476dcc43f7ee64ea1a429f9420fe1403f56b6c472640efd43451ce.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_messages m\n SET\n is_starred = $1,\n updated_at = NOW()\n FROM email_links l\n WHERE\n m.id = ANY($2)\n AND m.link_id = l.id\n AND l.fusionauth_user_id = $3\n RETURNING m.id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Bool", - "UuidArray", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "714f0e8d34476dcc43f7ee64ea1a429f9420fe1403f56b6c472640efd43451ce" -} diff --git a/rust/cloud-storage/.sqlx/query-71b68b23ef028192231dd2129f4f8671f0af53a90629efe34f6f4e13ba227e91.json b/rust/cloud-storage/.sqlx/query-71b68b23ef028192231dd2129f4f8671f0af53a90629efe34f6f4e13ba227e91.json deleted file mode 100644 index 51ac02ab79..0000000000 --- a/rust/cloud-storage/.sqlx/query-71b68b23ef028192231dd2129f4f8671f0af53a90629efe34f6f4e13ba227e91.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n bp.sha as sha,\n bp.path as path,\n bp.id as id\n FROM \"BomPart\" bp\n JOIN \"DocumentBom\" db ON bp.\"documentBomId\" = db.id\n WHERE db.\"documentId\" = ANY($1);\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "path", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "71b68b23ef028192231dd2129f4f8671f0af53a90629efe34f6f4e13ba227e91" -} diff --git a/rust/cloud-storage/.sqlx/query-71b975abc8c63ea8116cd8944e99d46e5747660807a30564921bc371ddd1338d.json b/rust/cloud-storage/.sqlx/query-71b975abc8c63ea8116cd8944e99d46e5747660807a30564921bc371ddd1338d.json deleted file mode 100644 index 2dc1809409..0000000000 --- a/rust/cloud-storage/.sqlx/query-71b975abc8c63ea8116cd8944e99d46e5747660807a30564921bc371ddd1338d.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ItemLastAccessed\" (\"item_id\", \"item_type\", \"last_accessed\")\n VALUES ($1, $2, $3)\n ON CONFLICT (\"item_id\", \"item_type\") DO UPDATE\n SET \"last_accessed\" = $3;\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Timestamp" - ] - }, - "nullable": [] - }, - "hash": "71b975abc8c63ea8116cd8944e99d46e5747660807a30564921bc371ddd1338d" -} diff --git a/rust/cloud-storage/.sqlx/query-71f0916419e122c5dba653bdc23114987bb800ba14658efaac7cafd0c16672c8.json b/rust/cloud-storage/.sqlx/query-71f0916419e122c5dba653bdc23114987bb800ba14658efaac7cafd0c16672c8.json deleted file mode 100644 index 51e00bbc86..0000000000 --- a/rust/cloud-storage/.sqlx/query-71f0916419e122c5dba653bdc23114987bb800ba14658efaac7cafd0c16672c8.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id, \n team_role as \"team_role!: TeamRole\"\n FROM team_user\n WHERE team_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "team_role!: TeamRole", - "type_info": { - "Custom": { - "name": "team_role", - "kind": { - "Enum": [ - "member", - "admin", - "owner" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "71f0916419e122c5dba653bdc23114987bb800ba14658efaac7cafd0c16672c8" -} diff --git a/rust/cloud-storage/.sqlx/query-720246c9399231f60479aa8c51bee2054d9f2cf9789f913e0f9cd65b9a93de79.json b/rust/cloud-storage/.sqlx/query-720246c9399231f60479aa8c51bee2054d9f2cf9789f913e0f9cd65b9a93de79.json deleted file mode 100644 index 49663920d1..0000000000 --- a/rust/cloud-storage/.sqlx/query-720246c9399231f60479aa8c51bee2054d9f2cf9789f913e0f9cd65b9a93de79.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_activity (\n id,\n user_id,\n channel_id,\n interacted_at\n )\n VALUES (\n $1, $2, $3, NOW()\n )\n ON CONFLICT (user_id, channel_id) DO UPDATE\n SET\n interacted_at = NOW(),\n updated_at = NOW()\n RETURNING\n id as \"id!: Uuid\",\n user_id as \"user_id!: String\",\n channel_id as \"channel_id!: Uuid\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\",\n viewed_at as \"viewed_at?: DateTime\",\n interacted_at as \"interacted_at?: DateTime\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id!: String", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "channel_id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "created_at!: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "updated_at!: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 5, - "name": "viewed_at?: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 6, - "name": "interacted_at?: DateTime", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true, - true - ] - }, - "hash": "720246c9399231f60479aa8c51bee2054d9f2cf9789f913e0f9cd65b9a93de79" -} diff --git a/rust/cloud-storage/.sqlx/query-725db444624bc6b4df387c7f45d750328437c7732e147e15818a269bb63be183.json b/rust/cloud-storage/.sqlx/query-725db444624bc6b4df387c7f45d750328437c7732e147e15818a269bb63be183.json deleted file mode 100644 index 743945260d..0000000000 --- a/rust/cloud-storage/.sqlx/query-725db444624bc6b4df387c7f45d750328437c7732e147e15818a269bb63be183.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"OrganizationRetentionPolicy\"\n WHERE \"organization_id\" = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int4" - ] - }, - "nullable": [] - }, - "hash": "725db444624bc6b4df387c7f45d750328437c7732e147e15818a269bb63be183" -} diff --git a/rust/cloud-storage/.sqlx/query-72c4ec37d0b5c963e6061e040ab7184e2e6623e487afc52358f77f57d236a255.json b/rust/cloud-storage/.sqlx/query-72c4ec37d0b5c963e6061e040ab7184e2e6623e487afc52358f77f57d236a255.json deleted file mode 100644 index c4a9e7a6ed..0000000000 --- a/rust/cloud-storage/.sqlx/query-72c4ec37d0b5c963e6061e040ab7184e2e6623e487afc52358f77f57d236a255.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM \"UserHistory\" WHERE \"itemId\" = $1 AND \"itemType\" = 'chat'", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "72c4ec37d0b5c963e6061e040ab7184e2e6623e487afc52358f77f57d236a255" -} diff --git a/rust/cloud-storage/.sqlx/query-732141210551d42218ce027266c6dfa3dd1f0ddb2c37493ed1235fe488073d89.json b/rust/cloud-storage/.sqlx/query-732141210551d42218ce027266c6dfa3dd1f0ddb2c37493ed1235fe488073d89.json deleted file mode 100644 index ea49b9c1cd..0000000000 --- a/rust/cloud-storage/.sqlx/query-732141210551d42218ce027266c6dfa3dd1f0ddb2c37493ed1235fe488073d89.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n id,\n organization_id,\n user_id,\n display_name,\n data_type as \"data_type: DataType\",\n is_multi_select,\n specific_entity_type as \"specific_entity_type: Option\",\n created_at,\n updated_at,\n is_system\n FROM property_definitions\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "organization_id", - "type_info": "Int4" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "display_name", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "data_type: DataType", - "type_info": { - "Custom": { - "name": "property_data_type", - "kind": { - "Enum": [ - "BOOLEAN", - "DATE", - "NUMBER", - "STRING", - "SELECT_NUMBER", - "SELECT_STRING", - "ENTITY", - "LINK" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_multi_select", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "specific_entity_type: Option", - "type_info": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "is_system", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - false, - true, - false, - false, - false - ] - }, - "hash": "732141210551d42218ce027266c6dfa3dd1f0ddb2c37493ed1235fe488073d89" -} diff --git a/rust/cloud-storage/.sqlx/query-7335b4f26cdbd5ad240545c4231cc1d34d10eda3212c0dcbd92db0ed61e86ec4.json b/rust/cloud-storage/.sqlx/query-7335b4f26cdbd5ad240545c4231cc1d34d10eda3212c0dcbd92db0ed61e86ec4.json deleted file mode 100644 index 06337d4c3e..0000000000 --- a/rust/cloud-storage/.sqlx/query-7335b4f26cdbd5ad240545c4231cc1d34d10eda3212c0dcbd92db0ed61e86ec4.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Document\" SET \"documentFamilyId\" = $1 WHERE id = $2;\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int8", - "Text" - ] - }, - "nullable": [] - }, - "hash": "7335b4f26cdbd5ad240545c4231cc1d34d10eda3212c0dcbd92db0ed61e86ec4" -} diff --git a/rust/cloud-storage/.sqlx/query-733e693b7231777ab430290d378ba45d608cf5aa1d39c692c93fe06a5593f312.json b/rust/cloud-storage/.sqlx/query-733e693b7231777ab430290d378ba45d608cf5aa1d39c692c93fe06a5593f312.json deleted file mode 100644 index a0d715326d..0000000000 --- a/rust/cloud-storage/.sqlx/query-733e693b7231777ab430290d378ba45d608cf5aa1d39c692c93fe06a5593f312.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n ca.id,\n ca.\"entity_type\" as \"attachment_type: AttachmentType\",\n ca.\"entity_id\"::TEXT as \"attachment_id!\",\n ca.\"chatId\" as \"chat_id\",\n ca.\"messageId\" as \"message_id\"\n FROM\n \"ChatAttachment\" ca\n WHERE\n ca.\"id\" = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "attachment_type: AttachmentType", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "attachment_id!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "chat_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "message_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - null, - true, - true - ] - }, - "hash": "733e693b7231777ab430290d378ba45d608cf5aa1d39c692c93fe06a5593f312" -} diff --git a/rust/cloud-storage/.sqlx/query-7346e8f6a04f0e2d0b0c3b711afc10673c7756fda2cce9fe8619d68d92219a88.json b/rust/cloud-storage/.sqlx/query-7346e8f6a04f0e2d0b0c3b711afc10673c7756fda2cce9fe8619d68d92219a88.json deleted file mode 100644 index c52083e7eb..0000000000 --- a/rust/cloud-storage/.sqlx/query-7346e8f6a04f0e2d0b0c3b711afc10673c7756fda2cce9fe8619d68d92219a88.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n sp.id as id\n FROM\n \"ProjectPermission\" pp\n JOIN \"SharePermission\" sp ON pp.\"sharePermissionId\" = sp.id\n WHERE\n pp.\"projectId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "7346e8f6a04f0e2d0b0c3b711afc10673c7756fda2cce9fe8619d68d92219a88" -} diff --git a/rust/cloud-storage/.sqlx/query-7385a803bf786406cafdce24628f9cca114fa5fe46b7bb0de469135f54dcd710.json b/rust/cloud-storage/.sqlx/query-7385a803bf786406cafdce24628f9cca114fa5fe46b7bb0de469135f54dcd710.json deleted file mode 100644 index 9cce76e686..0000000000 --- a/rust/cloud-storage/.sqlx/query-7385a803bf786406cafdce24628f9cca114fa5fe46b7bb0de469135f54dcd710.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id\n FROM\n \"Document\" d\n WHERE\n d.id = ANY($1)\n AND d.\"projectId\" = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "7385a803bf786406cafdce24628f9cca114fa5fe46b7bb0de469135f54dcd710" -} diff --git a/rust/cloud-storage/.sqlx/query-73c67fbf678e1479d528adcc5bea7da3261d0a04e24cc16f96ec9f2dea3b2e98.json b/rust/cloud-storage/.sqlx/query-73c67fbf678e1479d528adcc5bea7da3261d0a04e24cc16f96ec9f2dea3b2e98.json deleted file mode 100644 index 65459bcefd..0000000000 --- a/rust/cloud-storage/.sqlx/query-73c67fbf678e1479d528adcc5bea7da3261d0a04e24cc16f96ec9f2dea3b2e98.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id\n FROM \"User\"\n WHERE email = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "73c67fbf678e1479d528adcc5bea7da3261d0a04e24cc16f96ec9f2dea3b2e98" -} diff --git a/rust/cloud-storage/.sqlx/query-73f91a13989edcfbeec5d67e465506a77077406116f58821f9c1b38b855fb995.json b/rust/cloud-storage/.sqlx/query-73f91a13989edcfbeec5d67e465506a77077406116f58821f9c1b38b855fb995.json deleted file mode 100644 index 5cc6cddba4..0000000000 --- a/rust/cloud-storage/.sqlx/query-73f91a13989edcfbeec5d67e465506a77077406116f58821f9c1b38b855fb995.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"stripeCustomerId\" as \"stripe_customer_id?\"\n FROM \"User\"\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "stripe_customer_id?", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "73f91a13989edcfbeec5d67e465506a77077406116f58821f9c1b38b855fb995" -} diff --git a/rust/cloud-storage/.sqlx/query-74132c6b056f693ac364bd5d70a40d81ccd384ffc21881d7c162895cb7d11647.json b/rust/cloud-storage/.sqlx/query-74132c6b056f693ac364bd5d70a40d81ccd384ffc21881d7c162895cb7d11647.json deleted file mode 100644 index eddca4f0fd..0000000000 --- a/rust/cloud-storage/.sqlx/query-74132c6b056f693ac364bd5d70a40d81ccd384ffc21881d7c162895cb7d11647.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, email_address\n FROM email_contacts\n WHERE link_id = $1 AND email_address = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email_address", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "74132c6b056f693ac364bd5d70a40d81ccd384ffc21881d7c162895cb7d11647" -} diff --git a/rust/cloud-storage/.sqlx/query-745780ca3e0e26284050ac92cd3c90f9a796ec770c53cbee32660ed867c138a4.json b/rust/cloud-storage/.sqlx/query-745780ca3e0e26284050ac92cd3c90f9a796ec770c53cbee32660ed867c138a4.json deleted file mode 100644 index 12c74e21a2..0000000000 --- a/rust/cloud-storage/.sqlx/query-745780ca3e0e26284050ac92cd3c90f9a796ec770c53cbee32660ed867c138a4.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT c.id\n FROM crm_companies c\n JOIN crm_domains d ON d.company_id = c.id\n WHERE c.team_id = $1\n AND LOWER(d.domain) = $2\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "745780ca3e0e26284050ac92cd3c90f9a796ec770c53cbee32660ed867c138a4" -} diff --git a/rust/cloud-storage/.sqlx/query-74d33764e454fb9ab4f2775974462d6fdb092bffc720d929de5e7b50ecef5139.json b/rust/cloud-storage/.sqlx/query-74d33764e454fb9ab4f2775974462d6fdb092bffc720d929de5e7b50ecef5139.json deleted file mode 100644 index 34382e8725..0000000000 --- a/rust/cloud-storage/.sqlx/query-74d33764e454fb9ab4f2775974462d6fdb092bffc720d929de5e7b50ecef5139.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, apns_collapse_key as \"apns_collapse_key!: String\"\n FROM notification\n WHERE id = ANY($1) AND apns_collapse_key IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "apns_collapse_key!: String", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "74d33764e454fb9ab4f2775974462d6fdb092bffc720d929de5e7b50ecef5139" -} diff --git a/rust/cloud-storage/.sqlx/query-74e411c5bdc9a4ee3f96bf4b09fd3506f32146eb21d6714d60136850e9d849bf.json b/rust/cloud-storage/.sqlx/query-74e411c5bdc9a4ee3f96bf4b09fd3506f32146eb21d6714d60136850e9d849bf.json deleted file mode 100644 index 9eee57760e..0000000000 --- a/rust/cloud-storage/.sqlx/query-74e411c5bdc9a4ee3f96bf4b09fd3506f32146eb21d6714d60136850e9d849bf.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_contacts\n SET name = data.name, updated_at = now()\n FROM (SELECT unnest($1::uuid[]) as id, unnest($2::text[]) as name) as data\n WHERE email_contacts.id = data.id\n AND email_contacts.name IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "74e411c5bdc9a4ee3f96bf4b09fd3506f32146eb21d6714d60136850e9d849bf" -} diff --git a/rust/cloud-storage/.sqlx/query-751f836dc8f78c330387456dd68a8803972c7b3e2b6a2b95c27f15068bed2ca5.json b/rust/cloud-storage/.sqlx/query-751f836dc8f78c330387456dd68a8803972c7b3e2b6a2b95c27f15068bed2ca5.json deleted file mode 100644 index a784094d72..0000000000 --- a/rust/cloud-storage/.sqlx/query-751f836dc8f78c330387456dd68a8803972c7b3e2b6a2b95c27f15068bed2ca5.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT pg_advisory_xact_lock(hashtextextended($1, 0))", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "pg_advisory_xact_lock", - "type_info": "Void" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "751f836dc8f78c330387456dd68a8803972c7b3e2b6a2b95c27f15068bed2ca5" -} diff --git a/rust/cloud-storage/.sqlx/query-75843bf211e0811b398d636fe6c8b05005afb77be95bc434a924e53c17cd6033.json b/rust/cloud-storage/.sqlx/query-75843bf211e0811b398d636fe6c8b05005afb77be95bc434a924e53c17cd6033.json deleted file mode 100644 index 67426125ba..0000000000 --- a/rust/cloud-storage/.sqlx/query-75843bf211e0811b398d636fe6c8b05005afb77be95bc434a924e53c17cd6033.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT tp.\"sharePermissionId\" as \"share_permission_id!\"\n FROM \"EmailThreadPermission\" tp\n WHERE tp.\"threadId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "75843bf211e0811b398d636fe6c8b05005afb77be95bc434a924e53c17cd6033" -} diff --git a/rust/cloud-storage/.sqlx/query-758f208ea073a48e9be9919a0dce43648c19b5a092049b7cb0a6382e931371a1.json b/rust/cloud-storage/.sqlx/query-758f208ea073a48e9be9919a0dce43648c19b5a092049b7cb0a6382e931371a1.json deleted file mode 100644 index 0084440a91..0000000000 --- a/rust/cloud-storage/.sqlx/query-758f208ea073a48e9be9919a0dce43648c19b5a092049b7cb0a6382e931371a1.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SET LOCAL hnsw.iterative_scan = relaxed_order", - "describe": { - "columns": [], - "parameters": { - "Left": [] - }, - "nullable": [] - }, - "hash": "758f208ea073a48e9be9919a0dce43648c19b5a092049b7cb0a6382e931371a1" -} diff --git a/rust/cloud-storage/.sqlx/query-75f7c645bd7640d085b759c4246f683ccf76c634d71337d35d1a8b7004f31c35.json b/rust/cloud-storage/.sqlx/query-75f7c645bd7640d085b759c4246f683ccf76c634d71337d35d1a8b7004f31c35.json deleted file mode 100644 index 721336c9fe..0000000000 --- a/rust/cloud-storage/.sqlx/query-75f7c645bd7640d085b759c4246f683ccf76c634d71337d35d1a8b7004f31c35.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentInstance\" (\"documentId\", \"sha\")\n VALUES ($1, $2)\n RETURNING id, sha, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - null, - null - ] - }, - "hash": "75f7c645bd7640d085b759c4246f683ccf76c634d71337d35d1a8b7004f31c35" -} diff --git a/rust/cloud-storage/.sqlx/query-76096541f7696b2035acdb51754b4f783e345db19b32a815bbf68652121da947.json b/rust/cloud-storage/.sqlx/query-76096541f7696b2035acdb51754b4f783e345db19b32a815bbf68652121da947.json deleted file mode 100644 index a489813ed4..0000000000 --- a/rust/cloud-storage/.sqlx/query-76096541f7696b2035acdb51754b4f783e345db19b32a815bbf68652121da947.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM \"User\" WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "76096541f7696b2035acdb51754b4f783e345db19b32a815bbf68652121da947" -} diff --git a/rust/cloud-storage/.sqlx/query-7617f808df94ffe77c8195a911ee6b230a21fe9935e099d1310d244248ca253a.json b/rust/cloud-storage/.sqlx/query-7617f808df94ffe77c8195a911ee6b230a21fe9935e099d1310d244248ca253a.json deleted file mode 100644 index 655495fb29..0000000000 --- a/rust/cloud-storage/.sqlx/query-7617f808df94ffe77c8195a911ee6b230a21fe9935e099d1310d244248ca253a.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT c.id\n FROM comms_channels c\n INNER JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n AND c.id = ANY($2::uuid[])\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text", - "UuidArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "7617f808df94ffe77c8195a911ee6b230a21fe9935e099d1310d244248ca253a" -} diff --git a/rust/cloud-storage/.sqlx/query-765650cab2b1a1d1abe6ca406438bf48968cebebc7316b87b192d649e096cd67.json b/rust/cloud-storage/.sqlx/query-765650cab2b1a1d1abe6ca406438bf48968cebebc7316b87b192d649e096cd67.json deleted file mode 100644 index a8e7326c35..0000000000 --- a/rust/cloud-storage/.sqlx/query-765650cab2b1a1d1abe6ca406438bf48968cebebc7316b87b192d649e096cd67.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id FROM user_notification_item_unsubscribe\n WHERE item_id = $1 AND user_id = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "765650cab2b1a1d1abe6ca406438bf48968cebebc7316b87b192d649e096cd67" -} diff --git a/rust/cloud-storage/.sqlx/query-7671b43028d90ea50536fbcd10ee0c1625c2e66de29cdf080f66832e62e07e76.json b/rust/cloud-storage/.sqlx/query-7671b43028d90ea50536fbcd10ee0c1625c2e66de29cdf080f66832e62e07e76.json deleted file mode 100644 index 33c4519459..0000000000 --- a/rust/cloud-storage/.sqlx/query-7671b43028d90ea50536fbcd10ee0c1625c2e66de29cdf080f66832e62e07e76.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Chat\" SET \"deletedAt\" = $2 WHERE id = ANY($1);\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "Timestamp" - ] - }, - "nullable": [] - }, - "hash": "7671b43028d90ea50536fbcd10ee0c1625c2e66de29cdf080f66832e62e07e76" -} diff --git a/rust/cloud-storage/.sqlx/query-76caf706a1f0846ad3a7075878e941a9293a5eeeb1de3900c3c39386d5dc57c0.json b/rust/cloud-storage/.sqlx/query-76caf706a1f0846ad3a7075878e941a9293a5eeeb1de3900c3c39386d5dc57c0.json deleted file mode 100644 index 8f83e9a7d1..0000000000 --- a/rust/cloud-storage/.sqlx/query-76caf706a1f0846ad3a7075878e941a9293a5eeeb1de3900c3c39386d5dc57c0.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT macro_user_id, first_name, last_name FROM macro_user_info WHERE macro_user_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "first_name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "last_name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - true - ] - }, - "hash": "76caf706a1f0846ad3a7075878e941a9293a5eeeb1de3900c3c39386d5dc57c0" -} diff --git a/rust/cloud-storage/.sqlx/query-76e487efe2d8f383ac8e7688892624be4d81662c6f82f6aa16ba2e752dcabd94.json b/rust/cloud-storage/.sqlx/query-76e487efe2d8f383ac8e7688892624be4d81662c6f82f6aa16ba2e752dcabd94.json deleted file mode 100644 index 4d075c448f..0000000000 --- a/rust/cloud-storage/.sqlx/query-76e487efe2d8f383ac8e7688892624be4d81662c6f82f6aa16ba2e752dcabd94.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT bp.sha\n FROM \"BomPart\" bp\n JOIN \"DocumentBom\" db ON bp.\"documentBomId\" = db.id\n WHERE db.\"documentId\" = $1\n AND db.id = (\n SELECT db_inner.id\n FROM \"DocumentBom\" db_inner\n WHERE db_inner.\"documentId\" = $1\n ORDER BY db_inner.\"updatedAt\" DESC\n LIMIT 1\n )\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sha", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "76e487efe2d8f383ac8e7688892624be4d81662c6f82f6aa16ba2e752dcabd94" -} diff --git a/rust/cloud-storage/.sqlx/query-76ebe39d39b36dc8c0d0f4d7741856a320bd22a3962cf1ccec2c930a56ed6a26.json b/rust/cloud-storage/.sqlx/query-76ebe39d39b36dc8c0d0f4d7741856a320bd22a3962cf1ccec2c930a56ed6a26.json deleted file mode 100644 index 45fd98094d..0000000000 --- a/rust/cloud-storage/.sqlx/query-76ebe39d39b36dc8c0d0f4d7741856a320bd22a3962cf1ccec2c930a56ed6a26.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT resolved as is_resolved\n FROM \"Thread\"\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "is_resolved", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "76ebe39d39b36dc8c0d0f4d7741856a320bd22a3962cf1ccec2c930a56ed6a26" -} diff --git a/rust/cloud-storage/.sqlx/query-76f6793eaead8c4f3a2aa4b02ad573beda79b93bfd874acc1b2059cbe041d8a3.json b/rust/cloud-storage/.sqlx/query-76f6793eaead8c4f3a2aa4b02ad573beda79b93bfd874acc1b2059cbe041d8a3.json deleted file mode 100644 index 23986dc09f..0000000000 --- a/rust/cloud-storage/.sqlx/query-76f6793eaead8c4f3a2aa4b02ad573beda79b93bfd874acc1b2059cbe041d8a3.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO github_pr_tasks (id, github_key, task_id)\n SELECT * FROM UNNEST($1::uuid[], $2::text[], $3::text[])\n ON CONFLICT (github_key, task_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "76f6793eaead8c4f3a2aa4b02ad573beda79b93bfd874acc1b2059cbe041d8a3" -} diff --git a/rust/cloud-storage/.sqlx/query-7704391a443f1375ebd231197c4c21c7843eea381e396a3c688b390ced89620a.json b/rust/cloud-storage/.sqlx/query-7704391a443f1375ebd231197c4c21c7843eea381e396a3c688b390ced89620a.json deleted file mode 100644 index e973ff399b..0000000000 --- a/rust/cloud-storage/.sqlx/query-7704391a443f1375ebd231197c4c21c7843eea381e396a3c688b390ced89620a.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id as id,\n c.name as name,\n c.\"userId\" as user_id,\n c.model as \"model?\",\n c.\"projectId\" as \"project_id?\",\n c.\"tokenCount\" as token_count,\n c.\"createdAt\"::timestamptz as created_at,\n c.\"updatedAt\"::timestamptz as updated_at,\n c.\"deletedAt\"::timestamptz as deleted_at,\n c.\"isPersistent\" as is_persistent\n FROM\n \"Chat\" c\n WHERE c.\"projectId\" = $1 AND c.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "model?", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "project_id?", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "token_count", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "is_persistent", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - true, - true, - null, - null, - null, - false - ] - }, - "hash": "7704391a443f1375ebd231197c4c21c7843eea381e396a3c688b390ced89620a" -} diff --git a/rust/cloud-storage/.sqlx/query-770f2133b4f487b783e3d34bce0ebde1405e003a2d84d25542e8a11c7895be18.json b/rust/cloud-storage/.sqlx/query-770f2133b4f487b783e3d34bce0ebde1405e003a2d84d25542e8a11c7895be18.json deleted file mode 100644 index 07f0e307eb..0000000000 --- a/rust/cloud-storage/.sqlx/query-770f2133b4f487b783e3d34bce0ebde1405e003a2d84d25542e8a11c7895be18.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT t.id, l.macro_id\n FROM email_threads t\n JOIN email_links l ON t.link_id = l.id\n ORDER BY t.latest_inbound_message_ts DESC NULLS LAST\n LIMIT $1 OFFSET $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "770f2133b4f487b783e3d34bce0ebde1405e003a2d84d25542e8a11c7895be18" -} diff --git a/rust/cloud-storage/.sqlx/query-7725b1095e9fdc3e8879840bf3480aae302752bce224b1e69dcb3f2a9c1cef5b.json b/rust/cloud-storage/.sqlx/query-7725b1095e9fdc3e8879840bf3480aae302752bce224b1e69dcb3f2a9c1cef5b.json deleted file mode 100644 index 56e0353361..0000000000 --- a/rust/cloud-storage/.sqlx/query-7725b1095e9fdc3e8879840bf3480aae302752bce224b1e69dcb3f2a9c1cef5b.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO macro_user_email_verification (macro_user_id, email, is_verified)\n VALUES ($1, $2, true)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "7725b1095e9fdc3e8879840bf3480aae302752bce224b1e69dcb3f2a9c1cef5b" -} diff --git a/rust/cloud-storage/.sqlx/query-775a3c1e4a6365516cc07a60cdfe1913f1fa8606bdb384b8e697cb5c723cf40b.json b/rust/cloud-storage/.sqlx/query-775a3c1e4a6365516cc07a60cdfe1913f1fa8606bdb384b8e697cb5c723cf40b.json deleted file mode 100644 index 5c4142face..0000000000 --- a/rust/cloud-storage/.sqlx/query-775a3c1e4a6365516cc07a60cdfe1913f1fa8606bdb384b8e697cb5c723cf40b.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT access_level FROM (\n -- Source 1: entity_access source_id match\n SELECT\n access_level::text FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'email_thread'\n AND source_id = ANY($2)\n\n UNION ALL\n -- Source 2: items share permission\n SELECT\n \"publicAccessLevel\"::text AS access_level\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"EmailThreadPermission\" WHERE \"threadId\" = $3\n )\n ) AS combined_access\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "access_level", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "775a3c1e4a6365516cc07a60cdfe1913f1fa8606bdb384b8e697cb5c723cf40b" -} diff --git a/rust/cloud-storage/.sqlx/query-77a3b4ac298457a9c06b145d60a00127619bcfe56c969e69c03c98e7b2d975f9.json b/rust/cloud-storage/.sqlx/query-77a3b4ac298457a9c06b145d60a00127619bcfe56c969e69c03c98e7b2d975f9.json deleted file mode 100644 index c07a0bcdf7..0000000000 --- a/rust/cloud-storage/.sqlx/query-77a3b4ac298457a9c06b145d60a00127619bcfe56c969e69c03c98e7b2d975f9.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS(\n SELECT 1 FROM call_participants\n WHERE call_id = $1 AND user_id = $2 AND left_at IS NULL\n ) as \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "77a3b4ac298457a9c06b145d60a00127619bcfe56c969e69c03c98e7b2d975f9" -} diff --git a/rust/cloud-storage/.sqlx/query-77b9642e3ce72202c80aacda76790b7a1e1eee80d0b7388c2ad68e8ce5a996c7.json b/rust/cloud-storage/.sqlx/query-77b9642e3ce72202c80aacda76790b7a1e1eee80d0b7388c2ad68e8ce5a996c7.json deleted file mode 100644 index ce6db4c49c..0000000000 --- a/rust/cloud-storage/.sqlx/query-77b9642e3ce72202c80aacda76790b7a1e1eee80d0b7388c2ad68e8ce5a996c7.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT created_by as \"created_by!\"\n FROM (\n SELECT created_by FROM calls WHERE id = $1\n UNION ALL\n SELECT created_by FROM call_records WHERE id = $1\n ) t\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "created_by!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "77b9642e3ce72202c80aacda76790b7a1e1eee80d0b7388c2ad68e8ce5a996c7" -} diff --git a/rust/cloud-storage/.sqlx/query-77fae7a910ecfe9c5eeaf4c37a334398757d8e7959cd237df7e4947fb75aa56f.json b/rust/cloud-storage/.sqlx/query-77fae7a910ecfe9c5eeaf4c37a334398757d8e7959cd237df7e4947fb75aa56f.json deleted file mode 100644 index 5226fe888d..0000000000 --- a/rust/cloud-storage/.sqlx/query-77fae7a910ecfe9c5eeaf4c37a334398757d8e7959cd237df7e4947fb75aa56f.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE calls\n SET share_with_team = NOT share_with_team\n WHERE id = $1\n RETURNING share_with_team, channel_id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_with_team", - "type_info": "Bool" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "77fae7a910ecfe9c5eeaf4c37a334398757d8e7959cd237df7e4947fb75aa56f" -} diff --git a/rust/cloud-storage/.sqlx/query-77ff9385b1d74c036dde9f03404de53c3002b45bbe4e800fd2edf3c09f7625cc.json b/rust/cloud-storage/.sqlx/query-77ff9385b1d74c036dde9f03404de53c3002b45bbe4e800fd2edf3c09f7625cc.json deleted file mode 100644 index e2694fd100..0000000000 --- a/rust/cloud-storage/.sqlx/query-77ff9385b1d74c036dde9f03404de53c3002b45bbe4e800fd2edf3c09f7625cc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT COUNT(*) as \"count\" FROM \"User\" WHERE \"organizationId\" = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Int4" - ] - }, - "nullable": [ - null - ] - }, - "hash": "77ff9385b1d74c036dde9f03404de53c3002b45bbe4e800fd2edf3c09f7625cc" -} diff --git a/rust/cloud-storage/.sqlx/query-783fb2d2833135d5bf8aa7eb5983b773d4b7c9b508388987155815d8c7e1db3b.json b/rust/cloud-storage/.sqlx/query-783fb2d2833135d5bf8aa7eb5983b773d4b7c9b508388987155815d8c7e1db3b.json deleted file mode 100644 index 3377919e1e..0000000000 --- a/rust/cloud-storage/.sqlx/query-783fb2d2833135d5bf8aa7eb5983b773d4b7c9b508388987155815d8c7e1db3b.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, name, channel_type AS \"channel_type: ChannelType\", org_id, team_id\n FROM comms_channels\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "channel_type: ChannelType", - "type_info": { - "Custom": { - "name": "comms_channel_type", - "kind": { - "Enum": [ - "public", - "private", - "direct_message", - "team" - ] - } - } - } - }, - { - "ordinal": 3, - "name": "org_id", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "team_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - false, - true, - true - ] - }, - "hash": "783fb2d2833135d5bf8aa7eb5983b773d4b7c9b508388987155815d8c7e1db3b" -} diff --git a/rust/cloud-storage/.sqlx/query-784bba91ffa42d509389120cd4d680c75ad890e4fdf4b9c0b9d88ff07abc23a4.json b/rust/cloud-storage/.sqlx/query-784bba91ffa42d509389120cd4d680c75ad890e4fdf4b9c0b9d88ff07abc23a4.json deleted file mode 100644 index 837ced431a..0000000000 --- a/rust/cloud-storage/.sqlx/query-784bba91ffa42d509389120cd4d680c75ad890e4fdf4b9c0b9d88ff07abc23a4.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.replying_to_id,\n m.provider_history_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n NULL::TEXT as body_text,\n NULL::TEXT as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n JOIN email_links l ON m.link_id = l.id\n WHERE m.id = ANY($1) AND l.fusionauth_user_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 21, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 22, - "name": "body_macro", - "type_info": "Text" - }, - { - "ordinal": 23, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 24, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 25, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "Text" - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - null, - null, - null, - true, - false, - false - ] - }, - "hash": "784bba91ffa42d509389120cd4d680c75ad890e4fdf4b9c0b9d88ff07abc23a4" -} diff --git a/rust/cloud-storage/.sqlx/query-78d6d53824fefc526411d2a0ff9d70f665ebe35943b7246ff5e6e3f801183cef.json b/rust/cloud-storage/.sqlx/query-78d6d53824fefc526411d2a0ff9d70f665ebe35943b7246ff5e6e3f801183cef.json deleted file mode 100644 index b5606178ca..0000000000 --- a/rust/cloud-storage/.sqlx/query-78d6d53824fefc526411d2a0ff9d70f665ebe35943b7246ff5e6e3f801183cef.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE call_participants\n SET left_at = now()\n WHERE call_id = $1 AND user_id = $2 AND left_at IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "78d6d53824fefc526411d2a0ff9d70f665ebe35943b7246ff5e6e3f801183cef" -} diff --git a/rust/cloud-storage/.sqlx/query-78f1cf9da464937604c1a2d5115c014cab9de72bd88605ff47a316baa2c7acc2.json b/rust/cloud-storage/.sqlx/query-78f1cf9da464937604c1a2d5115c014cab9de72bd88605ff47a316baa2c7acc2.json deleted file mode 100644 index 9e6f7f8877..0000000000 --- a/rust/cloud-storage/.sqlx/query-78f1cf9da464937604c1a2d5115c014cab9de72bd88605ff47a316baa2c7acc2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT d.device_endpoint\n FROM notification_user_device_registration d\n WHERE d.device_token = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "device_endpoint", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "78f1cf9da464937604c1a2d5115c014cab9de72bd88605ff47a316baa2c7acc2" -} diff --git a/rust/cloud-storage/.sqlx/query-799422134794f3c4b9c5867b136262c2f639f313f14fd56da967a74d91aa1c88.json b/rust/cloud-storage/.sqlx/query-799422134794f3c4b9c5867b136262c2f639f313f14fd56da967a74d91aa1c88.json deleted file mode 100644 index 8f474872bd..0000000000 --- a/rust/cloud-storage/.sqlx/query-799422134794f3c4b9c5867b136262c2f639f313f14fd56da967a74d91aa1c88.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO github_links (id, macro_id, fusionauth_user_id, github_username, github_user_id, created_at, updated_at)\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Uuid", - "Varchar", - "Text", - "Timestamptz", - "Timestamptz" - ] - }, - "nullable": [] - }, - "hash": "799422134794f3c4b9c5867b136262c2f639f313f14fd56da967a74d91aa1c88" -} diff --git a/rust/cloud-storage/.sqlx/query-79ac6b0966afc0c5472e3d5589e940bf0d6d2c4280e69b09b4f7c8839b5ad658.json b/rust/cloud-storage/.sqlx/query-79ac6b0966afc0c5472e3d5589e940bf0d6d2c4280e69b09b4f7c8839b5ad658.json deleted file mode 100644 index 4b480ba3d9..0000000000 --- a/rust/cloud-storage/.sqlx/query-79ac6b0966afc0c5472e3d5589e940bf0d6d2c4280e69b09b4f7c8839b5ad658.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n name,\n model,\n \"userId\" as \"user_id\",\n \"createdAt\"::timestamptz as \"created_at\",\n \"updatedAt\"::timestamptz as \"updated_at\",\n \"deletedAt\"::timestamptz as \"deleted_at\",\n \"projectId\" as \"project_id\",\n \"tokenCount\" as \"token_count\",\n \"isPersistent\" as \"is_persistent\"\n FROM \"Chat\"\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "model", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "token_count", - "type_info": "Int8" - }, - { - "ordinal": 9, - "name": "is_persistent", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - null, - null, - null, - true, - true, - false - ] - }, - "hash": "79ac6b0966afc0c5472e3d5589e940bf0d6d2c4280e69b09b4f7c8839b5ad658" -} diff --git a/rust/cloud-storage/.sqlx/query-79bc5e3d91f3713ddb29cf42590eca0703771ea550311dfe651cc4cc063d34db.json b/rust/cloud-storage/.sqlx/query-79bc5e3d91f3713ddb29cf42590eca0703771ea550311dfe651cc4cc063d34db.json deleted file mode 100644 index fdeb62938d..0000000000 --- a/rust/cloud-storage/.sqlx/query-79bc5e3d91f3713ddb29cf42590eca0703771ea550311dfe651cc4cc063d34db.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT LOWER(domain) AS \"domain!\"\n FROM crm_domains\n WHERE company_id = $1 AND team_id = $2\n ORDER BY LOWER(domain) ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "domain!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "79bc5e3d91f3713ddb29cf42590eca0703771ea550311dfe651cc4cc063d34db" -} diff --git a/rust/cloud-storage/.sqlx/query-79c6974496c155f372a458d21240a09730630660ae75e8f6e5cfd8f5ba0ceb4e.json b/rust/cloud-storage/.sqlx/query-79c6974496c155f372a458d21240a09730630660ae75e8f6e5cfd8f5ba0ceb4e.json deleted file mode 100644 index 06f69bc198..0000000000 --- a/rust/cloud-storage/.sqlx/query-79c6974496c155f372a458d21240a09730630660ae75e8f6e5cfd8f5ba0ceb4e.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"SharePermission\" (\"isPublic\", \"publicAccessLevel\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, NOW(), NOW())\n RETURNING id, \"isPublic\" as is_public, \"publicAccessLevel\" as public_access_level;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "is_public", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "public_access_level", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Bool", - "Text" - ] - }, - "nullable": [ - false, - false, - true - ] - }, - "hash": "79c6974496c155f372a458d21240a09730630660ae75e8f6e5cfd8f5ba0ceb4e" -} diff --git a/rust/cloud-storage/.sqlx/query-79edd9ca0d31434d5d7a4db78a6b3f8eb316ff51e1099e40611ba77f5c048828.json b/rust/cloud-storage/.sqlx/query-79edd9ca0d31434d5d7a4db78a6b3f8eb316ff51e1099e40611ba77f5c048828.json deleted file mode 100644 index 2cef855296..0000000000 --- a/rust/cloud-storage/.sqlx/query-79edd9ca0d31434d5d7a4db78a6b3f8eb316ff51e1099e40611ba77f5c048828.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text AS source_id\n FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text AS source_id\n FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1 AS source_id\n ),\n visible_calls AS (\n SELECT\n c.id AS call_id,\n c.channel_id,\n c.room_name,\n c.created_by,\n c.created_at AS started_at,\n NULL::timestamptz AS ended_at,\n NULL::bigint AS duration_ms,\n c.egress_id,\n c.recording_key,\n c.preview_url,\n c.recording_started_at,\n NULL::text AS custom_name,\n NULL::text AS summary,\n c.share_with_team,\n true AS is_active,\n CASE\n WHEN EXISTS (\n SELECT 1 FROM call_participants cp\n WHERE cp.call_id = c.id AND cp.user_id = $1\n ) THEN 'ATTENDED'::text\n WHEN EXISTS (\n SELECT 1 FROM comms_channel_participants ccp\n WHERE ccp.channel_id = c.channel_id\n AND ccp.user_id = $1\n AND ccp.left_at IS NULL\n ) THEN 'MISSED'::text\n ELSE 'UNATTENDED'::text\n END AS status\n FROM calls c\n WHERE EXISTS (\n SELECT 1 FROM entity_access ea\n JOIN user_source_ids u ON u.source_id = ea.source_id\n WHERE ea.entity_id = c.id\n AND ea.entity_type = 'call'\n )\n AND ($3::bool IS FALSE OR c.channel_id = ANY($4))\n AND ($5::bool IS FALSE OR c.id = ANY($6))\n UNION ALL\n SELECT\n cr.id AS call_id,\n cr.channel_id,\n cr.room_name,\n cr.created_by,\n cr.started_at,\n cr.ended_at,\n cr.duration_ms,\n cr.egress_id,\n cr.recording_key,\n cr.preview_url,\n cr.recording_started_at,\n cr.custom_name,\n cr.summary,\n cr.share_with_team,\n false AS is_active,\n CASE\n WHEN EXISTS (\n SELECT 1 FROM call_record_participants crp\n WHERE crp.call_record_id = cr.id AND crp.user_id = $1\n ) THEN 'ATTENDED'::text\n WHEN EXISTS (\n SELECT 1 FROM comms_channel_participants ccp\n WHERE ccp.channel_id = cr.channel_id\n AND ccp.user_id = $1\n AND ccp.left_at IS NULL\n ) THEN 'MISSED'::text\n ELSE 'UNATTENDED'::text\n END AS status\n FROM call_records cr\n WHERE EXISTS (\n SELECT 1 FROM entity_access ea\n JOIN user_source_ids u ON u.source_id = ea.source_id\n WHERE ea.entity_id = cr.id\n AND ea.entity_type = 'call'\n )\n AND ($3::bool IS FALSE OR cr.channel_id = ANY($4))\n AND ($5::bool IS FALSE OR cr.id = ANY($6))\n )\n SELECT\n call_id as \"call_id!\",\n channel_id as \"channel_id!\",\n room_name as \"room_name!\",\n created_by as \"created_by!\",\n started_at as \"started_at!\",\n ended_at,\n duration_ms,\n egress_id,\n recording_key,\n preview_url,\n recording_started_at,\n custom_name,\n summary,\n share_with_team as \"share_with_team!\",\n is_active as \"is_active!\",\n status as \"status!\"\n FROM visible_calls\n WHERE ($7::bool IS FALSE OR status = ANY($8::text[]))\n ORDER BY \"started_at!\" DESC\n LIMIT $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "call_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id!", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "room_name!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_by!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "started_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "ended_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "duration_ms", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "egress_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "recording_key", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "preview_url", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "recording_started_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "custom_name", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "summary", - "type_info": "Text" - }, - { - "ordinal": 13, - "name": "share_with_team!", - "type_info": "Bool" - }, - { - "ordinal": 14, - "name": "is_active!", - "type_info": "Bool" - }, - { - "ordinal": 15, - "name": "status!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Int8", - "Bool", - "UuidArray", - "Bool", - "UuidArray", - "Bool", - "TextArray" - ] - }, - "nullable": [ - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null - ] - }, - "hash": "79edd9ca0d31434d5d7a4db78a6b3f8eb316ff51e1099e40611ba77f5c048828" -} diff --git a/rust/cloud-storage/.sqlx/query-7a04573d80958eb5b841e520136db80173119aacbab82f50a4a1ae468aaada65.json b/rust/cloud-storage/.sqlx/query-7a04573d80958eb5b841e520136db80173119aacbab82f50a4a1ae468aaada65.json deleted file mode 100644 index d692f301d5..0000000000 --- a/rust/cloud-storage/.sqlx/query-7a04573d80958eb5b841e520136db80173119aacbab82f50a4a1ae468aaada65.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE comms_messages\n SET content = '', updated_at = NOW(), deleted_at = NOW()\n WHERE id = $1 AND channel_id = $2\n RETURNING\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "edited_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - null, - null - ] - }, - "hash": "7a04573d80958eb5b841e520136db80173119aacbab82f50a4a1ae468aaada65" -} diff --git a/rust/cloud-storage/.sqlx/query-7a97bb0e12628cc97e6e2555cf246cf0339ffbcece51c12635989df120793dfb.json b/rust/cloud-storage/.sqlx/query-7a97bb0e12628cc97e6e2555cf246cf0339ffbcece51c12635989df120793dfb.json deleted file mode 100644 index 167982651f..0000000000 --- a/rust/cloud-storage/.sqlx/query-7a97bb0e12628cc97e6e2555cf246cf0339ffbcece51c12635989df120793dfb.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n a.id, a.message_id, a.provider_attachment_id, \n a.filename, a.mime_type, a.size_bytes, \n a.content_id, eas.sfs_id as \"sfs_id?\", a.created_at, m.provider_id as \"message_provider_id!\"\n FROM email_attachments a\n JOIN email_messages m ON a.message_id = m.id\n LEFT JOIN email_attachments_sfs eas ON a.id = eas.attachment_id\n WHERE a.id = $1 AND m.link_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_attachment_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "filename", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "mime_type", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "size_bytes", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "content_id", - "type_info": "Varchar" - }, - { - "ordinal": 7, - "name": "sfs_id?", - "type_info": "Uuid" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "message_provider_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - false, - false, - true - ] - }, - "hash": "7a97bb0e12628cc97e6e2555cf246cf0339ffbcece51c12635989df120793dfb" -} diff --git a/rust/cloud-storage/.sqlx/query-7ae5368ee01e670dcc9804096f3d3e9dcab6dcebcb601bfb1ed190dbda0ff37f.json b/rust/cloud-storage/.sqlx/query-7ae5368ee01e670dcc9804096f3d3e9dcab6dcebcb601bfb1ed190dbda0ff37f.json deleted file mode 100644 index a33e79f60e..0000000000 --- a/rust/cloud-storage/.sqlx/query-7ae5368ee01e670dcc9804096f3d3e9dcab6dcebcb601bfb1ed190dbda0ff37f.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO entity_properties (id, entity_id, entity_type, property_definition_id, values)\n VALUES ($1, $2, $3, $4, $5)\n ON CONFLICT (entity_id, entity_type, property_definition_id) \n DO UPDATE SET \n values = EXCLUDED.values,\n updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - }, - "Uuid", - "Jsonb" - ] - }, - "nullable": [] - }, - "hash": "7ae5368ee01e670dcc9804096f3d3e9dcab6dcebcb601bfb1ed190dbda0ff37f" -} diff --git a/rust/cloud-storage/.sqlx/query-7aee0251787584d5ae4c7b01fc06562ccabe8d554bb4013b3970ddd3f10fc364.json b/rust/cloud-storage/.sqlx/query-7aee0251787584d5ae4c7b01fc06562ccabe8d554bb4013b3970ddd3f10fc364.json deleted file mode 100644 index dcc7e4820a..0000000000 --- a/rust/cloud-storage/.sqlx/query-7aee0251787584d5ae4c7b01fc06562ccabe8d554bb4013b3970ddd3f10fc364.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT 'document' as \"item_type!\", \"documentId\" as \"item_id!\", \"sharePermissionId\" as \"share_permission_id!\"\n FROM \"DocumentPermission\"\n WHERE \"sharePermissionId\" = ANY($1)\n UNION ALL\n SELECT 'chat' as \"item_type!\", \"chatId\" as \"item_id!\", \"sharePermissionId\" as \"share_permission_id!\"\n FROM \"ChatPermission\"\n WHERE \"sharePermissionId\" = ANY($1)\n UNION ALL\n SELECT 'project' as \"item_type!\", \"projectId\" as \"item_id!\", \"sharePermissionId\" as \"share_permission_id!\"\n FROM \"ProjectPermission\"\n WHERE \"sharePermissionId\" = ANY($1)\n UNION ALL\n SELECT 'thread' as \"item_type!\", \"threadId\" as \"item_id!\", \"sharePermissionId\" as \"share_permission_id!\"\n FROM \"EmailThreadPermission\"\n WHERE \"sharePermissionId\" = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_type!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "item_id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "share_permission_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - null, - null, - null - ] - }, - "hash": "7aee0251787584d5ae4c7b01fc06562ccabe8d554bb4013b3970ddd3f10fc364" -} diff --git a/rust/cloud-storage/.sqlx/query-7b34f011e0ff7320e6a43825cace039b37662cf51a607ad905f758c508aa5049.json b/rust/cloud-storage/.sqlx/query-7b34f011e0ff7320e6a43825cace039b37662cf51a607ad905f758c508aa5049.json deleted file mode 100644 index a26e1d5521..0000000000 --- a/rust/cloud-storage/.sqlx/query-7b34f011e0ff7320e6a43825cace039b37662cf51a607ad905f758c508aa5049.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT seat_count\n FROM team\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "seat_count", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "7b34f011e0ff7320e6a43825cace039b37662cf51a607ad905f758c508aa5049" -} diff --git a/rust/cloud-storage/.sqlx/query-7b3d997c28cd0c99fc7b710e47f9bc1ac1a63e950ae4446a7c748ac067b7c8cc.json b/rust/cloud-storage/.sqlx/query-7b3d997c28cd0c99fc7b710e47f9bc1ac1a63e950ae4446a7c748ac067b7c8cc.json deleted file mode 100644 index 7180ec9acf..0000000000 --- a/rust/cloud-storage/.sqlx/query-7b3d997c28cd0c99fc7b710e47f9bc1ac1a63e950ae4446a7c748ac067b7c8cc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT t.id\n FROM email_threads t\n JOIN email_links l ON t.link_id = l.id\n WHERE l.fusionauth_user_id = $1\n ORDER BY t.latest_inbound_message_ts DESC NULLS LAST\n LIMIT $2 OFFSET $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text", - "Int8", - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "7b3d997c28cd0c99fc7b710e47f9bc1ac1a63e950ae4446a7c748ac067b7c8cc" -} diff --git a/rust/cloud-storage/.sqlx/query-7b57355357a891761f608fc4d7ad472b901c087890909de9a068d6bc1ba0eb7a.json b/rust/cloud-storage/.sqlx/query-7b57355357a891761f608fc4d7ad472b901c087890909de9a068d6bc1ba0eb7a.json deleted file mode 100644 index fa801927c7..0000000000 --- a/rust/cloud-storage/.sqlx/query-7b57355357a891761f608fc4d7ad472b901c087890909de9a068d6bc1ba0eb7a.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.email\n FROM\n \"User\" u\n WHERE\n u.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "7b57355357a891761f608fc4d7ad472b901c087890909de9a068d6bc1ba0eb7a" -} diff --git a/rust/cloud-storage/.sqlx/query-7b747964b75e86cda7393af6cd483d86a7214baaa710e8a527e1dd77ab8274b6.json b/rust/cloud-storage/.sqlx/query-7b747964b75e86cda7393af6cd483d86a7214baaa710e8a527e1dd77ab8274b6.json deleted file mode 100644 index e2226076d5..0000000000 --- a/rust/cloud-storage/.sqlx/query-7b747964b75e86cda7393af6cd483d86a7214baaa710e8a527e1dd77ab8274b6.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Chat\" SET \"updatedAt\" = NOW()\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "7b747964b75e86cda7393af6cd483d86a7214baaa710e8a527e1dd77ab8274b6" -} diff --git a/rust/cloud-storage/.sqlx/query-7bb408bf30aecce0065dcfcf07da69efaab69905bb6b97d5d57ad591ff8c2006.json b/rust/cloud-storage/.sqlx/query-7bb408bf30aecce0065dcfcf07da69efaab69905bb6b97d5d57ad591ff8c2006.json deleted file mode 100644 index 59735d180a..0000000000 --- a/rust/cloud-storage/.sqlx/query-7bb408bf30aecce0065dcfcf07da69efaab69905bb6b97d5d57ad591ff8c2006.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"account_merge_request\"\n WHERE \"id\" = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "7bb408bf30aecce0065dcfcf07da69efaab69905bb6b97d5d57ad591ff8c2006" -} diff --git a/rust/cloud-storage/.sqlx/query-7bdcbf27b9edb2a2efc0e30c83230f6400385b295a50b48776985089d6ae3c84.json b/rust/cloud-storage/.sqlx/query-7bdcbf27b9edb2a2efc0e30c83230f6400385b295a50b48776985089d6ae3c84.json deleted file mode 100644 index ee23701453..0000000000 --- a/rust/cloud-storage/.sqlx/query-7bdcbf27b9edb2a2efc0e30c83230f6400385b295a50b48776985089d6ae3c84.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id as \"id!\", macro_id as \"macro_id!\",\n fusionauth_user_id as \"fusionauth_user_id!\",\n email_address as \"email_address!\",\n provider as \"provider!: _\",\n is_sync_active as \"is_sync_active!\",\n created_at as \"created_at!\",\n updated_at as \"updated_at!\"\n FROM (\n SELECT el.id, el.macro_id, el.fusionauth_user_id, el.email_address,\n el.provider, el.is_sync_active, el.created_at, el.updated_at\n FROM email_links el\n WHERE el.macro_id = $1\n UNION\n SELECT el.id, el.macro_id, el.fusionauth_user_id, el.email_address,\n el.provider, el.is_sync_active, el.created_at, el.updated_at\n FROM email_links el\n JOIN macro_user_links mul ON el.macro_id = mul.child_macro_id\n WHERE mul.primary_macro_id = $1\n ) AS combined\n ORDER BY created_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "email_address!", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "provider!: _", - "type_info": { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_sync_active!", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at!", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null, - null, - null, - null, - null, - null, - null, - null - ] - }, - "hash": "7bdcbf27b9edb2a2efc0e30c83230f6400385b295a50b48776985089d6ae3c84" -} diff --git a/rust/cloud-storage/.sqlx/query-7c0b9d645a85e30577377e4d8c8a8f976e86c6251e12517a2b1e14d525e09198.json b/rust/cloud-storage/.sqlx/query-7c0b9d645a85e30577377e4d8c8a8f976e86c6251e12517a2b1e14d525e09198.json deleted file mode 100644 index 721b0038f2..0000000000 --- a/rust/cloud-storage/.sqlx/query-7c0b9d645a85e30577377e4d8c8a8f976e86c6251e12517a2b1e14d525e09198.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id, notification_event_type\n FROM user_notification_type_preference\n WHERE user_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "notification_event_type", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "7c0b9d645a85e30577377e4d8c8a8f976e86c6251e12517a2b1e14d525e09198" -} diff --git a/rust/cloud-storage/.sqlx/query-7c4cd009982b182b18927dc5671aad059a55440c2de73c818ef28d6cf08acf80.json b/rust/cloud-storage/.sqlx/query-7c4cd009982b182b18927dc5671aad059a55440c2de73c818ef28d6cf08acf80.json deleted file mode 100644 index d51bf18635..0000000000 --- a/rust/cloud-storage/.sqlx/query-7c4cd009982b182b18927dc5671aad059a55440c2de73c818ef28d6cf08acf80.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Document\" (id, owner, name, \"fileType\", \"projectId\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, $5, $6, $6)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Text", - "Text", - "Timestamp" - ] - }, - "nullable": [] - }, - "hash": "7c4cd009982b182b18927dc5671aad059a55440c2de73c818ef28d6cf08acf80" -} diff --git a/rust/cloud-storage/.sqlx/query-7ccdaab5873129437c98581ac37eb4148255b83e18fad15349d06c54040fd6cc.json b/rust/cloud-storage/.sqlx/query-7ccdaab5873129437c98581ac37eb4148255b83e18fad15349d06c54040fd6cc.json deleted file mode 100644 index a166680895..0000000000 --- a/rust/cloud-storage/.sqlx/query-7ccdaab5873129437c98581ac37eb4148255b83e18fad15349d06c54040fd6cc.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO notification (id, notification_event_type, event_item_id, event_item_type, service_sender, metadata, sender_id, apns_collapse_key)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n ON CONFLICT (id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Varchar", - "Text", - "Text", - "Text", - "Jsonb", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "7ccdaab5873129437c98581ac37eb4148255b83e18fad15349d06c54040fd6cc" -} diff --git a/rust/cloud-storage/.sqlx/query-7ce336a58021f98fbb7c87b42ed827d0aee69ec593e923e41d2545b75d1def37.json b/rust/cloud-storage/.sqlx/query-7ce336a58021f98fbb7c87b42ed827d0aee69ec593e923e41d2545b75d1def37.json deleted file mode 100644 index 373d36db6e..0000000000 --- a/rust/cloud-storage/.sqlx/query-7ce336a58021f98fbb7c87b42ed827d0aee69ec593e923e41d2545b75d1def37.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"UploadJob\" SET \"documentId\" = $1 WHERE \"jobId\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "7ce336a58021f98fbb7c87b42ed827d0aee69ec593e923e41d2545b75d1def37" -} diff --git a/rust/cloud-storage/.sqlx/query-7d2487e2e00482505b104e5386377e939dd85a9090b3d89d71bb495b2ba7cca9.json b/rust/cloud-storage/.sqlx/query-7d2487e2e00482505b104e5386377e939dd85a9090b3d89d71bb495b2ba7cca9.json deleted file mode 100644 index 88476d02eb..0000000000 --- a/rust/cloud-storage/.sqlx/query-7d2487e2e00482505b104e5386377e939dd85a9090b3d89d71bb495b2ba7cca9.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Document\" SET \"deletedAt\" = NULL WHERE id = ANY($1);\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "7d2487e2e00482505b104e5386377e939dd85a9090b3d89d71bb495b2ba7cca9" -} diff --git a/rust/cloud-storage/.sqlx/query-7d4385b8207bd320c290edc420c68c86028ac0ecb586a78fe55438f5e13b9106.json b/rust/cloud-storage/.sqlx/query-7d4385b8207bd320c290edc420c68c86028ac0ecb586a78fe55438f5e13b9106.json deleted file mode 100644 index a63d6d21d2..0000000000 --- a/rust/cloud-storage/.sqlx/query-7d4385b8207bd320c290edc420c68c86028ac0ecb586a78fe55438f5e13b9106.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_channel_participants (channel_id, user_id, role, joined_at)\n SELECT cc.id, $2, 'member'::comms_participant_role, NOW()\n FROM comms_channels cc\n WHERE cc.team_id = $1\n ON CONFLICT (channel_id, user_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "7d4385b8207bd320c290edc420c68c86028ac0ecb586a78fe55438f5e13b9106" -} diff --git a/rust/cloud-storage/.sqlx/query-7d5fe2bfe9751516c5e9b4315c74138f065c6c9b2a92c0de4d048dc72fdfe369.json b/rust/cloud-storage/.sqlx/query-7d5fe2bfe9751516c5e9b4315c74138f065c6c9b2a92c0de4d048dc72fdfe369.json deleted file mode 100644 index ad3cf25985..0000000000 --- a/rust/cloud-storage/.sqlx/query-7d5fe2bfe9751516c5e9b4315c74138f065c6c9b2a92c0de4d048dc72fdfe369.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, $4)\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = $4\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Timestamp" - ] - }, - "nullable": [] - }, - "hash": "7d5fe2bfe9751516c5e9b4315c74138f065c6c9b2a92c0de4d048dc72fdfe369" -} diff --git a/rust/cloud-storage/.sqlx/query-7d904128ec24b17b4f1b25a2084b42476455160ba50f8e599a47acca06484cd7.json b/rust/cloud-storage/.sqlx/query-7d904128ec24b17b4f1b25a2084b42476455160ba50f8e599a47acca06484cd7.json deleted file mode 100644 index c79d9c592c..0000000000 --- a/rust/cloud-storage/.sqlx/query-7d904128ec24b17b4f1b25a2084b42476455160ba50f8e599a47acca06484cd7.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n n.event_item_id,\n n.event_item_type,\n n.notification_event_type,\n n.apns_collapse_key\n FROM notification n\n WHERE n.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "event_item_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "event_item_type", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "notification_event_type", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "apns_collapse_key", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - true - ] - }, - "hash": "7d904128ec24b17b4f1b25a2084b42476455160ba50f8e599a47acca06484cd7" -} diff --git a/rust/cloud-storage/.sqlx/query-7da22b0b109d1caac6384294fafaef3148e80824e023ddee78473fbae17720de.json b/rust/cloud-storage/.sqlx/query-7da22b0b109d1caac6384294fafaef3148e80824e023ddee78473fbae17720de.json deleted file mode 100644 index 25e38f7bcd..0000000000 --- a/rust/cloud-storage/.sqlx/query-7da22b0b109d1caac6384294fafaef3148e80824e023ddee78473fbae17720de.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n cr.id AS \"call_id!\",\n cr.channel_id AS \"channel_id!\",\n cr.created_by AS \"created_by!\",\n cr.started_at AS \"started_at!\",\n cr.ended_at AS \"ended_at!\",\n cr.duration_ms AS \"duration_ms!\",\n cr.custom_name AS \"custom_name?\",\n EXISTS (\n SELECT 1 FROM call_record_participants crp\n WHERE crp.call_record_id = cr.id AND crp.user_id = $2\n ) AS \"attended!\",\n CASE\n WHEN EXISTS (\n SELECT 1 FROM call_record_participants crp\n WHERE crp.call_record_id = cr.id AND crp.user_id = $2\n ) THEN 'ATTENDED'\n WHEN EXISTS (\n SELECT 1 FROM comms_channel_participants ccp\n WHERE ccp.channel_id = cr.channel_id\n AND ccp.user_id = $2\n AND ccp.left_at IS NULL\n ) THEN 'MISSED'\n ELSE 'UNATTENDED'\n END AS \"status!\"\n FROM call_records cr\n WHERE cr.id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "call_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id!", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "created_by!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "started_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "ended_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "duration_ms!", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "custom_name?", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "attended!", - "type_info": "Bool" - }, - { - "ordinal": 8, - "name": "status!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - null, - null - ] - }, - "hash": "7da22b0b109d1caac6384294fafaef3148e80824e023ddee78473fbae17720de" -} diff --git a/rust/cloud-storage/.sqlx/query-7e076694e17fe7c86e7a948ab72e4a2a56f301223b62413247ac15bd5fef29c5.json b/rust/cloud-storage/.sqlx/query-7e076694e17fe7c86e7a948ab72e4a2a56f301223b62413247ac15bd5fef29c5.json deleted file mode 100644 index 35ccaa385e..0000000000 --- a/rust/cloud-storage/.sqlx/query-7e076694e17fe7c86e7a948ab72e4a2a56f301223b62413247ac15bd5fef29c5.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"document_email\" (document_id, email_attachment_id)\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "7e076694e17fe7c86e7a948ab72e4a2a56f301223b62413247ac15bd5fef29c5" -} diff --git a/rust/cloud-storage/.sqlx/query-7eaa606441665fa4dca3077c6b3c02e8c4a0d136a40149829b96dff878897108.json b/rust/cloud-storage/.sqlx/query-7eaa606441665fa4dca3077c6b3c02e8c4a0d136a40149829b96dff878897108.json deleted file mode 100644 index dd685835c4..0000000000 --- a/rust/cloud-storage/.sqlx/query-7eaa606441665fa4dca3077c6b3c02e8c4a0d136a40149829b96dff878897108.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO mobile_welcome_email (email)\n VALUES ($1)\n ON CONFLICT (email) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "7eaa606441665fa4dca3077c6b3c02e8c4a0d136a40149829b96dff878897108" -} diff --git a/rust/cloud-storage/.sqlx/query-7ee9ba5adfac304c7ac930943538ecca7428b1054d451fb2f8973cf9c11caf45.json b/rust/cloud-storage/.sqlx/query-7ee9ba5adfac304c7ac930943538ecca7428b1054d451fb2f8973cf9c11caf45.json deleted file mode 100644 index fbdbdf128a..0000000000 --- a/rust/cloud-storage/.sqlx/query-7ee9ba5adfac304c7ac930943538ecca7428b1054d451fb2f8973cf9c11caf45.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH input_ids AS (\n SELECT UNNEST($1::uuid[]) AS channel_id\n )\n SELECT\n i.channel_id AS \"channel_id!\",\n l.message_id AS \"l_message_id?: uuid::Uuid\",\n l.thread_id AS \"l_thread_id?: uuid::Uuid\",\n l.sender_id AS \"l_sender_id?: String\",\n l.content AS \"l_content?: String\",\n l.created_at AS \"l_created_at?: chrono::DateTime\",\n l.updated_at AS \"l_updated_at?: chrono::DateTime\",\n l.deleted_at AS \"l_deleted_at?: chrono::DateTime\",\n l.mentions AS \"l_mentions?: Vec\",\n n.message_id AS \"n_message_id?: uuid::Uuid\",\n n.thread_id AS \"n_thread_id?: uuid::Uuid\",\n n.sender_id AS \"n_sender_id?: String\",\n n.content AS \"n_content?: String\",\n n.created_at AS \"n_created_at?: chrono::DateTime\",\n n.updated_at AS \"n_updated_at?: chrono::DateTime\",\n n.deleted_at AS \"n_deleted_at?: chrono::DateTime\",\n n.mentions AS \"n_mentions?: Vec\"\n FROM input_ids i\n LEFT JOIN LATERAL (\n SELECT\n m.id AS message_id,\n m.thread_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.deleted_at::timestamptz AS deleted_at,\n COALESCE(\n ARRAY(\n SELECT entity_type || ':' || entity_id\n FROM comms_entity_mentions em\n WHERE em.source_entity_type = 'message'\n AND em.source_entity_id = m.id::text\n ),\n '{}'::text[]\n ) AS mentions\n FROM comms_messages m\n WHERE m.channel_id = i.channel_id\n AND m.deleted_at IS NULL\n ORDER BY m.created_at DESC\n LIMIT 1\n ) l ON TRUE\n LEFT JOIN LATERAL (\n SELECT\n m.id AS message_id,\n m.thread_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.deleted_at::timestamptz AS deleted_at,\n COALESCE(\n ARRAY(\n SELECT entity_type || ':' || entity_id\n FROM comms_entity_mentions em\n WHERE em.source_entity_type = 'message'\n AND em.source_entity_id = m.id::text\n ),\n '{}'::text[]\n ) AS mentions\n FROM comms_messages m\n WHERE m.channel_id = i.channel_id\n AND m.deleted_at IS NULL\n AND m.thread_id IS NULL\n ORDER BY m.created_at DESC\n LIMIT 1\n ) n ON TRUE\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "l_message_id?: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "l_thread_id?: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "l_sender_id?: String", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "l_content?: String", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "l_created_at?: chrono::DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "l_updated_at?: chrono::DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "l_deleted_at?: chrono::DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "l_mentions?: Vec", - "type_info": "TextArray" - }, - { - "ordinal": 9, - "name": "n_message_id?: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 10, - "name": "n_thread_id?: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 11, - "name": "n_sender_id?: String", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "n_content?: String", - "type_info": "Text" - }, - { - "ordinal": 13, - "name": "n_created_at?: chrono::DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 14, - "name": "n_updated_at?: chrono::DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "n_deleted_at?: chrono::DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 16, - "name": "n_mentions?: Vec", - "type_info": "TextArray" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - null, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true - ] - }, - "hash": "7ee9ba5adfac304c7ac930943538ecca7428b1054d451fb2f8973cf9c11caf45" -} diff --git a/rust/cloud-storage/.sqlx/query-7f5d80a93c34a98c84c86f6dd678139fbab4c5bf559090a45d79384bcef71a43.json b/rust/cloud-storage/.sqlx/query-7f5d80a93c34a98c84c86f6dd678139fbab4c5bf559090a45d79384bcef71a43.json deleted file mode 100644 index 699c743a02..0000000000 --- a/rust/cloud-storage/.sqlx/query-7f5d80a93c34a98c84c86f6dd678139fbab4c5bf559090a45d79384bcef71a43.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Project\"\n WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "7f5d80a93c34a98c84c86f6dd678139fbab4c5bf559090a45d79384bcef71a43" -} diff --git a/rust/cloud-storage/.sqlx/query-7f8601bd8c738ab2e656f22c009f7c6599dd2dd0de63c92a772d6638bec6ef77.json b/rust/cloud-storage/.sqlx/query-7f8601bd8c738ab2e656f22c009f7c6599dd2dd0de63c92a772d6638bec6ef77.json deleted file mode 100644 index 1c2c59c1b8..0000000000 --- a/rust/cloud-storage/.sqlx/query-7f8601bd8c738ab2e656f22c009f7c6599dd2dd0de63c92a772d6638bec6ef77.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n provider_id,\n global_id,\n thread_id,\n provider_thread_id,\n replying_to_id,\n link_id,\n provider_history_id,\n internal_date_ts,\n snippet,\n size_estimate,\n subject,\n from_name,\n from_contact_id,\n sent_at,\n has_attachments,\n is_read,\n is_starred,\n is_sent,\n is_draft,\n headers_jsonb,\n created_at,\n updated_at,\n body_text as body_text,\n body_html_sanitized as body_html_sanitized,\n NULL::TEXT as body_macro\n FROM email_messages\n WHERE thread_id = ANY($1)\n ORDER BY internal_date_ts DESC NULLS LAST\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 6, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 21, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 22, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 23, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 24, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 25, - "name": "body_macro", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - true, - true, - false, - true, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - true, - false, - false, - true, - true, - null - ] - }, - "hash": "7f8601bd8c738ab2e656f22c009f7c6599dd2dd0de63c92a772d6638bec6ef77" -} diff --git a/rust/cloud-storage/.sqlx/query-7fa9eb6f3b050e679afd93120744ba5f2cfd3a341111c1fc757ae75f50134d7f.json b/rust/cloud-storage/.sqlx/query-7fa9eb6f3b050e679afd93120744ba5f2cfd3a341111c1fc757ae75f50134d7f.json deleted file mode 100644 index 19d34e2042..0000000000 --- a/rust/cloud-storage/.sqlx/query-7fa9eb6f3b050e679afd93120744ba5f2cfd3a341111c1fc757ae75f50134d7f.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT source, destination\n FROM email_sfs_mappings\n WHERE source = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "source", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "destination", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "7fa9eb6f3b050e679afd93120744ba5f2cfd3a341111c1fc757ae75f50134d7f" -} diff --git a/rust/cloud-storage/.sqlx/query-7fb579182c5ebbf4516b104b3f4b5956f4d84fb449358a83393d0491d712f44f.json b/rust/cloud-storage/.sqlx/query-7fb579182c5ebbf4516b104b3f4b5956f4d84fb449358a83393d0491d712f44f.json deleted file mode 100644 index 9c89dd91e5..0000000000 --- a/rust/cloud-storage/.sqlx/query-7fb579182c5ebbf4516b104b3f4b5956f4d84fb449358a83393d0491d712f44f.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n LOWER(c.email_address) AS \"email!\",\n c.name AS \"name\",\n MIN(m.internal_date_ts) AS \"first_at!\",\n MAX(m.internal_date_ts) AS \"last_at!\"\n FROM email_messages m\n JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.link_id = $1\n AND m.is_sent = false\n AND m.from_contact_id IS NOT NULL\n AND m.internal_date_ts IS NOT NULL\n GROUP BY LOWER(c.email_address), c.name\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "first_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "last_at!", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null, - true, - null, - null - ] - }, - "hash": "7fb579182c5ebbf4516b104b3f4b5956f4d84fb449358a83393d0491d712f44f" -} diff --git a/rust/cloud-storage/.sqlx/query-7fc9da48b6c62ab0db6327e300eb80eafcff34b2d5d13621a688883acc3db154.json b/rust/cloud-storage/.sqlx/query-7fc9da48b6c62ab0db6327e300eb80eafcff34b2d5d13621a688883acc3db154.json deleted file mode 100644 index f8b30182d4..0000000000 --- a/rust/cloud-storage/.sqlx/query-7fc9da48b6c62ab0db6327e300eb80eafcff34b2d5d13621a688883acc3db154.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as \"document_id\",\n d.owner as \"owner\",\n d.name as \"document_name\",\n COALESCE(di.id, db.id) as \"document_version_id!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"fileType\" as \"file_type\",\n db.bom_parts as \"document_bom?\",\n di.modification_data as \"modification_data?\",\n d.\"projectId\" as \"project_id\",\n p.name as \"project_name?\",\n di.sha as \"sha?\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.sha,\n i.\"createdAt\",\n (\n SELECT\n imod.\"modificationData\"\n FROM\n \"DocumentInstanceModificationData\" imod\n WHERE\n imod.\"documentInstanceId\" = i.id\n ) as modification_data,\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n AND\n i.id = $2\n ) di ON true\n LEFT JOIN LATERAL (\n SELECT\n b.id,\n (\n SELECT\n json_agg(\n json_build_object(\n 'id', bp.id,\n 'sha', bp.sha,\n 'path', bp.path\n )\n )\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = b.id\n ) as bom_parts\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n AND\n b.id = $2\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n p.name\n FROM \"Project\" p\n WHERE p.id = d.\"projectId\"\n ) p ON d.\"projectId\" IS NOT NULL\n WHERE\n d.id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "document_version_id!", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "document_bom?", - "type_info": "Json" - }, - { - "ordinal": 11, - "name": "modification_data?", - "type_info": "Jsonb" - }, - { - "ordinal": 12, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 13, - "name": "project_name?", - "type_info": "Text" - }, - { - "ordinal": 14, - "name": "sha?", - "type_info": "Text" - }, - { - "ordinal": 15, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 16, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - null, - true, - true, - true, - null, - null, - true, - null, - null, - true, - false, - false, - false, - null - ] - }, - "hash": "7fc9da48b6c62ab0db6327e300eb80eafcff34b2d5d13621a688883acc3db154" -} diff --git a/rust/cloud-storage/.sqlx/query-8038c7f88cea547f6ed9e7d8d8e3b547ad7f8880f4e695bc037ccc7ca8493f82.json b/rust/cloud-storage/.sqlx/query-8038c7f88cea547f6ed9e7d8d8e3b547ad7f8880f4e695bc037ccc7ca8493f82.json deleted file mode 100644 index e8811731fa..0000000000 --- a/rust/cloud-storage/.sqlx/query-8038c7f88cea547f6ed9e7d8d8e3b547ad7f8880f4e695bc037ccc7ca8493f82.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n \"content\"\n FROM \"DocumentProcessResult\"\n WHERE \"documentId\" = $1 AND \"jobType\" = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "content", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "8038c7f88cea547f6ed9e7d8d8e3b547ad7f8880f4e695bc037ccc7ca8493f82" -} diff --git a/rust/cloud-storage/.sqlx/query-805150c1a22fe4cee95588606be11c6419a2e25f66201dfefc8a87a586150d26.json b/rust/cloud-storage/.sqlx/query-805150c1a22fe4cee95588606be11c6419a2e25f66201dfefc8a87a586150d26.json deleted file mode 100644 index 1211597670..0000000000 --- a/rust/cloud-storage/.sqlx/query-805150c1a22fe4cee95588606be11c6419a2e25f66201dfefc8a87a586150d26.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT values->'value'->0->>'entity_id' as \"parent_id\"\n FROM entity_properties\n WHERE entity_id = $1\n AND entity_type = 'TASK'\n AND property_definition_id = $2\n AND values IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "parent_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "805150c1a22fe4cee95588606be11c6419a2e25f66201dfefc8a87a586150d26" -} diff --git a/rust/cloud-storage/.sqlx/query-80d20d5b664dbbb320a52bf47f134534f93906716e415c54b6e3b30834973bc7.json b/rust/cloud-storage/.sqlx/query-80d20d5b664dbbb320a52bf47f134534f93906716e415c54b6e3b30834973bc7.json deleted file mode 100644 index 8d3011486c..0000000000 --- a/rust/cloud-storage/.sqlx/query-80d20d5b664dbbb320a52bf47f134534f93906716e415c54b6e3b30834973bc7.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT owner, \"deletedAt\" as deleted_at FROM \"Document\" WHERE id=$1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "deleted_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "80d20d5b664dbbb320a52bf47f134534f93906716e415c54b6e3b30834973bc7" -} diff --git a/rust/cloud-storage/.sqlx/query-8147aab2de8747d607d38b11d39c62991540fc188b1c70f3c40a8a12f4908071.json b/rust/cloud-storage/.sqlx/query-8147aab2de8747d607d38b11d39c62991540fc188b1c70f3c40a8a12f4908071.json deleted file mode 100644 index e294b94dc9..0000000000 --- a/rust/cloud-storage/.sqlx/query-8147aab2de8747d607d38b11d39c62991540fc188b1c70f3c40a8a12f4908071.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT name FROM \"Project\" WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "8147aab2de8747d607d38b11d39c62991540fc188b1c70f3c40a8a12f4908071" -} diff --git a/rust/cloud-storage/.sqlx/query-82329af5032380193f6774277bf662f7a68651a2375e36b9923a6bf7fec71426.json b/rust/cloud-storage/.sqlx/query-82329af5032380193f6774277bf662f7a68651a2375e36b9923a6bf7fec71426.json deleted file mode 100644 index ff952f5055..0000000000 --- a/rust/cloud-storage/.sqlx/query-82329af5032380193f6774277bf662f7a68651a2375e36b9923a6bf7fec71426.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.\"organizationId\" as organization_id\n FROM\n \"User\" u\n WHERE\n u.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "organization_id", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "82329af5032380193f6774277bf662f7a68651a2375e36b9923a6bf7fec71426" -} diff --git a/rust/cloud-storage/.sqlx/query-8238816f3d6e5b374b83023a799251d28c15592d8b50959c331bbc2ba45ceaea.json b/rust/cloud-storage/.sqlx/query-8238816f3d6e5b374b83023a799251d28c15592d8b50959c331bbc2ba45ceaea.json deleted file mode 100644 index 80302fe8d7..0000000000 --- a/rust/cloud-storage/.sqlx/query-8238816f3d6e5b374b83023a799251d28c15592d8b50959c331bbc2ba45ceaea.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as document_id\n FROM\n \"Document\" d\n WHERE\n d.owner = $1 AND d.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "8238816f3d6e5b374b83023a799251d28c15592d8b50959c331bbc2ba45ceaea" -} diff --git a/rust/cloud-storage/.sqlx/query-827b998f442f5f6cb6ff85dc35f01c5782128a4cb9a020e22ab83a24a6c2b4f5.json b/rust/cloud-storage/.sqlx/query-827b998f442f5f6cb6ff85dc35f01c5782128a4cb9a020e22ab83a24a6c2b4f5.json deleted file mode 100644 index d172804854..0000000000 --- a/rust/cloud-storage/.sqlx/query-827b998f442f5f6cb6ff85dc35f01c5782128a4cb9a020e22ab83a24a6c2b4f5.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n id,\n organization_id,\n user_id,\n display_name,\n data_type as \"data_type: DataType\",\n is_multi_select,\n specific_entity_type as \"specific_entity_type: Option\",\n created_at,\n updated_at,\n is_system\n FROM property_definitions\n WHERE \n ($3 AND is_system)\n OR (\n ($1::int IS NOT NULL AND organization_id = $1) \n OR ($2::text IS NOT NULL AND user_id = $2)\n )\n ORDER BY LOWER(display_name) ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "organization_id", - "type_info": "Int4" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "display_name", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "data_type: DataType", - "type_info": { - "Custom": { - "name": "property_data_type", - "kind": { - "Enum": [ - "BOOLEAN", - "DATE", - "NUMBER", - "STRING", - "SELECT_NUMBER", - "SELECT_STRING", - "ENTITY", - "LINK" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_multi_select", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "specific_entity_type: Option", - "type_info": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "is_system", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Int4", - "Text", - "Bool" - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - false, - true, - false, - false, - false - ] - }, - "hash": "827b998f442f5f6cb6ff85dc35f01c5782128a4cb9a020e22ab83a24a6c2b4f5" -} diff --git a/rust/cloud-storage/.sqlx/query-827d839ae763a24c7faac855046d760a9d51f927e073bd9b2f07c690882fac03.json b/rust/cloud-storage/.sqlx/query-827d839ae763a24c7faac855046d760a9d51f927e073bd9b2f07c690882fac03.json deleted file mode 100644 index dea09841c7..0000000000 --- a/rust/cloud-storage/.sqlx/query-827d839ae763a24c7faac855046d760a9d51f927e073bd9b2f07c690882fac03.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, name, avatar_url\n FROM bots\n WHERE id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "avatar_url", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - true - ] - }, - "hash": "827d839ae763a24c7faac855046d760a9d51f927e073bd9b2f07c690882fac03" -} diff --git a/rust/cloud-storage/.sqlx/query-8284a5f2fb0c00c676f11b91457b8338692087d259f3c0dc0975b6b2053a7b45.json b/rust/cloud-storage/.sqlx/query-8284a5f2fb0c00c676f11b91457b8338692087d259f3c0dc0975b6b2053a7b45.json deleted file mode 100644 index 42aa0d66c3..0000000000 --- a/rust/cloud-storage/.sqlx/query-8284a5f2fb0c00c676f11b91457b8338692087d259f3c0dc0975b6b2053a7b45.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH updated AS (\n UPDATE user_notification\n SET seen_at = NOW()\n WHERE user_id = $1 AND notification_id = ANY($2) AND deleted_at IS NULL\n RETURNING notification_id, done, seen_at::timestamptz as viewed_at\n )\n SELECT\n updated.notification_id,\n updated.done,\n updated.viewed_at,\n NOW()::timestamptz as \"updated_at!\"\n FROM updated\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "notification_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "done", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "viewed_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "updated_at!", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "UuidArray" - ] - }, - "nullable": [ - false, - false, - null, - null - ] - }, - "hash": "8284a5f2fb0c00c676f11b91457b8338692087d259f3c0dc0975b6b2053a7b45" -} diff --git a/rust/cloud-storage/.sqlx/query-8334abc3fffa33d4b93704f039d5cd78bb02fa8505c3ba8111d1c9e17ffd93d8.json b/rust/cloud-storage/.sqlx/query-8334abc3fffa33d4b93704f039d5cd78bb02fa8505c3ba8111d1c9e17ffd93d8.json deleted file mode 100644 index 5446721266..0000000000 --- a/rust/cloud-storage/.sqlx/query-8334abc3fffa33d4b93704f039d5cd78bb02fa8505c3ba8111d1c9e17ffd93d8.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n c.id as comment_id, \n c.\"threadId\" as thread_id, \n c.owner, \n c.sender, \n c.text, \n c.metadata, \n c.\"createdAt\"::timestamptz as created_at, \n c.\"updatedAt\"::timestamptz as updated_at, \n c.\"deletedAt\"::timestamptz as deleted_at, \n c.order\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n WHERE c.\"threadId\" = $1\n AND c.\"deletedAt\" IS NULL\n AND t.\"deletedAt\" IS NULL\n ORDER BY c.\"createdAt\" ASC \n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "comment_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "sender", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "text", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "order", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - true, - null, - null, - null, - true - ] - }, - "hash": "8334abc3fffa33d4b93704f039d5cd78bb02fa8505c3ba8111d1c9e17ffd93d8" -} diff --git a/rust/cloud-storage/.sqlx/query-833f7916c7445825f248eac09769afd4b4971b517b12e578ec2f534038609572.json b/rust/cloud-storage/.sqlx/query-833f7916c7445825f248eac09769afd4b4971b517b12e578ec2f534038609572.json deleted file mode 100644 index 8b6519505d..0000000000 --- a/rust/cloud-storage/.sqlx/query-833f7916c7445825f248eac09769afd4b4971b517b12e578ec2f534038609572.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $2 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $2\n UNION ALL\n SELECT $2\n )\n SELECT\n chat_id,\n access_level\n FROM (\n -- Source 1: entity_access for chats\n SELECT\n ea.entity_id::text as chat_id,\n ea.access_level::text as access_level\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n AND ea.entity_id = ANY(SELECT id::uuid FROM \"Chat\" WHERE id = ANY($1) AND \"deletedAt\" IS NULL)\n AND ea.entity_type = 'chat'\n UNION ALL\n -- Source 2: Direct chat public permissions\n SELECT\n c.id as chat_id,\n sp.\"publicAccessLevel\" as access_level\n FROM \"Chat\" c\n JOIN \"ChatPermission\" cp ON cp.\"chatId\" = c.id\n JOIN \"SharePermission\" sp ON sp.id = cp.\"sharePermissionId\"\n AND sp.\"isPublic\" = true\n AND sp.\"publicAccessLevel\" IS NOT NULL\n WHERE c.id = ANY($1) AND c.\"deletedAt\" IS NULL\n ) as all_levels\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "chat_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "access_level", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray", - "Text" - ] - }, - "nullable": [ - null, - null - ] - }, - "hash": "833f7916c7445825f248eac09769afd4b4971b517b12e578ec2f534038609572" -} diff --git a/rust/cloud-storage/.sqlx/query-8359035e915d0949500ede9f520fb3ea45d1766256ee45b0c5967618301b2ea6.json b/rust/cloud-storage/.sqlx/query-8359035e915d0949500ede9f520fb3ea45d1766256ee45b0c5967618301b2ea6.json deleted file mode 100644 index fe47607402..0000000000 --- a/rust/cloud-storage/.sqlx/query-8359035e915d0949500ede9f520fb3ea45d1766256ee45b0c5967618301b2ea6.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n link_id,\n fusionauth_user_id,\n threads_requested_limit,\n total_threads,\n threads_retrieved_count,\n status as \"status: db::backfill::BackfillJobStatus\",\n created_at,\n updated_at\n FROM email_backfill_jobs\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "threads_requested_limit", - "type_info": "Int4" - }, - { - "ordinal": 4, - "name": "total_threads", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "threads_retrieved_count", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "status: db::backfill::BackfillJobStatus", - "type_info": { - "Custom": { - "name": "email_backfill_job_status", - "kind": { - "Enum": [ - "Init", - "InProgress", - "Complete", - "Cancelled", - "Failed" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - false, - true, - false, - false, - false, - false, - false - ] - }, - "hash": "8359035e915d0949500ede9f520fb3ea45d1766256ee45b0c5967618301b2ea6" -} diff --git a/rust/cloud-storage/.sqlx/query-836ce70023dde942fb6c49c76901919d486794aef06d9296b91c7f13ad846d1c.json b/rust/cloud-storage/.sqlx/query-836ce70023dde942fb6c49c76901919d486794aef06d9296b91c7f13ad846d1c.json deleted file mode 100644 index 4cb45741c1..0000000000 --- a/rust/cloud-storage/.sqlx/query-836ce70023dde942fb6c49c76901919d486794aef06d9296b91c7f13ad846d1c.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n t.id,\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n (\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m_imp.thread_id = t.id\n AND l.name = 'IMPORTANT'\n AND l.link_id = t.link_id\n )\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Find the latest starred timestamp for each thread, calculate the\n -- effective sort key, then sort and limit the results.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.inbox_visible,\n t.is_read,\n t.project_id,\n lspt.latest_starred_ts AS created_at,\n lspt.latest_starred_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, lspt.latest_starred_ts)\n ELSE lspt.latest_starred_ts\n END AS effective_ts\n FROM (\n -- This sub-subquery efficiently finds the latest starred timestamp for every thread.\n SELECT m.thread_id, MAX(m.internal_date_ts) as latest_starred_ts\n FROM email_messages m\n WHERE m.link_id = ANY($1) AND m.is_starred = TRUE\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id AND l.name = 'TRASH' AND l.link_id = m.link_id\n )\n GROUP BY m.thread_id\n ) lspt\n JOIN email_threads t ON lspt.thread_id = t.id\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n (($3::timestamptz IS NULL) OR (\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, lspt.latest_starred_ts)\n ELSE lspt.latest_starred_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find the full details of its latest starred message.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name,\n m.is_draft\n FROM email_messages m\n WHERE m.thread_id = t.id\n AND m.is_starred = TRUE\n AND m.is_draft = FALSE\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id AND l.name = 'TRASH' AND l.link_id = t.link_id\n )\n ORDER BY m.internal_date_ts DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n ORDER BY t.effective_ts DESC, t.updated_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "inbox_visible", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "sort_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "viewed_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "name?", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "snippet?", - "type_info": "Text" - }, - { - "ordinal": 11, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 12, - "name": "is_important!", - "type_info": "Bool" - }, - { - "ordinal": 13, - "name": "sender_email?", - "type_info": "Varchar" - }, - { - "ordinal": 14, - "name": "sender_name?", - "type_info": "Varchar" - }, - { - "ordinal": 15, - "name": "sender_photo_url?", - "type_info": "Text" - }, - { - "ordinal": 16, - "name": "owner_id!", - "type_info": "Text" - }, - { - "ordinal": 17, - "name": "link_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "Int8", - "Timestamptz", - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - true, - false, - false, - null, - null, - null, - true, - false, - true, - true, - false, - null, - false, - null, - true, - false, - false - ] - }, - "hash": "836ce70023dde942fb6c49c76901919d486794aef06d9296b91c7f13ad846d1c" -} diff --git a/rust/cloud-storage/.sqlx/query-83c56e766513141232e2552b51f710814de9a258724b40796328784a5239ea5f.json b/rust/cloud-storage/.sqlx/query-83c56e766513141232e2552b51f710814de9a258724b40796328784a5239ea5f.json deleted file mode 100644 index c2298b3f0e..0000000000 --- a/rust/cloud-storage/.sqlx/query-83c56e766513141232e2552b51f710814de9a258724b40796328784a5239ea5f.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_activity (\n id,\n user_id,\n channel_id,\n viewed_at\n )\n VALUES (\n $1, $2, $3, NOW()\n )\n ON CONFLICT (user_id, channel_id) DO UPDATE\n SET\n viewed_at = NOW(),\n updated_at = NOW()\n RETURNING\n id as \"id!: Uuid\",\n user_id as \"user_id!: String\",\n channel_id as \"channel_id!: Uuid\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\",\n viewed_at as \"viewed_at?: DateTime\",\n interacted_at as \"interacted_at?: DateTime\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id!: String", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "channel_id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "created_at!: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "updated_at!: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 5, - "name": "viewed_at?: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 6, - "name": "interacted_at?: DateTime", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true, - true - ] - }, - "hash": "83c56e766513141232e2552b51f710814de9a258724b40796328784a5239ea5f" -} diff --git a/rust/cloud-storage/.sqlx/query-83dea9ffef9207e919ec708a6570c6f4090dbdbbb9f5f609edbad91becbc1bb4.json b/rust/cloud-storage/.sqlx/query-83dea9ffef9207e919ec708a6570c6f4090dbdbbb9f5f609edbad91becbc1bb4.json deleted file mode 100644 index 1290218ff1..0000000000 --- a/rust/cloud-storage/.sqlx/query-83dea9ffef9207e919ec708a6570c6f4090dbdbbb9f5f609edbad91becbc1bb4.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT project_id\n FROM email_threads\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "project_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - true - ] - }, - "hash": "83dea9ffef9207e919ec708a6570c6f4090dbdbbb9f5f609edbad91becbc1bb4" -} diff --git a/rust/cloud-storage/.sqlx/query-84bcc8595057c11bf854c4ecefc2abb2b0d392b7f098fdedac066a67d4dfd7d9.json b/rust/cloud-storage/.sqlx/query-84bcc8595057c11bf854c4ecefc2abb2b0d392b7f098fdedac066a67d4dfd7d9.json deleted file mode 100644 index cebd9aa412..0000000000 --- a/rust/cloud-storage/.sqlx/query-84bcc8595057c11bf854c4ecefc2abb2b0d392b7f098fdedac066a67d4dfd7d9.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.\"id\" as \"chat_id\"\n FROM\n \"Chat\" c\n WHERE\n c.\"userId\" = $1 AND c.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "chat_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "84bcc8595057c11bf854c4ecefc2abb2b0d392b7f098fdedac066a67d4dfd7d9" -} diff --git a/rust/cloud-storage/.sqlx/query-84e1db53f1407e16ed5e2fccf64ecb7a7493b1a1df0b372b460170154a49a509.json b/rust/cloud-storage/.sqlx/query-84e1db53f1407e16ed5e2fccf64ecb7a7493b1a1df0b372b460170154a49a509.json deleted file mode 100644 index aeffc58687..0000000000 --- a/rust/cloud-storage/.sqlx/query-84e1db53f1407e16ed5e2fccf64ecb7a7493b1a1df0b372b460170154a49a509.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Thread\" AS t \n (\"owner\", \"documentId\", \"createdAt\", \"updatedAt\", \"metadata\")\n VALUES ($1, $2, NOW(), NOW(), $3)\n RETURNING\n t.id as thread_id, \n t.resolved, \n t.\"documentId\" as document_id, \n t.\"createdAt\"::timestamptz as created_at, \n t.\"updatedAt\"::timestamptz as updated_at, \n t.\"deletedAt\"::timestamptz as deleted_at, \n t.metadata, \n t.owner\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "resolved", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 7, - "name": "owner", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Jsonb" - ] - }, - "nullable": [ - false, - false, - false, - null, - null, - null, - true, - false - ] - }, - "hash": "84e1db53f1407e16ed5e2fccf64ecb7a7493b1a1df0b372b460170154a49a509" -} diff --git a/rust/cloud-storage/.sqlx/query-850ac15de719742dcee861fed5d0199ded6efb032bc7e2daaca06013bb130e9b.json b/rust/cloud-storage/.sqlx/query-850ac15de719742dcee861fed5d0199ded6efb032bc7e2daaca06013bb130e9b.json deleted file mode 100644 index 1b2535f9bf..0000000000 --- a/rust/cloud-storage/.sqlx/query-850ac15de719742dcee861fed5d0199ded6efb032bc7e2daaca06013bb130e9b.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n bp.id as id,\n bp.sha as sha,\n bp.path as path\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "path", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "850ac15de719742dcee861fed5d0199ded6efb032bc7e2daaca06013bb130e9b" -} diff --git a/rust/cloud-storage/.sqlx/query-850d9317ed6b8e21fbb7602beaf6b8c05f43739f31587aa63e57dbfd0093ab1d.json b/rust/cloud-storage/.sqlx/query-850d9317ed6b8e21fbb7602beaf6b8c05f43739f31587aa63e57dbfd0093ab1d.json deleted file mode 100644 index 03e8dd41b0..0000000000 --- a/rust/cloud-storage/.sqlx/query-850d9317ed6b8e21fbb7602beaf6b8c05f43739f31587aa63e57dbfd0093ab1d.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n l.id AS \"link_id!\"\n FROM\n public.email_links l\n LEFT JOIN\n public.email_user_history h ON l.id = h.link_id\n WHERE\n l.macro_id NOT LIKE '%@macro.com'\n AND l.created_at < NOW() - (make_interval(days => $1))\n GROUP BY\n l.id\n HAVING\n COUNT(h.link_id) = 0\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "link_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Int4" - ] - }, - "nullable": [ - false - ] - }, - "hash": "850d9317ed6b8e21fbb7602beaf6b8c05f43739f31587aa63e57dbfd0093ab1d" -} diff --git a/rust/cloud-storage/.sqlx/query-85423841a8e715417d2e6c4c210b096a1aedea8c4bb63029e0024bce1e5029f9.json b/rust/cloud-storage/.sqlx/query-85423841a8e715417d2e6c4c210b096a1aedea8c4bb63029e0024bce1e5029f9.json deleted file mode 100644 index ee245078e2..0000000000 --- a/rust/cloud-storage/.sqlx/query-85423841a8e715417d2e6c4c210b096a1aedea8c4bb63029e0024bce1e5029f9.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n p.id as entity_id,\n p.name,\n regexp_replace(\n p.name,\n $6,\n '\\1',\n 'gi'\n ) as name_highlighted,\n p.\"updatedAt\" as updated_at\n FROM \"Project\" p\n WHERE p.id = ANY($1)\n AND p.\"deletedAt\" IS NULL\n AND p.name ILIKE $2\n AND (\n $4::timestamptz IS NULL\n OR (p.\"updatedAt\", p.id) < ($4, $5)\n )\n ORDER BY p.\"updatedAt\" DESC, p.id DESC\n LIMIT $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name_highlighted", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "updated_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "TextArray", - "Text", - "Int8", - "Timestamptz", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - null, - false - ] - }, - "hash": "85423841a8e715417d2e6c4c210b096a1aedea8c4bb63029e0024bce1e5029f9" -} diff --git a/rust/cloud-storage/.sqlx/query-8659923b989f123cadb88ede932614c820d21950e32ab2f6092c78dfb5e77aae.json b/rust/cloud-storage/.sqlx/query-8659923b989f123cadb88ede932614c820d21950e32ab2f6092c78dfb5e77aae.json deleted file mode 100644 index c3928937a6..0000000000 --- a/rust/cloud-storage/.sqlx/query-8659923b989f123cadb88ede932614c820d21950e32ab2f6092c78dfb5e77aae.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"RolesOnUsers\"\n WHERE \"userId\" = $1 AND \"roleId\" IN (SELECT unnest($2::text[]))\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "8659923b989f123cadb88ede932614c820d21950e32ab2f6092c78dfb5e77aae" -} diff --git a/rust/cloud-storage/.sqlx/query-869087208a0e921c85a4de60ef9037f0121d673203126052c384ccca95d472db.json b/rust/cloud-storage/.sqlx/query-869087208a0e921c85a4de60ef9037f0121d673203126052c384ccca95d472db.json deleted file mode 100644 index e67077cf7b..0000000000 --- a/rust/cloud-storage/.sqlx/query-869087208a0e921c85a4de60ef9037f0121d673203126052c384ccca95d472db.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT cp.\"sharePermissionId\" as \"share_permission_id!\"\n FROM \"ChatPermission\" cp\n WHERE cp.\"chatId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "869087208a0e921c85a4de60ef9037f0121d673203126052c384ccca95d472db" -} diff --git a/rust/cloud-storage/.sqlx/query-869cd93b000ff26b2c872e5822ab4adb80d18fdc595352afa30159ac3eb864bc.json b/rust/cloud-storage/.sqlx/query-869cd93b000ff26b2c872e5822ab4adb80d18fdc595352afa30159ac3eb864bc.json deleted file mode 100644 index 7d754d3f07..0000000000 --- a/rust/cloud-storage/.sqlx/query-869cd93b000ff26b2c872e5822ab4adb80d18fdc595352afa30159ac3eb864bc.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Chat\" SET \"model\" = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "869cd93b000ff26b2c872e5822ab4adb80d18fdc595352afa30159ac3eb864bc" -} diff --git a/rust/cloud-storage/.sqlx/query-86c882f1999ad9c5b87e684ae17a1c1307846848b1b1bd40ee02438ada43052f.json b/rust/cloud-storage/.sqlx/query-86c882f1999ad9c5b87e684ae17a1c1307846848b1b1bd40ee02438ada43052f.json deleted file mode 100644 index 6d3290429d..0000000000 --- a/rust/cloud-storage/.sqlx/query-86c882f1999ad9c5b87e684ae17a1c1307846848b1b1bd40ee02438ada43052f.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO macro_user_info (macro_user_id, profile_picture, profile_picture_hash)\n VALUES ($1, $2, $3)\n ON CONFLICT (macro_user_id)\n DO UPDATE SET \n profile_picture = EXCLUDED.profile_picture,\n profile_picture_hash = EXCLUDED.profile_picture_hash\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Varchar" - ] - }, - "nullable": [] - }, - "hash": "86c882f1999ad9c5b87e684ae17a1c1307846848b1b1bd40ee02438ada43052f" -} diff --git a/rust/cloud-storage/.sqlx/query-86eee52e30e4168f4a7f319d1dcaa59144a5b3269120df892f161c74b5fe7436.json b/rust/cloud-storage/.sqlx/query-86eee52e30e4168f4a7f319d1dcaa59144a5b3269120df892f161c74b5fe7436.json deleted file mode 100644 index eab49b91f7..0000000000 --- a/rust/cloud-storage/.sqlx/query-86eee52e30e4168f4a7f319d1dcaa59144a5b3269120df892f161c74b5fe7436.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE user_notification\n SET sent = true\n WHERE notification_id = $1 AND user_id = ANY($2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "86eee52e30e4168f4a7f319d1dcaa59144a5b3269120df892f161c74b5fe7436" -} diff --git a/rust/cloud-storage/.sqlx/query-8706eea9749b2b5fb7b7c9c155a90b3e0b6f09bc06968eb94e36d0c55c6b0822.json b/rust/cloud-storage/.sqlx/query-8706eea9749b2b5fb7b7c9c155a90b3e0b6f09bc06968eb94e36d0c55c6b0822.json deleted file mode 100644 index 1bc6e42abc..0000000000 --- a/rust/cloud-storage/.sqlx/query-8706eea9749b2b5fb7b7c9c155a90b3e0b6f09bc06968eb94e36d0c55c6b0822.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM notification_email_unsubscribe WHERE email = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "8706eea9749b2b5fb7b7c9c155a90b3e0b6f09bc06968eb94e36d0c55c6b0822" -} diff --git a/rust/cloud-storage/.sqlx/query-8717ae7a285b36ee3b82b3688a274b9734ecd81e4e1e1d0f7a1fc3a7d2c2c053.json b/rust/cloud-storage/.sqlx/query-8717ae7a285b36ee3b82b3688a274b9734ecd81e4e1e1d0f7a1fc3a7d2c2c053.json deleted file mode 100644 index 9685f5f4fb..0000000000 --- a/rust/cloud-storage/.sqlx/query-8717ae7a285b36ee3b82b3688a274b9734ecd81e4e1e1d0f7a1fc3a7d2c2c053.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n ru.\"roleId\" as role_id\n FROM \"RolesOnUsers\" ru\n WHERE ru.\"userId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "role_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "8717ae7a285b36ee3b82b3688a274b9734ecd81e4e1e1d0f7a1fc3a7d2c2c053" -} diff --git a/rust/cloud-storage/.sqlx/query-8733fe389d5f98dd34fe87d42e680e664655853aab4646cc5e889f48c5511aa1.json b/rust/cloud-storage/.sqlx/query-8733fe389d5f98dd34fe87d42e680e664655853aab4646cc5e889f48c5511aa1.json deleted file mode 100644 index 687224c45b..0000000000 --- a/rust/cloud-storage/.sqlx/query-8733fe389d5f98dd34fe87d42e680e664655853aab4646cc5e889f48c5511aa1.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"macro_user_email_verification\" (\"macro_user_id\", \"email\", \"is_verified\")\n VALUES ($1, $2, $3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "8733fe389d5f98dd34fe87d42e680e664655853aab4646cc5e889f48c5511aa1" -} diff --git a/rust/cloud-storage/.sqlx/query-8748bb91363013514f0b55046bc8a1917acb27181343384b86c0a9cc750013bc.json b/rust/cloud-storage/.sqlx/query-8748bb91363013514f0b55046bc8a1917acb27181343384b86c0a9cc750013bc.json deleted file mode 100644 index a865c2bad6..0000000000 --- a/rust/cloud-storage/.sqlx/query-8748bb91363013514f0b55046bc8a1917acb27181343384b86c0a9cc750013bc.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_backfill_jobs\n SET threads_retrieved_count = threads_retrieved_count + $1, updated_at = now()\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int4", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "8748bb91363013514f0b55046bc8a1917acb27181343384b86c0a9cc750013bc" -} diff --git a/rust/cloud-storage/.sqlx/query-874a0c4d1f171a6b97f75dd0e0c2df35b86bb10ef4bb518fb4594fe81d282606.json b/rust/cloud-storage/.sqlx/query-874a0c4d1f171a6b97f75dd0e0c2df35b86bb10ef4bb518fb4594fe81d282606.json deleted file mode 100644 index a40a259e15..0000000000 --- a/rust/cloud-storage/.sqlx/query-874a0c4d1f171a6b97f75dd0e0c2df35b86bb10ef4bb518fb4594fe81d282606.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n db.id\n FROM \"DocumentBom\" db\n JOIN \"Document\" d ON db.\"documentId\" = d.id\n WHERE db.\"documentId\" = $1\n ORDER BY db.\"createdAt\" DESC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "874a0c4d1f171a6b97f75dd0e0c2df35b86bb10ef4bb518fb4594fe81d282606" -} diff --git a/rust/cloud-storage/.sqlx/query-87e0c17146266f40e2f76a27c0e60bd057a7efe02fe027f9514cc8fbdba2159b.json b/rust/cloud-storage/.sqlx/query-87e0c17146266f40e2f76a27c0e60bd057a7efe02fe027f9514cc8fbdba2159b.json deleted file mode 100644 index e8401c2e59..0000000000 --- a/rust/cloud-storage/.sqlx/query-87e0c17146266f40e2f76a27c0e60bd057a7efe02fe027f9514cc8fbdba2159b.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id as message_id,\n c.email_address,\n COALESCE(m.from_name, c.name) as \"name\",\n c.sfs_photo_url\n FROM email_messages m\n INNER JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.id = ANY($1)\n AND m.from_contact_id IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "sfs_photo_url", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - null, - true - ] - }, - "hash": "87e0c17146266f40e2f76a27c0e60bd057a7efe02fe027f9514cc8fbdba2159b" -} diff --git a/rust/cloud-storage/.sqlx/query-87eec4033f46191de7f443e2f1ab2bf5e342b790423e98d6c62ba29a1a434d85.json b/rust/cloud-storage/.sqlx/query-87eec4033f46191de7f443e2f1ab2bf5e342b790423e98d6c62ba29a1a434d85.json deleted file mode 100644 index e1050f8af8..0000000000 --- a/rust/cloud-storage/.sqlx/query-87eec4033f46191de7f443e2f1ab2bf5e342b790423e98d6c62ba29a1a434d85.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id FROM \"Chat\" WHERE \"userId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "87eec4033f46191de7f443e2f1ab2bf5e342b790423e98d6c62ba29a1a434d85" -} diff --git a/rust/cloud-storage/.sqlx/query-888ef7d64ac87598ecb72012cfd89a38a749efb40b4e033f4525fcf03755c2de.json b/rust/cloud-storage/.sqlx/query-888ef7d64ac87598ecb72012cfd89a38a749efb40b4e033f4525fcf03755c2de.json deleted file mode 100644 index 0968929d90..0000000000 --- a/rust/cloud-storage/.sqlx/query-888ef7d64ac87598ecb72012cfd89a38a749efb40b4e033f4525fcf03755c2de.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM email_attachments WHERE message_id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "888ef7d64ac87598ecb72012cfd89a38a749efb40b4e033f4525fcf03755c2de" -} diff --git a/rust/cloud-storage/.sqlx/query-88cb2c1126909dabe0cc1846ca2733ab98724d4b89d409fa770209d4d7627654.json b/rust/cloud-storage/.sqlx/query-88cb2c1126909dabe0cc1846ca2733ab98724d4b89d409fa770209d4d7627654.json deleted file mode 100644 index 566b687721..0000000000 --- a/rust/cloud-storage/.sqlx/query-88cb2c1126909dabe0cc1846ca2733ab98724d4b89d409fa770209d4d7627654.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_message_recipients (message_id, contact_id, name, recipient_type)\n SELECT * FROM unnest($1::uuid[], $2::uuid[], $3::text[], $4::email_recipient_type[])\n ON CONFLICT (message_id, contact_id, recipient_type) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "UuidArray", - "TextArray", - { - "Custom": { - "name": "email_recipient_type[]", - "kind": { - "Array": { - "Custom": { - "name": "email_recipient_type", - "kind": { - "Enum": [ - "TO", - "CC", - "BCC" - ] - } - } - } - } - } - } - ] - }, - "nullable": [] - }, - "hash": "88cb2c1126909dabe0cc1846ca2733ab98724d4b89d409fa770209d4d7627654" -} diff --git a/rust/cloud-storage/.sqlx/query-88e09c541b42bddb46449241492a7dc2d2ca72f9fc3d55a412460a0d8231555e.json b/rust/cloud-storage/.sqlx/query-88e09c541b42bddb46449241492a7dc2d2ca72f9fc3d55a412460a0d8231555e.json deleted file mode 100644 index 59638b0311..0000000000 --- a/rust/cloud-storage/.sqlx/query-88e09c541b42bddb46449241492a7dc2d2ca72f9fc3d55a412460a0d8231555e.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT voice_id FROM macro_user_voice WHERE macro_user_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "voice_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "88e09c541b42bddb46449241492a7dc2d2ca72f9fc3d55a412460a0d8231555e" -} diff --git a/rust/cloud-storage/.sqlx/query-88eef0eafe13e4e4f3c0f9c0792cb7e8e2f73c4f87ca77a32c64d99ac28a4b12.json b/rust/cloud-storage/.sqlx/query-88eef0eafe13e4e4f3c0f9c0792cb7e8e2f73c4f87ca77a32c64d99ac28a4b12.json deleted file mode 100644 index 7c59ecbefe..0000000000 --- a/rust/cloud-storage/.sqlx/query-88eef0eafe13e4e4f3c0f9c0792cb7e8e2f73c4f87ca77a32c64d99ac28a4b12.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT u.id AS user_profile_id, mui.first_name, mui.last_name\n FROM macro_user_info mui\n JOIN \"User\" u ON mui.macro_user_id = u.macro_user_id\n WHERE u.id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_profile_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "first_name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "last_name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - true, - true - ] - }, - "hash": "88eef0eafe13e4e4f3c0f9c0792cb7e8e2f73c4f87ca77a32c64d99ac28a4b12" -} diff --git a/rust/cloud-storage/.sqlx/query-89004da6bcdd66bccd56ed64402d82dc4fb489cccaf5ca647c5a9403fa760ce9.json b/rust/cloud-storage/.sqlx/query-89004da6bcdd66bccd56ed64402d82dc4fb489cccaf5ca647c5a9403fa760ce9.json deleted file mode 100644 index a989abc850..0000000000 --- a/rust/cloud-storage/.sqlx/query-89004da6bcdd66bccd56ed64402d82dc4fb489cccaf5ca647c5a9403fa760ce9.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT pg_try_advisory_xact_lock($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "pg_try_advisory_xact_lock", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - null - ] - }, - "hash": "89004da6bcdd66bccd56ed64402d82dc4fb489cccaf5ca647c5a9403fa760ce9" -} diff --git a/rust/cloud-storage/.sqlx/query-893d51b6860bdb3deaf125dcb831a29eb711f46fa9f28cf211136eb4361b87bc.json b/rust/cloud-storage/.sqlx/query-893d51b6860bdb3deaf125dcb831a29eb711f46fa9f28cf211136eb4361b87bc.json deleted file mode 100644 index 52a73057e2..0000000000 --- a/rust/cloud-storage/.sqlx/query-893d51b6860bdb3deaf125dcb831a29eb711f46fa9f28cf211136eb4361b87bc.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO promoted_shared_mailboxes (macro_id)\n VALUES ($1)\n ON CONFLICT (macro_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "893d51b6860bdb3deaf125dcb831a29eb711f46fa9f28cf211136eb4361b87bc" -} diff --git a/rust/cloud-storage/.sqlx/query-8942100b50a073f4f95b37246d355dc8b17c5a105492901ad72da89438ec6601.json b/rust/cloud-storage/.sqlx/query-8942100b50a073f4f95b37246d355dc8b17c5a105492901ad72da89438ec6601.json deleted file mode 100644 index 8a954a7761..0000000000 --- a/rust/cloud-storage/.sqlx/query-8942100b50a073f4f95b37246d355dc8b17c5a105492901ad72da89438ec6601.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_links (id, macro_id, fusionauth_user_id, email_address, provider, is_sync_active)\n VALUES ($1, $2, $3, $4, $5, $6)\n ON CONFLICT (fusionauth_user_id, email_address, provider) \n DO UPDATE SET \n is_sync_active = EXCLUDED.is_sync_active,\n updated_at = NOW()\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Varchar", - { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - }, - "Bool" - ] - }, - "nullable": [ - false - ] - }, - "hash": "8942100b50a073f4f95b37246d355dc8b17c5a105492901ad72da89438ec6601" -} diff --git a/rust/cloud-storage/.sqlx/query-894b2bdfc3046722023572c4b37870258288ab2b3125c4f31dec62d916f0b64a.json b/rust/cloud-storage/.sqlx/query-894b2bdfc3046722023572c4b37870258288ab2b3125c4f31dec62d916f0b64a.json deleted file mode 100644 index d6e3ef0406..0000000000 --- a/rust/cloud-storage/.sqlx/query-894b2bdfc3046722023572c4b37870258288ab2b3125c4f31dec62d916f0b64a.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n rp.\"roleId\" AS role_id,\n rp.\"permissionId\" AS permission_id\n FROM\n \"User\" u\n INNER JOIN\n \"RolesOnUsers\" ru ON u.id = ru.\"userId\"\n INNER JOIN\n \"RolesOnPermissions\" rp ON ru.\"roleId\" = rp.\"roleId\"\n WHERE\n u.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "role_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "permission_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "894b2bdfc3046722023572c4b37870258288ab2b3125c4f31dec62d916f0b64a" -} diff --git a/rust/cloud-storage/.sqlx/query-896b6aa18d1cbdf28df4b24758813d0327649d0b807a60928142de0d6a2ce5e8.json b/rust/cloud-storage/.sqlx/query-896b6aa18d1cbdf28df4b24758813d0327649d0b807a60928142de0d6a2ce5e8.json deleted file mode 100644 index 2e3dd4d309..0000000000 --- a/rust/cloud-storage/.sqlx/query-896b6aa18d1cbdf28df4b24758813d0327649d0b807a60928142de0d6a2ce5e8.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m\n JOIN email_message_recipients r ON r.message_id = m.id\n JOIN email_contacts c ON c.id = r.contact_id\n WHERE m.link_id = $1\n AND m.is_sent = true\n AND LOWER(c.email_address) = $2\n UNION ALL\n SELECT 1\n FROM email_messages m\n JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.link_id = $1\n AND m.is_sent = false\n AND LOWER(c.email_address) = $2\n LIMIT 1\n ) AS \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "896b6aa18d1cbdf28df4b24758813d0327649d0b807a60928142de0d6a2ce5e8" -} diff --git a/rust/cloud-storage/.sqlx/query-89a884bd52b26e8aaed865bb4f8916be18a81bc149bfb4cc170586f707de7cc3.json b/rust/cloud-storage/.sqlx/query-89a884bd52b26e8aaed865bb4f8916be18a81bc149bfb4cc170586f707de7cc3.json deleted file mode 100644 index 8811cf4519..0000000000 --- a/rust/cloud-storage/.sqlx/query-89a884bd52b26e8aaed865bb4f8916be18a81bc149bfb4cc170586f707de7cc3.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE call_record_transcripts AS t\n SET custom_speaker = u.custom_speaker\n FROM UNNEST($1::uuid[], $2::text[]) AS u(transcript_id, custom_speaker)\n WHERE t.id = u.transcript_id\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "89a884bd52b26e8aaed865bb4f8916be18a81bc149bfb4cc170586f707de7cc3" -} diff --git a/rust/cloud-storage/.sqlx/query-89b618eb18b7ae1ab21e40391daea7da6a544800e931142ac88d413aaed73653.json b/rust/cloud-storage/.sqlx/query-89b618eb18b7ae1ab21e40391daea7da6a544800e931142ac88d413aaed73653.json deleted file mode 100644 index 0a50dad356..0000000000 --- a/rust/cloud-storage/.sqlx/query-89b618eb18b7ae1ab21e40391daea7da6a544800e931142ac88d413aaed73653.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Document\" d\n WHERE d.\"fileType\" = 'docx' AND d.\"deletedAt\" IS NULL AND d.uploaded = true\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - null - ] - }, - "hash": "89b618eb18b7ae1ab21e40391daea7da6a544800e931142ac88d413aaed73653" -} diff --git a/rust/cloud-storage/.sqlx/query-89fac636d8ad3699c72ad57a4a5f2bf9211061274491815b8af4c634e62cee06.json b/rust/cloud-storage/.sqlx/query-89fac636d8ad3699c72ad57a4a5f2bf9211061274491815b8af4c634e62cee06.json deleted file mode 100644 index 75964adfc9..0000000000 --- a/rust/cloud-storage/.sqlx/query-89fac636d8ad3699c72ad57a4a5f2bf9211061274491815b8af4c634e62cee06.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE task_duplicate_match\n SET status = 'dismissed', updated_at = NOW()\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "89fac636d8ad3699c72ad57a4a5f2bf9211061274491815b8af4c634e62cee06" -} diff --git a/rust/cloud-storage/.sqlx/query-8a09a252705dac4a5d37461d81354c02f0776d151ed57da06713a6a0d7185392.json b/rust/cloud-storage/.sqlx/query-8a09a252705dac4a5d37461d81354c02f0776d151ed57da06713a6a0d7185392.json deleted file mode 100644 index 184bdca121..0000000000 --- a/rust/cloud-storage/.sqlx/query-8a09a252705dac4a5d37461d81354c02f0776d151ed57da06713a6a0d7185392.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"SharePermission\" sp\n USING \"DocumentPermission\" dp \n WHERE dp.\"sharePermissionId\" = sp.id\n AND dp.\"documentId\" = ANY($1)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "8a09a252705dac4a5d37461d81354c02f0776d151ed57da06713a6a0d7185392" -} diff --git a/rust/cloud-storage/.sqlx/query-8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2.json b/rust/cloud-storage/.sqlx/query-8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2.json deleted file mode 100644 index fa7032f3fb..0000000000 --- a/rust/cloud-storage/.sqlx/query-8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, segment_id, speaker_id, diarized_speaker_id, content, started_at, ended_at, sequence_num\n FROM call_transcripts\n WHERE call_id = $1\n ORDER BY sequence_num ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "segment_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "speaker_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "diarized_speaker_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "started_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "ended_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "sequence_num", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - false, - true, - false - ] - }, - "hash": "8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2" -} diff --git a/rust/cloud-storage/.sqlx/query-8a1debc8a93f83a63f33dfd12a1eb8f707e99f0a207a9b34f27848ab362a7bff.json b/rust/cloud-storage/.sqlx/query-8a1debc8a93f83a63f33dfd12a1eb8f707e99f0a207a9b34f27848ab362a7bff.json deleted file mode 100644 index d389ea18d1..0000000000 --- a/rust/cloud-storage/.sqlx/query-8a1debc8a93f83a63f33dfd12a1eb8f707e99f0a207a9b34f27848ab362a7bff.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, macro_id, fusionauth_user_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at\n FROM email_links\n WHERE email_address = $1 AND provider = $2\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "provider: _", - "type_info": { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_sync_active", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "8a1debc8a93f83a63f33dfd12a1eb8f707e99f0a207a9b34f27848ab362a7bff" -} diff --git a/rust/cloud-storage/.sqlx/query-8a219d75e22ca3b14ed3bfc1fbf218e2e69f540f69d0ab223170a52ac92af43c.json b/rust/cloud-storage/.sqlx/query-8a219d75e22ca3b14ed3bfc1fbf218e2e69f540f69d0ab223170a52ac92af43c.json deleted file mode 100644 index 83e2f46e9a..0000000000 --- a/rust/cloud-storage/.sqlx/query-8a219d75e22ca3b14ed3bfc1fbf218e2e69f540f69d0ab223170a52ac92af43c.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO frecency_aggregates (\n entity_id,\n entity_type,\n user_id,\n event_count,\n frecency_score,\n first_event,\n recent_events\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n ON CONFLICT (user_id, entity_type, entity_id)\n DO UPDATE SET\n event_count = EXCLUDED.event_count,\n frecency_score = EXCLUDED.frecency_score,\n recent_events = EXCLUDED.recent_events\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Int4", - "Float8", - "Timestamptz", - "Jsonb" - ] - }, - "nullable": [] - }, - "hash": "8a219d75e22ca3b14ed3bfc1fbf218e2e69f540f69d0ab223170a52ac92af43c" -} diff --git a/rust/cloud-storage/.sqlx/query-8a4688fb6685c28f7fc9f48487b2fe1ce97205a1574fcedd7e87596c63d6dab0.json b/rust/cloud-storage/.sqlx/query-8a4688fb6685c28f7fc9f48487b2fe1ce97205a1574fcedd7e87596c63d6dab0.json deleted file mode 100644 index a41d940fca..0000000000 --- a/rust/cloud-storage/.sqlx/query-8a4688fb6685c28f7fc9f48487b2fe1ce97205a1574fcedd7e87596c63d6dab0.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT c.owner, t.id as thread_id, d.owner as document_owner, d.id as document_id, ta.\"anchorId\" as \"anchor_id?\", ta.\"anchorTableName\" as \"anchor_table_name?: AnchorTableName\"\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n JOIN \"Document\" d ON t.\"documentId\" = d.id\n LEFT JOIN \"ThreadAnchor\" ta ON ta.\"threadId\" = t.id\n WHERE c.id = $1 AND c.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 2, - "name": "document_owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "anchor_id?", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "anchor_table_name?: AnchorTableName", - "type_info": { - "Custom": { - "name": "anchor_table_name", - "kind": { - "Enum": [ - "PdfPlaceableCommentAnchor", - "PdfHighlightAnchor" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false - ] - }, - "hash": "8a4688fb6685c28f7fc9f48487b2fe1ce97205a1574fcedd7e87596c63d6dab0" -} diff --git a/rust/cloud-storage/.sqlx/query-8ace9a37af485ba737647968d2f36d64a890e17f75447b5b7bc743347d16a91b.json b/rust/cloud-storage/.sqlx/query-8ace9a37af485ba737647968d2f36d64a890e17f75447b5b7bc743347d16a91b.json deleted file mode 100644 index 40e75fe1ac..0000000000 --- a/rust/cloud-storage/.sqlx/query-8ace9a37af485ba737647968d2f36d64a890e17f75447b5b7bc743347d16a91b.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_threads\n SET\n provider_id = $1,\n updated_at = NOW()\n WHERE\n id = $2 AND\n link_id = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "8ace9a37af485ba737647968d2f36d64a890e17f75447b5b7bc743347d16a91b" -} diff --git a/rust/cloud-storage/.sqlx/query-8ad8fb713125453e2416a6a4992c01f32d29696d130e0e1f46599273575bcb02.json b/rust/cloud-storage/.sqlx/query-8ad8fb713125453e2416a6a4992c01f32d29696d130e0e1f46599273575bcb02.json deleted file mode 100644 index f697fc82ae..0000000000 --- a/rust/cloud-storage/.sqlx/query-8ad8fb713125453e2416a6a4992c01f32d29696d130e0e1f46599273575bcb02.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n l.id,\n l.link_id,\n l.provider_label_id,\n l.name,\n l.created_at,\n l.message_list_visibility as \"message_list_visibility: _\",\n l.label_list_visibility as \"label_list_visibility: _\",\n l.type as \"type_: _\"\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = $1\n ORDER BY l.name\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_label_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "message_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_message_list_visibility_enum", - "kind": { - "Enum": [ - "Show", - "Hide" - ] - } - } - } - }, - { - "ordinal": 6, - "name": "label_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_label_list_visibility_enum", - "kind": { - "Enum": [ - "LabelShow", - "LabelShowIfUnread", - "LabelHide" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "type_: _", - "type_info": { - "Custom": { - "name": "email_label_type_enum", - "kind": { - "Enum": [ - "System", - "User" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "8ad8fb713125453e2416a6a4992c01f32d29696d130e0e1f46599273575bcb02" -} diff --git a/rust/cloud-storage/.sqlx/query-8ada8f1fc3affb75cda0d8c749204d8c58ec09f88682ed2e5ec0ea26605cba2b.json b/rust/cloud-storage/.sqlx/query-8ada8f1fc3affb75cda0d8c749204d8c58ec09f88682ed2e5ec0ea26605cba2b.json deleted file mode 100644 index d21e5679b6..0000000000 --- a/rust/cloud-storage/.sqlx/query-8ada8f1fc3affb75cda0d8c749204d8c58ec09f88682ed2e5ec0ea26605cba2b.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT t.id, t.provider_id, t.link_id, t.inbox_visible, t.is_read,\n t.latest_inbound_message_ts, t.latest_outbound_message_ts,\n t.latest_non_spam_message_ts, t.created_at, t.updated_at\n FROM email_threads t\n WHERE t.id = $1 AND t.link_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "inbox_visible", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 5, - "name": "latest_inbound_message_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "latest_outbound_message_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "latest_non_spam_message_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - true, - false, - false, - false, - true, - true, - true, - false, - false - ] - }, - "hash": "8ada8f1fc3affb75cda0d8c749204d8c58ec09f88682ed2e5ec0ea26605cba2b" -} diff --git a/rust/cloud-storage/.sqlx/query-8af0c4dcb1957927aef3afb489b879fc666056bef965cfce73149d446b4c71bd.json b/rust/cloud-storage/.sqlx/query-8af0c4dcb1957927aef3afb489b879fc666056bef965cfce73149d446b4c71bd.json deleted file mode 100644 index 1b652bcf7d..0000000000 --- a/rust/cloud-storage/.sqlx/query-8af0c4dcb1957927aef3afb489b879fc666056bef965cfce73149d446b4c71bd.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChatAttachment\" (\"entity_type\", \"entity_id\", \"chatId\")\n VALUES ($1, $2, $3)\n RETURNING id;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "8af0c4dcb1957927aef3afb489b879fc666056bef965cfce73149d446b4c71bd" -} diff --git a/rust/cloud-storage/.sqlx/query-8b7993e0c49a8c1b1fb9449770a500362b483bcea23aec896bfaf9e67fd6dc95.json b/rust/cloud-storage/.sqlx/query-8b7993e0c49a8c1b1fb9449770a500362b483bcea23aec896bfaf9e67fd6dc95.json deleted file mode 100644 index 646f2cc8b7..0000000000 --- a/rust/cloud-storage/.sqlx/query-8b7993e0c49a8c1b1fb9449770a500362b483bcea23aec896bfaf9e67fd6dc95.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n p.id\n FROM\n \"Project\" p\n WHERE\n p.\"parentId\" = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "8b7993e0c49a8c1b1fb9449770a500362b483bcea23aec896bfaf9e67fd6dc95" -} diff --git a/rust/cloud-storage/.sqlx/query-8b7c148e88c11c3a2ba484c8ada918bf6497d8ec2339d9173904a7532b2b0052.json b/rust/cloud-storage/.sqlx/query-8b7c148e88c11c3a2ba484c8ada918bf6497d8ec2339d9173904a7532b2b0052.json deleted file mode 100644 index 46fe53d17b..0000000000 --- a/rust/cloud-storage/.sqlx/query-8b7c148e88c11c3a2ba484c8ada918bf6497d8ec2339d9173904a7532b2b0052.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM crm_companies co\n WHERE co.team_id = $1\n AND co.email_sync = TRUE\n AND NOT EXISTS (\n SELECT 1 FROM crm_contacts WHERE company_id = co.id\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "8b7c148e88c11c3a2ba484c8ada918bf6497d8ec2339d9173904a7532b2b0052" -} diff --git a/rust/cloud-storage/.sqlx/query-8b7e81c3b4f31c86100de517e1978a1879039b7230aa83df18f583106c97a18f.json b/rust/cloud-storage/.sqlx/query-8b7e81c3b4f31c86100de517e1978a1879039b7230aa83df18f583106c97a18f.json deleted file mode 100644 index cb673d055d..0000000000 --- a/rust/cloud-storage/.sqlx/query-8b7e81c3b4f31c86100de517e1978a1879039b7230aa83df18f583106c97a18f.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH UserHistories AS (\n SELECT\n h.\"itemId\" as item_id,\n h.\"itemType\" as item_type\n FROM \"UserHistory\" h\n WHERE h.\"userId\" = $1\n ), Combined AS (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"projectId\" as \"project_id\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\",\n NULL as \"is_persistent\",\n di.sha as \"sha\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n CASE \n WHEN dt.sub_type = 'task' \n AND ep_status.values->'value' ? $2\n THEN true \n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL \n END as \"is_completed\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status \n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id \n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $3\n INNER JOIN UserHistories uh ON uh.item_id = d.id AND uh.item_type = 'document'\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.\"documentId\",\n i.\"sha\",\n i.\"createdAt\",\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n UNION ALL\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"projectId\" as \"project_id\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n NULL as \"is_completed\"\n FROM \"Chat\" c\n INNER JOIN UserHistories uh ON uh.item_id = c.id AND uh.item_type = 'chat'\n UNION ALL\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at\",\n p.\"updatedAt\"::timestamptz as \"updated_at\",\n p.\"parentId\" as \"project_id\",\n p.\"deletedAt\"::timestamptz as \"deleted_at\",\n NULL as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n NULL as \"is_completed\"\n FROM \"Project\" p\n INNER JOIN UserHistories uh ON uh.item_id = p.id AND uh.item_type = 'project'\n )\n SELECT * FROM Combined\n ORDER BY updated_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_type!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_version_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "user_id!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "name!", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 8, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 13, - "name": "is_persistent", - "type_info": "Bool" - }, - { - "ordinal": 14, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 15, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 16, - "name": "is_completed", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Uuid" - ] - }, - "nullable": [ - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null - ] - }, - "hash": "8b7e81c3b4f31c86100de517e1978a1879039b7230aa83df18f583106c97a18f" -} diff --git a/rust/cloud-storage/.sqlx/query-8b8194993cc2ec93b2db6104da98fe3569d973d3d2a3f723c70414c04cc574ef.json b/rust/cloud-storage/.sqlx/query-8b8194993cc2ec93b2db6104da98fe3569d973d3d2a3f723c70414c04cc574ef.json deleted file mode 100644 index e065f0dc6a..0000000000 --- a/rust/cloud-storage/.sqlx/query-8b8194993cc2ec93b2db6104da98fe3569d973d3d2a3f723c70414c04cc574ef.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_attachments_fwd (message_id, attachment_id)\n SELECT $1, $2\n FROM email_messages m\n WHERE m.id = $1 AND m.link_id = $3\n ON CONFLICT DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "8b8194993cc2ec93b2db6104da98fe3569d973d3d2a3f723c70414c04cc574ef" -} diff --git a/rust/cloud-storage/.sqlx/query-8bca1bc084d24daf8db19d8fc04301467f257fbc1bde2a018fe9efb1e6728cd3.json b/rust/cloud-storage/.sqlx/query-8bca1bc084d24daf8db19d8fc04301467f257fbc1bde2a018fe9efb1e6728cd3.json deleted file mode 100644 index 20d8eb1130..0000000000 --- a/rust/cloud-storage/.sqlx/query-8bca1bc084d24daf8db19d8fc04301467f257fbc1bde2a018fe9efb1e6728cd3.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"UserDocumentViewLocation\" (user_id, document_id, location)\n VALUES ($1, $2, $3)\n ON CONFLICT (user_id, document_id) \n DO UPDATE SET location = EXCLUDED.location, updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "8bca1bc084d24daf8db19d8fc04301467f257fbc1bde2a018fe9efb1e6728cd3" -} diff --git a/rust/cloud-storage/.sqlx/query-8c9bf0696a9b0a0e1cab142290ecf2858a32311a07bca8ea0bb9f54ea507f8e3.json b/rust/cloud-storage/.sqlx/query-8c9bf0696a9b0a0e1cab142290ecf2858a32311a07bca8ea0bb9f54ea507f8e3.json deleted file mode 100644 index 548c314aac..0000000000 --- a/rust/cloud-storage/.sqlx/query-8c9bf0696a9b0a0e1cab142290ecf2858a32311a07bca8ea0bb9f54ea507f8e3.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT id FROM \"Project\" WHERE \"parentId\" = $1 AND \"deletedAt\" IS NULL", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "8c9bf0696a9b0a0e1cab142290ecf2858a32311a07bca8ea0bb9f54ea507f8e3" -} diff --git a/rust/cloud-storage/.sqlx/query-8cab0f54798d95a0549e022187648a7e8ad714623a8a2fe32c785ddb27937eae.json b/rust/cloud-storage/.sqlx/query-8cab0f54798d95a0549e022187648a7e8ad714623a8a2fe32c785ddb27937eae.json deleted file mode 100644 index d742c4ba27..0000000000 --- a/rust/cloud-storage/.sqlx/query-8cab0f54798d95a0549e022187648a7e8ad714623a8a2fe32c785ddb27937eae.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"sharePermissionId\" as share_permission_id\n FROM \"ChatPermission\"\n WHERE \"chatId\"=$1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "8cab0f54798d95a0549e022187648a7e8ad714623a8a2fe32c785ddb27937eae" -} diff --git a/rust/cloud-storage/.sqlx/query-8cc1aa2163c9650b121037b241370b154ad229bcf9280c54e5975914d1c6fc78.json b/rust/cloud-storage/.sqlx/query-8cc1aa2163c9650b121037b241370b154ad229bcf9280c54e5975914d1c6fc78.json deleted file mode 100644 index ed15384636..0000000000 --- a/rust/cloud-storage/.sqlx/query-8cc1aa2163c9650b121037b241370b154ad229bcf9280c54e5975914d1c6fc78.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n user_id\n FROM comms_channel_participants\n WHERE channel_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "8cc1aa2163c9650b121037b241370b154ad229bcf9280c54e5975914d1c6fc78" -} diff --git a/rust/cloud-storage/.sqlx/query-8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911.json b/rust/cloud-storage/.sqlx/query-8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911.json deleted file mode 100644 index 505a2bd912..0000000000 --- a/rust/cloud-storage/.sqlx/query-8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE entity_properties\n SET values = $2\n WHERE entity_id = $1\n AND property_definition_id = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Jsonb", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911" -} diff --git a/rust/cloud-storage/.sqlx/query-8d25b1711e2c00fe92b1921e1c2ee17e311301f88b1550dbff4eb41b6e12db13.json b/rust/cloud-storage/.sqlx/query-8d25b1711e2c00fe92b1921e1c2ee17e311301f88b1550dbff4eb41b6e12db13.json deleted file mode 100644 index 9623da14ab..0000000000 --- a/rust/cloud-storage/.sqlx/query-8d25b1711e2c00fe92b1921e1c2ee17e311301f88b1550dbff4eb41b6e12db13.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.\"id\" as \"user_id\",\n u.\"email\" as \"email\",\n u.\"stripeCustomerId\" as \"stripe_customer_id?\",\n u.\"name\" as name,\n u.\"tutorialComplete\" as tutorial_complete,\n u.\"group\" as \"group?\",\n u.\"hasChromeExt\" as has_chrome_ext,\n u.\"aiDataConsent\" as ai_data_consent,\n mu.has_trialed as has_trialed,\n u.macro_user_id as \"macro_user_id\"\n FROM \"User\" u\n JOIN \"macro_user\" mu ON u.macro_user_id = mu.id\n WHERE u.\"id\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "email", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "stripe_customer_id?", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "tutorial_complete", - "type_info": "Bool" - }, - { - "ordinal": 5, - "name": "group?", - "type_info": "Varchar" - }, - { - "ordinal": 6, - "name": "has_chrome_ext", - "type_info": "Bool" - }, - { - "ordinal": 7, - "name": "ai_data_consent", - "type_info": "Bool" - }, - { - "ordinal": 8, - "name": "has_trialed", - "type_info": "Bool" - }, - { - "ordinal": 9, - "name": "macro_user_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - true, - true, - false, - true, - false, - false, - false, - false - ] - }, - "hash": "8d25b1711e2c00fe92b1921e1c2ee17e311301f88b1550dbff4eb41b6e12db13" -} diff --git a/rust/cloud-storage/.sqlx/query-8d3fe39f31059bd0a830f027fbb9aa2089b8ab3ea0cf3fbe3b35d6f17be9b355.json b/rust/cloud-storage/.sqlx/query-8d3fe39f31059bd0a830f027fbb9aa2089b8ab3ea0cf3fbe3b35d6f17be9b355.json deleted file mode 100644 index cbf6c51799..0000000000 --- a/rust/cloud-storage/.sqlx/query-8d3fe39f31059bd0a830f027fbb9aa2089b8ab3ea0cf3fbe3b35d6f17be9b355.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT channel_id, user_id, created_at\n FROM channel_notification_email_sent\n WHERE channel_id = $1\n AND user_id = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "created_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "8d3fe39f31059bd0a830f027fbb9aa2089b8ab3ea0cf3fbe3b35d6f17be9b355" -} diff --git a/rust/cloud-storage/.sqlx/query-8d5ffbdd5be9b1031c7da47bc2d4bcbee35802a575387ef081a09031b42f7de9.json b/rust/cloud-storage/.sqlx/query-8d5ffbdd5be9b1031c7da47bc2d4bcbee35802a575387ef081a09031b42f7de9.json deleted file mode 100644 index 4860272b0d..0000000000 --- a/rust/cloud-storage/.sqlx/query-8d5ffbdd5be9b1031c7da47bc2d4bcbee35802a575387ef081a09031b42f7de9.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n ep.property_definition_id,\n pd.display_name,\n pd.data_type as \"data_type: DataType\",\n pd.is_multi_select,\n pd.is_system,\n ep.values as \"values: serde_json::Value\"\n FROM entity_properties ep\n INNER JOIN property_definitions pd ON pd.id = ep.property_definition_id\n WHERE ep.entity_id = $1\n AND ep.entity_type = $2\n ORDER BY LOWER(pd.display_name)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "property_definition_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "display_name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "data_type: DataType", - "type_info": { - "Custom": { - "name": "property_data_type", - "kind": { - "Enum": [ - "BOOLEAN", - "DATE", - "NUMBER", - "STRING", - "SELECT_NUMBER", - "SELECT_STRING", - "ENTITY", - "LINK" - ] - } - } - } - }, - { - "ordinal": 3, - "name": "is_multi_select", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "is_system", - "type_info": "Bool" - }, - { - "ordinal": 5, - "name": "values: serde_json::Value", - "type_info": "Jsonb" - } - ], - "parameters": { - "Left": [ - "Text", - { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true - ] - }, - "hash": "8d5ffbdd5be9b1031c7da47bc2d4bcbee35802a575387ef081a09031b42f7de9" -} diff --git a/rust/cloud-storage/.sqlx/query-8d8e2f6bf38b4b18f2b47c282a351aee78b249f6d66133c572c39a7ca8e11024.json b/rust/cloud-storage/.sqlx/query-8d8e2f6bf38b4b18f2b47c282a351aee78b249f6d66133c572c39a7ca8e11024.json deleted file mode 100644 index 4163a5425a..0000000000 --- a/rust/cloud-storage/.sqlx/query-8d8e2f6bf38b4b18f2b47c282a351aee78b249f6d66133c572c39a7ca8e11024.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_messages\n WHERE id = $1 AND thread_id = $2 AND is_draft = true AND is_sent = false\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "8d8e2f6bf38b4b18f2b47c282a351aee78b249f6d66133c572c39a7ca8e11024" -} diff --git a/rust/cloud-storage/.sqlx/query-8da326cb4addb18bca0e08c8728c86a1aa898bcf344fe913db7ee5c47dfde47c.json b/rust/cloud-storage/.sqlx/query-8da326cb4addb18bca0e08c8728c86a1aa898bcf344fe913db7ee5c47dfde47c.json deleted file mode 100644 index bda502d199..0000000000 --- a/rust/cloud-storage/.sqlx/query-8da326cb4addb18bca0e08c8728c86a1aa898bcf344fe913db7ee5c47dfde47c.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT c.id\n FROM \"Chat\" c\n WHERE c.\"deletedAt\" IS NOT NULL AND c.\"deletedAt\" <= $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Timestamp" - ] - }, - "nullable": [ - false - ] - }, - "hash": "8da326cb4addb18bca0e08c8728c86a1aa898bcf344fe913db7ee5c47dfde47c" -} diff --git a/rust/cloud-storage/.sqlx/query-8e239c46742a642923b5367a73cfcc0f253c96269afb634301ed6d207c206107.json b/rust/cloud-storage/.sqlx/query-8e239c46742a642923b5367a73cfcc0f253c96269afb634301ed6d207c206107.json deleted file mode 100644 index 312e1983df..0000000000 --- a/rust/cloud-storage/.sqlx/query-8e239c46742a642923b5367a73cfcc0f253c96269afb634301ed6d207c206107.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM user_notification_item_unsubscribe\n WHERE user_id = $1 AND item_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "8e239c46742a642923b5367a73cfcc0f253c96269afb634301ed6d207c206107" -} diff --git a/rust/cloud-storage/.sqlx/query-8e916c1355943f5a5d48d153bdf82e453c82b6a4c279973b2f7c0c631ffeff12.json b/rust/cloud-storage/.sqlx/query-8e916c1355943f5a5d48d153bdf82e453c82b6a4c279973b2f7c0c631ffeff12.json deleted file mode 100644 index 829fc1e846..0000000000 --- a/rust/cloud-storage/.sqlx/query-8e916c1355943f5a5d48d153bdf82e453c82b6a4c279973b2f7c0c631ffeff12.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n o.name as name,\n orp.retention_days as \"retention_days?\"\n FROM \"Organization\" o\n LEFT JOIN \"OrganizationRetentionPolicy\" orp ON o.id = orp.organization_id\n WHERE o.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "retention_days?", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Int4" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "8e916c1355943f5a5d48d153bdf82e453c82b6a4c279973b2f7c0c631ffeff12" -} diff --git a/rust/cloud-storage/.sqlx/query-8ea09698a4333b2b2d97f16423008a172b5a030ede2b8528a103397a6dc4a42e.json b/rust/cloud-storage/.sqlx/query-8ea09698a4333b2b2d97f16423008a172b5a030ede2b8528a103397a6dc4a42e.json deleted file mode 100644 index e33956234c..0000000000 --- a/rust/cloud-storage/.sqlx/query-8ea09698a4333b2b2d97f16423008a172b5a030ede2b8528a103397a6dc4a42e.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentBom\" (\"documentId\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $2)\n RETURNING id, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 2, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Timestamp" - ] - }, - "nullable": [ - false, - null, - null - ] - }, - "hash": "8ea09698a4333b2b2d97f16423008a172b5a030ede2b8528a103397a6dc4a42e" -} diff --git a/rust/cloud-storage/.sqlx/query-8ed522f5a19f1f7d136ed0fc5c4c57f4af547d21eb2f6c78c9e2335f4fcd64c2.json b/rust/cloud-storage/.sqlx/query-8ed522f5a19f1f7d136ed0fc5c4c57f4af547d21eb2f6c78c9e2335f4fcd64c2.json deleted file mode 100644 index 130425a41e..0000000000 --- a/rust/cloud-storage/.sqlx/query-8ed522f5a19f1f7d136ed0fc5c4c57f4af547d21eb2f6c78c9e2335f4fcd64c2.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_entity_mentions (id, source_entity_type, source_entity_id, entity_type, entity_id, user_id)\n VALUES ($1, $2, $3, $4, $5, $6)\n RETURNING id, source_entity_type, source_entity_id, entity_type, entity_id, user_id, created_at\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "source_entity_type", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "source_entity_id", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "entity_type", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "entity_id", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "user_id", - "type_info": "Varchar" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Varchar", - "Varchar", - "Varchar", - "Varchar", - "Varchar" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true, - false - ] - }, - "hash": "8ed522f5a19f1f7d136ed0fc5c4c57f4af547d21eb2f6c78c9e2335f4fcd64c2" -} diff --git a/rust/cloud-storage/.sqlx/query-8f57f79c4318149ab611e764372c035d54880fcc3d80b41bd5d255245e94263e.json b/rust/cloud-storage/.sqlx/query-8f57f79c4318149ab611e764372c035d54880fcc3d80b41bd5d255245e94263e.json deleted file mode 100644 index 58b3d745cf..0000000000 --- a/rust/cloud-storage/.sqlx/query-8f57f79c4318149ab611e764372c035d54880fcc3d80b41bd5d255245e94263e.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, channel_id, room_name, created_by, created_at, egress_id, recording_key, preview_url, recording_started_at, share_permission_id, share_with_team\n FROM calls\n WHERE id = $1\n FOR UPDATE\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "room_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_by", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "egress_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "recording_key", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "preview_url", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "recording_started_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "share_permission_id", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "share_with_team", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true, - true, - true, - true, - false, - false - ] - }, - "hash": "8f57f79c4318149ab611e764372c035d54880fcc3d80b41bd5d255245e94263e" -} diff --git a/rust/cloud-storage/.sqlx/query-8fc112d6aeef9c2a223351d2b80947769f26aafbebb3a1b0c759f5246fcca507.json b/rust/cloud-storage/.sqlx/query-8fc112d6aeef9c2a223351d2b80947769f26aafbebb3a1b0c759f5246fcca507.json deleted file mode 100644 index 55b8ca5614..0000000000 --- a/rust/cloud-storage/.sqlx/query-8fc112d6aeef9c2a223351d2b80947769f26aafbebb3a1b0c759f5246fcca507.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT access_level::text\n FROM entity_access\n WHERE source_id = ANY(ARRAY(\n SELECT cp.channel_id::text FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ))\n AND entity_id = $2\n AND entity_type = 'chat'\n ORDER BY\n CASE access_level::text\n WHEN 'owner' THEN 4\n WHEN 'edit' THEN 3\n WHEN 'comment' THEN 2\n WHEN 'view' THEN 1\n ELSE 0\n END DESC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "access_level", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "8fc112d6aeef9c2a223351d2b80947769f26aafbebb3a1b0c759f5246fcca507" -} diff --git a/rust/cloud-storage/.sqlx/query-8fdd4afe0b260c02acea8a052a6fe39d6ad21150fc2f1049548c724516b9210b.json b/rust/cloud-storage/.sqlx/query-8fdd4afe0b260c02acea8a052a6fe39d6ad21150fc2f1049548c724516b9210b.json deleted file mode 100644 index 0305c903f5..0000000000 --- a/rust/cloud-storage/.sqlx/query-8fdd4afe0b260c02acea8a052a6fe39d6ad21150fc2f1049548c724516b9210b.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_message_labels\n WHERE message_id = $1\n AND label_id NOT IN (\n SELECT UNNEST($2::uuid[])\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "UuidArray" - ] - }, - "nullable": [] - }, - "hash": "8fdd4afe0b260c02acea8a052a6fe39d6ad21150fc2f1049548c724516b9210b" -} diff --git a/rust/cloud-storage/.sqlx/query-8feeae34466cca17ffaacbf1bbe635362915023e2457fe6bb676c05c5d6f9ee2.json b/rust/cloud-storage/.sqlx/query-8feeae34466cca17ffaacbf1bbe635362915023e2457fe6bb676c05c5d6f9ee2.json deleted file mode 100644 index 847b224564..0000000000 --- a/rust/cloud-storage/.sqlx/query-8feeae34466cca17ffaacbf1bbe635362915023e2457fe6bb676c05c5d6f9ee2.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT channel_id\n FROM channel_notification_email_sent\n WHERE user_id = $1\n AND channel_id = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text", - "UuidArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "8feeae34466cca17ffaacbf1bbe635362915023e2457fe6bb676c05c5d6f9ee2" -} diff --git a/rust/cloud-storage/.sqlx/query-9021780763850e636cf944f6171ce2253c39d7532a38bcda72c8a6da965310f9.json b/rust/cloud-storage/.sqlx/query-9021780763850e636cf944f6171ce2253c39d7532a38bcda72c8a6da965310f9.json deleted file mode 100644 index 215156fa55..0000000000 --- a/rust/cloud-storage/.sqlx/query-9021780763850e636cf944f6171ce2253c39d7532a38bcda72c8a6da965310f9.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"content\"\n FROM resolved_message_content\n WHERE \"messageId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "content", - "type_info": "Jsonb" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "9021780763850e636cf944f6171ce2253c39d7532a38bcda72c8a6da965310f9" -} diff --git a/rust/cloud-storage/.sqlx/query-90832c95920a9b40329509f4ee611f765a6c10025c1b519f4a5d76ccfd64fb75.json b/rust/cloud-storage/.sqlx/query-90832c95920a9b40329509f4ee611f765a6c10025c1b519f4a5d76ccfd64fb75.json deleted file mode 100644 index 696addd983..0000000000 --- a/rust/cloud-storage/.sqlx/query-90832c95920a9b40329509f4ee611f765a6c10025c1b519f4a5d76ccfd64fb75.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n VALUES ($1, 'document', $2, 'team', $3)\n ON CONFLICT DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - { - "Custom": { - "name": "\"AccessLevel\"", - "kind": { - "Enum": [ - "view", - "comment", - "edit", - "owner" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "90832c95920a9b40329509f4ee611f765a6c10025c1b519f4a5d76ccfd64fb75" -} diff --git a/rust/cloud-storage/.sqlx/query-908627bdd27f344ce26c501bb7431b621173c04bfda9678021360817c3f25103.json b/rust/cloud-storage/.sqlx/query-908627bdd27f344ce26c501bb7431b621173c04bfda9678021360817c3f25103.json deleted file mode 100644 index ad59b616b1..0000000000 --- a/rust/cloud-storage/.sqlx/query-908627bdd27f344ce26c501bb7431b621173c04bfda9678021360817c3f25103.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id as \"channel_id\",\n c.name as \"name\",\n c.channel_type AS \"channel_type: ChannelType\",\n c.org_id as \"org_id\",\n m.id as \"message_id\",\n m.thread_id as \"thread_id\",\n m.sender_id as \"sender_id\",\n m.content as \"content\",\n m.created_at as \"created_at\",\n m.updated_at as \"updated_at\",\n m.deleted_at::timestamptz as \"deleted_at\"\n FROM\n comms_messages m\n JOIN\n comms_channels c on c.\"id\" = m.\"channel_id\"\n WHERE\n m.id = $1\n AND c.id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "channel_type: ChannelType", - "type_info": { - "Custom": { - "name": "comms_channel_type", - "kind": { - "Enum": [ - "public", - "private", - "direct_message", - "team" - ] - } - } - } - }, - { - "ordinal": 3, - "name": "org_id", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 6, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - true, - false, - true, - false, - true, - false, - false, - false, - false, - null - ] - }, - "hash": "908627bdd27f344ce26c501bb7431b621173c04bfda9678021360817c3f25103" -} diff --git a/rust/cloud-storage/.sqlx/query-9096710139da4a36b9a11809a30b65ae3b712a0b659b63e366e5f485b8630951.json b/rust/cloud-storage/.sqlx/query-9096710139da4a36b9a11809a30b65ae3b712a0b659b63e366e5f485b8630951.json deleted file mode 100644 index ce58f8d552..0000000000 --- a/rust/cloud-storage/.sqlx/query-9096710139da4a36b9a11809a30b65ae3b712a0b659b63e366e5f485b8630951.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"SharePermission\" (\"id\", \"isPublic\",\"publicAccessLevel\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, NOW(), NOW())\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Bool", - "Text" - ] - }, - "nullable": [] - }, - "hash": "9096710139da4a36b9a11809a30b65ae3b712a0b659b63e366e5f485b8630951" -} diff --git a/rust/cloud-storage/.sqlx/query-90d75cee091fe17362db20b9d855e6c8e8d204599eb1ee4d576b9a913aca0b41.json b/rust/cloud-storage/.sqlx/query-90d75cee091fe17362db20b9d855e6c8e8d204599eb1ee4d576b9a913aca0b41.json deleted file mode 100644 index ebd0d84d18..0000000000 --- a/rust/cloud-storage/.sqlx/query-90d75cee091fe17362db20b9d855e6c8e8d204599eb1ee4d576b9a913aca0b41.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Comment\"\n SET \"deletedAt\" = NOW()\n WHERE \"threadId\" = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [] - }, - "hash": "90d75cee091fe17362db20b9d855e6c8e8d204599eb1ee4d576b9a913aca0b41" -} diff --git a/rust/cloud-storage/.sqlx/query-90fce55ca239e5642b63e553f9492913cced9a2c8a5eac4f07a4f56e621512ee.json b/rust/cloud-storage/.sqlx/query-90fce55ca239e5642b63e553f9492913cced9a2c8a5eac4f07a4f56e621512ee.json deleted file mode 100644 index ed32ff45ed..0000000000 --- a/rust/cloud-storage/.sqlx/query-90fce55ca239e5642b63e553f9492913cced9a2c8a5eac4f07a4f56e621512ee.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM email_messages WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "90fce55ca239e5642b63e553f9492913cced9a2c8a5eac4f07a4f56e621512ee" -} diff --git a/rust/cloud-storage/.sqlx/query-91368040542b31a69ae76bfc12b127970920fb761ec08d3303bffc94402b984e.json b/rust/cloud-storage/.sqlx/query-91368040542b31a69ae76bfc12b127970920fb761ec08d3303bffc94402b984e.json deleted file mode 100644 index f0c34eccbd..0000000000 --- a/rust/cloud-storage/.sqlx/query-91368040542b31a69ae76bfc12b127970920fb761ec08d3303bffc94402b984e.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as document_id,\n d.owner as owner,\n d.\"fileType\" as \"file_type!\",\n COALESCE(db.id, di.id, dipdf.id) as \"document_version_id!\",\n d.\"updatedAt\"::timestamptz as \"updated_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dst ON dst.document_id = d.id\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"updatedAt\" ASC\n LIMIT 1\n ) dipdf ON d.\"fileType\" = 'pdf'\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" DESC\n LIMIT 1\n ) di ON d.\"fileType\" IS DISTINCT FROM 'docx' AND d.\"fileType\" IS DISTINCT FROM 'pdf'\n WHERE\n d.\"fileType\" IS NOT NULL\n AND ($3::text[] IS NULL OR d.\"fileType\" = ANY($3))\n AND ($4::text IS NULL OR dst.sub_type::text = $4)\n AND ($5::timestamptz IS NULL OR d.\"updatedAt\" >= $5)\n AND ($6::timestamptz IS NULL OR d.\"updatedAt\" < $6)\n AND (\n $7::bool IS NULL\n OR ($7 AND d.\"deletedAt\" IS NOT NULL)\n OR (NOT $7 AND d.\"deletedAt\" IS NULL)\n )\n AND (\n $2::timestamptz IS NULL\n OR (d.\"updatedAt\", d.id) > ($2, $8::text)\n )\n ORDER BY d.\"updatedAt\" ASC, d.id ASC\n LIMIT $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "file_type!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "document_version_id!", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Int8", - "Timestamptz", - "TextArray", - "Text", - "Timestamptz", - "Timestamptz", - "Bool", - "Text" - ] - }, - "nullable": [ - false, - false, - true, - null, - null - ] - }, - "hash": "91368040542b31a69ae76bfc12b127970920fb761ec08d3303bffc94402b984e" -} diff --git a/rust/cloud-storage/.sqlx/query-915c50350c5513c6e1ba12eae31520046ac0e7e882d9c5ec76a3578ae4bc7d50.json b/rust/cloud-storage/.sqlx/query-915c50350c5513c6e1ba12eae31520046ac0e7e882d9c5ec76a3578ae4bc7d50.json deleted file mode 100644 index 0a2c18aa63..0000000000 --- a/rust/cloud-storage/.sqlx/query-915c50350c5513c6e1ba12eae31520046ac0e7e882d9c5ec76a3578ae4bc7d50.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT \"userId\" as user_id, \"deletedAt\" as deleted_at FROM \"Project\" WHERE id=$1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "deleted_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "915c50350c5513c6e1ba12eae31520046ac0e7e882d9c5ec76a3578ae4bc7d50" -} diff --git a/rust/cloud-storage/.sqlx/query-9173d68221d7b73f7a1e3ec0632ab9ae6a9269c950b45897a5e64c14cd00e117.json b/rust/cloud-storage/.sqlx/query-9173d68221d7b73f7a1e3ec0632ab9ae6a9269c950b45897a5e64c14cd00e117.json deleted file mode 100644 index 81a258d19e..0000000000 --- a/rust/cloud-storage/.sqlx/query-9173d68221d7b73f7a1e3ec0632ab9ae6a9269c950b45897a5e64c14cd00e117.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id\n FROM \"OrganizationRetentionPolicy\"\n WHERE organization_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Int4" - ] - }, - "nullable": [ - false - ] - }, - "hash": "9173d68221d7b73f7a1e3ec0632ab9ae6a9269c950b45897a5e64c14cd00e117" -} diff --git a/rust/cloud-storage/.sqlx/query-91badd3aa8d3cc89c16ae8013b20eb521625862f180e9bc75096de5573436928.json b/rust/cloud-storage/.sqlx/query-91badd3aa8d3cc89c16ae8013b20eb521625862f180e9bc75096de5573436928.json deleted file mode 100644 index da286915f0..0000000000 --- a/rust/cloud-storage/.sqlx/query-91badd3aa8d3cc89c16ae8013b20eb521625862f180e9bc75096de5573436928.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentFamily\" (\"rootDocumentId\")\n VALUES ($1)\n RETURNING id;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "91badd3aa8d3cc89c16ae8013b20eb521625862f180e9bc75096de5573436928" -} diff --git a/rust/cloud-storage/.sqlx/query-91e974129e2c983925d29dabf73c8ae86c6f090cbfd28f22cd952756950a94db.json b/rust/cloud-storage/.sqlx/query-91e974129e2c983925d29dabf73c8ae86c6f090cbfd28f22cd952756950a94db.json deleted file mode 100644 index 806760a2c8..0000000000 --- a/rust/cloud-storage/.sqlx/query-91e974129e2c983925d29dabf73c8ae86c6f090cbfd28f22cd952756950a94db.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_messages (id, channel_id, sender_id, content, thread_id)\n VALUES ($1, $2, $3, $4, $5)\n RETURNING\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at as \"edited_at: chrono::DateTime\",\n deleted_at as \"deleted_at: chrono::DateTime\" \n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "edited_at: chrono::DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 8, - "name": "deleted_at: chrono::DateTime", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text", - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - true, - true - ] - }, - "hash": "91e974129e2c983925d29dabf73c8ae86c6f090cbfd28f22cd952756950a94db" -} diff --git a/rust/cloud-storage/.sqlx/query-922f058d237b9ffe46e13677ce2e6c4f4b39b7ae7b8b4dd248f54714d842a08e.json b/rust/cloud-storage/.sqlx/query-922f058d237b9ffe46e13677ce2e6c4f4b39b7ae7b8b4dd248f54714d842a08e.json deleted file mode 100644 index 0fd14fd3e9..0000000000 --- a/rust/cloud-storage/.sqlx/query-922f058d237b9ffe46e13677ce2e6c4f4b39b7ae7b8b4dd248f54714d842a08e.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n eaf.message_id as draft_id,\n eaf.attachment_id,\n ea.provider_attachment_id,\n orig_msg.provider_id as \"message_provider_id!\",\n ea.filename,\n ea.mime_type,\n ea.size_bytes\n FROM email_attachments_fwd eaf\n JOIN email_attachments ea ON eaf.attachment_id = ea.id\n JOIN email_messages orig_msg ON ea.message_id = orig_msg.id\n WHERE eaf.message_id = ANY($1)\n ORDER BY eaf.message_id, ea.filename ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "draft_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "attachment_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_attachment_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "message_provider_id!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "filename", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "mime_type", - "type_info": "Varchar" - }, - { - "ordinal": 6, - "name": "size_bytes", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - true, - true, - true, - true, - true - ] - }, - "hash": "922f058d237b9ffe46e13677ce2e6c4f4b39b7ae7b8b4dd248f54714d842a08e" -} diff --git a/rust/cloud-storage/.sqlx/query-92b33fffecd9a49fed7c74fe6994932e4d2123e0721a86c2b2fb691a32b92054.json b/rust/cloud-storage/.sqlx/query-92b33fffecd9a49fed7c74fe6994932e4d2123e0721a86c2b2fb691a32b92054.json deleted file mode 100644 index 467edfdf44..0000000000 --- a/rust/cloud-storage/.sqlx/query-92b33fffecd9a49fed7c74fe6994932e4d2123e0721a86c2b2fb691a32b92054.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_channel_participants (channel_id, user_id, role, left_at)\n VALUES ($1, $2, 'member'::comms_participant_role, NULL)\n ON CONFLICT (channel_id, user_id)\n DO UPDATE SET role = 'member'::comms_participant_role,\n left_at = NULL,\n joined_at = now()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "92b33fffecd9a49fed7c74fe6994932e4d2123e0721a86c2b2fb691a32b92054" -} diff --git a/rust/cloud-storage/.sqlx/query-92e2916a16d165600f457c778ac3db9ae11c6625c948798e19ca19da4a30f3c1.json b/rust/cloud-storage/.sqlx/query-92e2916a16d165600f457c778ac3db9ae11c6625c948798e19ca19da4a30f3c1.json deleted file mode 100644 index f2a02380a7..0000000000 --- a/rust/cloud-storage/.sqlx/query-92e2916a16d165600f457c778ac3db9ae11c6625c948798e19ca19da4a30f3c1.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.content as \"content\",\n c.name as \"name\",\n m.role as \"role\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"ChatMessage\" m\n JOIN\n \"Chat\" c on c.\"id\" = m.\"chatId\"\n WHERE\n m.id = $1 AND m.\"chatId\" = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "content", - "type_info": "Jsonb" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "role", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - null - ] - }, - "hash": "92e2916a16d165600f457c778ac3db9ae11c6625c948798e19ca19da4a30f3c1" -} diff --git a/rust/cloud-storage/.sqlx/query-92edc80110af7b96f7f908989461a4abb11652671a95454969369a0484ed9239.json b/rust/cloud-storage/.sqlx/query-92edc80110af7b96f7f908989461a4abb11652671a95454969369a0484ed9239.json deleted file mode 100644 index a8520fdfd0..0000000000 --- a/rust/cloud-storage/.sqlx/query-92edc80110af7b96f7f908989461a4abb11652671a95454969369a0484ed9239.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO notification_message_receipt (message_id, user_id, notification_id)\n VALUES ($1, $2, $3)\n ON CONFLICT (message_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "92edc80110af7b96f7f908989461a4abb11652671a95454969369a0484ed9239" -} diff --git a/rust/cloud-storage/.sqlx/query-935031443597f0e3057ef41537c2baa9efd886c9ed75aabbf05e9cc43636d319.json b/rust/cloud-storage/.sqlx/query-935031443597f0e3057ef41537c2baa9efd886c9ed75aabbf05e9cc43636d319.json deleted file mode 100644 index 10a2e0a032..0000000000 --- a/rust/cloud-storage/.sqlx/query-935031443597f0e3057ef41537c2baa9efd886c9ed75aabbf05e9cc43636d319.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"SharePermission\" sp\n USING \"ChatPermission\" cp \n WHERE cp.\"sharePermissionId\" = sp.id\n AND cp.\"chatId\" = ANY($1)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "935031443597f0e3057ef41537c2baa9efd886c9ed75aabbf05e9cc43636d319" -} diff --git a/rust/cloud-storage/.sqlx/query-93df91392a72cc298609b453dc95621e7690af924a1af7bb4748dc704ed8897d.json b/rust/cloud-storage/.sqlx/query-93df91392a72cc298609b453dc95621e7690af924a1af7bb4748dc704ed8897d.json deleted file mode 100644 index aedc40a8c4..0000000000 --- a/rust/cloud-storage/.sqlx/query-93df91392a72cc298609b453dc95621e7690af924a1af7bb4748dc704ed8897d.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT ead.id, ead.draft_id, ead.file_name, ead.content_type, ead.sha, ead.size, ead.s3_key\n FROM email_attachments_drafts ead\n JOIN email_messages m ON ead.draft_id = m.id\n WHERE ead.draft_id = $1 AND m.link_id = $2\n ORDER BY ead.file_name ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "draft_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "file_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content_type", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "size", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "s3_key", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "93df91392a72cc298609b453dc95621e7690af924a1af7bb4748dc704ed8897d" -} diff --git a/rust/cloud-storage/.sqlx/query-93e41cb92c91a9a26ffbff42116d4311ca4e2ed8e7ff939912a65e045a49c939.json b/rust/cloud-storage/.sqlx/query-93e41cb92c91a9a26ffbff42116d4311ca4e2ed8e7ff939912a65e045a49c939.json deleted file mode 100644 index f40c6cda0a..0000000000 --- a/rust/cloud-storage/.sqlx/query-93e41cb92c91a9a26ffbff42116d4311ca4e2ed8e7ff939912a65e045a49c939.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT c.id, c.channel_id\n FROM call_participants cp\n JOIN calls c ON c.id = cp.call_id\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "93e41cb92c91a9a26ffbff42116d4311ca4e2ed8e7ff939912a65e045a49c939" -} diff --git a/rust/cloud-storage/.sqlx/query-93edad49b012cc8119b969091ba78ee6d16600fb11697445001c661e49bf48f4.json b/rust/cloud-storage/.sqlx/query-93edad49b012cc8119b969091ba78ee6d16600fb11697445001c661e49bf48f4.json deleted file mode 100644 index 949ae7ef8b..0000000000 --- a/rust/cloud-storage/.sqlx/query-93edad49b012cc8119b969091ba78ee6d16600fb11697445001c661e49bf48f4.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ProjectPermission\" (\"projectId\", \"sharePermissionId\")\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "93edad49b012cc8119b969091ba78ee6d16600fb11697445001c661e49bf48f4" -} diff --git a/rust/cloud-storage/.sqlx/query-940e7b0eb134ebfeff080733ed64ee795af7afc2cf14a910b0baf5838c4284e6.json b/rust/cloud-storage/.sqlx/query-940e7b0eb134ebfeff080733ed64ee795af7afc2cf14a910b0baf5838c4284e6.json deleted file mode 100644 index 0856672b4f..0000000000 --- a/rust/cloud-storage/.sqlx/query-940e7b0eb134ebfeff080733ed64ee795af7afc2cf14a910b0baf5838c4284e6.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT u.id as user_profile_id, mui.first_name, mui.last_name\n FROM macro_user_info mui\n JOIN \"User\" u ON mui.macro_user_id = u.macro_user_id\n WHERE u.id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_profile_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "first_name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "last_name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - true, - true - ] - }, - "hash": "940e7b0eb134ebfeff080733ed64ee795af7afc2cf14a910b0baf5838c4284e6" -} diff --git a/rust/cloud-storage/.sqlx/query-9460f97a5fe2c0ddb08e81f8ded812694d0f7408053c49c3e58ecca561d67c64.json b/rust/cloud-storage/.sqlx/query-9460f97a5fe2c0ddb08e81f8ded812694d0f7408053c49c3e58ecca561d67c64.json deleted file mode 100644 index b26f50c7f4..0000000000 --- a/rust/cloud-storage/.sqlx/query-9460f97a5fe2c0ddb08e81f8ded812694d0f7408053c49c3e58ecca561d67c64.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id as entity_id,\n c.name,\n regexp_replace(\n c.name,\n $7,\n '\\1',\n 'gi'\n ) as name_highlighted,\n c.\"updatedAt\" as updated_at\n FROM \"Chat\" c\n WHERE (c.\"userId\" = $1 OR c.id = ANY($2))\n AND c.\"deletedAt\" IS NULL\n AND c.name ILIKE $3\n AND (\n $5::timestamptz IS NULL\n OR (c.\"updatedAt\", c.id) < ($5, $6)\n )\n ORDER BY c.\"updatedAt\" DESC, c.id DESC\n LIMIT $4\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name_highlighted", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "updated_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray", - "Text", - "Int8", - "Timestamptz", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - null, - false - ] - }, - "hash": "9460f97a5fe2c0ddb08e81f8ded812694d0f7408053c49c3e58ecca561d67c64" -} diff --git a/rust/cloud-storage/.sqlx/query-94762871e427a2adfd8fcf6f2655d567f40a1b54a6186e0aa064be0f18212c98.json b/rust/cloud-storage/.sqlx/query-94762871e427a2adfd8fcf6f2655d567f40a1b54a6186e0aa064be0f18212c98.json deleted file mode 100644 index 1afc4b89dc..0000000000 --- a/rust/cloud-storage/.sqlx/query-94762871e427a2adfd8fcf6f2655d567f40a1b54a6186e0aa064be0f18212c98.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO scheduled_action (owner, name, schedule, kind, timezone, task, next_run_at, enabled)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n RETURNING id, owner, name, schedule, kind, timezone, task, claimed, created_at, updated_at, next_run_at, enabled\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "schedule", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "kind", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "timezone", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "task", - "type_info": "Jsonb" - }, - { - "ordinal": 7, - "name": "claimed", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "next_run_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "enabled", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Text", - "Text", - "Jsonb", - "Timestamptz", - "Bool" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - false - ] - }, - "hash": "94762871e427a2adfd8fcf6f2655d567f40a1b54a6186e0aa064be0f18212c98" -} diff --git a/rust/cloud-storage/.sqlx/query-94a1d6338c8e2da84429da7a79f7dcf0a962feb7832aab9fc4bd50613f742b59.json b/rust/cloud-storage/.sqlx/query-94a1d6338c8e2da84429da7a79f7dcf0a962feb7832aab9fc4bd50613f742b59.json deleted file mode 100644 index f6156312ba..0000000000 --- a/rust/cloud-storage/.sqlx/query-94a1d6338c8e2da84429da7a79f7dcf0a962feb7832aab9fc4bd50613f742b59.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT share_permission_id as \"share_permission_id!\"\n FROM (\n SELECT share_permission_id FROM calls WHERE id = $1\n UNION ALL\n SELECT share_permission_id FROM call_records WHERE id = $1\n ) t\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "94a1d6338c8e2da84429da7a79f7dcf0a962feb7832aab9fc4bd50613f742b59" -} diff --git a/rust/cloud-storage/.sqlx/query-94c019227741f6c4fe8411454cb7c0a3a97e5594c29f11fa893238656e161ff1.json b/rust/cloud-storage/.sqlx/query-94c019227741f6c4fe8411454cb7c0a3a97e5594c29f11fa893238656e161ff1.json deleted file mode 100644 index 4035617965..0000000000 --- a/rust/cloud-storage/.sqlx/query-94c019227741f6c4fe8411454cb7c0a3a97e5594c29f11fa893238656e161ff1.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE user_notification\n SET deleted_at = NOW()\n WHERE user_id = $1 AND notification_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "94c019227741f6c4fe8411454cb7c0a3a97e5594c29f11fa893238656e161ff1" -} diff --git a/rust/cloud-storage/.sqlx/query-95a8a0117d0bbc25adf4dc08cf0cec40eaa0faddb4490ad14ae9cc6c4d922256.json b/rust/cloud-storage/.sqlx/query-95a8a0117d0bbc25adf4dc08cf0cec40eaa0faddb4490ad14ae9cc6c4d922256.json deleted file mode 100644 index 8db9a4bf0c..0000000000 --- a/rust/cloud-storage/.sqlx/query-95a8a0117d0bbc25adf4dc08cf0cec40eaa0faddb4490ad14ae9cc6c4d922256.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Experiment\" (id)\n VALUES ($1)\n RETURNING id, active, \"started_at\"::timestamptz as started_at, \"ended_at\"::timestamptz as ended_at\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "active", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "started_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "ended_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - null, - null - ] - }, - "hash": "95a8a0117d0bbc25adf4dc08cf0cec40eaa0faddb4490ad14ae9cc6c4d922256" -} diff --git a/rust/cloud-storage/.sqlx/query-95c5d4f79e729713642efcda97838eddd466c0ec2ec9f96ae2be185ef9ff1547.json b/rust/cloud-storage/.sqlx/query-95c5d4f79e729713642efcda97838eddd466c0ec2ec9f96ae2be185ef9ff1547.json deleted file mode 100644 index 94b5b88dd8..0000000000 --- a/rust/cloud-storage/.sqlx/query-95c5d4f79e729713642efcda97838eddd466c0ec2ec9f96ae2be185ef9ff1547.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, fusionauth_user_id, macro_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at\n FROM email_links\n WHERE fusionauth_user_id = $1\n ORDER BY created_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "provider: _", - "type_info": { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_sync_active", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "95c5d4f79e729713642efcda97838eddd466c0ec2ec9f96ae2be185ef9ff1547" -} diff --git a/rust/cloud-storage/.sqlx/query-95dda7d94d399b451c4ba4a78ed6809895c255a103ca296451cbfe6c99833e8f.json b/rust/cloud-storage/.sqlx/query-95dda7d94d399b451c4ba4a78ed6809895c255a103ca296451cbfe6c99833e8f.json deleted file mode 100644 index e4c1284d23..0000000000 --- a/rust/cloud-storage/.sqlx/query-95dda7d94d399b451c4ba4a78ed6809895c255a103ca296451cbfe6c99833e8f.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"document_email\" (document_id, email_attachment_id)\n VALUES ($1, $2) \n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "95dda7d94d399b451c4ba4a78ed6809895c255a103ca296451cbfe6c99833e8f" -} diff --git a/rust/cloud-storage/.sqlx/query-966aa67009ff8376169045428a87b81c8ff478ddd1d7116a626d9a7d4bdc0297.json b/rust/cloud-storage/.sqlx/query-966aa67009ff8376169045428a87b81c8ff478ddd1d7116a626d9a7d4bdc0297.json deleted file mode 100644 index e2fdbe28a3..0000000000 --- a/rust/cloud-storage/.sqlx/query-966aa67009ff8376169045428a87b81c8ff478ddd1d7116a626d9a7d4bdc0297.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n provider_id,\n global_id,\n thread_id,\n provider_thread_id,\n replying_to_id,\n link_id,\n provider_history_id,\n internal_date_ts,\n snippet,\n size_estimate,\n subject,\n from_name,\n from_contact_id,\n sent_at,\n has_attachments,\n is_read,\n is_starred,\n is_sent,\n is_draft,\n headers_jsonb,\n created_at,\n updated_at,\n -- No body attributes\n NULL as \"body_text?\",\n NULL as \"body_html_sanitized?\",\n NULL as \"body_macro?\"\n FROM email_messages\n WHERE thread_id = $1 and link_id = $2\n ORDER BY internal_date_ts DESC NULLS LAST\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 6, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 21, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 22, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 23, - "name": "body_text?", - "type_info": "Text" - }, - { - "ordinal": 24, - "name": "body_html_sanitized?", - "type_info": "Text" - }, - { - "ordinal": 25, - "name": "body_macro?", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - true, - true, - false, - true, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - true, - false, - false, - null, - null, - null - ] - }, - "hash": "966aa67009ff8376169045428a87b81c8ff478ddd1d7116a626d9a7d4bdc0297" -} diff --git a/rust/cloud-storage/.sqlx/query-9676374e780121fbb6724ac51d9c742deb835c1e2c5a23390501ef95bc0f12cd.json b/rust/cloud-storage/.sqlx/query-9676374e780121fbb6724ac51d9c742deb835c1e2c5a23390501ef95bc0f12cd.json deleted file mode 100644 index 678dc0399c..0000000000 --- a/rust/cloud-storage/.sqlx/query-9676374e780121fbb6724ac51d9c742deb835c1e2c5a23390501ef95bc0f12cd.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n ph.uuid, \n ph.\"documentId\" as document_id,\n ph.owner, \n ph.\"threadId\" as thread_id, \n ph.page, \n ph.red,\n ph.green, \n ph.blue, \n ph.alpha, \n ph.type as highlight_type, \n ph.text, \n ph.\"pageViewportWidth\" as page_viewport_width, \n ph.\"pageViewportHeight\" as page_viewport_height, \n ph.\"createdAt\"::timestamptz as created_at, \n ph.\"updatedAt\"::timestamptz as updated_at, \n ph.\"deletedAt\"::timestamptz as deleted_at, \n array_agg((phr.id, phr.top, phr.left, phr.width, phr.height)) as \"highlight_rects!: Vec\"\n FROM \"PdfHighlightAnchor\" ph\n JOIN \"PdfHighlightRect\" phr ON ph.uuid = phr.\"pdfHighlightAnchorId\"\n WHERE ph.uuid = $1\n GROUP BY ph.uuid, ph.owner, ph.\"threadId\", ph.page, ph.red, ph.green, ph.blue, ph.alpha, ph.type, ph.text, ph.\"pageViewportWidth\", ph.\"pageViewportHeight\", ph.\"createdAt\", ph.\"updatedAt\", ph.\"deletedAt\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "page", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "red", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "green", - "type_info": "Int4" - }, - { - "ordinal": 7, - "name": "blue", - "type_info": "Int4" - }, - { - "ordinal": 8, - "name": "alpha", - "type_info": "Float8" - }, - { - "ordinal": 9, - "name": "highlight_type", - "type_info": "Int4" - }, - { - "ordinal": 10, - "name": "text", - "type_info": "Text" - }, - { - "ordinal": 11, - "name": "page_viewport_width", - "type_info": "Float8" - }, - { - "ordinal": 12, - "name": "page_viewport_height", - "type_info": "Float8" - }, - { - "ordinal": 13, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 14, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 16, - "name": "highlight_rects!: Vec", - "type_info": "RecordArray" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - null, - null, - null, - null - ] - }, - "hash": "9676374e780121fbb6724ac51d9c742deb835c1e2c5a23390501ef95bc0f12cd" -} diff --git a/rust/cloud-storage/.sqlx/query-96813c302ddd0c88c30ca845c668dcc47089bf02ae5dbf0f15eb0be64395d09f.json b/rust/cloud-storage/.sqlx/query-96813c302ddd0c88c30ca845c668dcc47089bf02ae5dbf0f15eb0be64395d09f.json deleted file mode 100644 index 10a698064c..0000000000 --- a/rust/cloud-storage/.sqlx/query-96813c302ddd0c88c30ca845c668dcc47089bf02ae5dbf0f15eb0be64395d09f.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"PdfHighlightAnchor\" (\n \"uuid\", \"documentId\", \"owner\", \"page\", \"red\", \"green\", \"blue\", \"alpha\", \n \"type\", \"text\", \"pageViewportWidth\", \"pageViewportHeight\", \n \"threadId\", \"createdAt\", \"updatedAt\"\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15)\n RETURNING uuid\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "uuid", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Int4", - "Int4", - "Int4", - "Int4", - "Float8", - "Int4", - "Text", - "Float8", - "Float8", - "Int8", - "Timestamp", - "Timestamp" - ] - }, - "nullable": [ - false - ] - }, - "hash": "96813c302ddd0c88c30ca845c668dcc47089bf02ae5dbf0f15eb0be64395d09f" -} diff --git a/rust/cloud-storage/.sqlx/query-96a2c0a064e56b4fd812c2768403fc086f4518149772d661222d54592df920d3.json b/rust/cloud-storage/.sqlx/query-96a2c0a064e56b4fd812c2768403fc086f4518149772d661222d54592df920d3.json deleted file mode 100644 index f884197d2e..0000000000 --- a/rust/cloud-storage/.sqlx/query-96a2c0a064e56b4fd812c2768403fc086f4518149772d661222d54592df920d3.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO document_sub_type (document_id, sub_type)\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "96a2c0a064e56b4fd812c2768403fc086f4518149772d661222d54592df920d3" -} diff --git a/rust/cloud-storage/.sqlx/query-96b75da06aef543dc7d626c98501bd176b609bdab2f96a13e2d035510a72eebb.json b/rust/cloud-storage/.sqlx/query-96b75da06aef543dc7d626c98501bd176b609bdab2f96a13e2d035510a72eebb.json deleted file mode 100644 index c170856c4b..0000000000 --- a/rust/cloud-storage/.sqlx/query-96b75da06aef543dc7d626c98501bd176b609bdab2f96a13e2d035510a72eebb.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Comment\" (\"threadId\", \"owner\", \"sender\", \"text\", \"createdAt\", \"updatedAt\", \"order\")\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Int8", - "Text", - "Text", - "Text", - "Timestamp", - "Timestamp", - "Int4" - ] - }, - "nullable": [ - false - ] - }, - "hash": "96b75da06aef543dc7d626c98501bd176b609bdab2f96a13e2d035510a72eebb" -} diff --git a/rust/cloud-storage/.sqlx/query-9728f991ee1e5bff78e52700ce2c4d2d8e8113701d39452faa3147bb18974926.json b/rust/cloud-storage/.sqlx/query-9728f991ee1e5bff78e52700ce2c4d2d8e8113701d39452faa3147bb18974926.json deleted file mode 100644 index efdf6f8f33..0000000000 --- a/rust/cloud-storage/.sqlx/query-9728f991ee1e5bff78e52700ce2c4d2d8e8113701d39452faa3147bb18974926.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE crm_contacts ct\n SET hidden = $3\n FROM crm_companies co\n WHERE ct.id = $1\n AND ct.company_id = co.id\n AND co.team_id = $2\n RETURNING ct.id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Bool" - ] - }, - "nullable": [ - false - ] - }, - "hash": "9728f991ee1e5bff78e52700ce2c4d2d8e8113701d39452faa3147bb18974926" -} diff --git a/rust/cloud-storage/.sqlx/query-973904cf0ce82830a1a4db5d5ef93577a02892254df31144b5df44bdc5b58381.json b/rust/cloud-storage/.sqlx/query-973904cf0ce82830a1a4db5d5ef93577a02892254df31144b5df44bdc5b58381.json deleted file mode 100644 index b166df2fe9..0000000000 --- a/rust/cloud-storage/.sqlx/query-973904cf0ce82830a1a4db5d5ef93577a02892254df31144b5df44bdc5b58381.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n ca.id,\n ca.\"entity_type\" as \"attachment_type: AttachmentType\",\n ca.\"entity_id\"::TEXT as \"attachment_id!\",\n ca.\"chatId\" as \"chat_id\",\n ca.\"messageId\" as \"message_id\"\n FROM\n \"ChatAttachment\" ca\n WHERE\n ca.\"messageId\" = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "attachment_type: AttachmentType", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "attachment_id!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "chat_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "message_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - null, - true, - true - ] - }, - "hash": "973904cf0ce82830a1a4db5d5ef93577a02892254df31144b5df44bdc5b58381" -} diff --git a/rust/cloud-storage/.sqlx/query-980f95d4b95f6a981b86bdbdda30b4b5ee7ee34505f206d0a6861cec41ef589a.json b/rust/cloud-storage/.sqlx/query-980f95d4b95f6a981b86bdbdda30b4b5ee7ee34505f206d0a6861cec41ef589a.json deleted file mode 100644 index 4145c5fb82..0000000000 --- a/rust/cloud-storage/.sqlx/query-980f95d4b95f6a981b86bdbdda30b4b5ee7ee34505f206d0a6861cec41ef589a.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n p.id,\n p.name,\n p.\"userId\" as user_id,\n p.\"parentId\" as parent_id,\n p.\"createdAt\"::timestamptz as created_at,\n p.\"updatedAt\"::timestamptz as updated_at,\n p.\"uploadRequestId\" as upload_request_id\n FROM \"Project\" p\n WHERE p.\"userId\" = $1 AND p.\"deletedAt\" IS NULL AND p.\"uploadPending\" = true AND p.\"parentId\" IS NULL\n ORDER BY p.\"updatedAt\" DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "parent_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "upload_request_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - null, - null, - true - ] - }, - "hash": "980f95d4b95f6a981b86bdbdda30b4b5ee7ee34505f206d0a6861cec41ef589a" -} diff --git a/rust/cloud-storage/.sqlx/query-98923878d16c2d5d2594120fe481fdeb1b2ff97c69fe26b5a09c82d393ce4010.json b/rust/cloud-storage/.sqlx/query-98923878d16c2d5d2594120fe481fdeb1b2ff97c69fe26b5a09c82d393ce4010.json deleted file mode 100644 index d193eb4c34..0000000000 --- a/rust/cloud-storage/.sqlx/query-98923878d16c2d5d2594120fe481fdeb1b2ff97c69fe26b5a09c82d393ce4010.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT d.device_endpoint\n FROM notification_user_device_registration d\n WHERE d.user_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "device_endpoint", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "98923878d16c2d5d2594120fe481fdeb1b2ff97c69fe26b5a09c82d393ce4010" -} diff --git a/rust/cloud-storage/.sqlx/query-989e8adb9e267d1400ad5cb3e0e4b3d4a434de5c66f3cbcadedc4c6f20769ade.json b/rust/cloud-storage/.sqlx/query-989e8adb9e267d1400ad5cb3e0e4b3d4a434de5c66f3cbcadedc4c6f20769ade.json deleted file mode 100644 index bad2cb0d0e..0000000000 --- a/rust/cloud-storage/.sqlx/query-989e8adb9e267d1400ad5cb3e0e4b3d4a434de5c66f3cbcadedc4c6f20769ade.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"SharePermission\" WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "989e8adb9e267d1400ad5cb3e0e4b3d4a434de5c66f3cbcadedc4c6f20769ade" -} diff --git a/rust/cloud-storage/.sqlx/query-98a5db6c9f4cdfa6f855406ad26a11600e5f84094b73f3ce359c48e60b6921be.json b/rust/cloud-storage/.sqlx/query-98a5db6c9f4cdfa6f855406ad26a11600e5f84094b73f3ce359c48e60b6921be.json deleted file mode 100644 index 936333e4c9..0000000000 --- a/rust/cloud-storage/.sqlx/query-98a5db6c9f4cdfa6f855406ad26a11600e5f84094b73f3ce359c48e60b6921be.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT t.id\n FROM crm_comment c\n JOIN crm_thread t ON t.id = c.thread_id\n WHERE c.id = $1\n AND c.deleted_at IS NULL\n AND (\n EXISTS (\n SELECT 1 FROM crm_companies co\n WHERE co.id = t.company_id\n AND co.team_id = $2\n AND ($3 OR co.hidden = FALSE)\n )\n OR EXISTS (\n SELECT 1 FROM crm_contacts ct\n JOIN crm_companies co2 ON co2.id = ct.company_id\n WHERE ct.id = t.contact_id\n AND co2.team_id = $2\n AND ($3 OR (ct.hidden = FALSE AND co2.hidden = FALSE))\n )\n )\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Bool" - ] - }, - "nullable": [ - false - ] - }, - "hash": "98a5db6c9f4cdfa6f855406ad26a11600e5f84094b73f3ce359c48e60b6921be" -} diff --git a/rust/cloud-storage/.sqlx/query-9921d35717a5c93783e3db8c1fd380459c4400902f4c3c86e3e2650613321a70.json b/rust/cloud-storage/.sqlx/query-9921d35717a5c93783e3db8c1fd380459c4400902f4c3c86e3e2650613321a70.json deleted file mode 100644 index 75bc1d69a3..0000000000 --- a/rust/cloud-storage/.sqlx/query-9921d35717a5c93783e3db8c1fd380459c4400902f4c3c86e3e2650613321a70.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE call_record_transcripts AS t\n SET custom_speaker = u.custom_speaker\n FROM UNNEST($2::text[], $3::text[]) AS u(diarized_speaker_id, custom_speaker)\n WHERE t.call_record_id = $1\n AND t.diarized_speaker_id = u.diarized_speaker_id\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "9921d35717a5c93783e3db8c1fd380459c4400902f4c3c86e3e2650613321a70" -} diff --git a/rust/cloud-storage/.sqlx/query-993f8bd336bc9ba45ab51edac700887af626bf74de28e395ab8a1875bc9fe9ac.json b/rust/cloud-storage/.sqlx/query-993f8bd336bc9ba45ab51edac700887af626bf74de28e395ab8a1875bc9fe9ac.json deleted file mode 100644 index 44028b170c..0000000000 --- a/rust/cloud-storage/.sqlx/query-993f8bd336bc9ba45ab51edac700887af626bf74de28e395ab8a1875bc9fe9ac.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id AS \"message_id!\",\n m.thread_id,\n m.sender_id AS \"sender_id!\",\n m.content AS \"content!\",\n m.created_at AS \"created_at!\",\n m.updated_at AS \"updated_at!\",\n m.deleted_at::timestamptz AS \"deleted_at?\",\n COALESCE(\n ARRAY(\n SELECT entity_type || ':' || entity_id\n FROM comms_entity_mentions em\n WHERE em.source_entity_type = 'message'\n AND em.source_entity_id = m.id::text\n ),\n '{}'::text[]\n ) AS \"mentions!\"\n FROM comms_messages m\n WHERE m.channel_id = $1\n AND m.deleted_at IS NULL\n ORDER BY m.created_at DESC\n LIMIT $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "deleted_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "mentions!", - "type_info": "TextArray" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Int8" - ] - }, - "nullable": [ - false, - true, - false, - false, - false, - false, - null, - null - ] - }, - "hash": "993f8bd336bc9ba45ab51edac700887af626bf74de28e395ab8a1875bc9fe9ac" -} diff --git a/rust/cloud-storage/.sqlx/query-9947668e4041d1e3297dce4942ca41a916397efdb2620e338a211f97751c0d89.json b/rust/cloud-storage/.sqlx/query-9947668e4041d1e3297dce4942ca41a916397efdb2620e338a211f97751c0d89.json deleted file mode 100644 index a215c3bde7..0000000000 --- a/rust/cloud-storage/.sqlx/query-9947668e4041d1e3297dce4942ca41a916397efdb2620e338a211f97751c0d89.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id\n FROM \"User\"\n WHERE \"macro_user_id\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "9947668e4041d1e3297dce4942ca41a916397efdb2620e338a211f97751c0d89" -} diff --git a/rust/cloud-storage/.sqlx/query-994b928d690be53173114c3aa76a66231fc7b960744db3830385a13a45a3ce8f.json b/rust/cloud-storage/.sqlx/query-994b928d690be53173114c3aa76a66231fc7b960744db3830385a13a45a3ce8f.json deleted file mode 100644 index 7e7bc07bf9..0000000000 --- a/rust/cloud-storage/.sqlx/query-994b928d690be53173114c3aa76a66231fc7b960744db3830385a13a45a3ce8f.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_sfs_mappings (source, destination)\n SELECT * FROM UNNEST($1::text[], $2::text[])\n ON CONFLICT (source) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "994b928d690be53173114c3aa76a66231fc7b960744db3830385a13a45a3ce8f" -} diff --git a/rust/cloud-storage/.sqlx/query-99c26d3fcc7cc1494cd3f8387e4f9fd70cd817602df9ad6d355b26e13b47553a.json b/rust/cloud-storage/.sqlx/query-99c26d3fcc7cc1494cd3f8387e4f9fd70cd817602df9ad6d355b26e13b47553a.json deleted file mode 100644 index 2b17a5a941..0000000000 --- a/rust/cloud-storage/.sqlx/query-99c26d3fcc7cc1494cd3f8387e4f9fd70cd817602df9ad6d355b26e13b47553a.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"User\"\n SET \"group\" = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Varchar", - "Text" - ] - }, - "nullable": [] - }, - "hash": "99c26d3fcc7cc1494cd3f8387e4f9fd70cd817602df9ad6d355b26e13b47553a" -} diff --git a/rust/cloud-storage/.sqlx/query-99f5d2da898d5e7f29f1966c51370af1692f03a0df09f0ee78a589158e8f51ee.json b/rust/cloud-storage/.sqlx/query-99f5d2da898d5e7f29f1966c51370af1692f03a0df09f0ee78a589158e8f51ee.json deleted file mode 100644 index 6ce1b7af93..0000000000 --- a/rust/cloud-storage/.sqlx/query-99f5d2da898d5e7f29f1966c51370af1692f03a0df09f0ee78a589158e8f51ee.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM \"InstructionsDocuments\" WHERE \"userId\" = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "99f5d2da898d5e7f29f1966c51370af1692f03a0df09f0ee78a589158e8f51ee" -} diff --git a/rust/cloud-storage/.sqlx/query-9a050086d79aa5be0e89a23048d2eb45a7f04dcc2fbdceed41497048a2410ce5.json b/rust/cloud-storage/.sqlx/query-9a050086d79aa5be0e89a23048d2eb45a7f04dcc2fbdceed41497048a2410ce5.json deleted file mode 100644 index 1b55805b1b..0000000000 --- a/rust/cloud-storage/.sqlx/query-9a050086d79aa5be0e89a23048d2eb45a7f04dcc2fbdceed41497048a2410ce5.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n cm.id AS \"id!\",\n cm.content,\n cm.role,\n cm.model,\n COALESCE(\n (\n SELECT json_agg(\n json_build_object(\n 'entity_type', ca.\"entity_type\",\n 'entity_id', ca.\"entity_id\"::TEXT\n )\n )\n FROM \"ChatAttachment\" ca\n WHERE ca.\"messageId\" = cm.id\n ),\n '[]'::json\n ) AS attachments\n FROM\n \"ChatMessage\" cm\n WHERE\n cm.\"chatId\" = $1\n ORDER BY\n cm.\"createdAt\" ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "content", - "type_info": "Jsonb" - }, - { - "ordinal": 2, - "name": "role", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "model", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "attachments", - "type_info": "Json" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - null - ] - }, - "hash": "9a050086d79aa5be0e89a23048d2eb45a7f04dcc2fbdceed41497048a2410ce5" -} diff --git a/rust/cloud-storage/.sqlx/query-9a32d4826e372e762f828cb5aed93f60b6731fa2c553f3fda711cf72f1574fae.json b/rust/cloud-storage/.sqlx/query-9a32d4826e372e762f828cb5aed93f60b6731fa2c553f3fda711cf72f1574fae.json deleted file mode 100644 index 0e586ce9a4..0000000000 --- a/rust/cloud-storage/.sqlx/query-9a32d4826e372e762f828cb5aed93f60b6731fa2c553f3fda711cf72f1574fae.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT name FROM comms_channels WHERE id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - true - ] - }, - "hash": "9a32d4826e372e762f828cb5aed93f60b6731fa2c553f3fda711cf72f1574fae" -} diff --git a/rust/cloud-storage/.sqlx/query-9a4d3cd17bbfd022b2097a3c661cdf23a4a1c1d900d9a0267b1b38a054c49dc3.json b/rust/cloud-storage/.sqlx/query-9a4d3cd17bbfd022b2097a3c661cdf23a4a1c1d900d9a0267b1b38a054c49dc3.json deleted file mode 100644 index 9256ea8725..0000000000 --- a/rust/cloud-storage/.sqlx/query-9a4d3cd17bbfd022b2097a3c661cdf23a4a1c1d900d9a0267b1b38a054c49dc3.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n t.id,\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n -- A thread in \"Other\" can still be \"Important\", so we must perform the check.\n (\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m_imp.thread_id = t.id\n AND l.link_id = t.link_id\n AND l.name = 'IMPORTANT'\n )\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Efficiently find, sort, and limit the top N+1 threads that qualify for the \"Other\" inbox.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.inbox_visible,\n t.is_read,\n t.project_id,\n t.latest_non_spam_message_ts AS created_at,\n t.latest_non_spam_message_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_non_spam_message_ts)\n ELSE t.latest_non_spam_message_ts\n END AS effective_ts\n FROM email_threads t\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n t.link_id = ANY($1)\n AND t.latest_non_spam_message_ts IS NOT NULL\n -- Inclusion Criteria: Must have a category label.\n AND EXISTS (\n SELECT 1 FROM email_messages m JOIN email_message_labels ml ON m.id = ml.message_id JOIN email_labels l ON ml.label_id = l.id\n WHERE m.thread_id = t.id AND l.link_id = t.link_id AND l.name IN ('CATEGORY_PROMOTIONS', 'CATEGORY_SOCIAL', 'CATEGORY_FORUMS')\n )\n -- ****** CORRECTED EXCLUSION CRITERIA ******\n -- This now matches the logic of your original query, which did NOT filter out 'INBOX' or 'IMPORTANT'.\n AND NOT EXISTS (\n SELECT 1 FROM email_messages m JOIN email_message_labels ml ON m.id = ml.message_id JOIN email_labels l ON ml.label_id = l.id\n WHERE m.thread_id = t.id AND l.link_id = t.link_id AND l.name IN ('SPAM', 'TRASH', 'DRAFT')\n )\n \n AND (($3::timestamptz IS NULL) OR (\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_non_spam_message_ts)\n ELSE t.latest_non_spam_message_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find its latest non-spam/trash message for the preview.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.is_draft,\n m.from_contact_id,\n m.from_name\n FROM email_messages m\n WHERE m.thread_id = t.id\n AND m.is_draft = FALSE\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id AND l.link_id = t.link_id AND l.name IN ('SPAM', 'TRASH')\n )\n ORDER BY m.internal_date_ts DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n ORDER BY t.effective_ts DESC, t.updated_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "inbox_visible", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "sort_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "viewed_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "name?", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "snippet?", - "type_info": "Text" - }, - { - "ordinal": 11, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 12, - "name": "is_important!", - "type_info": "Bool" - }, - { - "ordinal": 13, - "name": "sender_email?", - "type_info": "Varchar" - }, - { - "ordinal": 14, - "name": "sender_name?", - "type_info": "Varchar" - }, - { - "ordinal": 15, - "name": "sender_photo_url?", - "type_info": "Text" - }, - { - "ordinal": 16, - "name": "owner_id!", - "type_info": "Text" - }, - { - "ordinal": 17, - "name": "link_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "Int8", - "Timestamptz", - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - true, - false, - false, - null, - true, - true, - true, - false, - true, - true, - false, - null, - false, - null, - true, - false, - false - ] - }, - "hash": "9a4d3cd17bbfd022b2097a3c661cdf23a4a1c1d900d9a0267b1b38a054c49dc3" -} diff --git a/rust/cloud-storage/.sqlx/query-9a85a116815c36f9cbde5a097e39e0547ed654489c726b44faf23524f148ec86.json b/rust/cloud-storage/.sqlx/query-9a85a116815c36f9cbde5a097e39e0547ed654489c726b44faf23524f148ec86.json deleted file mode 100644 index 85472bb383..0000000000 --- a/rust/cloud-storage/.sqlx/query-9a85a116815c36f9cbde5a097e39e0547ed654489c726b44faf23524f148ec86.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT reference, \"documentId\"\n FROM \"DocumentTextParts\"\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "reference", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "documentId", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "9a85a116815c36f9cbde5a097e39e0547ed654489c726b44faf23524f148ec86" -} diff --git a/rust/cloud-storage/.sqlx/query-9ad1a505be647e76d4282b62012cb223cda097f8b2d35d22f446f873960480c0.json b/rust/cloud-storage/.sqlx/query-9ad1a505be647e76d4282b62012cb223cda097f8b2d35d22f446f873960480c0.json deleted file mode 100644 index d61b8cf649..0000000000 --- a/rust/cloud-storage/.sqlx/query-9ad1a505be647e76d4282b62012cb223cda097f8b2d35d22f446f873960480c0.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO channel_notification_email_sent (user_id, channel_id)\n SELECT $1, c FROM UNNEST($2::uuid[]) AS c\n ON CONFLICT (channel_id, user_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "UuidArray" - ] - }, - "nullable": [] - }, - "hash": "9ad1a505be647e76d4282b62012cb223cda097f8b2d35d22f446f873960480c0" -} diff --git a/rust/cloud-storage/.sqlx/query-9afc6f436aedd226ed0d6bf85de64c5ff57853c93ff00f768b49bf79f198590b.json b/rust/cloud-storage/.sqlx/query-9afc6f436aedd226ed0d6bf85de64c5ff57853c93ff00f768b49bf79f198590b.json deleted file mode 100644 index 154f82bfc7..0000000000 --- a/rust/cloud-storage/.sqlx/query-9afc6f436aedd226ed0d6bf85de64c5ff57853c93ff00f768b49bf79f198590b.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n a.id as \"id!: Uuid\",\n a.user_id as \"user_id!: String\",\n a.channel_id as \"channel_id!: Uuid\",\n a.viewed_at as \"viewed_at?: DateTime\",\n a.interacted_at as \"interacted_at?: DateTime\",\n a.created_at as \"created_at!: DateTime\",\n a.updated_at as \"updated_at!: DateTime\"\n FROM comms_activity a\n WHERE a.user_id = $1\n ORDER BY \n GREATEST(\n COALESCE(a.viewed_at, '1970-01-01'::timestamp),\n COALESCE(a.interacted_at, '1970-01-01'::timestamp)\n ) DESC,\n a.created_at DESC\n LIMIT 100\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id!: String", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "channel_id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "viewed_at?: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "interacted_at?: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 5, - "name": "created_at!: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 6, - "name": "updated_at!: DateTime", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - false, - false - ] - }, - "hash": "9afc6f436aedd226ed0d6bf85de64c5ff57853c93ff00f768b49bf79f198590b" -} diff --git a/rust/cloud-storage/.sqlx/query-9b7bc338faac59d4da4d6ccdc478ba67be32356a3b2b62660982ca8932a0d2f7.json b/rust/cloud-storage/.sqlx/query-9b7bc338faac59d4da4d6ccdc478ba67be32356a3b2b62660982ca8932a0d2f7.json deleted file mode 100644 index c83112aadc..0000000000 --- a/rust/cloud-storage/.sqlx/query-9b7bc338faac59d4da4d6ccdc478ba67be32356a3b2b62660982ca8932a0d2f7.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "TRUNCATE TABLE task_duplicate_embedding", - "describe": { - "columns": [], - "parameters": { - "Left": [] - }, - "nullable": [] - }, - "hash": "9b7bc338faac59d4da4d6ccdc478ba67be32356a3b2b62660982ca8932a0d2f7" -} diff --git a/rust/cloud-storage/.sqlx/query-9b83758d2e1a6855b03ceee2f0bebf87a5152702bb5b9ffb2b817ad93c0635ea.json b/rust/cloud-storage/.sqlx/query-9b83758d2e1a6855b03ceee2f0bebf87a5152702bb5b9ffb2b817ad93c0635ea.json deleted file mode 100644 index afc75443c3..0000000000 --- a/rust/cloud-storage/.sqlx/query-9b83758d2e1a6855b03ceee2f0bebf87a5152702bb5b9ffb2b817ad93c0635ea.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentInstanceModificationData\" (\"documentInstanceId\", \"modificationData\")\n VALUES ($1, $2);\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int8", - "Jsonb" - ] - }, - "nullable": [] - }, - "hash": "9b83758d2e1a6855b03ceee2f0bebf87a5152702bb5b9ffb2b817ad93c0635ea" -} diff --git a/rust/cloud-storage/.sqlx/query-9bb89d78cff9b84ca91fa891dd3e61c04906fa841a9d21c29127d03797e98186.json b/rust/cloud-storage/.sqlx/query-9bb89d78cff9b84ca91fa891dd3e61c04906fa841a9d21c29127d03797e98186.json deleted file mode 100644 index 50d679e8f6..0000000000 --- a/rust/cloud-storage/.sqlx/query-9bb89d78cff9b84ca91fa891dd3e61c04906fa841a9d21c29127d03797e98186.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE \"Document\" SET \"projectId\"=$2 WHERE \"id\"=$1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "9bb89d78cff9b84ca91fa891dd3e61c04906fa841a9d21c29127d03797e98186" -} diff --git a/rust/cloud-storage/.sqlx/query-9c4e25c3a319934aa1bbf165f19683f34a3f5684edaa965cbdb1b09e422cab8b.json b/rust/cloud-storage/.sqlx/query-9c4e25c3a319934aa1bbf165f19683f34a3f5684edaa965cbdb1b09e422cab8b.json deleted file mode 100644 index 5363a116e1..0000000000 --- a/rust/cloud-storage/.sqlx/query-9c4e25c3a319934aa1bbf165f19683f34a3f5684edaa965cbdb1b09e422cab8b.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO user_notification_item_unsubscribe (user_id, item_id, item_type)\n VALUES ($1, $2, $3)\n ON CONFLICT (user_id, item_id) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "9c4e25c3a319934aa1bbf165f19683f34a3f5684edaa965cbdb1b09e422cab8b" -} diff --git a/rust/cloud-storage/.sqlx/query-9c81b4664d019cc6242259ff81d5abe2ad4c2f28d0f4cea773ef7b4267eb0e81.json b/rust/cloud-storage/.sqlx/query-9c81b4664d019cc6242259ff81d5abe2ad4c2f28d0f4cea773ef7b4267eb0e81.json deleted file mode 100644 index 4519ec280c..0000000000 --- a/rust/cloud-storage/.sqlx/query-9c81b4664d019cc6242259ff81d5abe2ad4c2f28d0f4cea773ef7b4267eb0e81.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE macro_user\n SET has_trialed = $2\n WHERE email = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "9c81b4664d019cc6242259ff81d5abe2ad4c2f28d0f4cea773ef7b4267eb0e81" -} diff --git a/rust/cloud-storage/.sqlx/query-9cbb599d24ea1f22756926601cb3dc157a2a327ce9aea06a1a772c1741abcf9a.json b/rust/cloud-storage/.sqlx/query-9cbb599d24ea1f22756926601cb3dc157a2a327ce9aea06a1a772c1741abcf9a.json deleted file mode 100644 index 2fd40ad53a..0000000000 --- a/rust/cloud-storage/.sqlx/query-9cbb599d24ea1f22756926601cb3dc157a2a327ce9aea06a1a772c1741abcf9a.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.id as user_id,\n u.email as user_email,\n array_agg(DISTINCT rop.\"permissionId\") AS permissions\n FROM \"User\" u\n LEFT JOIN \"RolesOnUsers\" rou ON rou.\"userId\" = u.id\n LEFT JOIN \"Role\" r ON r.id = rou.\"roleId\"\n LEFT JOIN \"RolesOnPermissions\" rop ON rop.\"roleId\" = r.id\n WHERE u.\"organizationId\" = $1\n GROUP BY u.id\n LIMIT $2\n OFFSET $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "user_email", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "permissions", - "type_info": "TextArray" - } - ], - "parameters": { - "Left": [ - "Int4", - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false, - null - ] - }, - "hash": "9cbb599d24ea1f22756926601cb3dc157a2a327ce9aea06a1a772c1741abcf9a" -} diff --git a/rust/cloud-storage/.sqlx/query-9cd40fbb1ade51e9e0d49792839d1a363cada017252a6f653c2272608189bcc4.json b/rust/cloud-storage/.sqlx/query-9cd40fbb1ade51e9e0d49792839d1a363cada017252a6f653c2272608189bcc4.json deleted file mode 100644 index 9d717fa5f9..0000000000 --- a/rust/cloud-storage/.sqlx/query-9cd40fbb1ade51e9e0d49792839d1a363cada017252a6f653c2272608189bcc4.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT property_definition_id, values\n FROM entity_properties\n WHERE entity_id = $1\n AND entity_type = 'TASK'\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "property_definition_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "values", - "type_info": "Jsonb" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "9cd40fbb1ade51e9e0d49792839d1a363cada017252a6f653c2272608189bcc4" -} diff --git a/rust/cloud-storage/.sqlx/query-9cf47f4d88c29f80e8698b91319d81031064da7fa08afec7364df40546b1ac0c.json b/rust/cloud-storage/.sqlx/query-9cf47f4d88c29f80e8698b91319d81031064da7fa08afec7364df40546b1ac0c.json deleted file mode 100644 index befc98605f..0000000000 --- a/rust/cloud-storage/.sqlx/query-9cf47f4d88c29f80e8698b91319d81031064da7fa08afec7364df40546b1ac0c.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_messages\n SET\n replying_to_id = update_data.new_replying_to_id,\n updated_at = NOW()\n FROM\n UNNEST($1::uuid[], $2::uuid[])\n AS update_data(message_id, new_replying_to_id)\n WHERE\n email_messages.id = update_data.message_id\n AND email_messages.link_id = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "UuidArray", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "9cf47f4d88c29f80e8698b91319d81031064da7fa08afec7364df40546b1ac0c" -} diff --git a/rust/cloud-storage/.sqlx/query-9d8ebf3f5901badeacb46837f0a2222f49274e9e72dbd25cf9c197b4f97654a5.json b/rust/cloud-storage/.sqlx/query-9d8ebf3f5901badeacb46837f0a2222f49274e9e72dbd25cf9c197b4f97654a5.json deleted file mode 100644 index 05f7b62da7..0000000000 --- a/rust/cloud-storage/.sqlx/query-9d8ebf3f5901badeacb46837f0a2222f49274e9e72dbd25cf9c197b4f97654a5.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, owner FROM \"Document\" WHERE \"projectId\" = ANY($1) AND \"deletedAt\" IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "9d8ebf3f5901badeacb46837f0a2222f49274e9e72dbd25cf9c197b4f97654a5" -} diff --git a/rust/cloud-storage/.sqlx/query-9e0a5d81fc7d5897a95ede42af6d3495c14fbf4095333a1f5632f836b365065f.json b/rust/cloud-storage/.sqlx/query-9e0a5d81fc7d5897a95ede42af6d3495c14fbf4095333a1f5632f836b365065f.json deleted file mode 100644 index 0ddd9840fc..0000000000 --- a/rust/cloud-storage/.sqlx/query-9e0a5d81fc7d5897a95ede42af6d3495c14fbf4095333a1f5632f836b365065f.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id\n FROM\n \"Chat\" c\n WHERE\n c.id = ANY($1)\n AND c.\"userId\" = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "9e0a5d81fc7d5897a95ede42af6d3495c14fbf4095333a1f5632f836b365065f" -} diff --git a/rust/cloud-storage/.sqlx/query-9e45ba072fbc5266f7edba0fecb99d19192e10139d6ea089be4a3a4a7923361c.json b/rust/cloud-storage/.sqlx/query-9e45ba072fbc5266f7edba0fecb99d19192e10139d6ea089be4a3a4a7923361c.json deleted file mode 100644 index 357e50473e..0000000000 --- a/rust/cloud-storage/.sqlx/query-9e45ba072fbc5266f7edba0fecb99d19192e10139d6ea089be4a3a4a7923361c.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO property_options (\n id,\n property_definition_id,\n display_order,\n number_value,\n string_value\n )\n VALUES ($1, $2, $3, $4, $5)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Int4", - "Float8", - "Text" - ] - }, - "nullable": [] - }, - "hash": "9e45ba072fbc5266f7edba0fecb99d19192e10139d6ea089be4a3a4a7923361c" -} diff --git a/rust/cloud-storage/.sqlx/query-9e8c46a871c582ee7016d87a3b0e3494eae0e23c6dbbbccfb139da68193690c7.json b/rust/cloud-storage/.sqlx/query-9e8c46a871c582ee7016d87a3b0e3494eae0e23c6dbbbccfb139da68193690c7.json deleted file mode 100644 index cc5277d1eb..0000000000 --- a/rust/cloud-storage/.sqlx/query-9e8c46a871c582ee7016d87a3b0e3494eae0e23c6dbbbccfb139da68193690c7.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE foreign_entity\n SET foreign_entity_id = COALESCE($2::text, foreign_entity_id),\n foreign_entity_source = COALESCE($3::text, foreign_entity_source),\n metadata = COALESCE($4::jsonb, metadata),\n stored_for_id = COALESCE($5::text, stored_for_id),\n stored_for_auth_entity = COALESCE($6::text, stored_for_auth_entity),\n updated_at = NOW()\n WHERE id = $1\n RETURNING\n id as \"id!: Uuid\",\n foreign_entity_id as \"foreign_entity_id!: String\",\n foreign_entity_source as \"foreign_entity_source!: String\",\n metadata as \"metadata!: serde_json::Value\",\n stored_for_id as \"stored_for_id!: String\",\n stored_for_auth_entity as \"stored_for_auth_entity!: String\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "foreign_entity_id!: String", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "foreign_entity_source!: String", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "metadata!: serde_json::Value", - "type_info": "Jsonb" - }, - { - "ordinal": 4, - "name": "stored_for_id!: String", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "stored_for_auth_entity!: String", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "created_at!: DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at!: DateTime", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Jsonb", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "9e8c46a871c582ee7016d87a3b0e3494eae0e23c6dbbbccfb139da68193690c7" -} diff --git a/rust/cloud-storage/.sqlx/query-9e998a79214f591775e9d6711c9086235243eae535cc42bb0908210b54b916d8.json b/rust/cloud-storage/.sqlx/query-9e998a79214f591775e9d6711c9086235243eae535cc42bb0908210b54b916d8.json deleted file mode 100644 index d07bcde732..0000000000 --- a/rust/cloud-storage/.sqlx/query-9e998a79214f591775e9d6711c9086235243eae535cc42bb0908210b54b916d8.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"macro_user_id\"\n FROM \"User\"\n WHERE \"email\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "9e998a79214f591775e9d6711c9086235243eae535cc42bb0908210b54b916d8" -} diff --git a/rust/cloud-storage/.sqlx/query-9f595d4ae9aa9111c316efa5d4be2b8e4a6cc69374b90600457a32b14a91ae61.json b/rust/cloud-storage/.sqlx/query-9f595d4ae9aa9111c316efa5d4be2b8e4a6cc69374b90600457a32b14a91ae61.json deleted file mode 100644 index 2620ca0739..0000000000 --- a/rust/cloud-storage/.sqlx/query-9f595d4ae9aa9111c316efa5d4be2b8e4a6cc69374b90600457a32b14a91ae61.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT p.id\n FROM \"Project\" p\n WHERE p.\"deletedAt\" IS NOT NULL AND p.\"deletedAt\" <= $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Timestamp" - ] - }, - "nullable": [ - false - ] - }, - "hash": "9f595d4ae9aa9111c316efa5d4be2b8e4a6cc69374b90600457a32b14a91ae61" -} diff --git a/rust/cloud-storage/.sqlx/query-9f5c0108230743e209902d457637931a2cbc77192ce513473a4f5e3498b8533c.json b/rust/cloud-storage/.sqlx/query-9f5c0108230743e209902d457637931a2cbc77192ce513473a4f5e3498b8533c.json deleted file mode 100644 index e8b14cc25a..0000000000 --- a/rust/cloud-storage/.sqlx/query-9f5c0108230743e209902d457637931a2cbc77192ce513473a4f5e3498b8533c.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n ml.message_id,\n l.id,\n l.link_id,\n l.provider_label_id,\n l.name,\n l.created_at,\n l.message_list_visibility as \"message_list_visibility: _\",\n l.label_list_visibility as \"label_list_visibility: _\",\n l.type as \"type_: _\"\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = ANY($1)\n ORDER BY ml.message_id, l.name\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "provider_label_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "message_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_message_list_visibility_enum", - "kind": { - "Enum": [ - "Show", - "Hide" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "label_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_label_list_visibility_enum", - "kind": { - "Enum": [ - "LabelShow", - "LabelShowIfUnread", - "LabelHide" - ] - } - } - } - }, - { - "ordinal": 8, - "name": "type_: _", - "type_info": { - "Custom": { - "name": "email_label_type_enum", - "kind": { - "Enum": [ - "System", - "User" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "9f5c0108230743e209902d457637931a2cbc77192ce513473a4f5e3498b8533c" -} diff --git a/rust/cloud-storage/.sqlx/query-a0046a263c572915a8e14a8ac70479f1ba89549f1930f571bf278fcfe259cfd1.json b/rust/cloud-storage/.sqlx/query-a0046a263c572915a8e14a8ac70479f1ba89549f1930f571bf278fcfe259cfd1.json deleted file mode 100644 index dead84e7bf..0000000000 --- a/rust/cloud-storage/.sqlx/query-a0046a263c572915a8e14a8ac70479f1ba89549f1930f571bf278fcfe259cfd1.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id, device_endpoint, device_type as \"device_type: DbDeviceType\"\n FROM notification_user_device_registration\n WHERE user_id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "device_endpoint", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "device_type: DbDeviceType", - "type_info": { - "Custom": { - "name": "notification_device_type_option", - "kind": { - "Enum": [ - "ios", - "android", - "iosvoip" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "a0046a263c572915a8e14a8ac70479f1ba89549f1930f571bf278fcfe259cfd1" -} diff --git a/rust/cloud-storage/.sqlx/query-a080f5686385b0b8f5b10542781756629b2a2571db10a385a0d3559f64481f59.json b/rust/cloud-storage/.sqlx/query-a080f5686385b0b8f5b10542781756629b2a2571db10a385a0d3559f64481f59.json deleted file mode 100644 index f2cc72d282..0000000000 --- a/rust/cloud-storage/.sqlx/query-a080f5686385b0b8f5b10542781756629b2a2571db10a385a0d3559f64481f59.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"EmailThreadPermission\" (\"threadId\", \"sharePermissionId\", \"userId\")\n VALUES ($1, $2, $3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "a080f5686385b0b8f5b10542781756629b2a2571db10a385a0d3559f64481f59" -} diff --git a/rust/cloud-storage/.sqlx/query-a0ccb1b43344dc0501f538d62f7b3209dfe7e2e60fa1396cfb3efff85e9d8c4d.json b/rust/cloud-storage/.sqlx/query-a0ccb1b43344dc0501f538d62f7b3209dfe7e2e60fa1396cfb3efff85e9d8c4d.json deleted file mode 100644 index 6b155d41f0..0000000000 --- a/rust/cloud-storage/.sqlx/query-a0ccb1b43344dc0501f538d62f7b3209dfe7e2e60fa1396cfb3efff85e9d8c4d.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT memory, updated_at as \"updated_at!\"\n FROM memory\n WHERE user_id = $1\n ORDER BY updated_at DESC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "memory", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "updated_at!", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "a0ccb1b43344dc0501f538d62f7b3209dfe7e2e60fa1396cfb3efff85e9d8c4d" -} diff --git a/rust/cloud-storage/.sqlx/query-a0e0e46ab257c9dd4285a6494f7b9fcc32c2a19dd97678335c04dab4739024d4.json b/rust/cloud-storage/.sqlx/query-a0e0e46ab257c9dd4285a6494f7b9fcc32c2a19dd97678335c04dab4739024d4.json deleted file mode 100644 index bdff179616..0000000000 --- a/rust/cloud-storage/.sqlx/query-a0e0e46ab257c9dd4285a6494f7b9fcc32c2a19dd97678335c04dab4739024d4.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Document\" SET \"projectId\" = NULL WHERE \"id\" = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "a0e0e46ab257c9dd4285a6494f7b9fcc32c2a19dd97678335c04dab4739024d4" -} diff --git a/rust/cloud-storage/.sqlx/query-a10bb7f95f88136b0bdf505b0338c8a87045ca5aa3d85cefbba8111c65892870.json b/rust/cloud-storage/.sqlx/query-a10bb7f95f88136b0bdf505b0338c8a87045ca5aa3d85cefbba8111c65892870.json deleted file mode 100644 index 49be80e7ce..0000000000 --- a/rust/cloud-storage/.sqlx/query-a10bb7f95f88136b0bdf505b0338c8a87045ca5aa3d85cefbba8111c65892870.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO crm_companies (team_id, first_interaction, last_interaction)\n VALUES ($1, $2, $3)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Timestamptz", - "Timestamptz" - ] - }, - "nullable": [ - false - ] - }, - "hash": "a10bb7f95f88136b0bdf505b0338c8a87045ca5aa3d85cefbba8111c65892870" -} diff --git a/rust/cloud-storage/.sqlx/query-a119f354b9c86006d705ba3190ae786b27205399c3295d82c636d07d7308bcf0.json b/rust/cloud-storage/.sqlx/query-a119f354b9c86006d705ba3190ae786b27205399c3295d82c636d07d7308bcf0.json deleted file mode 100644 index 3e60b22c3a..0000000000 --- a/rust/cloud-storage/.sqlx/query-a119f354b9c86006d705ba3190ae786b27205399c3295d82c636d07d7308bcf0.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO crm_contacts (company_id, email, name, first_interaction, last_interaction, hidden)\n VALUES ($1, $2, $3, $4, $5, $7)\n ON CONFLICT (company_id, email) DO UPDATE\n SET name = COALESCE(crm_contacts.name, EXCLUDED.name),\n updated_at = now(),\n first_interaction = CASE\n WHEN $6 THEN LEAST(crm_contacts.first_interaction, EXCLUDED.first_interaction)\n ELSE crm_contacts.first_interaction\n END,\n last_interaction = GREATEST(crm_contacts.last_interaction, EXCLUDED.last_interaction)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Timestamptz", - "Timestamptz", - "Bool", - "Bool" - ] - }, - "nullable": [ - false - ] - }, - "hash": "a119f354b9c86006d705ba3190ae786b27205399c3295d82c636d07d7308bcf0" -} diff --git a/rust/cloud-storage/.sqlx/query-a13fae598b8b785a7f516d7d4fdf91510017a27cd442f5693c5777ddc64d1c9b.json b/rust/cloud-storage/.sqlx/query-a13fae598b8b785a7f516d7d4fdf91510017a27cd442f5693c5777ddc64d1c9b.json deleted file mode 100644 index 11964cca0f..0000000000 --- a/rust/cloud-storage/.sqlx/query-a13fae598b8b785a7f516d7d4fdf91510017a27cd442f5693c5777ddc64d1c9b.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT DISTINCT\n d.\"documentId\",\n LENGTH(REGEXP_REPLACE(d.\"content\", '\\s', '', 'g')) AS content_length\n FROM\n \"DocumentText\" d\n WHERE\n d.\"documentId\" = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "documentId", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "content_length", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - null - ] - }, - "hash": "a13fae598b8b785a7f516d7d4fdf91510017a27cd442f5693c5777ddc64d1c9b" -} diff --git a/rust/cloud-storage/.sqlx/query-a17f9063c77c648ab667942e9e6402ddd6d9b5adcde3a8b55c19c649ac3d5a18.json b/rust/cloud-storage/.sqlx/query-a17f9063c77c648ab667942e9e6402ddd6d9b5adcde3a8b55c19c649ac3d5a18.json deleted file mode 100644 index 1c4982322c..0000000000 --- a/rust/cloud-storage/.sqlx/query-a17f9063c77c648ab667942e9e6402ddd6d9b5adcde3a8b55c19c649ac3d5a18.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE call_records\n SET preview_url = $2\n WHERE recording_key = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "a17f9063c77c648ab667942e9e6402ddd6d9b5adcde3a8b55c19c649ac3d5a18" -} diff --git a/rust/cloud-storage/.sqlx/query-a1936db1ca47241996be534e0e64bb36b63fabbaf3e826459537e089ed3c19a7.json b/rust/cloud-storage/.sqlx/query-a1936db1ca47241996be534e0e64bb36b63fabbaf3e826459537e089ed3c19a7.json deleted file mode 100644 index 8a9fd5ece9..0000000000 --- a/rust/cloud-storage/.sqlx/query-a1936db1ca47241996be534e0e64bb36b63fabbaf3e826459537e089ed3c19a7.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT stripe_customer_id FROM macro_user\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "stripe_customer_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "a1936db1ca47241996be534e0e64bb36b63fabbaf3e826459537e089ed3c19a7" -} diff --git a/rust/cloud-storage/.sqlx/query-a1bf47e0cd99428ebbd99069e9ed4fdcdb3aaeb946ea3e5ca94dc58050ca7d97.json b/rust/cloud-storage/.sqlx/query-a1bf47e0cd99428ebbd99069e9ed4fdcdb3aaeb946ea3e5ca94dc58050ca7d97.json deleted file mode 100644 index a20997623f..0000000000 --- a/rust/cloud-storage/.sqlx/query-a1bf47e0cd99428ebbd99069e9ed4fdcdb3aaeb946ea3e5ca94dc58050ca7d97.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Project\" SET \"deletedAt\" = $2 WHERE id = ANY($1);\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "Timestamp" - ] - }, - "nullable": [] - }, - "hash": "a1bf47e0cd99428ebbd99069e9ed4fdcdb3aaeb946ea3e5ca94dc58050ca7d97" -} diff --git a/rust/cloud-storage/.sqlx/query-a1f3c98d938438393223aa8bde6c115cd53ef8d352740fbcaff2f3e53a630295.json b/rust/cloud-storage/.sqlx/query-a1f3c98d938438393223aa8bde6c115cd53ef8d352740fbcaff2f3e53a630295.json deleted file mode 100644 index a7e9a94f7e..0000000000 --- a/rust/cloud-storage/.sqlx/query-a1f3c98d938438393223aa8bde6c115cd53ef8d352740fbcaff2f3e53a630295.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_message_labels\n WHERE message_id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "a1f3c98d938438393223aa8bde6c115cd53ef8d352740fbcaff2f3e53a630295" -} diff --git a/rust/cloud-storage/.sqlx/query-a2079ac110ef2d83a92a7c759540c373e29c8ff79ed52417fdeeb4de8fe00782.json b/rust/cloud-storage/.sqlx/query-a2079ac110ef2d83a92a7c759540c373e29c8ff79ed52417fdeeb4de8fe00782.json deleted file mode 100644 index 1699281ff6..0000000000 --- a/rust/cloud-storage/.sqlx/query-a2079ac110ef2d83a92a7c759540c373e29c8ff79ed52417fdeeb4de8fe00782.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChannelSharePermission\" (\"share_permission_id\", \"channel_id\", \"access_level\")\n SELECT $1, channel_id, access_level::\"AccessLevel\"\n FROM UNNEST($2::text[], $3::text[]) AS t(channel_id, access_level)\n ON CONFLICT (\"share_permission_id\", \"channel_id\") \n DO UPDATE SET \"access_level\" = EXCLUDED.\"access_level\"\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "a2079ac110ef2d83a92a7c759540c373e29c8ff79ed52417fdeeb4de8fe00782" -} diff --git a/rust/cloud-storage/.sqlx/query-a22651a2cad9617ad15c9fcd80ff929750755818869e48118cc0f91187049afe.json b/rust/cloud-storage/.sqlx/query-a22651a2cad9617ad15c9fcd80ff929750755818869e48118cc0f91187049afe.json deleted file mode 100644 index 59afd3022e..0000000000 --- a/rust/cloud-storage/.sqlx/query-a22651a2cad9617ad15c9fcd80ff929750755818869e48118cc0f91187049afe.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id\n FROM email_labels\n WHERE link_id = ANY($1) AND name = 'TRASH'\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "a22651a2cad9617ad15c9fcd80ff929750755818869e48118cc0f91187049afe" -} diff --git a/rust/cloud-storage/.sqlx/query-a277974b231f69f2a2912fb1634affdf67114b90d5d398d16dec2f801aabdda8.json b/rust/cloud-storage/.sqlx/query-a277974b231f69f2a2912fb1634affdf67114b90d5d398d16dec2f801aabdda8.json deleted file mode 100644 index b504b24713..0000000000 --- a/rust/cloud-storage/.sqlx/query-a277974b231f69f2a2912fb1634affdf67114b90d5d398d16dec2f801aabdda8.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n a.id as \"id!: Uuid\",\n a.user_id as \"user_id!: String\",\n a.channel_id as \"channel_id!: Uuid\",\n a.viewed_at as \"viewed_at?: DateTime\",\n a.interacted_at as \"interacted_at?: DateTime\",\n a.created_at as \"created_at!: DateTime\",\n a.updated_at as \"updated_at!: DateTime\"\n FROM comms_activity a\n WHERE channel_id = $1 AND user_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id!: String", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "channel_id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "viewed_at?: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "interacted_at?: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 5, - "name": "created_at!: DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 6, - "name": "updated_at!: DateTime", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - false, - false - ] - }, - "hash": "a277974b231f69f2a2912fb1634affdf67114b90d5d398d16dec2f801aabdda8" -} diff --git a/rust/cloud-storage/.sqlx/query-a27ad96e62764cad74a23addabe461a1b8aa81a865bf1af5434d5469efa44f76.json b/rust/cloud-storage/.sqlx/query-a27ad96e62764cad74a23addabe461a1b8aa81a865bf1af5434d5469efa44f76.json deleted file mode 100644 index d46f0a6f31..0000000000 --- a/rust/cloud-storage/.sqlx/query-a27ad96e62764cad74a23addabe461a1b8aa81a865bf1af5434d5469efa44f76.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"PdfPlaceableCommentAnchor\" (\"uuid\", \"documentId\", \"owner\", \"page\", \"originalPage\", \"originalIndex\", \"shouldLockOnSave\", \"xPct\", \"yPct\", \"widthPct\", \"heightPct\", \"rotation\", \"threadId\", \"wasEdited\", \"wasDeleted\", \"allowableEdits\")\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16)\n RETURNING uuid\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "uuid", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Int4", - "Int4", - "Int4", - "Bool", - "Float8", - "Float8", - "Float8", - "Float8", - "Float8", - "Int8", - "Bool", - "Bool", - "Jsonb" - ] - }, - "nullable": [ - false - ] - }, - "hash": "a27ad96e62764cad74a23addabe461a1b8aa81a865bf1af5434d5469efa44f76" -} diff --git a/rust/cloud-storage/.sqlx/query-a299a66e2c0a88c6d2d9a131611789a544d3b7e5710bbc19254fdff129624b87.json b/rust/cloud-storage/.sqlx/query-a299a66e2c0a88c6d2d9a131611789a544d3b7e5710bbc19254fdff129624b87.json deleted file mode 100644 index fe2c31babd..0000000000 --- a/rust/cloud-storage/.sqlx/query-a299a66e2c0a88c6d2d9a131611789a544d3b7e5710bbc19254fdff129624b87.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n macro_user_id\n FROM\n in_progress_user_link\n WHERE\n id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_user_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "a299a66e2c0a88c6d2d9a131611789a544d3b7e5710bbc19254fdff129624b87" -} diff --git a/rust/cloud-storage/.sqlx/query-a2af7d24d1993fbdc8fc31149a376803fa1c00827bcb8f51c7d000c0a9adfa94.json b/rust/cloud-storage/.sqlx/query-a2af7d24d1993fbdc8fc31149a376803fa1c00827bcb8f51c7d000c0a9adfa94.json deleted file mode 100644 index 62b3095540..0000000000 --- a/rust/cloud-storage/.sqlx/query-a2af7d24d1993fbdc8fc31149a376803fa1c00827bcb8f51c7d000c0a9adfa94.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_threads\n SET\n inbox_visible = $1,\n updated_at = NOW()\n WHERE\n id = $2 AND\n link_id = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Bool", - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "a2af7d24d1993fbdc8fc31149a376803fa1c00827bcb8f51c7d000c0a9adfa94" -} diff --git a/rust/cloud-storage/.sqlx/query-a306e4c1385aab43d5fa2510f0fbdb20d4e37ebf037dceeb2673f6a3d64738de.json b/rust/cloud-storage/.sqlx/query-a306e4c1385aab43d5fa2510f0fbdb20d4e37ebf037dceeb2673f6a3d64738de.json deleted file mode 100644 index 608cbb9acf..0000000000 --- a/rust/cloud-storage/.sqlx/query-a306e4c1385aab43d5fa2510f0fbdb20d4e37ebf037dceeb2673f6a3d64738de.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM crm_contact_sources\n WHERE contact_id = $1 AND link_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "a306e4c1385aab43d5fa2510f0fbdb20d4e37ebf037dceeb2673f6a3d64738de" -} diff --git a/rust/cloud-storage/.sqlx/query-a321d44c7093eba7f5af8adf30827efead8bb987ad26e89f2e12f875ff38e0be.json b/rust/cloud-storage/.sqlx/query-a321d44c7093eba7f5af8adf30827efead8bb987ad26e89f2e12f875ff38e0be.json deleted file mode 100644 index 9642d18561..0000000000 --- a/rust/cloud-storage/.sqlx/query-a321d44c7093eba7f5af8adf30827efead8bb987ad26e89f2e12f875ff38e0be.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as entity_id,\n d.name,\n regexp_replace(\n d.name,\n $7,\n '\\1',\n 'gi'\n ) as name_highlighted,\n d.\"updatedAt\" as updated_at\n FROM \"Document\" d\n WHERE (d.owner = $1 OR d.id = ANY($2))\n AND d.\"deletedAt\" IS NULL\n AND d.name ILIKE $3\n AND (\n $5::timestamptz IS NULL\n OR (d.\"updatedAt\", d.id) < ($5, $6)\n )\n ORDER BY d.\"updatedAt\" DESC, d.id DESC\n LIMIT $4\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name_highlighted", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "updated_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray", - "Text", - "Int8", - "Timestamptz", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - null, - false - ] - }, - "hash": "a321d44c7093eba7f5af8adf30827efead8bb987ad26e89f2e12f875ff38e0be" -} diff --git a/rust/cloud-storage/.sqlx/query-a3637a7a136eefc6bf21f28a9ae693dd3ab1eb8b4f310528a43e630e233446cb.json b/rust/cloud-storage/.sqlx/query-a3637a7a136eefc6bf21f28a9ae693dd3ab1eb8b4f310528a43e630e233446cb.json deleted file mode 100644 index 331cfdfd1d..0000000000 --- a/rust/cloud-storage/.sqlx/query-a3637a7a136eefc6bf21f28a9ae693dd3ab1eb8b4f310528a43e630e233446cb.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT access_level FROM (\n -- Source 1: entity_access source_id match\n SELECT\n access_level::text FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'document'\n AND source_id = ANY($2)\n\n UNION ALL\n -- Source 2: items share permission\n SELECT\n \"publicAccessLevel\"::text AS access_level\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"DocumentPermission\" WHERE \"documentId\" = $3\n )\n ) AS combined_access\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "access_level", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "a3637a7a136eefc6bf21f28a9ae693dd3ab1eb8b4f310528a43e630e233446cb" -} diff --git a/rust/cloud-storage/.sqlx/query-a386157d6a94f85f1e1c2c0c0cfe39345a04dee3de88fd4cbc8fc6ab8f34da60.json b/rust/cloud-storage/.sqlx/query-a386157d6a94f85f1e1c2c0c0cfe39345a04dee3de88fd4cbc8fc6ab8f34da60.json deleted file mode 100644 index 2182432ca0..0000000000 --- a/rust/cloud-storage/.sqlx/query-a386157d6a94f85f1e1c2c0c0cfe39345a04dee3de88fd4cbc8fc6ab8f34da60.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT task_id FROM github_pr_tasks\n WHERE github_key = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "task_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "a386157d6a94f85f1e1c2c0c0cfe39345a04dee3de88fd4cbc8fc6ab8f34da60" -} diff --git a/rust/cloud-storage/.sqlx/query-a3a570d4857e91eb55d5e4299f9a856e70e71c0a070f0a1a005ba5e2aa7eabac.json b/rust/cloud-storage/.sqlx/query-a3a570d4857e91eb55d5e4299f9a856e70e71c0a070f0a1a005ba5e2aa7eabac.json deleted file mode 100644 index 4ec697bc9f..0000000000 --- a/rust/cloud-storage/.sqlx/query-a3a570d4857e91eb55d5e4299f9a856e70e71c0a070f0a1a005ba5e2aa7eabac.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM team_invite\n WHERE id = $1 AND team_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "a3a570d4857e91eb55d5e4299f9a856e70e71c0a070f0a1a005ba5e2aa7eabac" -} diff --git a/rust/cloud-storage/.sqlx/query-a4daed99335672e203439ce74d8697936821511404ffb49c7ca4b8134e9c9147.json b/rust/cloud-storage/.sqlx/query-a4daed99335672e203439ce74d8697936821511404ffb49c7ca4b8134e9c9147.json deleted file mode 100644 index 4ca3ec3920..0000000000 --- a/rust/cloud-storage/.sqlx/query-a4daed99335672e203439ce74d8697936821511404ffb49c7ca4b8134e9c9147.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n sp.id as id,\n sp.\"isPublic\" as is_public,\n sp.\"publicAccessLevel\" as \"public_access_level?\",\n c.\"userId\" as owner,\n COALESCE(\n json_agg(json_build_object(\n 'channel_id', csp.\"channel_id\",\n 'access_level', csp.\"access_level\"\n )) FILTER (WHERE csp.\"channel_id\" IS NOT NULL),\n '[]'\n ) as \"channel_share_permissions?\"\n FROM\n \"ChatPermission\" cp\n JOIN \"SharePermission\" sp ON cp.\"sharePermissionId\" = sp.id\n JOIN \"Chat\" c ON cp.\"chatId\" = c.id\n LEFT JOIN \"ChannelSharePermission\" csp ON csp.\"share_permission_id\" = sp.id\n WHERE\n cp.\"chatId\" = $1\n GROUP BY\n sp.id, c.\"userId\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "is_public", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "public_access_level?", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "channel_share_permissions?", - "type_info": "Json" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - true, - false, - null - ] - }, - "hash": "a4daed99335672e203439ce74d8697936821511404ffb49c7ca4b8134e9c9147" -} diff --git a/rust/cloud-storage/.sqlx/query-a4e8e05298b394cc80ac1f866854a945a8d67e1d18153d4f0128108ce65212f4.json b/rust/cloud-storage/.sqlx/query-a4e8e05298b394cc80ac1f866854a945a8d67e1d18153d4f0128108ce65212f4.json deleted file mode 100644 index bec5852ddc..0000000000 --- a/rust/cloud-storage/.sqlx/query-a4e8e05298b394cc80ac1f866854a945a8d67e1d18153d4f0128108ce65212f4.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ExperimentLog\" (experiment_id, user_id, \"group\")\n VALUES ($1, $2, $3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Varchar" - ] - }, - "nullable": [] - }, - "hash": "a4e8e05298b394cc80ac1f866854a945a8d67e1d18153d4f0128108ce65212f4" -} diff --git a/rust/cloud-storage/.sqlx/query-a547a92f2099dbeb0b1fb2fc9dba7bf0f464619f047b5d967914f7b476722db5.json b/rust/cloud-storage/.sqlx/query-a547a92f2099dbeb0b1fb2fc9dba7bf0f464619f047b5d967914f7b476722db5.json deleted file mode 100644 index 5f7d4a2c37..0000000000 --- a/rust/cloud-storage/.sqlx/query-a547a92f2099dbeb0b1fb2fc9dba7bf0f464619f047b5d967914f7b476722db5.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO team_crm_settings (team_id, crm_enabled)\n VALUES ($1, FALSE)\n ON CONFLICT (team_id) DO UPDATE\n SET crm_enabled = FALSE,\n updated_at = now()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "a547a92f2099dbeb0b1fb2fc9dba7bf0f464619f047b5d967914f7b476722db5" -} diff --git a/rust/cloud-storage/.sqlx/query-a577fec197448ea02b8378cc0ddca6fc4fcfc26228c3d3f8f055702598616a64.json b/rust/cloud-storage/.sqlx/query-a577fec197448ea02b8378cc0ddca6fc4fcfc26228c3d3f8f055702598616a64.json deleted file mode 100644 index 6812c685dc..0000000000 --- a/rust/cloud-storage/.sqlx/query-a577fec197448ea02b8378cc0ddca6fc4fcfc26228c3d3f8f055702598616a64.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT primary_macro_id\n FROM macro_user_links\n WHERE child_macro_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "primary_macro_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "a577fec197448ea02b8378cc0ddca6fc4fcfc26228c3d3f8f055702598616a64" -} diff --git a/rust/cloud-storage/.sqlx/query-a5801ca350ee73d531d912e4dcc1935265af572afbbf60702a4521e4c19b8468.json b/rust/cloud-storage/.sqlx/query-a5801ca350ee73d531d912e4dcc1935265af572afbbf60702a4521e4c19b8468.json deleted file mode 100644 index a01572c827..0000000000 --- a/rust/cloud-storage/.sqlx/query-a5801ca350ee73d531d912e4dcc1935265af572afbbf60702a4521e4c19b8468.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n sp.id as id,\n sp.\"isPublic\" as is_public,\n sp.\"publicAccessLevel\" as \"public_access_level?\",\n m.\"user_id\" as owner,\n COALESCE(\n json_agg(json_build_object(\n 'channel_id', csp.\"channel_id\",\n 'access_level', csp.\"access_level\"\n )) FILTER (WHERE csp.\"channel_id\" IS NOT NULL),\n '[]'\n ) as \"channel_share_permissions?\"\n FROM\n \"MacroPromptPermission\" mpp\n JOIN \"SharePermission\" sp ON mpp.\"share_permission_id\" = sp.id\n JOIN \"MacroPrompt\" m ON mpp.\"macro_prompt_id\" = m.id\n LEFT JOIN \"ChannelSharePermission\" csp ON csp.\"share_permission_id\" = sp.id\n WHERE\n mpp.\"macro_prompt_id\" = $1\n GROUP BY\n sp.id, m.\"user_id\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "is_public", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "public_access_level?", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "channel_share_permissions?", - "type_info": "Json" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - true, - false, - null - ] - }, - "hash": "a5801ca350ee73d531d912e4dcc1935265af572afbbf60702a4521e4c19b8468" -} diff --git a/rust/cloud-storage/.sqlx/query-a5cc2431d45e9bbd7e6c60a2bfb7a6533d6f7c8d051ca997a7e0db53314d5f80.json b/rust/cloud-storage/.sqlx/query-a5cc2431d45e9bbd7e6c60a2bfb7a6533d6f7c8d051ca997a7e0db53314d5f80.json deleted file mode 100644 index 8e933bf7c0..0000000000 --- a/rust/cloud-storage/.sqlx/query-a5cc2431d45e9bbd7e6c60a2bfb7a6533d6f7c8d051ca997a7e0db53314d5f80.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_channel_participants (channel_id, user_id, role)\n VALUES ($1, $2, $3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - { - "Custom": { - "name": "comms_participant_role", - "kind": { - "Enum": [ - "owner", - "admin", - "member" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "a5cc2431d45e9bbd7e6c60a2bfb7a6533d6f7c8d051ca997a7e0db53314d5f80" -} diff --git a/rust/cloud-storage/.sqlx/query-a5ea0cf5ff502359e9ebc01d0f8758d171081c5aa35c785b178150aa9d8d3635.json b/rust/cloud-storage/.sqlx/query-a5ea0cf5ff502359e9ebc01d0f8758d171081c5aa35c785b178150aa9d8d3635.json deleted file mode 100644 index 65601cffb9..0000000000 --- a/rust/cloud-storage/.sqlx/query-a5ea0cf5ff502359e9ebc01d0f8758d171081c5aa35c785b178150aa9d8d3635.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_contacts (id, link_id, email_address, name)\n SELECT * FROM unnest($1::uuid[], $2::uuid[], $3::text[], $4::text[])\n ON CONFLICT (link_id, email_address) DO NOTHING\n RETURNING id, email_address\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email_address", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "UuidArray", - "TextArray", - "TextArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "a5ea0cf5ff502359e9ebc01d0f8758d171081c5aa35c785b178150aa9d8d3635" -} diff --git a/rust/cloud-storage/.sqlx/query-a63428b959703fdc38fa28667db9b2268827d7ce92ca55d21b38ba2a7a8b3c1c.json b/rust/cloud-storage/.sqlx/query-a63428b959703fdc38fa28667db9b2268827d7ce92ca55d21b38ba2a7a8b3c1c.json deleted file mode 100644 index 53ea78a4fc..0000000000 --- a/rust/cloud-storage/.sqlx/query-a63428b959703fdc38fa28667db9b2268827d7ce92ca55d21b38ba2a7a8b3c1c.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Experiment\" WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "a63428b959703fdc38fa28667db9b2268827d7ce92ca55d21b38ba2a7a8b3c1c" -} diff --git a/rust/cloud-storage/.sqlx/query-a669145c6d8f00b9cdf41d2037c0bcfad130247e99f31c127c6dabcbe1b3790d.json b/rust/cloud-storage/.sqlx/query-a669145c6d8f00b9cdf41d2037c0bcfad130247e99f31c127c6dabcbe1b3790d.json deleted file mode 100644 index b1d35c7959..0000000000 --- a/rust/cloud-storage/.sqlx/query-a669145c6d8f00b9cdf41d2037c0bcfad130247e99f31c127c6dabcbe1b3790d.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE referral_tracking\n SET status = 'complete'\n WHERE referrer_id = $1 AND referred_id = $2 AND status != 'complete'", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "a669145c6d8f00b9cdf41d2037c0bcfad130247e99f31c127c6dabcbe1b3790d" -} diff --git a/rust/cloud-storage/.sqlx/query-a68a6810f0b80a1ade36fc644c6f44fb02848a8f4200a900679efb26e1d0cb70.json b/rust/cloud-storage/.sqlx/query-a68a6810f0b80a1ade36fc644c6f44fb02848a8f4200a900679efb26e1d0cb70.json deleted file mode 100644 index 5c3bd4dd8b..0000000000 --- a/rust/cloud-storage/.sqlx/query-a68a6810f0b80a1ade36fc644c6f44fb02848a8f4200a900679efb26e1d0cb70.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n id,\n description \n FROM \"Permission\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "description", - "type_info": "Text" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - false - ] - }, - "hash": "a68a6810f0b80a1ade36fc644c6f44fb02848a8f4200a900679efb26e1d0cb70" -} diff --git a/rust/cloud-storage/.sqlx/query-a6b5613f666d5c6d73c4f8a817e02554c21e5b44768f5761c1d19d019f7208c4.json b/rust/cloud-storage/.sqlx/query-a6b5613f666d5c6d73c4f8a817e02554c21e5b44768f5761c1d19d019f7208c4.json deleted file mode 100644 index 18efa7779e..0000000000 --- a/rust/cloud-storage/.sqlx/query-a6b5613f666d5c6d73c4f8a817e02554c21e5b44768f5761c1d19d019f7208c4.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE crm_companies\n SET hidden = TRUE, email_sync = FALSE\n WHERE id = $1 AND team_id = $2\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "a6b5613f666d5c6d73c4f8a817e02554c21e5b44768f5761c1d19d019f7208c4" -} diff --git a/rust/cloud-storage/.sqlx/query-a6f46322f22f9e47daefa28ad65647888af5486e729bb5475dfabd21b01b4bf6.json b/rust/cloud-storage/.sqlx/query-a6f46322f22f9e47daefa28ad65647888af5486e729bb5475dfabd21b01b4bf6.json deleted file mode 100644 index 3a77881030..0000000000 --- a/rust/cloud-storage/.sqlx/query-a6f46322f22f9e47daefa28ad65647888af5486e729bb5475dfabd21b01b4bf6.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_labels\n WHERE id = $1 AND link_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "a6f46322f22f9e47daefa28ad65647888af5486e729bb5475dfabd21b01b4bf6" -} diff --git a/rust/cloud-storage/.sqlx/query-a72817a08ba25d9f09627854a16a4016db81bdbebd7ea0add856bc3eca7a7ba6.json b/rust/cloud-storage/.sqlx/query-a72817a08ba25d9f09627854a16a4016db81bdbebd7ea0add856bc3eca7a7ba6.json deleted file mode 100644 index e6387121a5..0000000000 --- a/rust/cloud-storage/.sqlx/query-a72817a08ba25d9f09627854a16a4016db81bdbebd7ea0add856bc3eca7a7ba6.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, link_id, email_address, name, original_photo_url, sfs_photo_url, created_at, updated_at\n FROM email_contacts\n WHERE LOWER(email_address) = LOWER($1) AND link_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "original_photo_url", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "sfs_photo_url", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false - ] - }, - "hash": "a72817a08ba25d9f09627854a16a4016db81bdbebd7ea0add856bc3eca7a7ba6" -} diff --git a/rust/cloud-storage/.sqlx/query-a7355d80810653b6b813ebd3c132579b6ba0f419f72b68d08cc2183e9d0d6341.json b/rust/cloud-storage/.sqlx/query-a7355d80810653b6b813ebd3c132579b6ba0f419f72b68d08cc2183e9d0d6341.json deleted file mode 100644 index c4418378e0..0000000000 --- a/rust/cloud-storage/.sqlx/query-a7355d80810653b6b813ebd3c132579b6ba0f419f72b68d08cc2183e9d0d6341.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"User\" u\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - null - ] - }, - "hash": "a7355d80810653b6b813ebd3c132579b6ba0f419f72b68d08cc2183e9d0d6341" -} diff --git a/rust/cloud-storage/.sqlx/query-a7546aa6e8594ac3e66cd708f033fab241312305c74f1bcdb32b96e924030b1d.json b/rust/cloud-storage/.sqlx/query-a7546aa6e8594ac3e66cd708f033fab241312305c74f1bcdb32b96e924030b1d.json deleted file mode 100644 index ab2522aa98..0000000000 --- a/rust/cloud-storage/.sqlx/query-a7546aa6e8594ac3e66cd708f033fab241312305c74f1bcdb32b96e924030b1d.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n deleted_at::timestamptz as \"deleted_at\"\n FROM comms_messages\n WHERE id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - null - ] - }, - "hash": "a7546aa6e8594ac3e66cd708f033fab241312305c74f1bcdb32b96e924030b1d" -} diff --git a/rust/cloud-storage/.sqlx/query-a7f90096050e550d15ef11bbc56a3cd79e1a80bc3f46cd063d0ff94d9b76f252.json b/rust/cloud-storage/.sqlx/query-a7f90096050e550d15ef11bbc56a3cd79e1a80bc3f46cd063d0ff94d9b76f252.json deleted file mode 100644 index 8bc55d69f6..0000000000 --- a/rust/cloud-storage/.sqlx/query-a7f90096050e550d15ef11bbc56a3cd79e1a80bc3f46cd063d0ff94d9b76f252.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n user_id,\n channel_id,\n joined_at,\n left_at,\n role as \"role: DbParticipantRole\"\n FROM comms_channel_participants\n WHERE channel_id = $1\n ORDER BY joined_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "joined_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "left_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "role: DbParticipantRole", - "type_info": { - "Custom": { - "name": "comms_participant_role", - "kind": { - "Enum": [ - "owner", - "admin", - "member" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - true, - false - ] - }, - "hash": "a7f90096050e550d15ef11bbc56a3cd79e1a80bc3f46cd063d0ff94d9b76f252" -} diff --git a/rust/cloud-storage/.sqlx/query-a81b373188c98bdfa52a878a659909f73796aef0302323f7930fe4d17ccfe6af.json b/rust/cloud-storage/.sqlx/query-a81b373188c98bdfa52a878a659909f73796aef0302323f7930fe4d17ccfe6af.json deleted file mode 100644 index c03715ba1e..0000000000 --- a/rust/cloud-storage/.sqlx/query-a81b373188c98bdfa52a878a659909f73796aef0302323f7930fe4d17ccfe6af.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT l.id, l.macro_id, l.fusionauth_user_id, l.email_address, l.provider as \"provider: _\",\n l.is_sync_active, l.created_at, l.updated_at\n FROM email_messages m\n JOIN email_links l ON l.id = m.link_id\n WHERE m.id = $1\n AND (\n l.macro_id = $2\n OR EXISTS (\n SELECT 1 FROM macro_user_links mul\n WHERE mul.child_macro_id = l.macro_id AND mul.primary_macro_id = $2\n )\n )\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "provider: _", - "type_info": { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_sync_active", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "a81b373188c98bdfa52a878a659909f73796aef0302323f7930fe4d17ccfe6af" -} diff --git a/rust/cloud-storage/.sqlx/query-a96916366e8c54b1ba978b2fa7cc54b2e1681ebbcbd9bb030768983d6ce966b6.json b/rust/cloud-storage/.sqlx/query-a96916366e8c54b1ba978b2fa7cc54b2e1681ebbcbd9bb030768983d6ce966b6.json deleted file mode 100644 index 69534d565a..0000000000 --- a/rust/cloud-storage/.sqlx/query-a96916366e8c54b1ba978b2fa7cc54b2e1681ebbcbd9bb030768983d6ce966b6.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id, document_id, location\n FROM \"UserDocumentViewLocation\"\n WHERE user_id = $1 AND document_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "location", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "a96916366e8c54b1ba978b2fa7cc54b2e1681ebbcbd9bb030768983d6ce966b6" -} diff --git a/rust/cloud-storage/.sqlx/query-a97451b5645b8265597f438d8fc78e9b0e2f2228c5d6a7453122eb59fa90f64a.json b/rust/cloud-storage/.sqlx/query-a97451b5645b8265597f438d8fc78e9b0e2f2228c5d6a7453122eb59fa90f64a.json deleted file mode 100644 index 3027e28949..0000000000 --- a/rust/cloud-storage/.sqlx/query-a97451b5645b8265597f438d8fc78e9b0e2f2228c5d6a7453122eb59fa90f64a.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n sp.id as id\n FROM\n \"DocumentPermission\" dp\n JOIN \"SharePermission\" sp ON dp.\"sharePermissionId\" = sp.id\n WHERE\n dp.\"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "a97451b5645b8265597f438d8fc78e9b0e2f2228c5d6a7453122eb59fa90f64a" -} diff --git a/rust/cloud-storage/.sqlx/query-a991a3a468c02f27709b7a45f27518c828b88bc4ca913019d9d4802395e7a22a.json b/rust/cloud-storage/.sqlx/query-a991a3a468c02f27709b7a45f27518c828b88bc4ca913019d9d4802395e7a22a.json deleted file mode 100644 index 6c1bc17b21..0000000000 --- a/rust/cloud-storage/.sqlx/query-a991a3a468c02f27709b7a45f27518c828b88bc4ca913019d9d4802395e7a22a.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Project\" SET \"parentId\" = NULL WHERE \"id\" = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "a991a3a468c02f27709b7a45f27518c828b88bc4ca913019d9d4802395e7a22a" -} diff --git a/rust/cloud-storage/.sqlx/query-a9adc96aff5f25177495a9258a185d8cf8a255b6805fecec787953461a09d78b.json b/rust/cloud-storage/.sqlx/query-a9adc96aff5f25177495a9258a185d8cf8a255b6805fecec787953461a09d78b.json deleted file mode 100644 index 7376c5ab40..0000000000 --- a/rust/cloud-storage/.sqlx/query-a9adc96aff5f25177495a9258a185d8cf8a255b6805fecec787953461a09d78b.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Document\" (owner, name, \"fileType\", \"documentFamilyId\", \"branchedFromId\", \"branchedFromVersionId\", \"projectId\")\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING id, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 2, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Int8", - "Text", - "Int8", - "Text" - ] - }, - "nullable": [ - false, - null, - null - ] - }, - "hash": "a9adc96aff5f25177495a9258a185d8cf8a255b6805fecec787953461a09d78b" -} diff --git a/rust/cloud-storage/.sqlx/query-a9fee4b6ef042c94f5dfc2ba668423e760ba3632bfae3aef9da1f146b7a9c638.json b/rust/cloud-storage/.sqlx/query-a9fee4b6ef042c94f5dfc2ba668423e760ba3632bfae3aef9da1f146b7a9c638.json deleted file mode 100644 index 3ee681677b..0000000000 --- a/rust/cloud-storage/.sqlx/query-a9fee4b6ef042c94f5dfc2ba668423e760ba3632bfae3aef9da1f146b7a9c638.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as \"document_id\",\n d.owner,\n d.name as \"document_name\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"projectId\" as \"project_id\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n WHERE\n d.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 5, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 8, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - true, - true, - false, - true, - null - ] - }, - "hash": "a9fee4b6ef042c94f5dfc2ba668423e760ba3632bfae3aef9da1f146b7a9c638" -} diff --git a/rust/cloud-storage/.sqlx/query-aa7c645fdd129abe705595f4b8c06bb48c977202f069d12143bece9f24bdb6ab.json b/rust/cloud-storage/.sqlx/query-aa7c645fdd129abe705595f4b8c06bb48c977202f069d12143bece9f24bdb6ab.json deleted file mode 100644 index 74b8c61e48..0000000000 --- a/rust/cloud-storage/.sqlx/query-aa7c645fdd129abe705595f4b8c06bb48c977202f069d12143bece9f24bdb6ab.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id\n FROM team_user\n WHERE team_id = $1\n ORDER BY user_id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "aa7c645fdd129abe705595f4b8c06bb48c977202f069d12143bece9f24bdb6ab" -} diff --git a/rust/cloud-storage/.sqlx/query-aa9ca547f8128f5f2a4418b6ccf252d9726565fbef858cf484ca86ab0625c6ec.json b/rust/cloud-storage/.sqlx/query-aa9ca547f8128f5f2a4418b6ccf252d9726565fbef858cf484ca86ab0625c6ec.json deleted file mode 100644 index d9fc6443bf..0000000000 --- a/rust/cloud-storage/.sqlx/query-aa9ca547f8128f5f2a4418b6ccf252d9726565fbef858cf484ca86ab0625c6ec.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, company_id, contact_id, owner, resolved, metadata,\n created_at, updated_at, deleted_at\n FROM crm_thread\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "company_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "resolved", - "type_info": "Bool" - }, - { - "ordinal": 5, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - true, - false, - false, - true - ] - }, - "hash": "aa9ca547f8128f5f2a4418b6ccf252d9726565fbef858cf484ca86ab0625c6ec" -} diff --git a/rust/cloud-storage/.sqlx/query-aab8538835af1c079c4864c1a576b3a51049dd104e2306c4596f1ff99ec329c3.json b/rust/cloud-storage/.sqlx/query-aab8538835af1c079c4864c1a576b3a51049dd104e2306c4596f1ff99ec329c3.json deleted file mode 100644 index a77bb0ab76..0000000000 --- a/rust/cloud-storage/.sqlx/query-aab8538835af1c079c4864c1a576b3a51049dd104e2306c4596f1ff99ec329c3.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user1 AS contact FROM contacts_connections WHERE user2 = $1\n UNION\n SELECT user2 AS contact FROM contacts_connections WHERE user1 = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "contact", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "aab8538835af1c079c4864c1a576b3a51049dd104e2306c4596f1ff99ec329c3" -} diff --git a/rust/cloud-storage/.sqlx/query-aac44fedc7a698d155114e4b84cf3cf60de7edc46f5bd7d943873cf2809ade77.json b/rust/cloud-storage/.sqlx/query-aac44fedc7a698d155114e4b84cf3cf60de7edc46f5bd7d943873cf2809ade77.json deleted file mode 100644 index 824f91dced..0000000000 --- a/rust/cloud-storage/.sqlx/query-aac44fedc7a698d155114e4b84cf3cf60de7edc46f5bd7d943873cf2809ade77.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.\"id\" as id\n FROM \"Project\" p\n INNER JOIN \"UserHistory\" uh ON uh.\"itemId\" = p.\"id\" AND uh.\"itemType\" = 'project'\n INNER JOIN \"User\" u ON u.id = uh.\"userId\"\n WHERE p.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "aac44fedc7a698d155114e4b84cf3cf60de7edc46f5bd7d943873cf2809ade77" -} diff --git a/rust/cloud-storage/.sqlx/query-aacb409624ba2c9ec8838ba1653bde46c44d19face725f848d1d53c364a73909.json b/rust/cloud-storage/.sqlx/query-aacb409624ba2c9ec8838ba1653bde46c44d19face725f848d1d53c364a73909.json deleted file mode 100644 index 0beb459b4e..0000000000 --- a/rust/cloud-storage/.sqlx/query-aacb409624ba2c9ec8838ba1653bde46c44d19face725f848d1d53c364a73909.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id\n FROM team_user\n WHERE user_id = ANY($1::text[])\n AND team_id NOT IN (\n SELECT * FROM UNNEST($2::uuid[])\n )\n AND team_role NOT IN ('owner')\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray", - "UuidArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "aacb409624ba2c9ec8838ba1653bde46c44d19face725f848d1d53c364a73909" -} diff --git a/rust/cloud-storage/.sqlx/query-aae2ef0d294ae7736898e9b32be12cfabedfb8164af00cdb4a52c9d1f98229af.json b/rust/cloud-storage/.sqlx/query-aae2ef0d294ae7736898e9b32be12cfabedfb8164af00cdb4a52c9d1f98229af.json deleted file mode 100644 index f0aa53f429..0000000000 --- a/rust/cloud-storage/.sqlx/query-aae2ef0d294ae7736898e9b32be12cfabedfb8164af00cdb4a52c9d1f98229af.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM \"Chat\" WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "aae2ef0d294ae7736898e9b32be12cfabedfb8164af00cdb4a52c9d1f98229af" -} diff --git a/rust/cloud-storage/.sqlx/query-ab1cdc9cf83712efd50e720fd9835fdfe36277075384044c8f7f3e8ce810c236.json b/rust/cloud-storage/.sqlx/query-ab1cdc9cf83712efd50e720fd9835fdfe36277075384044c8f7f3e8ce810c236.json deleted file mode 100644 index 89579ab1a1..0000000000 --- a/rust/cloud-storage/.sqlx/query-ab1cdc9cf83712efd50e720fd9835fdfe36277075384044c8f7f3e8ce810c236.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"macro_user_email_verification\" SET \"macro_user_id\" = $1 WHERE \"macro_user_id\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "ab1cdc9cf83712efd50e720fd9835fdfe36277075384044c8f7f3e8ce810c236" -} diff --git a/rust/cloud-storage/.sqlx/query-ab394ab1dcafaff117ba75dd454c9ef5dc894f2a86012e54c8bd5e085458a89d.json b/rust/cloud-storage/.sqlx/query-ab394ab1dcafaff117ba75dd454c9ef5dc894f2a86012e54c8bd5e085458a89d.json deleted file mode 100644 index b80b95917b..0000000000 --- a/rust/cloud-storage/.sqlx/query-ab394ab1dcafaff117ba75dd454c9ef5dc894f2a86012e54c8bd5e085458a89d.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Document\"\n SET \"deletedAt\" = NOW()\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "ab394ab1dcafaff117ba75dd454c9ef5dc894f2a86012e54c8bd5e085458a89d" -} diff --git a/rust/cloud-storage/.sqlx/query-ab3aa320a07e9885f1de7995533b75dfc995ac18e421ca940dd0828aa32b47a6.json b/rust/cloud-storage/.sqlx/query-ab3aa320a07e9885f1de7995533b75dfc995ac18e421ca940dd0828aa32b47a6.json deleted file mode 100644 index 026107a6ab..0000000000 --- a/rust/cloud-storage/.sqlx/query-ab3aa320a07e9885f1de7995533b75dfc995ac18e421ca940dd0828aa32b47a6.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id,\n m.channel_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.edited_at::timestamptz AS \"edited_at?\",\n m.deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages m\n WHERE m.id = COALESCE(\n (SELECT thread_id FROM comms_messages WHERE id = $1 AND channel_id = $2),\n $1\n )\n AND m.channel_id = $2\n AND m.thread_id IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "edited_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "deleted_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - null, - null - ] - }, - "hash": "ab3aa320a07e9885f1de7995533b75dfc995ac18e421ca940dd0828aa32b47a6" -} diff --git a/rust/cloud-storage/.sqlx/query-ab5316751a9b8b8f14e8319811749dfa6bc98f42ecb46ee9d3c20ca2daf43e44.json b/rust/cloud-storage/.sqlx/query-ab5316751a9b8b8f14e8319811749dfa6bc98f42ecb46ee9d3c20ca2daf43e44.json deleted file mode 100644 index d365439d22..0000000000 --- a/rust/cloud-storage/.sqlx/query-ab5316751a9b8b8f14e8319811749dfa6bc98f42ecb46ee9d3c20ca2daf43e44.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT macro_user_id, profile_picture as \"profile_picture!\", profile_picture_hash FROM macro_user_info\n WHERE macro_user_id = ANY($1) and profile_picture IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "profile_picture!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "profile_picture_hash", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - true, - true - ] - }, - "hash": "ab5316751a9b8b8f14e8319811749dfa6bc98f42ecb46ee9d3c20ca2daf43e44" -} diff --git a/rust/cloud-storage/.sqlx/query-ab7417eb79789bfff9a6084c7881191a9b0ee849745041e1fecc7e4ba9b4fc5d.json b/rust/cloud-storage/.sqlx/query-ab7417eb79789bfff9a6084c7881191a9b0ee849745041e1fecc7e4ba9b4fc5d.json deleted file mode 100644 index 16c7afa6a3..0000000000 --- a/rust/cloud-storage/.sqlx/query-ab7417eb79789bfff9a6084c7881191a9b0ee849745041e1fecc7e4ba9b4fc5d.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n SELECT dp.\"documentId\"::uuid, 'document', u.user_id, 'user', sp.\"publicAccessLevel\"::\"AccessLevel\"\n FROM \"DocumentPermission\" dp\n JOIN \"SharePermission\" sp ON sp.id = dp.\"sharePermissionId\"\n CROSS JOIN UNNEST($2::text[]) AS u(user_id)\n WHERE dp.\"documentId\" = $1\n AND sp.\"isPublic\" = true\n AND sp.\"publicAccessLevel\" IS NOT NULL\n ON CONFLICT (entity_id, entity_type, source_id, source_type)\n WHERE granted_from_project_id IS NULL\n DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "ab7417eb79789bfff9a6084c7881191a9b0ee849745041e1fecc7e4ba9b4fc5d" -} diff --git a/rust/cloud-storage/.sqlx/query-abd0a7a3bc1e35bfd6b0acd25aed7149fa0e81809511939a420fe17f93ae7d6e.json b/rust/cloud-storage/.sqlx/query-abd0a7a3bc1e35bfd6b0acd25aed7149fa0e81809511939a420fe17f93ae7d6e.json deleted file mode 100644 index 0ffccf643b..0000000000 --- a/rust/cloud-storage/.sqlx/query-abd0a7a3bc1e35bfd6b0acd25aed7149fa0e81809511939a420fe17f93ae7d6e.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"User\" (id, email, macro_user_id, \"organizationId\")\n VALUES ($1, $2, $3, $4)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Uuid", - "Int4" - ] - }, - "nullable": [] - }, - "hash": "abd0a7a3bc1e35bfd6b0acd25aed7149fa0e81809511939a420fe17f93ae7d6e" -} diff --git a/rust/cloud-storage/.sqlx/query-ac1221f53b3482f947f70affe1fa95f778b5cc841f3a08c8d406752da8d25be3.json b/rust/cloud-storage/.sqlx/query-ac1221f53b3482f947f70affe1fa95f778b5cc841f3a08c8d406752da8d25be3.json deleted file mode 100644 index 418264801b..0000000000 --- a/rust/cloud-storage/.sqlx/query-ac1221f53b3482f947f70affe1fa95f778b5cc841f3a08c8d406752da8d25be3.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id AS \"company_id!\",\n c.team_id AS \"company_team_id!\",\n c.email_sync AS \"company_email_sync!\",\n c.hidden AS \"company_hidden!\",\n c.first_interaction AS \"company_created_at!\",\n c.last_interaction AS \"company_updated_at!\",\n d.id AS \"domain_id?\",\n d.domain AS \"domain?\",\n d.created_at AS \"domain_created_at?\",\n dd.name AS \"dir_name?\",\n dd.description AS \"dir_description?\"\n FROM crm_companies c\n LEFT JOIN crm_domains d ON d.company_id = c.id\n LEFT JOIN crm_domain_directory dd\n ON LOWER(dd.domain) = LOWER(d.domain)\n WHERE c.team_id = $1\n AND c.id = ANY($2)\n AND ($3 OR c.hidden = FALSE)\n ORDER BY c.last_interaction DESC, c.id DESC, d.created_at ASC NULLS LAST\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "company_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "company_team_id!", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "company_email_sync!", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "company_hidden!", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "company_created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "company_updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "domain_id?", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "domain?", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "domain_created_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "dir_name?", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "dir_description?", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "UuidArray", - "Bool" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - true - ] - }, - "hash": "ac1221f53b3482f947f70affe1fa95f778b5cc841f3a08c8d406752da8d25be3" -} diff --git a/rust/cloud-storage/.sqlx/query-ac1973d97ddd4dcb5cacb138b9321138cea6141d03301b03f7c7e0d509663dc4.json b/rust/cloud-storage/.sqlx/query-ac1973d97ddd4dcb5cacb138b9321138cea6141d03301b03f7c7e0d509663dc4.json deleted file mode 100644 index b3e494ac89..0000000000 --- a/rust/cloud-storage/.sqlx/query-ac1973d97ddd4dcb5cacb138b9321138cea6141d03301b03f7c7e0d509663dc4.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_attachments (\n id,\n message_id,\n channel_id,\n entity_type,\n entity_id,\n width,\n height\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING id, message_id, channel_id, entity_type, entity_id, width, height, created_at\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "entity_type", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "entity_id", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "width", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "height", - "type_info": "Int4" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid", - "Varchar", - "Varchar", - "Int4", - "Int4" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true, - true, - false - ] - }, - "hash": "ac1973d97ddd4dcb5cacb138b9321138cea6141d03301b03f7c7e0d509663dc4" -} diff --git a/rust/cloud-storage/.sqlx/query-ac52ec341d9ff2b334df144dfcba1195b845609b557d278290359a0e6170c10d.json b/rust/cloud-storage/.sqlx/query-ac52ec341d9ff2b334df144dfcba1195b845609b557d278290359a0e6170c10d.json deleted file mode 100644 index 19f6ad325a..0000000000 --- a/rust/cloud-storage/.sqlx/query-ac52ec341d9ff2b334df144dfcba1195b845609b557d278290359a0e6170c10d.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"entity_access\"\n WHERE \"entity_id\" = $1 AND \"entity_type\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "ac52ec341d9ff2b334df144dfcba1195b845609b557d278290359a0e6170c10d" -} diff --git a/rust/cloud-storage/.sqlx/query-ac72213b35da176efad40d8acc0b77bede612a071cd8b18bb8d68965c1414204.json b/rust/cloud-storage/.sqlx/query-ac72213b35da176efad40d8acc0b77bede612a071cd8b18bb8d68965c1414204.json deleted file mode 100644 index 63cf281d00..0000000000 --- a/rust/cloud-storage/.sqlx/query-ac72213b35da176efad40d8acc0b77bede612a071cd8b18bb8d68965c1414204.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id,\n m.provider_id,\n m.global_id,\n m.thread_id,\n m.provider_thread_id,\n m.replying_to_id,\n m.link_id,\n m.provider_history_id,\n m.internal_date_ts,\n m.snippet,\n m.size_estimate,\n m.subject,\n m.from_name,\n m.from_contact_id,\n m.sent_at,\n m.has_attachments,\n m.is_read,\n m.is_starred,\n m.is_sent,\n m.is_draft,\n m.body_text,\n m.body_html_sanitized,\n m.body_macro,\n m.headers_jsonb,\n m.created_at,\n m.updated_at\n FROM email_messages m\n JOIN email_scheduled_messages sm ON m.id = sm.message_id\n WHERE m.link_id = $1 AND sm.sent = false\n ORDER BY m.created_at DESC\n LIMIT $2 OFFSET $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 6, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 21, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 22, - "name": "body_macro", - "type_info": "Text" - }, - { - "ordinal": 23, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 24, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 25, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - true, - true, - false, - true, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - true, - true, - true, - true, - false, - false - ] - }, - "hash": "ac72213b35da176efad40d8acc0b77bede612a071cd8b18bb8d68965c1414204" -} diff --git a/rust/cloud-storage/.sqlx/query-acb38333fa7958869cc39acafee4f7d08731aa1543d9d2d6f6d105be9e7a0530.json b/rust/cloud-storage/.sqlx/query-acb38333fa7958869cc39acafee4f7d08731aa1543d9d2d6f6d105be9e7a0530.json deleted file mode 100644 index fa3d8b95c4..0000000000 --- a/rust/cloud-storage/.sqlx/query-acb38333fa7958869cc39acafee4f7d08731aa1543d9d2d6f6d105be9e7a0530.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n name, description, icon_url,\n apollo_organization_id, website_url, linkedin_url, twitter_url,\n facebook_url, industry, keywords, technologies,\n estimated_num_employees, annual_revenue, annual_revenue_printed,\n total_funding, total_funding_printed, latest_funding_stage,\n latest_funding_round_date, founded_year, publicly_traded_symbol,\n publicly_traded_exchange, phone, raw_address, street_address,\n city, state, postal_code, country, raw\n FROM crm_domain_directory\n WHERE LOWER(domain) = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "description", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "icon_url", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "apollo_organization_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "website_url", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "linkedin_url", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "twitter_url", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "facebook_url", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "industry", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "keywords", - "type_info": "TextArray" - }, - { - "ordinal": 10, - "name": "technologies", - "type_info": "TextArray" - }, - { - "ordinal": 11, - "name": "estimated_num_employees", - "type_info": "Int4" - }, - { - "ordinal": 12, - "name": "annual_revenue", - "type_info": "Int8" - }, - { - "ordinal": 13, - "name": "annual_revenue_printed", - "type_info": "Text" - }, - { - "ordinal": 14, - "name": "total_funding", - "type_info": "Int8" - }, - { - "ordinal": 15, - "name": "total_funding_printed", - "type_info": "Text" - }, - { - "ordinal": 16, - "name": "latest_funding_stage", - "type_info": "Text" - }, - { - "ordinal": 17, - "name": "latest_funding_round_date", - "type_info": "Timestamptz" - }, - { - "ordinal": 18, - "name": "founded_year", - "type_info": "Int4" - }, - { - "ordinal": 19, - "name": "publicly_traded_symbol", - "type_info": "Text" - }, - { - "ordinal": 20, - "name": "publicly_traded_exchange", - "type_info": "Text" - }, - { - "ordinal": 21, - "name": "phone", - "type_info": "Text" - }, - { - "ordinal": 22, - "name": "raw_address", - "type_info": "Text" - }, - { - "ordinal": 23, - "name": "street_address", - "type_info": "Text" - }, - { - "ordinal": 24, - "name": "city", - "type_info": "Text" - }, - { - "ordinal": 25, - "name": "state", - "type_info": "Text" - }, - { - "ordinal": 26, - "name": "postal_code", - "type_info": "Text" - }, - { - "ordinal": 27, - "name": "country", - "type_info": "Text" - }, - { - "ordinal": 28, - "name": "raw", - "type_info": "Jsonb" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true - ] - }, - "hash": "acb38333fa7958869cc39acafee4f7d08731aa1543d9d2d6f6d105be9e7a0530" -} diff --git a/rust/cloud-storage/.sqlx/query-acd29bfac7388548a2d09bd8a9a12b4c9bb92fe9450fa0950e91bcebfcb1adeb.json b/rust/cloud-storage/.sqlx/query-acd29bfac7388548a2d09bd8a9a12b4c9bb92fe9450fa0950e91bcebfcb1adeb.json deleted file mode 100644 index 06b0392082..0000000000 --- a/rust/cloud-storage/.sqlx/query-acd29bfac7388548a2d09bd8a9a12b4c9bb92fe9450fa0950e91bcebfcb1adeb.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, LOWER(email_address) AS \"email_lower!\"\n FROM email_contacts\n WHERE link_id = ANY($1) AND LOWER(email_address) = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email_lower!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "TextArray" - ] - }, - "nullable": [ - false, - null - ] - }, - "hash": "acd29bfac7388548a2d09bd8a9a12b4c9bb92fe9450fa0950e91bcebfcb1adeb" -} diff --git a/rust/cloud-storage/.sqlx/query-ad0e23af0a67a769bf40b3ab388c21c001e01d1691861d8b9df950b03bdb2f4b.json b/rust/cloud-storage/.sqlx/query-ad0e23af0a67a769bf40b3ab388c21c001e01d1691861d8b9df950b03bdb2f4b.json deleted file mode 100644 index 77bae849be..0000000000 --- a/rust/cloud-storage/.sqlx/query-ad0e23af0a67a769bf40b3ab388c21c001e01d1691861d8b9df950b03bdb2f4b.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n COUNT(id) as count\n FROM\n in_progress_user_link\n WHERE\n macro_user_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "ad0e23af0a67a769bf40b3ab388c21c001e01d1691861d8b9df950b03bdb2f4b" -} diff --git a/rust/cloud-storage/.sqlx/query-ade8f82fdb3feffe37acb0e67a7e39aac513e2b7ae7c7aabaa9ac59f270dbffc.json b/rust/cloud-storage/.sqlx/query-ade8f82fdb3feffe37acb0e67a7e39aac513e2b7ae7c7aabaa9ac59f270dbffc.json deleted file mode 100644 index 98d3bf1b47..0000000000 --- a/rust/cloud-storage/.sqlx/query-ade8f82fdb3feffe37acb0e67a7e39aac513e2b7ae7c7aabaa9ac59f270dbffc.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Document\" \n WHERE id = ANY($1)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "ade8f82fdb3feffe37acb0e67a7e39aac513e2b7ae7c7aabaa9ac59f270dbffc" -} diff --git a/rust/cloud-storage/.sqlx/query-ae1b88cef7fd6cc6ef1c302a0f3a04d156d39f39abea24050e63caf56267898a.json b/rust/cloud-storage/.sqlx/query-ae1b88cef7fd6cc6ef1c302a0f3a04d156d39f39abea24050e63caf56267898a.json deleted file mode 100644 index e4b3c2a5e5..0000000000 --- a/rust/cloud-storage/.sqlx/query-ae1b88cef7fd6cc6ef1c302a0f3a04d156d39f39abea24050e63caf56267898a.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH query AS (\n SELECT key, vec::vector AS vec\n FROM unnest($1::text[], $2::text[]) AS t(key, vec)\n ),\n scored AS (\n SELECT\n e.document_id,\n e.search_key,\n e.content,\n e.embedding::text AS embedding_text,\n MAX(1 - (e.embedding <=> q.vec))::real AS score\n FROM task_duplicate_embedding e\n JOIN \"Document\" d ON d.id = e.document_id\n JOIN document_sub_type dst ON dst.document_id = d.id AND dst.sub_type = 'task'\n LEFT JOIN team_task tt ON tt.document_id = d.id\n CROSS JOIN query q\n WHERE d.\"deletedAt\" IS NULL\n AND (\n d.owner = $3\n OR ($4::uuid IS NOT NULL AND tt.team_id = $4)\n )\n AND ($5::text IS NULL OR e.document_id <> $5)\n AND (\n NOT $6\n OR NOT EXISTS (\n SELECT 1\n FROM task_duplicate_match m\n WHERE m.task_id = LEAST($5, e.document_id)\n AND m.duplicate_task_id = GREATEST($5, e.document_id)\n AND m.status = 'dismissed'\n )\n )\n GROUP BY e.document_id, e.search_key, e.content, e.embedding\n ),\n ranked AS (\n SELECT document_id, MAX(score) AS best\n FROM scored\n GROUP BY document_id\n ORDER BY best DESC\n LIMIT $7\n )\n SELECT\n s.document_id AS \"document_id!\",\n s.search_key AS \"search_key!\",\n s.content AS \"content!\",\n s.embedding_text AS \"embedding_text!\",\n s.score AS \"score!\"\n FROM scored s\n JOIN ranked r ON r.document_id = s.document_id\n ORDER BY r.best DESC, s.document_id, s.score DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "search_key!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "content!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "embedding_text!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "score!", - "type_info": "Float4" - } - ], - "parameters": { - "Left": [ - "TextArray", - "TextArray", - "Text", - "Uuid", - "Text", - "Bool", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - null, - null - ] - }, - "hash": "ae1b88cef7fd6cc6ef1c302a0f3a04d156d39f39abea24050e63caf56267898a" -} diff --git a/rust/cloud-storage/.sqlx/query-ae5a21740f17c450f53a07e833b6ab8dc226dd06869786792add6fe5535da1e7.json b/rust/cloud-storage/.sqlx/query-ae5a21740f17c450f53a07e833b6ab8dc226dd06869786792add6fe5535da1e7.json deleted file mode 100644 index 508ef4caee..0000000000 --- a/rust/cloud-storage/.sqlx/query-ae5a21740f17c450f53a07e833b6ab8dc226dd06869786792add6fe5535da1e7.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, email, team_id\n FROM team_invite\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "team_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "ae5a21740f17c450f53a07e833b6ab8dc226dd06869786792add6fe5535da1e7" -} diff --git a/rust/cloud-storage/.sqlx/query-ae7424712141289a46985ef940f940ba795df321fe73b299eac464a0ef6a3081.json b/rust/cloud-storage/.sqlx/query-ae7424712141289a46985ef940f940ba795df321fe73b299eac464a0ef6a3081.json deleted file mode 100644 index 910cee7485..0000000000 --- a/rust/cloud-storage/.sqlx/query-ae7424712141289a46985ef940f940ba795df321fe73b299eac464a0ef6a3081.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n (ct.hidden OR c.hidden) AS \"hidden!\",\n c.team_id AS \"team_id!\",\n tu.team_role AS \"role!: TeamRole\"\n FROM crm_contacts ct\n JOIN crm_companies c\n ON c.id = ct.company_id\n JOIN team_user tu\n ON tu.team_id = c.team_id\n AND tu.user_id = $1\n WHERE ct.id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "hidden!", - "type_info": "Bool" - }, - { - "ordinal": 1, - "name": "team_id!", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "role!: TeamRole", - "type_info": { - "Custom": { - "name": "team_role", - "kind": { - "Enum": [ - "member", - "admin", - "owner" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [ - null, - false, - false - ] - }, - "hash": "ae7424712141289a46985ef940f940ba795df321fe73b299eac464a0ef6a3081" -} diff --git a/rust/cloud-storage/.sqlx/query-aec91142f83fc2f19972a0ae096e3b21c571b2c5a97baa04d68a2f6da500bd79.json b/rust/cloud-storage/.sqlx/query-aec91142f83fc2f19972a0ae096e3b21c571b2c5a97baa04d68a2f6da500bd79.json deleted file mode 100644 index 1785608ddb..0000000000 --- a/rust/cloud-storage/.sqlx/query-aec91142f83fc2f19972a0ae096e3b21c571b2c5a97baa04d68a2f6da500bd79.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n mr.message_id,\n c.id,\n c.link_id,\n c.email_address,\n COALESCE(mr.name, c.name) as \"name\", -- name from message overrides contact name\n c.original_photo_url,\n c.sfs_photo_url,\n c.created_at,\n c.updated_at,\n mr.recipient_type as \"recipient_type!: db::address::EmailRecipientType\"\n FROM email_message_recipients mr\n JOIN email_contacts c ON mr.contact_id = c.id\n WHERE mr.message_id = $1\n ORDER BY mr.recipient_type\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "original_photo_url", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "sfs_photo_url", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "recipient_type!: db::address::EmailRecipientType", - "type_info": { - "Custom": { - "name": "email_recipient_type", - "kind": { - "Enum": [ - "TO", - "CC", - "BCC" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - null, - true, - true, - false, - false, - false - ] - }, - "hash": "aec91142f83fc2f19972a0ae096e3b21c571b2c5a97baa04d68a2f6da500bd79" -} diff --git a/rust/cloud-storage/.sqlx/query-af05f3b0d0796a3cb2eed49cd562776fd1abde1cea7f0f5057fede45c2312223.json b/rust/cloud-storage/.sqlx/query-af05f3b0d0796a3cb2eed49cd562776fd1abde1cea7f0f5057fede45c2312223.json deleted file mode 100644 index 1ad2601550..0000000000 --- a/rust/cloud-storage/.sqlx/query-af05f3b0d0796a3cb2eed49cd562776fd1abde1cea7f0f5057fede45c2312223.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS (\n SELECT 1\n FROM team_user\n WHERE user_id = $1 AND team_id = $2\n ) AS \"has_team!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "has_team!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "af05f3b0d0796a3cb2eed49cd562776fd1abde1cea7f0f5057fede45c2312223" -} diff --git a/rust/cloud-storage/.sqlx/query-af5a4cf73fd08698bfe9a04e6bb4441ac2b9c20b0697d52467e0a12c17f8e473.json b/rust/cloud-storage/.sqlx/query-af5a4cf73fd08698bfe9a04e6bb4441ac2b9c20b0697d52467e0a12c17f8e473.json deleted file mode 100644 index 8777fe8d9b..0000000000 --- a/rust/cloud-storage/.sqlx/query-af5a4cf73fd08698bfe9a04e6bb4441ac2b9c20b0697d52467e0a12c17f8e473.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.id,\n u.\"organizationId\" as organization_id\n FROM\n \"User\" u\n WHERE\n u.email = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "organization_id", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "af5a4cf73fd08698bfe9a04e6bb4441ac2b9c20b0697d52467e0a12c17f8e473" -} diff --git a/rust/cloud-storage/.sqlx/query-af5bcc105de6d97d360513479747e8f32d4045c3e2baa01c7100ba834dcf80e4.json b/rust/cloud-storage/.sqlx/query-af5bcc105de6d97d360513479747e8f32d4045c3e2baa01c7100ba834dcf80e4.json deleted file mode 100644 index 45ed60c4d2..0000000000 --- a/rust/cloud-storage/.sqlx/query-af5bcc105de6d97d360513479747e8f32d4045c3e2baa01c7100ba834dcf80e4.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n COALESCE(db.id, di.id) as \"id!\",\n d.uploaded\n FROM\n \"Document\" d\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" ASC\n LIMIT 1\n ) di ON d.\"fileType\" IS DISTINCT FROM 'docx'\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" ASC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n WHERE\n d.id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "uploaded", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null, - false - ] - }, - "hash": "af5bcc105de6d97d360513479747e8f32d4045c3e2baa01c7100ba834dcf80e4" -} diff --git a/rust/cloud-storage/.sqlx/query-aff64439216b670564911e5ce55437d1fa4498176f5e8deebcfc86f87cb20f54.json b/rust/cloud-storage/.sqlx/query-aff64439216b670564911e5ce55437d1fa4498176f5e8deebcfc86f87cb20f54.json deleted file mode 100644 index d9528a3e1b..0000000000 --- a/rust/cloud-storage/.sqlx/query-aff64439216b670564911e5ce55437d1fa4498176f5e8deebcfc86f87cb20f54.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM channel_notification_email_sent\n USING notification n\n WHERE n.id = ANY($1)\n AND n.event_item_type = 'channel'\n AND channel_notification_email_sent.channel_id = n.event_item_id::uuid\n AND channel_notification_email_sent.user_id = $2;\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "Text" - ] - }, - "nullable": [] - }, - "hash": "aff64439216b670564911e5ce55437d1fa4498176f5e8deebcfc86f87cb20f54" -} diff --git a/rust/cloud-storage/.sqlx/query-afff07a12eda767f4facb034315ce7e3d89db508f08afe5c547e981a875e9801.json b/rust/cloud-storage/.sqlx/query-afff07a12eda767f4facb034315ce7e3d89db508f08afe5c547e981a875e9801.json deleted file mode 100644 index b56a60c64f..0000000000 --- a/rust/cloud-storage/.sqlx/query-afff07a12eda767f4facb034315ce7e3d89db508f08afe5c547e981a875e9801.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT cp.channel_id::text FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "afff07a12eda767f4facb034315ce7e3d89db508f08afe5c547e981a875e9801" -} diff --git a/rust/cloud-storage/.sqlx/query-b00d96876f6101270b5de19e4cfa219f542dd6c24ecf785b30ef8749c0443373.json b/rust/cloud-storage/.sqlx/query-b00d96876f6101270b5de19e4cfa219f542dd6c24ecf785b30ef8749c0443373.json deleted file mode 100644 index ee71889852..0000000000 --- a/rust/cloud-storage/.sqlx/query-b00d96876f6101270b5de19e4cfa219f542dd6c24ecf785b30ef8749c0443373.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO macro_user_info (macro_user_id, first_name, last_name)\n VALUES ($1, $2, $3)\n ON CONFLICT (macro_user_id)\n DO UPDATE SET \n first_name = COALESCE(EXCLUDED.first_name, macro_user_info.first_name),\n last_name = COALESCE(EXCLUDED.last_name, macro_user_info.last_name)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "b00d96876f6101270b5de19e4cfa219f542dd6c24ecf785b30ef8749c0443373" -} diff --git a/rust/cloud-storage/.sqlx/query-b08f21bc79644b7ae980ef17ea38f60be7749e48143ad40a164b236e977157f3.json b/rust/cloud-storage/.sqlx/query-b08f21bc79644b7ae980ef17ea38f60be7749e48143ad40a164b236e977157f3.json deleted file mode 100644 index 4327d95754..0000000000 --- a/rust/cloud-storage/.sqlx/query-b08f21bc79644b7ae980ef17ea38f60be7749e48143ad40a164b236e977157f3.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChannelSharePermission\" (\"share_permission_id\", \"channel_id\", \"access_level\")\n SELECT $1, channel_id, access_level::\"AccessLevel\"\n FROM UNNEST($2::text[], $3::text[]) AS t(channel_id, access_level)\n ON CONFLICT (\"share_permission_id\", \"channel_id\")\n DO UPDATE SET \"access_level\" = EXCLUDED.\"access_level\"\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "b08f21bc79644b7ae980ef17ea38f60be7749e48143ad40a164b236e977157f3" -} diff --git a/rust/cloud-storage/.sqlx/query-b0c4750b13bbd3de768ac09f971094ac7f53c161f7054083964f472fa01dd83d.json b/rust/cloud-storage/.sqlx/query-b0c4750b13bbd3de768ac09f971094ac7f53c161f7054083964f472fa01dd83d.json deleted file mode 100644 index f91da73bfc..0000000000 --- a/rust/cloud-storage/.sqlx/query-b0c4750b13bbd3de768ac09f971094ac7f53c161f7054083964f472fa01dd83d.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, email_address\n FROM email_contacts\n WHERE link_id = $1 AND email_address = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email_address", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "b0c4750b13bbd3de768ac09f971094ac7f53c161f7054083964f472fa01dd83d" -} diff --git a/rust/cloud-storage/.sqlx/query-b0d3b6f03c4160e443a3fe91c870187c3178efdf6853a22ee319c0163b1f6013.json b/rust/cloud-storage/.sqlx/query-b0d3b6f03c4160e443a3fe91c870187c3178efdf6853a22ee319c0163b1f6013.json deleted file mode 100644 index b18fa9a1d9..0000000000 --- a/rust/cloud-storage/.sqlx/query-b0d3b6f03c4160e443a3fe91c870187c3178efdf6853a22ee319c0163b1f6013.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, message_id, entity_type, entity_id,\n width AS \"width?\", height AS \"height?\", created_at\n FROM comms_attachments\n WHERE message_id = ANY($1)\n ORDER BY created_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "entity_type", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "entity_id", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "width?", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "height?", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - false, - true, - true, - false - ] - }, - "hash": "b0d3b6f03c4160e443a3fe91c870187c3178efdf6853a22ee319c0163b1f6013" -} diff --git a/rust/cloud-storage/.sqlx/query-b0e8935f157a7ae307fb050b39d0dde4e9e2e39f7cb20c716fbbcc1ffe320cd1.json b/rust/cloud-storage/.sqlx/query-b0e8935f157a7ae307fb050b39d0dde4e9e2e39f7cb20c716fbbcc1ffe320cd1.json deleted file mode 100644 index e2f94b21f4..0000000000 --- a/rust/cloud-storage/.sqlx/query-b0e8935f157a7ae307fb050b39d0dde4e9e2e39f7cb20c716fbbcc1ffe320cd1.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_message_labels\n WHERE\n message_id = ANY($1)\n AND label_id = (\n SELECT id FROM email_labels\n WHERE link_id = $2 AND provider_label_id = $3\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "b0e8935f157a7ae307fb050b39d0dde4e9e2e39f7cb20c716fbbcc1ffe320cd1" -} diff --git a/rust/cloud-storage/.sqlx/query-b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc.json b/rust/cloud-storage/.sqlx/query-b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc.json deleted file mode 100644 index 3cf399f742..0000000000 --- a/rust/cloud-storage/.sqlx/query-b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO memory (id, user_id, memory)\n VALUES ($1, $2, $3)\n ON CONFLICT (user_id) DO UPDATE\n SET memory = EXCLUDED.memory,\n updated_at = NOW()\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc" -} diff --git a/rust/cloud-storage/.sqlx/query-b10ef9924835c2dce77ce8b77c877a78ca0d7a1e7efff35864c58ba34028f2e6.json b/rust/cloud-storage/.sqlx/query-b10ef9924835c2dce77ce8b77c877a78ca0d7a1e7efff35864c58ba34028f2e6.json deleted file mode 100644 index 8378b42025..0000000000 --- a/rust/cloud-storage/.sqlx/query-b10ef9924835c2dce77ce8b77c877a78ca0d7a1e7efff35864c58ba34028f2e6.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE crm_contacts SET hidden = FALSE WHERE company_id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "b10ef9924835c2dce77ce8b77c877a78ca0d7a1e7efff35864c58ba34028f2e6" -} diff --git a/rust/cloud-storage/.sqlx/query-b14f90ed1d2e7f0121f95af1b0d364f1a7feee942c2a3785bf39c6f110aa70ba.json b/rust/cloud-storage/.sqlx/query-b14f90ed1d2e7f0121f95af1b0d364f1a7feee942c2a3785bf39c6f110aa70ba.json deleted file mode 100644 index 2868a9715f..0000000000 --- a/rust/cloud-storage/.sqlx/query-b14f90ed1d2e7f0121f95af1b0d364f1a7feee942c2a3785bf39c6f110aa70ba.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, owner, resolved, metadata, created_at, updated_at, deleted_at\n FROM crm_thread\n WHERE (company_id = $1 OR contact_id = $2)\n AND deleted_at IS NULL\n ORDER BY created_at ASC, id ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "resolved", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - false, - true - ] - }, - "hash": "b14f90ed1d2e7f0121f95af1b0d364f1a7feee942c2a3785bf39c6f110aa70ba" -} diff --git a/rust/cloud-storage/.sqlx/query-b1512adda253fc7e653344f6a679a4c78af368aa2134b235f8e1f046daa197bc.json b/rust/cloud-storage/.sqlx/query-b1512adda253fc7e653344f6a679a4c78af368aa2134b235f8e1f046daa197bc.json deleted file mode 100644 index 396c983fd4..0000000000 --- a/rust/cloud-storage/.sqlx/query-b1512adda253fc7e653344f6a679a4c78af368aa2134b235f8e1f046daa197bc.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id,\n c.name,\n c.model,\n c.\"tokenCount\" as \"token_count\",\n c.\"userId\" as \"user_id\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\"\n FROM \"Chat\" c\n WHERE c.\"userId\" = $1 AND c.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "model", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "token_count", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "is_persistent", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - null, - null, - null, - true, - false - ] - }, - "hash": "b1512adda253fc7e653344f6a679a4c78af368aa2134b235f8e1f046daa197bc" -} diff --git a/rust/cloud-storage/.sqlx/query-b15f651be8f722d57f1c85ca4d9a14cae3fdde155d4f8c94418186d5a37f0686.json b/rust/cloud-storage/.sqlx/query-b15f651be8f722d57f1c85ca4d9a14cae3fdde155d4f8c94418186d5a37f0686.json deleted file mode 100644 index 77467cfa54..0000000000 --- a/rust/cloud-storage/.sqlx/query-b15f651be8f722d57f1c85ca4d9a14cae3fdde155d4f8c94418186d5a37f0686.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE scheduled_action\n SET updated_at = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Timestamptz", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "b15f651be8f722d57f1c85ca4d9a14cae3fdde155d4f8c94418186d5a37f0686" -} diff --git a/rust/cloud-storage/.sqlx/query-b1766b649fb0b0307cb41db8adbfd996ffa1262e0a6ba8a8e1c58414759a1fec.json b/rust/cloud-storage/.sqlx/query-b1766b649fb0b0307cb41db8adbfd996ffa1262e0a6ba8a8e1c58414759a1fec.json deleted file mode 100644 index b722895ef4..0000000000 --- a/rust/cloud-storage/.sqlx/query-b1766b649fb0b0307cb41db8adbfd996ffa1262e0a6ba8a8e1c58414759a1fec.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Document\"\n SET \"updatedAt\" = NOW()\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "b1766b649fb0b0307cb41db8adbfd996ffa1262e0a6ba8a8e1c58414759a1fec" -} diff --git a/rust/cloud-storage/.sqlx/query-b1c4d610f2fe772e88b8e78bc872f01c886031d866616effed3c6a61a99d2413.json b/rust/cloud-storage/.sqlx/query-b1c4d610f2fe772e88b8e78bc872f01c886031d866616effed3c6a61a99d2413.json deleted file mode 100644 index 9d7bd134c0..0000000000 --- a/rust/cloud-storage/.sqlx/query-b1c4d610f2fe772e88b8e78bc872f01c886031d866616effed3c6a61a99d2413.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_messages m\n SET\n is_read = $1,\n updated_at = NOW()\n WHERE\n m.id = ANY($2)\n AND m.link_id = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Bool", - "UuidArray", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "b1c4d610f2fe772e88b8e78bc872f01c886031d866616effed3c6a61a99d2413" -} diff --git a/rust/cloud-storage/.sqlx/query-b288dfc8e7703bdfb49bc1066c290743da8653dc50e3d388697e429308afeafa.json b/rust/cloud-storage/.sqlx/query-b288dfc8e7703bdfb49bc1066c290743da8653dc50e3d388697e429308afeafa.json deleted file mode 100644 index 8844ec6411..0000000000 --- a/rust/cloud-storage/.sqlx/query-b288dfc8e7703bdfb49bc1066c290743da8653dc50e3d388697e429308afeafa.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT c.id\n FROM comms_channels c\n INNER JOIN comms_channel_participants cp ON cp.channel_id = c.id \n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n AND c.id = ANY($2::uuid[])\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text", - "UuidArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b288dfc8e7703bdfb49bc1066c290743da8653dc50e3d388697e429308afeafa" -} diff --git a/rust/cloud-storage/.sqlx/query-b29f648b6a5be28708366ba264bab55518d34313519a62edf4174269606b1b1c.json b/rust/cloud-storage/.sqlx/query-b29f648b6a5be28708366ba264bab55518d34313519a62edf4174269606b1b1c.json deleted file mode 100644 index d4fe58887c..0000000000 --- a/rust/cloud-storage/.sqlx/query-b29f648b6a5be28708366ba264bab55518d34313519a62edf4174269606b1b1c.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"UserHistory\" WHERE \"itemId\" = ANY($1) AND \"itemType\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "Text" - ] - }, - "nullable": [] - }, - "hash": "b29f648b6a5be28708366ba264bab55518d34313519a62edf4174269606b1b1c" -} diff --git a/rust/cloud-storage/.sqlx/query-b2a631a3c9b08b85813839c25a2c7a530010c3a00b2f2d67403bc036af6c8fb5.json b/rust/cloud-storage/.sqlx/query-b2a631a3c9b08b85813839c25a2c7a530010c3a00b2f2d67403bc036af6c8fb5.json deleted file mode 100644 index d3fc4432fe..0000000000 --- a/rust/cloud-storage/.sqlx/query-b2a631a3c9b08b85813839c25a2c7a530010c3a00b2f2d67403bc036af6c8fb5.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n em.source_entity_type,\n em.source_entity_id,\n em.entity_type,\n em.entity_id,\n em.user_id,\n em.created_at\n FROM comms_entity_mentions em\n WHERE em.entity_type = $1\n AND em.entity_id = $2\n AND em.source_entity_type != 'message'\n ORDER BY em.created_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "source_entity_type", - "type_info": "Varchar" - }, - { - "ordinal": 1, - "name": "source_entity_id", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "entity_type", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "entity_id", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "user_id", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - true, - false - ] - }, - "hash": "b2a631a3c9b08b85813839c25a2c7a530010c3a00b2f2d67403bc036af6c8fb5" -} diff --git a/rust/cloud-storage/.sqlx/query-b2dc0d50f7cd7e961844c553feed81200e213e4f28cc7d2940a93aabe83877b0.json b/rust/cloud-storage/.sqlx/query-b2dc0d50f7cd7e961844c553feed81200e213e4f28cc7d2940a93aabe83877b0.json deleted file mode 100644 index 9f9c30968a..0000000000 --- a/rust/cloud-storage/.sqlx/query-b2dc0d50f7cd7e961844c553feed81200e213e4f28cc7d2940a93aabe83877b0.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH user_channels AS (\n SELECT DISTINCT c.id, c.created_at\n FROM comms_channels c\n INNER JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n )\n SELECT\n id as \"id!\"\n FROM user_channels\n ORDER BY created_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b2dc0d50f7cd7e961844c553feed81200e213e4f28cc7d2940a93aabe83877b0" -} diff --git a/rust/cloud-storage/.sqlx/query-b32146bc8bdbfa29785dca351729944da36cdeb0c7d3d9e778dd91ff8a470b51.json b/rust/cloud-storage/.sqlx/query-b32146bc8bdbfa29785dca351729944da36cdeb0c7d3d9e778dd91ff8a470b51.json deleted file mode 100644 index 1a175da2ba..0000000000 --- a/rust/cloud-storage/.sqlx/query-b32146bc8bdbfa29785dca351729944da36cdeb0c7d3d9e778dd91ff8a470b51.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE call_records SET custom_name = $2 WHERE id = $1 AND custom_name IS NULL", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "b32146bc8bdbfa29785dca351729944da36cdeb0c7d3d9e778dd91ff8a470b51" -} diff --git a/rust/cloud-storage/.sqlx/query-b370ac2ac7ace6911ff13454d24ff42b906dcc72b2fb4bcd783b8cb7c06ceab4.json b/rust/cloud-storage/.sqlx/query-b370ac2ac7ace6911ff13454d24ff42b906dcc72b2fb4bcd783b8cb7c06ceab4.json deleted file mode 100644 index 4ab9cd0461..0000000000 --- a/rust/cloud-storage/.sqlx/query-b370ac2ac7ace6911ff13454d24ff42b906dcc72b2fb4bcd783b8cb7c06ceab4.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM entity_properties WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "b370ac2ac7ace6911ff13454d24ff42b906dcc72b2fb4bcd783b8cb7c06ceab4" -} diff --git a/rust/cloud-storage/.sqlx/query-b3bb26f4b163d8bea13a5a3fb0ea3d89543ceaefae74f8962e4504196d0b76c2.json b/rust/cloud-storage/.sqlx/query-b3bb26f4b163d8bea13a5a3fb0ea3d89543ceaefae74f8962e4504196d0b76c2.json deleted file mode 100644 index 3a0d508069..0000000000 --- a/rust/cloud-storage/.sqlx/query-b3bb26f4b163d8bea13a5a3fb0ea3d89543ceaefae74f8962e4504196d0b76c2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT document_id\n FROM document_email de\n INNER JOIN \"Document\" d on de.document_id = d.id\n INNER JOIN email_attachments ea on de.email_attachment_id = ea.id\n INNER JOIN email_messages em on ea.message_id = em.id\n WHERE email_attachment_id = $1 AND d.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b3bb26f4b163d8bea13a5a3fb0ea3d89543ceaefae74f8962e4504196d0b76c2" -} diff --git a/rust/cloud-storage/.sqlx/query-b3c25afc80ddf84ba0a49578a6b1d5e70039c2d64a25a54ef42b25889e75b653.json b/rust/cloud-storage/.sqlx/query-b3c25afc80ddf84ba0a49578a6b1d5e70039c2d64a25a54ef42b25889e75b653.json deleted file mode 100644 index 28de32369e..0000000000 --- a/rust/cloud-storage/.sqlx/query-b3c25afc80ddf84ba0a49578a6b1d5e70039c2d64a25a54ef42b25889e75b653.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS (\n SELECT 1 FROM crm_contacts c\n JOIN crm_companies co ON co.id = c.company_id\n WHERE c.id = $1\n AND co.team_id = $2\n AND ($3 OR (c.hidden = FALSE AND co.hidden = FALSE))\n ) AS \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Bool" - ] - }, - "nullable": [ - null - ] - }, - "hash": "b3c25afc80ddf84ba0a49578a6b1d5e70039c2d64a25a54ef42b25889e75b653" -} diff --git a/rust/cloud-storage/.sqlx/query-b3d2194b79197b2d5e02ee8b7c243b70c598adf488d805325475770ae3b7c51e.json b/rust/cloud-storage/.sqlx/query-b3d2194b79197b2d5e02ee8b7c243b70c598adf488d805325475770ae3b7c51e.json deleted file mode 100644 index 5564261909..0000000000 --- a/rust/cloud-storage/.sqlx/query-b3d2194b79197b2d5e02ee8b7c243b70c598adf488d805325475770ae3b7c51e.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n u.id,\n u.\"stripeCustomerId\" as \"stripe_customer_id\"\n FROM \"User\" u\n WHERE u.\"macro_user_id\" IS NULL\n AND u.id > $1\n ORDER BY u.id ASC\n LIMIT $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "stripe_customer_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Int8" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "b3d2194b79197b2d5e02ee8b7c243b70c598adf488d805325475770ae3b7c51e" -} diff --git a/rust/cloud-storage/.sqlx/query-b3d476868aa3b19eb8407112f0cabdce0882403268c35f6a4acf62c1212183fb.json b/rust/cloud-storage/.sqlx/query-b3d476868aa3b19eb8407112f0cabdce0882403268c35f6a4acf62c1212183fb.json deleted file mode 100644 index 08a280e9fc..0000000000 --- a/rust/cloud-storage/.sqlx/query-b3d476868aa3b19eb8407112f0cabdce0882403268c35f6a4acf62c1212183fb.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE crm_comment SET deleted_at = now(), updated_at = now() WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "b3d476868aa3b19eb8407112f0cabdce0882403268c35f6a4acf62c1212183fb" -} diff --git a/rust/cloud-storage/.sqlx/query-b3f9f3696438bd2ad8754650d87d7bbf32e70d3d173a748a07eacdb4e42841eb.json b/rust/cloud-storage/.sqlx/query-b3f9f3696438bd2ad8754650d87d7bbf32e70d3d173a748a07eacdb4e42841eb.json deleted file mode 100644 index 2ae6f0e18e..0000000000 --- a/rust/cloud-storage/.sqlx/query-b3f9f3696438bd2ad8754650d87d7bbf32e70d3d173a748a07eacdb4e42841eb.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO notification_user_device_registration (id, user_id, device_token, device_endpoint, device_type)\n VALUES ($1, $2, $3, $4, $5)\n ON CONFLICT (device_endpoint) DO UPDATE SET user_id = $2, device_token = $3, device_type = $5, updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Text", - { - "Custom": { - "name": "notification_device_type_option", - "kind": { - "Enum": [ - "ios", - "android", - "iosvoip" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "b3f9f3696438bd2ad8754650d87d7bbf32e70d3d173a748a07eacdb4e42841eb" -} diff --git a/rust/cloud-storage/.sqlx/query-b42c868de92630b2d5ee37fc64299df3d949da660e009f35c480ba9fb19c9e07.json b/rust/cloud-storage/.sqlx/query-b42c868de92630b2d5ee37fc64299df3d949da660e009f35c480ba9fb19c9e07.json deleted file mode 100644 index a93030266b..0000000000 --- a/rust/cloud-storage/.sqlx/query-b42c868de92630b2d5ee37fc64299df3d949da660e009f35c480ba9fb19c9e07.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Thread\" t\n SET \"updatedAt\" = NOW()\n WHERE t.\"documentId\" = $1 AND t.\"deletedAt\" IS NULL AND t.id = $2\n RETURNING\n t.id as thread_id, \n t.resolved, \n t.\"documentId\" as document_id, \n t.\"createdAt\"::timestamptz as created_at, \n t.\"updatedAt\"::timestamptz as updated_at, \n t.\"deletedAt\"::timestamptz as deleted_at, \n t.metadata, \n t.owner\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "resolved", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 7, - "name": "owner", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - null, - null, - null, - true, - false - ] - }, - "hash": "b42c868de92630b2d5ee37fc64299df3d949da660e009f35c480ba9fb19c9e07" -} diff --git a/rust/cloud-storage/.sqlx/query-b43285d8bb2b9758fcc84c13979c3a54ffc28abf61e66e354667d26ef3c40739.json b/rust/cloud-storage/.sqlx/query-b43285d8bb2b9758fcc84c13979c3a54ffc28abf61e66e354667d26ef3c40739.json deleted file mode 100644 index 7fae9257bc..0000000000 --- a/rust/cloud-storage/.sqlx/query-b43285d8bb2b9758fcc84c13979c3a54ffc28abf61e66e354667d26ef3c40739.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChatPermission\" (\"chatId\", \"sharePermissionId\")\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "b43285d8bb2b9758fcc84c13979c3a54ffc28abf61e66e354667d26ef3c40739" -} diff --git a/rust/cloud-storage/.sqlx/query-b46b2b51f07ec4fc65cd158b210ce262e9ab44f10825969072c01a8fe3022a23.json b/rust/cloud-storage/.sqlx/query-b46b2b51f07ec4fc65cd158b210ce262e9ab44f10825969072c01a8fe3022a23.json deleted file mode 100644 index 93348ea121..0000000000 --- a/rust/cloud-storage/.sqlx/query-b46b2b51f07ec4fc65cd158b210ce262e9ab44f10825969072c01a8fe3022a23.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"ChannelSharePermission\"\n WHERE \"share_permission_id\" = $1\n AND \"channel_id\" = ANY($2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "b46b2b51f07ec4fc65cd158b210ce262e9ab44f10825969072c01a8fe3022a23" -} diff --git a/rust/cloud-storage/.sqlx/query-b493e6fd1c1d8c34366f756fed903ef53cc87fab0b12cff50d2e3474ff997bd6.json b/rust/cloud-storage/.sqlx/query-b493e6fd1c1d8c34366f756fed903ef53cc87fab0b12cff50d2e3474ff997bd6.json deleted file mode 100644 index 6954ba0a21..0000000000 --- a/rust/cloud-storage/.sqlx/query-b493e6fd1c1d8c34366f756fed903ef53cc87fab0b12cff50d2e3474ff997bd6.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id as \"id!: Uuid\",\n foreign_entity_id as \"foreign_entity_id!: String\",\n foreign_entity_source as \"foreign_entity_source!: String\",\n metadata as \"metadata!: serde_json::Value\",\n stored_for_id as \"stored_for_id!: String\",\n stored_for_auth_entity as \"stored_for_auth_entity!: String\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\"\n FROM foreign_entity\n WHERE foreign_entity_id = $1\n AND ($2::text IS NULL OR foreign_entity_source = $2)\n ORDER BY created_at ASC, id ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "foreign_entity_id!: String", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "foreign_entity_source!: String", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "metadata!: serde_json::Value", - "type_info": "Jsonb" - }, - { - "ordinal": 4, - "name": "stored_for_id!: String", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "stored_for_auth_entity!: String", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "created_at!: DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at!: DateTime", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "b493e6fd1c1d8c34366f756fed903ef53cc87fab0b12cff50d2e3474ff997bd6" -} diff --git a/rust/cloud-storage/.sqlx/query-b4d3994adddd1a4b1c769cf01690bedbf26640fdfad218b4dca813bdcee08a5a.json b/rust/cloud-storage/.sqlx/query-b4d3994adddd1a4b1c769cf01690bedbf26640fdfad218b4dca813bdcee08a5a.json deleted file mode 100644 index 765e4bd327..0000000000 --- a/rust/cloud-storage/.sqlx/query-b4d3994adddd1a4b1c769cf01690bedbf26640fdfad218b4dca813bdcee08a5a.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT DISTINCT emr.message_id\n FROM email_message_recipients emr\n JOIN email_messages m ON m.id = emr.message_id\n WHERE emr.message_id = ANY($1)\n AND m.from_contact_id IS NOT NULL\n AND emr.contact_id = m.from_contact_id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b4d3994adddd1a4b1c769cf01690bedbf26640fdfad218b4dca813bdcee08a5a" -} diff --git a/rust/cloud-storage/.sqlx/query-b4dee63c4a43a3451a781ef80fcc67300c2f673a0f7a7f6497690bb3adc8f06c.json b/rust/cloud-storage/.sqlx/query-b4dee63c4a43a3451a781ef80fcc67300c2f673a0f7a7f6497690bb3adc8f06c.json deleted file mode 100644 index 3bd6ad86d0..0000000000 --- a/rust/cloud-storage/.sqlx/query-b4dee63c4a43a3451a781ef80fcc67300c2f673a0f7a7f6497690bb3adc8f06c.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_messages m\n SET\n is_read = $1,\n updated_at = NOW()\n FROM email_links l\n WHERE\n m.id = ANY($2)\n AND m.link_id = l.id\n AND l.fusionauth_user_id = $3\n RETURNING m.id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Bool", - "UuidArray", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b4dee63c4a43a3451a781ef80fcc67300c2f673a0f7a7f6497690bb3adc8f06c" -} diff --git a/rust/cloud-storage/.sqlx/query-b509140ce307b4e440349fae476518b06d6247bf27821c9bea2f04c1eb999768.json b/rust/cloud-storage/.sqlx/query-b509140ce307b4e440349fae476518b06d6247bf27821c9bea2f04c1eb999768.json deleted file mode 100644 index b0fb21d85c..0000000000 --- a/rust/cloud-storage/.sqlx/query-b509140ce307b4e440349fae476518b06d6247bf27821c9bea2f04c1eb999768.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n -- =============================================================================\n -- EXPANDED GENERIC CURSOR SOUP QUERY\n -- =============================================================================\n -- Retrieves all items (documents, chats, projects) that a user has access to,\n -- including both explicit permissions and inherited permissions through the\n -- project hierarchy.\n -- =============================================================================\n\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n\n UserAccessibleItems AS (\n SELECT DISTINCT\n ea.entity_id::text as item_id,\n ea.entity_type as item_type\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n ),\n\n -- Identify the top N items with minimal columns before joining full details.\n -- Performs early filtering and sorting to reduce the data processed in\n -- subsequent joins.\n TopItems AS (\n SELECT item_type, id, sort_ts, updated_at FROM (\n SELECT\n 'document'::text as item_type,\n d.id,\n -- Dynamic sort column based on user's selected sort method\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", d.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN d.\"createdAt\"\n ELSE d.\"updatedAt\"\n END::timestamptz as sort_ts,\n d.\"updatedAt\"::timestamptz as updated_at\n FROM \"Document\" d\n INNER JOIN UserAccessibleItems uai ON uai.item_id = d.id AND uai.item_type = 'document'\n LEFT JOIN \"UserHistory\" uh ON uh.\"itemId\" = d.id AND uh.\"itemType\" = 'document' AND uh.\"userId\" = $1\n WHERE d.\"deletedAt\" IS NULL\n\n UNION ALL\n\n SELECT\n 'chat'::text,\n c.id,\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", c.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN c.\"createdAt\"\n ELSE c.\"updatedAt\"\n END::timestamptz,\n c.\"updatedAt\"::timestamptz\n FROM \"Chat\" c\n INNER JOIN UserAccessibleItems uai ON uai.item_id = c.id AND uai.item_type = 'chat'\n LEFT JOIN \"UserHistory\" uh ON uh.\"itemId\" = c.id AND uh.\"itemType\" = 'chat' AND uh.\"userId\" = $1\n WHERE c.\"deletedAt\" IS NULL\n\n UNION ALL\n\n SELECT\n 'project'::text,\n p.id,\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", p.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN p.\"createdAt\"\n ELSE p.\"updatedAt\"\n END::timestamptz,\n p.\"updatedAt\"::timestamptz\n FROM \"Project\" p\n INNER JOIN UserAccessibleItems uai ON uai.item_id = p.id AND uai.item_type = 'project'\n LEFT JOIN \"UserHistory\" uh ON uh.\"itemId\" = p.id AND uh.\"itemType\" = 'project' AND uh.\"userId\" = $1\n WHERE p.\"deletedAt\" IS NULL\n ) all_items\n WHERE\n -- Cursor-based pagination: skip items we've already seen.\n -- NULL cursor means first page (no items to skip).\n ($4::timestamptz IS NULL)\n OR\n -- Seek method: find items \"before\" the cursor position\n -- using (sort_ts, id) tuple comparison for deterministic ordering\n (sort_ts, id::text) < ($4, $5)\n ORDER BY sort_ts DESC, id DESC\n LIMIT $3\n )\n\n -- Join full item details only for the filtered top items.\n SELECT * FROM (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\",\n d.\"projectId\" as \"project_id\",\n NULL as \"is_persistent\",\n di.sha as \"sha\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n t.sort_ts as \"sort_ts!\",\n -- Task completion status: check if status property matches \"completed\"\n CASE\n WHEN dt.sub_type = 'task'\n AND ep_status.values->'value' ? $6\n THEN true\n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL\n END as \"is_completed\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM TopItems t\n INNER JOIN \"Document\" d ON d.id = t.id\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status\n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id\n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $7\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = d.id AND uh.\"itemType\" = 'document' AND uh.\"userId\" = $1\n -- LATERAL joins to get the latest version info\n LEFT JOIN LATERAL (\n SELECT b.id\n FROM \"DocumentBom\" b\n WHERE b.\"documentId\" = d.id\n ORDER BY b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT i.id, i.sha\n FROM \"DocumentInstance\" i\n WHERE i.\"documentId\" = d.id\n ORDER BY i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n WHERE t.item_type = 'document'\n\n UNION ALL\n\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at!\",\n c.\"updatedAt\"::timestamptz as \"updated_at!\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n t.sort_ts as \"sort_ts!\",\n NULL as \"is_completed\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM TopItems t\n INNER JOIN \"Chat\" c ON c.id = t.id\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = c.id AND uh.\"itemType\" = 'chat' AND uh.\"userId\" = $1\n WHERE t.item_type = 'chat'\n\n UNION ALL\n\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at!\",\n p.\"updatedAt\"::timestamptz as \"updated_at!\",\n p.\"parentId\" as \"project_id\",\n NULL as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n t.sort_ts as \"sort_ts!\",\n NULL as \"is_completed\",\n p.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM TopItems t\n INNER JOIN \"Project\" p ON p.id = t.id\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = p.id AND uh.\"itemType\" = 'project' AND uh.\"userId\" = $1\n WHERE t.item_type = 'project'\n ) Combined\n -- Sort by timestamp descending, with ID as tiebreaker for deterministic pagination.\n -- This ensures consistent ordering when multiple items share the same timestamp,\n -- preventing items from being skipped or duplicated across pages.\n ORDER BY \"sort_ts!\" DESC, \"id!\" DESC\n LIMIT $3\n", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_type!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_version_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "user_id!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "name!", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 8, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "is_persistent", - "type_info": "Bool" - }, - { - "ordinal": 13, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 14, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 15, - "name": "viewed_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 16, - "name": "sort_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 17, - "name": "is_completed", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Int8", - "Timestamptz", - "Text", - "Text", - "Uuid" - ] - }, - "nullable": [ - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null - ] - }, - "hash": "b509140ce307b4e440349fae476518b06d6247bf27821c9bea2f04c1eb999768" -} diff --git a/rust/cloud-storage/.sqlx/query-b5578ab6da001f418fe8ff216616b79eb80caf8e2677fcf4e7127151060a50ea.json b/rust/cloud-storage/.sqlx/query-b5578ab6da001f418fe8ff216616b79eb80caf8e2677fcf4e7127151060a50ea.json deleted file mode 100644 index 2c70220aed..0000000000 --- a/rust/cloud-storage/.sqlx/query-b5578ab6da001f418fe8ff216616b79eb80caf8e2677fcf4e7127151060a50ea.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id as \"channel_id\"\n FROM\n comms_channels\n ORDER BY\n created_at ASC\n LIMIT $1\n OFFSET $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b5578ab6da001f418fe8ff216616b79eb80caf8e2677fcf4e7127151060a50ea" -} diff --git a/rust/cloud-storage/.sqlx/query-b55c3a778e4ed824b71b4e26b20ebf12413a8a0bf8fee05fa130afb72c55ee41.json b/rust/cloud-storage/.sqlx/query-b55c3a778e4ed824b71b4e26b20ebf12413a8a0bf8fee05fa130afb72c55ee41.json deleted file mode 100644 index f902aa8188..0000000000 --- a/rust/cloud-storage/.sqlx/query-b55c3a778e4ed824b71b4e26b20ebf12413a8a0bf8fee05fa130afb72c55ee41.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n id, \n owner, \n text as content, \n \"createdAt\" as created_at, \n \"updatedAt\" as updated_at,\n \"order\"\n FROM \"Comment\" \n WHERE \"threadId\" = $1\n ORDER BY \"order\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamp" - }, - { - "ordinal": 5, - "name": "order", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true - ] - }, - "hash": "b55c3a778e4ed824b71b4e26b20ebf12413a8a0bf8fee05fa130afb72c55ee41" -} diff --git a/rust/cloud-storage/.sqlx/query-b57aac0fecf4aa66721fe3596797e1256c960fed355a37cba8c9c1eeb630a5b6.json b/rust/cloud-storage/.sqlx/query-b57aac0fecf4aa66721fe3596797e1256c960fed355a37cba8c9c1eeb630a5b6.json deleted file mode 100644 index c55d8a1a72..0000000000 --- a/rust/cloud-storage/.sqlx/query-b57aac0fecf4aa66721fe3596797e1256c960fed355a37cba8c9c1eeb630a5b6.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM \"entity_access\" WHERE \"entity_id\" = $1 AND \"entity_type\" = $2", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "b57aac0fecf4aa66721fe3596797e1256c960fed355a37cba8c9c1eeb630a5b6" -} diff --git a/rust/cloud-storage/.sqlx/query-b58ccd6afec0fb6636951e7cdb17390b5d1e56dbaa6b8e59bc35e2a2e4937c34.json b/rust/cloud-storage/.sqlx/query-b58ccd6afec0fb6636951e7cdb17390b5d1e56dbaa6b8e59bc35e2a2e4937c34.json deleted file mode 100644 index 525ad24a53..0000000000 --- a/rust/cloud-storage/.sqlx/query-b58ccd6afec0fb6636951e7cdb17390b5d1e56dbaa6b8e59bc35e2a2e4937c34.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n t.id,\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n (\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m_imp.thread_id = t.id\n AND l.name = 'IMPORTANT'\n AND l.link_id = t.link_id\n )\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Find the latest draft timestamp for each thread, calculate the\n -- effective sort key, then sort and limit the results. This is the core optimization.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.inbox_visible,\n t.is_read,\n t.project_id,\n ldpt.latest_draft_ts AS created_at,\n ldpt.latest_draft_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, ldpt.latest_draft_ts)\n ELSE ldpt.latest_draft_ts\n END AS effective_ts\n FROM (\n -- This sub-subquery efficiently finds the latest draft timestamp for every thread.\n SELECT m.thread_id, MAX(m.updated_at) as latest_draft_ts\n FROM email_messages m\n -- we only display macro drafts, not drafts created in gmail\n WHERE m.link_id = ANY($1) AND m.is_draft = TRUE AND m.internal_date_ts IS NULL\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id AND l.name = 'TRASH' AND l.link_id = m.link_id\n )\n GROUP BY m.thread_id\n ) ldpt\n JOIN email_threads t ON ldpt.thread_id = t.id\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n (($3::timestamptz IS NULL) OR (\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, ldpt.latest_draft_ts)\n ELSE ldpt.latest_draft_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find the full details of its latest draft.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name,\n m.is_draft\n FROM email_messages m\n WHERE m.thread_id = t.id\n AND m.is_draft = TRUE\n -- we only display macro drafts, not drafts created in gmail\n AND m.internal_date_ts IS NULL\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id AND l.name = 'TRASH' AND l.link_id = t.link_id\n )\n ORDER BY m.updated_at DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n ORDER BY t.effective_ts DESC, t.updated_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "inbox_visible", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "sort_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "viewed_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "name?", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "snippet?", - "type_info": "Text" - }, - { - "ordinal": 11, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 12, - "name": "is_important!", - "type_info": "Bool" - }, - { - "ordinal": 13, - "name": "sender_email?", - "type_info": "Varchar" - }, - { - "ordinal": 14, - "name": "sender_name?", - "type_info": "Varchar" - }, - { - "ordinal": 15, - "name": "sender_photo_url?", - "type_info": "Text" - }, - { - "ordinal": 16, - "name": "owner_id!", - "type_info": "Text" - }, - { - "ordinal": 17, - "name": "link_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "Int8", - "Timestamptz", - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - true, - false, - false, - null, - null, - null, - true, - false, - true, - true, - false, - null, - false, - null, - true, - false, - false - ] - }, - "hash": "b58ccd6afec0fb6636951e7cdb17390b5d1e56dbaa6b8e59bc35e2a2e4937c34" -} diff --git a/rust/cloud-storage/.sqlx/query-b5bf34fa23cec47e38d38cee18acffed018d15459e101dc907bd1fafb2158979.json b/rust/cloud-storage/.sqlx/query-b5bf34fa23cec47e38d38cee18acffed018d15459e101dc907bd1fafb2158979.json deleted file mode 100644 index 3254e45676..0000000000 --- a/rust/cloud-storage/.sqlx/query-b5bf34fa23cec47e38d38cee18acffed018d15459e101dc907bd1fafb2158979.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.provider_history_id,\n m.replying_to_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n NULL::TEXT as body_text,\n NULL::TEXT as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n JOIN email_links l ON m.link_id = l.id\n WHERE m.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 21, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 22, - "name": "body_macro", - "type_info": "Text" - }, - { - "ordinal": 23, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 24, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 25, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - null, - null, - null, - true, - false, - false - ] - }, - "hash": "b5bf34fa23cec47e38d38cee18acffed018d15459e101dc907bd1fafb2158979" -} diff --git a/rust/cloud-storage/.sqlx/query-b62a8743ac8151822dcb51e80c61f9c9496412cf76d6fb5158fdc5510f59464d.json b/rust/cloud-storage/.sqlx/query-b62a8743ac8151822dcb51e80c61f9c9496412cf76d6fb5158fdc5510f59464d.json deleted file mode 100644 index f7f36883d1..0000000000 --- a/rust/cloud-storage/.sqlx/query-b62a8743ac8151822dcb51e80c61f9c9496412cf76d6fb5158fdc5510f59464d.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id\n FROM\n \"Chat\" c\n WHERE\n c.id = ANY($1)\n AND c.\"projectId\" = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b62a8743ac8151822dcb51e80c61f9c9496412cf76d6fb5158fdc5510f59464d" -} diff --git a/rust/cloud-storage/.sqlx/query-b658079195dd801dac88ad00ecc09a42de5ded7acd840a8f9a3e065bcf7bcc0c.json b/rust/cloud-storage/.sqlx/query-b658079195dd801dac88ad00ecc09a42de5ded7acd840a8f9a3e065bcf7bcc0c.json deleted file mode 100644 index 32eb477e8c..0000000000 --- a/rust/cloud-storage/.sqlx/query-b658079195dd801dac88ad00ecc09a42de5ded7acd840a8f9a3e065bcf7bcc0c.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id AS \"transcript_id!\",\n speaker_id AS \"speaker_id!\",\n sequence_num AS \"sequence_num!\",\n content AS \"content!\",\n started_at AS \"started_at!\",\n ended_at\n FROM call_record_transcripts\n WHERE call_record_id = $1\n ORDER BY sequence_num ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "transcript_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "speaker_id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "sequence_num!", - "type_info": "Int4" - }, - { - "ordinal": 3, - "name": "content!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "started_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "ended_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true - ] - }, - "hash": "b658079195dd801dac88ad00ecc09a42de5ded7acd840a8f9a3e065bcf7bcc0c" -} diff --git a/rust/cloud-storage/.sqlx/query-b662ef77f95aaa2a86030fbed4f11de74d311cc1a6096e49372e6cc18581b523.json b/rust/cloud-storage/.sqlx/query-b662ef77f95aaa2a86030fbed4f11de74d311cc1a6096e49372e6cc18581b523.json deleted file mode 100644 index 2a3e8026a3..0000000000 --- a/rust/cloud-storage/.sqlx/query-b662ef77f95aaa2a86030fbed4f11de74d311cc1a6096e49372e6cc18581b523.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChatPermission\" (\"chatId\", \"sharePermissionId\")\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "b662ef77f95aaa2a86030fbed4f11de74d311cc1a6096e49372e6cc18581b523" -} diff --git a/rust/cloud-storage/.sqlx/query-b6705d3675950d0bbbd4a0ba10f7716a24694cfd98741fc0508d607684b1c8a9.json b/rust/cloud-storage/.sqlx/query-b6705d3675950d0bbbd4a0ba10f7716a24694cfd98741fc0508d607684b1c8a9.json deleted file mode 100644 index 1168d26a34..0000000000 --- a/rust/cloud-storage/.sqlx/query-b6705d3675950d0bbbd4a0ba10f7716a24694cfd98741fc0508d607684b1c8a9.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE notification_message_receipt\n SET failed = true, failed_at = NOW()\n WHERE message_id = $1\n RETURNING user_id, notification_id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "notification_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "b6705d3675950d0bbbd4a0ba10f7716a24694cfd98741fc0508d607684b1c8a9" -} diff --git a/rust/cloud-storage/.sqlx/query-b69f3eab9c2048f5fe6bb31bf4c47f85169af66827f2b09287099c14a1a6e0db.json b/rust/cloud-storage/.sqlx/query-b69f3eab9c2048f5fe6bb31bf4c47f85169af66827f2b09287099c14a1a6e0db.json deleted file mode 100644 index 3b75a10e75..0000000000 --- a/rust/cloud-storage/.sqlx/query-b69f3eab9c2048f5fe6bb31bf4c47f85169af66827f2b09287099c14a1a6e0db.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT b.id as \"id?\"\n FROM \"DocumentBom\" b\n WHERE b.\"documentId\" = $1\n ORDER BY b.\"createdAt\" DESC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id?", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b69f3eab9c2048f5fe6bb31bf4c47f85169af66827f2b09287099c14a1a6e0db" -} diff --git a/rust/cloud-storage/.sqlx/query-b6a1865f89084a577115f8567ad657db1f0c4e2420a9f428d8d75defda053444.json b/rust/cloud-storage/.sqlx/query-b6a1865f89084a577115f8567ad657db1f0c4e2420a9f428d8d75defda053444.json deleted file mode 100644 index 1672617984..0000000000 --- a/rust/cloud-storage/.sqlx/query-b6a1865f89084a577115f8567ad657db1f0c4e2420a9f428d8d75defda053444.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_sync_tokens (link_id, contacts_sync_token, other_contacts_sync_token)\n VALUES ($1, $2, $3)\n ON CONFLICT (link_id)\n DO UPDATE SET\n contacts_sync_token = $2,\n other_contacts_sync_token = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Varchar", - "Varchar" - ] - }, - "nullable": [] - }, - "hash": "b6a1865f89084a577115f8567ad657db1f0c4e2420a9f428d8d75defda053444" -} diff --git a/rust/cloud-storage/.sqlx/query-b6b4b9bdcbfcf72d970393d915c68c6230d9cf7f96e816a3f98a01b62e4a0a6c.json b/rust/cloud-storage/.sqlx/query-b6b4b9bdcbfcf72d970393d915c68c6230d9cf7f96e816a3f98a01b62e4a0a6c.json deleted file mode 100644 index 43b1c4da65..0000000000 --- a/rust/cloud-storage/.sqlx/query-b6b4b9bdcbfcf72d970393d915c68c6230d9cf7f96e816a3f98a01b62e4a0a6c.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT team_role as \"team_role!: TeamRole\"\n FROM team_user\n WHERE team_id = $1 AND user_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "team_role!: TeamRole", - "type_info": { - "Custom": { - "name": "team_role", - "kind": { - "Enum": [ - "member", - "admin", - "owner" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b6b4b9bdcbfcf72d970393d915c68c6230d9cf7f96e816a3f98a01b62e4a0a6c" -} diff --git a/rust/cloud-storage/.sqlx/query-b73077f2df6391baeaf31c0f136503cea1c346685d29795e26caab50e3654d22.json b/rust/cloud-storage/.sqlx/query-b73077f2df6391baeaf31c0f136503cea1c346685d29795e26caab50e3654d22.json deleted file mode 100644 index d13590b7e5..0000000000 --- a/rust/cloud-storage/.sqlx/query-b73077f2df6391baeaf31c0f136503cea1c346685d29795e26caab50e3654d22.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE crm_thread SET deleted_at = now(), updated_at = now() WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "b73077f2df6391baeaf31c0f136503cea1c346685d29795e26caab50e3654d22" -} diff --git a/rust/cloud-storage/.sqlx/query-b79ca4a7b148d78ddf48b5c57dea59763b17693c09564a0190ed377dd09342cf.json b/rust/cloud-storage/.sqlx/query-b79ca4a7b148d78ddf48b5c57dea59763b17693c09564a0190ed377dd09342cf.json deleted file mode 100644 index 9c01b8fe22..0000000000 --- a/rust/cloud-storage/.sqlx/query-b79ca4a7b148d78ddf48b5c57dea59763b17693c09564a0190ed377dd09342cf.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n link_id,\n provider_label_id,\n name,\n created_at,\n message_list_visibility as \"message_list_visibility: _\",\n label_list_visibility as \"label_list_visibility: _\",\n type as \"type_: _\"\n FROM email_labels\n WHERE id = $1 AND link_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_label_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "message_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_message_list_visibility_enum", - "kind": { - "Enum": [ - "Show", - "Hide" - ] - } - } - } - }, - { - "ordinal": 6, - "name": "label_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_label_list_visibility_enum", - "kind": { - "Enum": [ - "LabelShow", - "LabelShowIfUnread", - "LabelHide" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "type_: _", - "type_info": { - "Custom": { - "name": "email_label_type_enum", - "kind": { - "Enum": [ - "System", - "User" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "b79ca4a7b148d78ddf48b5c57dea59763b17693c09564a0190ed377dd09342cf" -} diff --git a/rust/cloud-storage/.sqlx/query-b7e2765c4c0999ea37d38e4a7f41e3986bdcced6e86a9c9869e38ff3e6d91c2d.json b/rust/cloud-storage/.sqlx/query-b7e2765c4c0999ea37d38e4a7f41e3986bdcced6e86a9c9869e38ff3e6d91c2d.json deleted file mode 100644 index 8f79a3db1f..0000000000 --- a/rust/cloud-storage/.sqlx/query-b7e2765c4c0999ea37d38e4a7f41e3986bdcced6e86a9c9869e38ff3e6d91c2d.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT team_id, task_num\n FROM team_task\n WHERE document_id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "team_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "task_num", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "b7e2765c4c0999ea37d38e4a7f41e3986bdcced6e86a9c9869e38ff3e6d91c2d" -} diff --git a/rust/cloud-storage/.sqlx/query-b805dc1d8b2143dbf9adc0e5478b204219a94105e0ba590db0a97f2c384a4192.json b/rust/cloud-storage/.sqlx/query-b805dc1d8b2143dbf9adc0e5478b204219a94105e0ba590db0a97f2c384a4192.json deleted file mode 100644 index 6cf702fd3f..0000000000 --- a/rust/cloud-storage/.sqlx/query-b805dc1d8b2143dbf9adc0e5478b204219a94105e0ba590db0a97f2c384a4192.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, NOW(), NOW())\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = NOW();\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "b805dc1d8b2143dbf9adc0e5478b204219a94105e0ba590db0a97f2c384a4192" -} diff --git a/rust/cloud-storage/.sqlx/query-b8176bd2c038b0cfb2b74f3c7b6a51a2d068b5253bcd3a9d16b43527ae4e8f1a.json b/rust/cloud-storage/.sqlx/query-b8176bd2c038b0cfb2b74f3c7b6a51a2d068b5253bcd3a9d16b43527ae4e8f1a.json deleted file mode 100644 index 255d60be8b..0000000000 --- a/rust/cloud-storage/.sqlx/query-b8176bd2c038b0cfb2b74f3c7b6a51a2d068b5253bcd3a9d16b43527ae4e8f1a.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH allocated AS (\n INSERT INTO team_task_counter (team_id, last_task_num)\n VALUES ($1, 1)\n ON CONFLICT (team_id) DO UPDATE\n SET last_task_num = team_task_counter.last_task_num + 1,\n updated_at = NOW()\n RETURNING last_task_num AS task_num\n )\n INSERT INTO team_task (team_id, document_id, task_num)\n SELECT $1, $2, task_num\n FROM allocated\n RETURNING task_num AS \"task_num!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "task_num!", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b8176bd2c038b0cfb2b74f3c7b6a51a2d068b5253bcd3a9d16b43527ae4e8f1a" -} diff --git a/rust/cloud-storage/.sqlx/query-b8284f96e44ea8442487dd5c99733eab3722a94e49bf01605f69c78919d8bff7.json b/rust/cloud-storage/.sqlx/query-b8284f96e44ea8442487dd5c99733eab3722a94e49bf01605f69c78919d8bff7.json deleted file mode 100644 index 5c523361fb..0000000000 --- a/rust/cloud-storage/.sqlx/query-b8284f96e44ea8442487dd5c99733eab3722a94e49bf01605f69c78919d8bff7.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"SharePermission\"\n WHERE id IN (\n SELECT \"sharePermissionId\"\n FROM \"ChatPermission\"\n WHERE \"chatId\" = $1\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "b8284f96e44ea8442487dd5c99733eab3722a94e49bf01605f69c78919d8bff7" -} diff --git a/rust/cloud-storage/.sqlx/query-b8342cf8ccfe95aad527ddf5cc49aef347e35bb2b023a820d85a2e85caaf7b61.json b/rust/cloud-storage/.sqlx/query-b8342cf8ccfe95aad527ddf5cc49aef347e35bb2b023a820d85a2e85caaf7b61.json deleted file mode 100644 index db9e518ea9..0000000000 --- a/rust/cloud-storage/.sqlx/query-b8342cf8ccfe95aad527ddf5cc49aef347e35bb2b023a820d85a2e85caaf7b61.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n t.id as thread_id, \n t.resolved, \n t.\"documentId\" as document_id, \n t.\"createdAt\"::timestamptz as created_at, \n t.\"updatedAt\"::timestamptz as updated_at, \n t.\"deletedAt\"::timestamptz as deleted_at, \n t.metadata, \n t.owner\n FROM \"Thread\" t\n WHERE t.\"documentId\" = $1 AND t.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "resolved", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 7, - "name": "owner", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - null, - null, - null, - true, - false - ] - }, - "hash": "b8342cf8ccfe95aad527ddf5cc49aef347e35bb2b023a820d85a2e85caaf7b61" -} diff --git a/rust/cloud-storage/.sqlx/query-b845e01904b9e9f8d1f322e788b7cf6555ee13b3de24bbe50bbc801a2730e446.json b/rust/cloud-storage/.sqlx/query-b845e01904b9e9f8d1f322e788b7cf6555ee13b3de24bbe50bbc801a2730e446.json deleted file mode 100644 index 45964bff36..0000000000 --- a/rust/cloud-storage/.sqlx/query-b845e01904b9e9f8d1f322e788b7cf6555ee13b3de24bbe50bbc801a2730e446.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n input.address AS \"address!\",\n (m.email IS NOT NULL) AS \"exists!\",\n COALESCE(m.contact_hidden, FALSE) AS \"contact_hidden!\",\n COALESCE(m.company_hidden, FALSE) AS \"company_hidden!\",\n COALESCE(m.email_sync, FALSE) AS \"email_sync!\"\n FROM UNNEST($2::text[]) WITH ORDINALITY AS input(address, ord)\n LEFT JOIN (\n SELECT\n ct.email AS email,\n ct.hidden AS contact_hidden,\n c.hidden AS company_hidden,\n c.email_sync AS email_sync\n FROM crm_contacts ct\n JOIN crm_companies c ON c.id = ct.company_id\n WHERE c.team_id = $1\n ) m ON m.email = input.address\n ORDER BY input.ord\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "address!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "exists!", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "contact_hidden!", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "company_hidden!", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "email_sync!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [ - null, - null, - null, - null, - null - ] - }, - "hash": "b845e01904b9e9f8d1f322e788b7cf6555ee13b3de24bbe50bbc801a2730e446" -} diff --git a/rust/cloud-storage/.sqlx/query-b85f38b29d0f452ddb8d83e3c57c25b4d5733d4bc21770570cdc8412d47ffe65.json b/rust/cloud-storage/.sqlx/query-b85f38b29d0f452ddb8d83e3c57c25b4d5733d4bc21770570cdc8412d47ffe65.json deleted file mode 100644 index 40570f2367..0000000000 --- a/rust/cloud-storage/.sqlx/query-b85f38b29d0f452ddb8d83e3c57c25b4d5733d4bc21770570cdc8412d47ffe65.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"id\"\n FROM \"User\"\n WHERE \"email\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b85f38b29d0f452ddb8d83e3c57c25b4d5733d4bc21770570cdc8412d47ffe65" -} diff --git a/rust/cloud-storage/.sqlx/query-b869e283051a5dfccf0f0ac4bdf9693b568ab6d4620ad1b2f5c63d3938e212e6.json b/rust/cloud-storage/.sqlx/query-b869e283051a5dfccf0f0ac4bdf9693b568ab6d4620ad1b2f5c63d3938e212e6.json deleted file mode 100644 index 31160a05cc..0000000000 --- a/rust/cloud-storage/.sqlx/query-b869e283051a5dfccf0f0ac4bdf9693b568ab6d4620ad1b2f5c63d3938e212e6.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE user_notification\n SET seen_at = NOW()\n WHERE notification_id = $1 AND user_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "b869e283051a5dfccf0f0ac4bdf9693b568ab6d4620ad1b2f5c63d3938e212e6" -} diff --git a/rust/cloud-storage/.sqlx/query-b8b631cf3afd7c73b5645635212bb851ba19858a47a17b0ffcbe4f15cd177cb4.json b/rust/cloud-storage/.sqlx/query-b8b631cf3afd7c73b5645635212bb851ba19858a47a17b0ffcbe4f15cd177cb4.json deleted file mode 100644 index b938c355ee..0000000000 --- a/rust/cloud-storage/.sqlx/query-b8b631cf3afd7c73b5645635212bb851ba19858a47a17b0ffcbe4f15cd177cb4.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"sharePermissionId\" as share_permission_id\n FROM \"DocumentPermission\"\n WHERE \"documentId\"=$1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b8b631cf3afd7c73b5645635212bb851ba19858a47a17b0ffcbe4f15cd177cb4" -} diff --git a/rust/cloud-storage/.sqlx/query-b8d8d71ae0d463f8a397b03d6f6d6093127a4ed57fa5ec3c2b43540ddf1fd598.json b/rust/cloud-storage/.sqlx/query-b8d8d71ae0d463f8a397b03d6f6d6093127a4ed57fa5ec3c2b43540ddf1fd598.json deleted file mode 100644 index d75c6172fb..0000000000 --- a/rust/cloud-storage/.sqlx/query-b8d8d71ae0d463f8a397b03d6f6d6093127a4ed57fa5ec3c2b43540ddf1fd598.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH input_rows (\n id,\n link_id,\n provider_label_id,\n name,\n message_list_visibility,\n label_list_visibility,\n type\n ) AS (\n SELECT * FROM unnest(\n $1::uuid[],\n $2::uuid[],\n $3::text[],\n $4::text[],\n $5::email_message_list_visibility_enum[],\n $6::email_label_list_visibility_enum[],\n $7::email_label_type_enum[]\n )\n )\n INSERT INTO email_labels (\n id,\n link_id,\n provider_label_id,\n name,\n message_list_visibility,\n label_list_visibility,\n type\n )\n SELECT\n id,\n link_id,\n provider_label_id,\n name,\n message_list_visibility,\n label_list_visibility,\n type\n FROM input_rows\n ON CONFLICT (link_id, provider_label_id) DO UPDATE\n SET\n name = EXCLUDED.name,\n message_list_visibility = EXCLUDED.message_list_visibility,\n label_list_visibility = EXCLUDED.label_list_visibility,\n type = EXCLUDED.type\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "UuidArray", - "TextArray", - "TextArray", - { - "Custom": { - "name": "email_message_list_visibility_enum[]", - "kind": { - "Array": { - "Custom": { - "name": "email_message_list_visibility_enum", - "kind": { - "Enum": [ - "Show", - "Hide" - ] - } - } - } - } - } - }, - { - "Custom": { - "name": "email_label_list_visibility_enum[]", - "kind": { - "Array": { - "Custom": { - "name": "email_label_list_visibility_enum", - "kind": { - "Enum": [ - "LabelShow", - "LabelShowIfUnread", - "LabelHide" - ] - } - } - } - } - } - }, - { - "Custom": { - "name": "email_label_type_enum[]", - "kind": { - "Array": { - "Custom": { - "name": "email_label_type_enum", - "kind": { - "Enum": [ - "System", - "User" - ] - } - } - } - } - } - } - ] - }, - "nullable": [] - }, - "hash": "b8d8d71ae0d463f8a397b03d6f6d6093127a4ed57fa5ec3c2b43540ddf1fd598" -} diff --git a/rust/cloud-storage/.sqlx/query-b8eb30360d1232b36214b17758d8c7d897251a93c7d56b310a2fc6f026fdbea9.json b/rust/cloud-storage/.sqlx/query-b8eb30360d1232b36214b17758d8c7d897251a93c7d56b310a2fc6f026fdbea9.json deleted file mode 100644 index 331e15bd4e..0000000000 --- a/rust/cloud-storage/.sqlx/query-b8eb30360d1232b36214b17758d8c7d897251a93c7d56b310a2fc6f026fdbea9.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_message_recipients\n WHERE message_id = $1\n AND (contact_id, recipient_type) NOT IN (\n SELECT contact_id, recipient_type\n FROM unnest($2::uuid[], $3::email_recipient_type[])\n AS t(contact_id, recipient_type)\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "UuidArray", - { - "Custom": { - "name": "email_recipient_type[]", - "kind": { - "Array": { - "Custom": { - "name": "email_recipient_type", - "kind": { - "Enum": [ - "TO", - "CC", - "BCC" - ] - } - } - } - } - } - } - ] - }, - "nullable": [] - }, - "hash": "b8eb30360d1232b36214b17758d8c7d897251a93c7d56b310a2fc6f026fdbea9" -} diff --git a/rust/cloud-storage/.sqlx/query-b905b3cbb97bbfc8262ffb91023db7f703b0994d6d519fbab0fdb67ea2df5877.json b/rust/cloud-storage/.sqlx/query-b905b3cbb97bbfc8262ffb91023db7f703b0994d6d519fbab0fdb67ea2df5877.json deleted file mode 100644 index 1037b40923..0000000000 --- a/rust/cloud-storage/.sqlx/query-b905b3cbb97bbfc8262ffb91023db7f703b0994d6d519fbab0fdb67ea2df5877.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.name,\n c.\"userId\" as user_id\n FROM\n \"Chat\" c\n WHERE\n c.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "b905b3cbb97bbfc8262ffb91023db7f703b0994d6d519fbab0fdb67ea2df5877" -} diff --git a/rust/cloud-storage/.sqlx/query-b9344b1ce39ffd607ab2862810afbd13c579e22b433553ba01719644a56ab816.json b/rust/cloud-storage/.sqlx/query-b9344b1ce39ffd607ab2862810afbd13c579e22b433553ba01719644a56ab816.json deleted file mode 100644 index 02963800c8..0000000000 --- a/rust/cloud-storage/.sqlx/query-b9344b1ce39ffd607ab2862810afbd13c579e22b433553ba01719644a56ab816.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT id FROM \"Document\" WHERE \"projectId\" = $1 AND \"deletedAt\" IS NULL", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b9344b1ce39ffd607ab2862810afbd13c579e22b433553ba01719644a56ab816" -} diff --git a/rust/cloud-storage/.sqlx/query-b9570b07121de0df914dd0579cc92a5e92973cf114526f80dbe7ab714493090b.json b/rust/cloud-storage/.sqlx/query-b9570b07121de0df914dd0579cc92a5e92973cf114526f80dbe7ab714493090b.json deleted file mode 100644 index 4063a3122f..0000000000 --- a/rust/cloud-storage/.sqlx/query-b9570b07121de0df914dd0579cc92a5e92973cf114526f80dbe7ab714493090b.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n pd.id,\n pd.organization_id,\n pd.user_id,\n pd.display_name,\n pd.data_type as \"data_type: DataType\",\n pd.is_multi_select,\n pd.specific_entity_type as \"specific_entity_type: Option\",\n pd.created_at,\n pd.updated_at,\n pd.is_system,\n po.id as \"option_id?\",\n po.display_order as \"option_display_order?\",\n po.number_value as option_number_value,\n po.string_value as option_string_value,\n po.created_at as \"option_created_at?\",\n po.updated_at as \"option_updated_at?\"\n FROM property_definitions pd\n LEFT JOIN property_options po ON pd.id = po.property_definition_id\n WHERE \n ($3 AND pd.is_system)\n OR (\n ($1::int IS NOT NULL AND pd.organization_id = $1) \n OR ($2::text IS NOT NULL AND pd.user_id = $2)\n )\n ORDER BY LOWER(pd.display_name), po.display_order, po.number_value, LOWER(po.string_value)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "organization_id", - "type_info": "Int4" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "display_name", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "data_type: DataType", - "type_info": { - "Custom": { - "name": "property_data_type", - "kind": { - "Enum": [ - "BOOLEAN", - "DATE", - "NUMBER", - "STRING", - "SELECT_NUMBER", - "SELECT_STRING", - "ENTITY", - "LINK" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_multi_select", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "specific_entity_type: Option", - "type_info": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "is_system", - "type_info": "Bool" - }, - { - "ordinal": 10, - "name": "option_id?", - "type_info": "Uuid" - }, - { - "ordinal": 11, - "name": "option_display_order?", - "type_info": "Int4" - }, - { - "ordinal": 12, - "name": "option_number_value", - "type_info": "Float8" - }, - { - "ordinal": 13, - "name": "option_string_value", - "type_info": "Text" - }, - { - "ordinal": 14, - "name": "option_created_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "option_updated_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Int4", - "Text", - "Bool" - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - false, - true, - false, - false, - false, - false, - false, - true, - true, - false, - false - ] - }, - "hash": "b9570b07121de0df914dd0579cc92a5e92973cf114526f80dbe7ab714493090b" -} diff --git a/rust/cloud-storage/.sqlx/query-b96181ce30beea5d5067c9e8177d9feca7891cdf00ad560cc522121ee8d6b4ec.json b/rust/cloud-storage/.sqlx/query-b96181ce30beea5d5067c9e8177d9feca7891cdf00ad560cc522121ee8d6b4ec.json deleted file mode 100644 index 76f2bd9360..0000000000 --- a/rust/cloud-storage/.sqlx/query-b96181ce30beea5d5067c9e8177d9feca7891cdf00ad560cc522121ee8d6b4ec.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id\n FROM comms_channels\n WHERE channel_type = 'private'::comms_channel_type\n AND (\n (\n SELECT COUNT(*)\n FROM comms_channel_participants cp\n WHERE cp.channel_id = comms_channels.id\n AND cp.user_id = ANY($1)\n ) = CARDINALITY($1)\n AND (\n SELECT COUNT(*)\n FROM comms_channel_participants\n WHERE channel_id = comms_channels.id\n ) = CARDINALITY($1)\n )\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "b96181ce30beea5d5067c9e8177d9feca7891cdf00ad560cc522121ee8d6b4ec" -} diff --git a/rust/cloud-storage/.sqlx/query-b99dfcbe1b18c53fa05a0c44669f6579456c3d49bea87fccdcb9962565543002.json b/rust/cloud-storage/.sqlx/query-b99dfcbe1b18c53fa05a0c44669f6579456c3d49bea87fccdcb9962565543002.json deleted file mode 100644 index dd9710e57d..0000000000 --- a/rust/cloud-storage/.sqlx/query-b99dfcbe1b18c53fa05a0c44669f6579456c3d49bea87fccdcb9962565543002.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE calls SET recording_key = $2 WHERE egress_id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "b99dfcbe1b18c53fa05a0c44669f6579456c3d49bea87fccdcb9962565543002" -} diff --git a/rust/cloud-storage/.sqlx/query-ba28ed6c5ce49470b0aef3fb0f59d392b5780cc548f331263a581d1b011eb970.json b/rust/cloud-storage/.sqlx/query-ba28ed6c5ce49470b0aef3fb0f59d392b5780cc548f331263a581d1b011eb970.json deleted file mode 100644 index ef2ae21a80..0000000000 --- a/rust/cloud-storage/.sqlx/query-ba28ed6c5ce49470b0aef3fb0f59d392b5780cc548f331263a581d1b011eb970.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n -- Use trim() to remove the leading/trailing angle brackets\n trim(jsonb_path_query_first(headers_jsonb, '$[*] ? (@.name like_regex \"message-id\" flag \"i\").value') #>> '{}', '<>') as \"message_id\",\n -- The references header can have multiple IDs, so we just return it raw\n jsonb_path_query_first(headers_jsonb, '$[*] ? (@.name like_regex \"references\" flag \"i\").value') #>> '{}' as \"references\"\n FROM email_messages\n WHERE id = $1 AND link_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "references", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - null, - null - ] - }, - "hash": "ba28ed6c5ce49470b0aef3fb0f59d392b5780cc548f331263a581d1b011eb970" -} diff --git a/rust/cloud-storage/.sqlx/query-ba3ab3dc338552f6b794ab5405655fe673e71f02106e9792cc4cac40f69b9176.json b/rust/cloud-storage/.sqlx/query-ba3ab3dc338552f6b794ab5405655fe673e71f02106e9792cc4cac40f69b9176.json deleted file mode 100644 index 2c166c9c2a..0000000000 --- a/rust/cloud-storage/.sqlx/query-ba3ab3dc338552f6b794ab5405655fe673e71f02106e9792cc4cac40f69b9176.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM \"Pin\" WHERE \"pinnedItemId\" = $1 AND \"pinnedItemType\" = 'chat'", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "ba3ab3dc338552f6b794ab5405655fe673e71f02106e9792cc4cac40f69b9176" -} diff --git a/rust/cloud-storage/.sqlx/query-ba4127d1e61f849f9429fdfedae68131fa26405dbacb0b1afe9a6f52e50fa57e.json b/rust/cloud-storage/.sqlx/query-ba4127d1e61f849f9429fdfedae68131fa26405dbacb0b1afe9a6f52e50fa57e.json deleted file mode 100644 index da597ed870..0000000000 --- a/rust/cloud-storage/.sqlx/query-ba4127d1e61f849f9429fdfedae68131fa26405dbacb0b1afe9a6f52e50fa57e.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_channel_participants (channel_id, role, user_id)\n VALUES ($1, $2, $3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "name": "comms_participant_role", - "kind": { - "Enum": [ - "owner", - "admin", - "member" - ] - } - } - }, - "Text" - ] - }, - "nullable": [] - }, - "hash": "ba4127d1e61f849f9429fdfedae68131fa26405dbacb0b1afe9a6f52e50fa57e" -} diff --git a/rust/cloud-storage/.sqlx/query-ba49dfcd0a3ab834f9e61f27a0a80174e549103ee63f03d30fe76857c8803b6a.json b/rust/cloud-storage/.sqlx/query-ba49dfcd0a3ab834f9e61f27a0a80174e549103ee63f03d30fe76857c8803b6a.json deleted file mode 100644 index 6dd63ef404..0000000000 --- a/rust/cloud-storage/.sqlx/query-ba49dfcd0a3ab834f9e61f27a0a80174e549103ee63f03d30fe76857c8803b6a.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH RECURSIVE ProjectHierarchy AS (\n -- Find direct user access to projects first as starting point\n SELECT\n p.id,\n uia.access_level\n FROM \"Project\" p\n JOIN \"UserItemAccess\" uia ON p.id = uia.item_id AND uia.item_type = 'project'\n WHERE uia.user_id = $1 AND p.\"deletedAt\" IS NULL\n\n UNION ALL\n\n -- Then walk down the project tree and grab child projects, keeping parent's access\n SELECT\n p.id,\n ph.access_level\n FROM \"Project\" p\n JOIN ProjectHierarchy ph ON p.\"parentId\" = ph.id\n WHERE p.\"deletedAt\" IS NULL\n ),\n -- Now build up all the ways a user can have access to stuff\n AllAccessGrants AS (\n -- Explicit access to items via UserItemAccess table\n SELECT uia.item_id, uia.item_type, uia.access_level\n FROM \"UserItemAccess\" uia\n -- We join to each table to check its \"deletedAt\" status.\n -- This is more explicit and robust than using subqueries.\n LEFT JOIN \"Document\" d ON uia.item_type = 'document' AND uia.item_id = d.id\n LEFT JOIN \"Chat\" c ON uia.item_type = 'chat' AND uia.item_id = c.id\n LEFT JOIN \"Project\" p ON uia.item_type = 'project' AND uia.item_id = p.id\n WHERE uia.user_id = $1\n -- Rule: The item must not be deleted.\n AND (\n (uia.item_type = 'document' AND d.\"deletedAt\" IS NULL) OR\n (uia.item_type = 'chat' AND c.\"deletedAt\" IS NULL) OR\n (uia.item_type = 'project' AND p.\"deletedAt\" IS NULL)\n )\n\n -- The rest of the unions are to get implicit access to items via project access\n UNION ALL\n\n -- Access to docs in visible projects\n SELECT\n d.id AS item_id,\n 'document' AS item_type,\n ph.access_level\n FROM \"Document\" d\n JOIN ProjectHierarchy ph ON d.\"projectId\" = ph.id\n WHERE d.\"projectId\" IS NOT NULL AND d.\"deletedAt\" IS NULL\n\n UNION ALL\n\n -- Access to chats in visible projects\n SELECT\n c.id AS item_id,\n 'chat' AS item_type,\n ph.access_level\n FROM \"Chat\" c\n JOIN ProjectHierarchy ph ON c.\"projectId\" = ph.id\n WHERE c.\"projectId\" IS NOT NULL AND c.\"deletedAt\" IS NULL\n\n UNION ALL\n\n -- Include the projects we found earlier\n SELECT\n ph.id AS item_id,\n 'project' AS item_type,\n ph.access_level\n FROM ProjectHierarchy ph\n ),\n UserAccessibleItems AS (\n SELECT\n item_id,\n item_type\n FROM AllAccessGrants\n GROUP BY item_id, item_type\n )\n SELECT item_id as \"item_id!\", item_type as \"item_type!\" FROM UserAccessibleItems\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "item_type!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null, - null - ] - }, - "hash": "ba49dfcd0a3ab834f9e61f27a0a80174e549103ee63f03d30fe76857c8803b6a" -} diff --git a/rust/cloud-storage/.sqlx/query-bab2c7e9807103ec8ece1edcdc8e357dc50be7a4d634f45990b772eb0824a35d.json b/rust/cloud-storage/.sqlx/query-bab2c7e9807103ec8ece1edcdc8e357dc50be7a4d634f45990b772eb0824a35d.json deleted file mode 100644 index 73f58e81b1..0000000000 --- a/rust/cloud-storage/.sqlx/query-bab2c7e9807103ec8ece1edcdc8e357dc50be7a4d634f45990b772eb0824a35d.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM crm_contacts ct\n USING crm_companies co\n WHERE ct.company_id = co.id\n AND co.team_id = $1\n AND NOT EXISTS (\n SELECT 1 FROM crm_contact_sources WHERE contact_id = ct.id\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "bab2c7e9807103ec8ece1edcdc8e357dc50be7a4d634f45990b772eb0824a35d" -} diff --git a/rust/cloud-storage/.sqlx/query-baf9495b799086982dd4aac55683482fce25612d56dfdf78872d74019d8b5429.json b/rust/cloud-storage/.sqlx/query-baf9495b799086982dd4aac55683482fce25612d56dfdf78872d74019d8b5429.json deleted file mode 100644 index df03eb38fa..0000000000 --- a/rust/cloud-storage/.sqlx/query-baf9495b799086982dd4aac55683482fce25612d56dfdf78872d74019d8b5429.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentInstance\" (\"documentId\", \"sha\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $3)\n RETURNING id, sha, \"createdAt\"::timestamptz as \"created_at\", \"updatedAt\"::timestamptz as \"updated_at\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Timestamp" - ] - }, - "nullable": [ - false, - false, - null, - null - ] - }, - "hash": "baf9495b799086982dd4aac55683482fce25612d56dfdf78872d74019d8b5429" -} diff --git a/rust/cloud-storage/.sqlx/query-bb2b5a276542bf95f2600f3e60366b08133a54fbde183a5df7a9b99dd7381ca5.json b/rust/cloud-storage/.sqlx/query-bb2b5a276542bf95f2600f3e60366b08133a54fbde183a5df7a9b99dd7381ca5.json deleted file mode 100644 index b64038d03c..0000000000 --- a/rust/cloud-storage/.sqlx/query-bb2b5a276542bf95f2600f3e60366b08133a54fbde183a5df7a9b99dd7381ca5.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT muv.macro_user_id\n FROM voice v\n JOIN macro_user_voice muv ON muv.voice_id = v.id\n WHERE (v.embedding <=> $1) <= $2\n ORDER BY v.embedding <=> $1 ASC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - { - "Custom": { - "name": "vector", - "kind": "Simple" - } - }, - "Float8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "bb2b5a276542bf95f2600f3e60366b08133a54fbde183a5df7a9b99dd7381ca5" -} diff --git a/rust/cloud-storage/.sqlx/query-bb6de5a7f1c778acc5c27a0080037992ac2805137ee19f9385894688e6b8a62c.json b/rust/cloud-storage/.sqlx/query-bb6de5a7f1c778acc5c27a0080037992ac2805137ee19f9385894688e6b8a62c.json deleted file mode 100644 index ae26eaad0e..0000000000 --- a/rust/cloud-storage/.sqlx/query-bb6de5a7f1c778acc5c27a0080037992ac2805137ee19f9385894688e6b8a62c.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT name FROM \"Project\" WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "bb6de5a7f1c778acc5c27a0080037992ac2805137ee19f9385894688e6b8a62c" -} diff --git a/rust/cloud-storage/.sqlx/query-bbd2b467cf8f1e277d3278fafdc5792183e42f6c00ae95aa0f4fe869292408f0.json b/rust/cloud-storage/.sqlx/query-bbd2b467cf8f1e277d3278fafdc5792183e42f6c00ae95aa0f4fe869292408f0.json deleted file mode 100644 index 14e2f4f6f8..0000000000 --- a/rust/cloud-storage/.sqlx/query-bbd2b467cf8f1e277d3278fafdc5792183e42f6c00ae95aa0f4fe869292408f0.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n cm.id AS \"id!\",\n cm.content,\n cm.role,\n cm.model,\n COALESCE(\n (\n SELECT json_agg(\n json_build_object(\n 'entity_type', ca.\"entity_type\",\n 'entity_id', ca.\"entity_id\"::TEXT\n )\n )\n FROM \"ChatAttachment\" ca\n WHERE ca.\"messageId\" = cm.id\n ),\n '[]'::json\n ) AS attachments\n FROM\n \"ChatMessage\" cm\n WHERE\n cm.\"chatId\" = $1\n ORDER BY\n cm.\"createdAt\" ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "content", - "type_info": "Jsonb" - }, - { - "ordinal": 2, - "name": "role", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "model", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "attachments", - "type_info": "Json" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - null - ] - }, - "hash": "bbd2b467cf8f1e277d3278fafdc5792183e42f6c00ae95aa0f4fe869292408f0" -} diff --git a/rust/cloud-storage/.sqlx/query-bbe4822c2e7ba11594b1a4b92f945f4088406bfee6ccb2ef6577643708a5132c.json b/rust/cloud-storage/.sqlx/query-bbe4822c2e7ba11594b1a4b92f945f4088406bfee6ccb2ef6577643708a5132c.json deleted file mode 100644 index 41ca9e5d4d..0000000000 --- a/rust/cloud-storage/.sqlx/query-bbe4822c2e7ba11594b1a4b92f945f4088406bfee6ccb2ef6577643708a5132c.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM email_message_recipients WHERE message_id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "bbe4822c2e7ba11594b1a4b92f945f4088406bfee6ccb2ef6577643708a5132c" -} diff --git a/rust/cloud-storage/.sqlx/query-bbeef57c72ec7a197daf71146f0a5c409a5a54b41a9dd9e3db2267c9ee17d9fd.json b/rust/cloud-storage/.sqlx/query-bbeef57c72ec7a197daf71146f0a5c409a5a54b41a9dd9e3db2267c9ee17d9fd.json deleted file mode 100644 index 653140af10..0000000000 --- a/rust/cloud-storage/.sqlx/query-bbeef57c72ec7a197daf71146f0a5c409a5a54b41a9dd9e3db2267c9ee17d9fd.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT target_id\n FROM id_mapping\n WHERE source_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "target_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "bbeef57c72ec7a197daf71146f0a5c409a5a54b41a9dd9e3db2267c9ee17d9fd" -} diff --git a/rust/cloud-storage/.sqlx/query-bc4d60efeffa6cba398a37db8ff7204bcffd809e425e9236b897b5efa9c7eebc.json b/rust/cloud-storage/.sqlx/query-bc4d60efeffa6cba398a37db8ff7204bcffd809e425e9236b897b5efa9c7eebc.json deleted file mode 100644 index db2ad0be84..0000000000 --- a/rust/cloud-storage/.sqlx/query-bc4d60efeffa6cba398a37db8ff7204bcffd809e425e9236b897b5efa9c7eebc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id\n FROM \"User\"\n WHERE email = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "bc4d60efeffa6cba398a37db8ff7204bcffd809e425e9236b897b5efa9c7eebc" -} diff --git a/rust/cloud-storage/.sqlx/query-bc5d03a110b267d3f4e4ae2937b95d91a96794ebdbc864ce0d6d8d455996914f.json b/rust/cloud-storage/.sqlx/query-bc5d03a110b267d3f4e4ae2937b95d91a96794ebdbc864ce0d6d8d455996914f.json deleted file mode 100644 index 49490f6c71..0000000000 --- a/rust/cloud-storage/.sqlx/query-bc5d03a110b267d3f4e4ae2937b95d91a96794ebdbc864ce0d6d8d455996914f.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_messages\n SET\n provider_id = $1,\n provider_thread_id = $2,\n is_draft = false,\n is_sent = true,\n updated_at = NOW()\n WHERE\n id = $3\n AND link_id = $4\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "bc5d03a110b267d3f4e4ae2937b95d91a96794ebdbc864ce0d6d8d455996914f" -} diff --git a/rust/cloud-storage/.sqlx/query-bc7ef8662eb6050c09246ebc169f91d523c596874f216a10180a377bbaf7a1eb.json b/rust/cloud-storage/.sqlx/query-bc7ef8662eb6050c09246ebc169f91d523c596874f216a10180a377bbaf7a1eb.json deleted file mode 100644 index 510e858534..0000000000 --- a/rust/cloud-storage/.sqlx/query-bc7ef8662eb6050c09246ebc169f91d523c596874f216a10180a377bbaf7a1eb.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_links\n SET is_sync_active = $2, updated_at = NOW()\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "bc7ef8662eb6050c09246ebc169f91d523c596874f216a10180a377bbaf7a1eb" -} diff --git a/rust/cloud-storage/.sqlx/query-bca8bec6b99f7b9a3e8def2a53209e2d0f92546933588bad33bc3520d2ad2d10.json b/rust/cloud-storage/.sqlx/query-bca8bec6b99f7b9a3e8def2a53209e2d0f92546933588bad33bc3520d2ad2d10.json deleted file mode 100644 index f7b8c0544e..0000000000 --- a/rust/cloud-storage/.sqlx/query-bca8bec6b99f7b9a3e8def2a53209e2d0f92546933588bad33bc3520d2ad2d10.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChatAttachment\" (\"entity_type\", \"entity_id\", \"chatId\", \"messageId\")\n SELECT * FROM UNNEST($1::TEXT[], $2::UUID[], $3::TEXT[], $4::TEXT[])\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "UuidArray", - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "bca8bec6b99f7b9a3e8def2a53209e2d0f92546933588bad33bc3520d2ad2d10" -} diff --git a/rust/cloud-storage/.sqlx/query-bcb0dfd2aa420f102d8dd3484f65defd6cbcf8e801c4c4d43d5e0d1338e1ab04.json b/rust/cloud-storage/.sqlx/query-bcb0dfd2aa420f102d8dd3484f65defd6cbcf8e801c4c4d43d5e0d1338e1ab04.json deleted file mode 100644 index c645aa3823..0000000000 --- a/rust/cloud-storage/.sqlx/query-bcb0dfd2aa420f102d8dd3484f65defd6cbcf8e801c4c4d43d5e0d1338e1ab04.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id,\n team_role as \"team_role!: TeamRole\"\n FROM team_user\n WHERE team_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "team_role!: TeamRole", - "type_info": { - "Custom": { - "name": "team_role", - "kind": { - "Enum": [ - "member", - "admin", - "owner" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "bcb0dfd2aa420f102d8dd3484f65defd6cbcf8e801c4c4d43d5e0d1338e1ab04" -} diff --git a/rust/cloud-storage/.sqlx/query-bcbaaa06fffa75a82e66030d42e2aaa89d56232566edc15d9e9b819b9b02aea9.json b/rust/cloud-storage/.sqlx/query-bcbaaa06fffa75a82e66030d42e2aaa89d56232566edc15d9e9b819b9b02aea9.json deleted file mode 100644 index ed20c30bb8..0000000000 --- a/rust/cloud-storage/.sqlx/query-bcbaaa06fffa75a82e66030d42e2aaa89d56232566edc15d9e9b819b9b02aea9.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT DISTINCT\n c.email_address as \"email_address!\"\n FROM\n email_messages m\n JOIN\n email_message_recipients mr ON m.id = mr.message_id\n JOIN\n email_contacts c ON mr.contact_id = c.id\n WHERE\n m.link_id = $1\n AND m.is_sent = TRUE\n AND mr.contact_id IS NOT NULL\n ORDER BY\n c.email_address\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email_address!", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "bcbaaa06fffa75a82e66030d42e2aaa89d56232566edc15d9e9b819b9b02aea9" -} diff --git a/rust/cloud-storage/.sqlx/query-bd6ed4253d2bff9f78562aa09f2cbb794195e1e69ffcbf722c0a2e523f196c2f.json b/rust/cloud-storage/.sqlx/query-bd6ed4253d2bff9f78562aa09f2cbb794195e1e69ffcbf722c0a2e523f196c2f.json deleted file mode 100644 index c6c0800423..0000000000 --- a/rust/cloud-storage/.sqlx/query-bd6ed4253d2bff9f78562aa09f2cbb794195e1e69ffcbf722c0a2e523f196c2f.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT \"userId\" as user_id FROM \"Project\" WHERE id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "bd6ed4253d2bff9f78562aa09f2cbb794195e1e69ffcbf722c0a2e523f196c2f" -} diff --git a/rust/cloud-storage/.sqlx/query-bdb882d426cf81329dd6d824a5d945cfd0ea2fffa26b5324ef641dfe3e304682.json b/rust/cloud-storage/.sqlx/query-bdb882d426cf81329dd6d824a5d945cfd0ea2fffa26b5324ef641dfe3e304682.json deleted file mode 100644 index 3ed3f3db5e..0000000000 --- a/rust/cloud-storage/.sqlx/query-bdb882d426cf81329dd6d824a5d945cfd0ea2fffa26b5324ef641dfe3e304682.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n \"publicAccessLevel\" as \"access_level!\"\n FROM \"SharePermission\"\n WHERE id in (SELECT share_permission_id\n FROM calls\n WHERE id = $1\n UNION ALL\n SELECT share_permission_id\n FROM call_records\n WHERE id = $1\n LIMIT 1)\n AND \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "access_level!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - true - ] - }, - "hash": "bdb882d426cf81329dd6d824a5d945cfd0ea2fffa26b5324ef641dfe3e304682" -} diff --git a/rust/cloud-storage/.sqlx/query-bdc2a74951d6efbce08d469970b29610352e02441283f12a67b0da0c44771522.json b/rust/cloud-storage/.sqlx/query-bdc2a74951d6efbce08d469970b29610352e02441283f12a67b0da0c44771522.json deleted file mode 100644 index 5e8933ecc4..0000000000 --- a/rust/cloud-storage/.sqlx/query-bdc2a74951d6efbce08d469970b29610352e02441283f12a67b0da0c44771522.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id,\n m.channel_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.edited_at::timestamptz AS \"edited_at?\",\n m.deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages m\n WHERE m.channel_id = $1\n AND m.thread_id IS NULL\n AND (m.deleted_at IS NULL OR EXISTS (\n SELECT 1 FROM comms_messages r\n WHERE r.thread_id = m.id AND r.deleted_at IS NULL\n ))\n AND ($2::timestamptz IS NOT NULL AND (m.created_at, m.id) > ($2, $3))\n AND ($5::uuid[] IS NULL OR m.id = ANY($5))\n AND ($6::timestamptz IS NULL OR m.created_at >= $6)\n AND ($7::timestamptz IS NULL OR m.created_at < $7)\n AND (\n ($8::timestamptz IS NULL AND $9::timestamptz IS NULL)\n OR (\n ($8::timestamptz IS NULL OR m.created_at >= $8)\n AND ($9::timestamptz IS NULL OR m.created_at < $9)\n )\n OR EXISTS (\n SELECT 1 FROM comms_messages r\n WHERE r.thread_id = m.id\n AND r.deleted_at IS NULL\n AND ($8::timestamptz IS NULL OR r.created_at >= $8)\n AND ($9::timestamptz IS NULL OR r.created_at < $9)\n )\n )\n AND ($10::bool = FALSE OR (\n ($11::bool IS NULL OR EXISTS (\n SELECT 1\n FROM notification n\n JOIN user_notification un ON un.notification_id = n.id\n JOIN comms_messages msg ON msg.id = (n.metadata->>'messageId')::uuid\n WHERE un.user_id = $13::text\n AND un.deleted_at IS NULL\n AND un.done = $11\n AND n.event_item_type = 'channel'\n AND n.event_item_id = $1::uuid::text\n AND n.metadata->>'messageId' IS NOT NULL\n AND msg.channel_id = $1\n AND msg.deleted_at IS NULL\n AND COALESCE(msg.thread_id, msg.id) = m.id\n ))\n AND ($12::bool IS NULL OR EXISTS (\n SELECT 1\n FROM notification n\n JOIN user_notification un ON un.notification_id = n.id\n JOIN comms_messages msg ON msg.id = (n.metadata->>'messageId')::uuid\n WHERE un.user_id = $13::text\n AND un.deleted_at IS NULL\n AND (un.seen_at IS NOT NULL) = $12\n AND n.event_item_type = 'channel'\n AND n.event_item_id = $1::uuid::text\n AND n.metadata->>'messageId' IS NOT NULL\n AND msg.channel_id = $1\n AND msg.deleted_at IS NULL\n AND COALESCE(msg.thread_id, msg.id) = m.id\n ))\n ))\n ORDER BY m.created_at ASC, m.id ASC\n LIMIT $4\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "edited_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "deleted_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Timestamptz", - "Uuid", - "Int8", - "UuidArray", - "Timestamptz", - "Timestamptz", - "Timestamptz", - "Timestamptz", - "Bool", - "Bool", - "Bool", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - null, - null - ] - }, - "hash": "bdc2a74951d6efbce08d469970b29610352e02441283f12a67b0da0c44771522" -} diff --git a/rust/cloud-storage/.sqlx/query-bdca4a82e47757c7c1434555612b4f81dad7d0c3ec2cef1eda3afa66897081e7.json b/rust/cloud-storage/.sqlx/query-bdca4a82e47757c7c1434555612b4f81dad7d0c3ec2cef1eda3afa66897081e7.json deleted file mode 100644 index a9084e5079..0000000000 --- a/rust/cloud-storage/.sqlx/query-bdca4a82e47757c7c1434555612b4f81dad7d0c3ec2cef1eda3afa66897081e7.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT dp.\"sharePermissionId\" as \"share_permission_id!\"\n FROM \"DocumentPermission\" dp\n WHERE dp.\"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "bdca4a82e47757c7c1434555612b4f81dad7d0c3ec2cef1eda3afa66897081e7" -} diff --git a/rust/cloud-storage/.sqlx/query-be483cff20705eb58c47cd4de412aea80ce9a658dfe055f146a38ed9e64effaf.json b/rust/cloud-storage/.sqlx/query-be483cff20705eb58c47cd4de412aea80ce9a658dfe055f146a38ed9e64effaf.json deleted file mode 100644 index 54a8ba7d73..0000000000 --- a/rust/cloud-storage/.sqlx/query-be483cff20705eb58c47cd4de412aea80ce9a658dfe055f146a38ed9e64effaf.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Experiment\" SET active = true AND started_at = NOW() WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "be483cff20705eb58c47cd4de412aea80ce9a658dfe055f146a38ed9e64effaf" -} diff --git a/rust/cloud-storage/.sqlx/query-be5dc669b45165beefffe0645813f38c805d6f49150d66c8a7325c524bebc854.json b/rust/cloud-storage/.sqlx/query-be5dc669b45165beefffe0645813f38c805d6f49150d66c8a7325c524bebc854.json deleted file mode 100644 index 1119ce64a1..0000000000 --- a/rust/cloud-storage/.sqlx/query-be5dc669b45165beefffe0645813f38c805d6f49150d66c8a7325c524bebc854.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"ChannelSharePermission\"\n WHERE \"share_permission_id\" = $1\n AND \"channel_id\" = ANY($2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "be5dc669b45165beefffe0645813f38c805d6f49150d66c8a7325c524bebc854" -} diff --git a/rust/cloud-storage/.sqlx/query-be835e7de49553e947e0d265f8f681321d099febed2ed002dac6d706bf4ec173.json b/rust/cloud-storage/.sqlx/query-be835e7de49553e947e0d265f8f681321d099febed2ed002dac6d706bf4ec173.json deleted file mode 100644 index 902514760f..0000000000 --- a/rust/cloud-storage/.sqlx/query-be835e7de49553e947e0d265f8f681321d099febed2ed002dac6d706bf4ec173.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n a.id AS attachment_db_id,\n m.provider_id as \"email_provider_id!\",\n a.provider_attachment_id as \"provider_attachment_id!\",\n a.filename as \"filename?\",\n a.mime_type as \"mime_type!\",\n m.internal_date_ts as \"internal_date_ts!\",\n m.id as message_db_id,\n m.thread_id as thread_db_id,\n from_contact.email_address as sender_email,\n m.subject as subject\n FROM email_attachments a\n JOIN email_messages m ON a.message_id = m.id\n JOIN email_contacts from_contact ON m.from_contact_id = from_contact.id\n JOIN email_threads t ON m.thread_id = t.id\n WHERE a.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "attachment_db_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email_provider_id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "provider_attachment_id!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "filename?", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "mime_type!", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "internal_date_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "message_db_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "thread_db_id", - "type_info": "Uuid" - }, - { - "ordinal": 8, - "name": "sender_email", - "type_info": "Varchar" - }, - { - "ordinal": 9, - "name": "subject", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - true, - true, - true, - true, - false, - false, - false, - true - ] - }, - "hash": "be835e7de49553e947e0d265f8f681321d099febed2ed002dac6d706bf4ec173" -} diff --git a/rust/cloud-storage/.sqlx/query-bec08349f3e01393e7e83846f1ca4077390d22923bff328a9d8a24275832a57d.json b/rust/cloud-storage/.sqlx/query-bec08349f3e01393e7e83846f1ca4077390d22923bff328a9d8a24275832a57d.json deleted file mode 100644 index fdce5f7ae8..0000000000 --- a/rust/cloud-storage/.sqlx/query-bec08349f3e01393e7e83846f1ca4077390d22923bff328a9d8a24275832a57d.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"macro_user_email_verification\" (\"macro_user_id\", \"email\", \"is_verified\")\n VALUES ($1, $2, $3)\n ON CONFLICT (\"email\") DO UPDATE SET \"macro_user_id\" = $1, \"is_verified\" = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "bec08349f3e01393e7e83846f1ca4077390d22923bff328a9d8a24275832a57d" -} diff --git a/rust/cloud-storage/.sqlx/query-bf1d580e15f077862173d3efc800666d9fc7e79b8fa8619ba43bd1315c506e0b.json b/rust/cloud-storage/.sqlx/query-bf1d580e15f077862173d3efc800666d9fc7e79b8fa8619ba43bd1315c506e0b.json deleted file mode 100644 index 9eaff6b6b7..0000000000 --- a/rust/cloud-storage/.sqlx/query-bf1d580e15f077862173d3efc800666d9fc7e79b8fa8619ba43bd1315c506e0b.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Chat\"\n WHERE id = ANY($1)", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "bf1d580e15f077862173d3efc800666d9fc7e79b8fa8619ba43bd1315c506e0b" -} diff --git a/rust/cloud-storage/.sqlx/query-bf308be1e802f2f6552a6bd0282ae985dfb1a3fc738532eca74c6b098c6772c0.json b/rust/cloud-storage/.sqlx/query-bf308be1e802f2f6552a6bd0282ae985dfb1a3fc738532eca74c6b098c6772c0.json deleted file mode 100644 index 2c1ef9427c..0000000000 --- a/rust/cloud-storage/.sqlx/query-bf308be1e802f2f6552a6bd0282ae985dfb1a3fc738532eca74c6b098c6772c0.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE entity_properties\n SET values = $4, updated_at = NOW()\n WHERE entity_id = $1\n AND entity_type = $2\n AND property_definition_id = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - }, - "Uuid", - "Jsonb" - ] - }, - "nullable": [] - }, - "hash": "bf308be1e802f2f6552a6bd0282ae985dfb1a3fc738532eca74c6b098c6772c0" -} diff --git a/rust/cloud-storage/.sqlx/query-bfd05323023ae02d10ecd01f6432a0b25cce4d43b63f05fd04b52860c482ffa3.json b/rust/cloud-storage/.sqlx/query-bfd05323023ae02d10ecd01f6432a0b25cce4d43b63f05fd04b52860c482ffa3.json deleted file mode 100644 index d7418fde11..0000000000 --- a/rust/cloud-storage/.sqlx/query-bfd05323023ae02d10ecd01f6432a0b25cce4d43b63f05fd04b52860c482ffa3.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE comms_channels\n SET updated_at = $2\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Timestamptz" - ] - }, - "nullable": [] - }, - "hash": "bfd05323023ae02d10ecd01f6432a0b25cce4d43b63f05fd04b52860c482ffa3" -} diff --git a/rust/cloud-storage/.sqlx/query-c0273bbd7b7c9e2cb5c3e62268ee09f925536086394de104bc823ad946851b0f.json b/rust/cloud-storage/.sqlx/query-c0273bbd7b7c9e2cb5c3e62268ee09f925536086394de104bc823ad946851b0f.json deleted file mode 100644 index 78088bf7e9..0000000000 --- a/rust/cloud-storage/.sqlx/query-c0273bbd7b7c9e2cb5c3e62268ee09f925536086394de104bc823ad946851b0f.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT ml.message_id, ml.label_id\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = $1\n AND l.provider_label_id = $2\n AND l.link_id = $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "label_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "c0273bbd7b7c9e2cb5c3e62268ee09f925536086394de104bc823ad946851b0f" -} diff --git a/rust/cloud-storage/.sqlx/query-c07f82d525eeaafefce4b65769b2c750743ed9c04ca6ea8a5fd1a6d3a5fe2d17.json b/rust/cloud-storage/.sqlx/query-c07f82d525eeaafefce4b65769b2c750743ed9c04ca6ea8a5fd1a6d3a5fe2d17.json deleted file mode 100644 index 03df2b01f3..0000000000 --- a/rust/cloud-storage/.sqlx/query-c07f82d525eeaafefce4b65769b2c750743ed9c04ca6ea8a5fd1a6d3a5fe2d17.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n m.id \n FROM \n \"ChatMessage\" m\n JOIN \n \"Chat\" c on c.\"id\" = m.\"chatId\"\n WHERE\n \"userId\" = $1\n AND\n m.\"updatedAt\" <= $2\n AND \n m.\"updatedAt\" >= $3\n AND \n \"role\" = 'user'\n \n ORDER BY \n m.\"updatedAt\" DESC\n LIMIT \n $4\n OFFSET $5\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Timestamp", - "Timestamp", - "Int8", - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "c07f82d525eeaafefce4b65769b2c750743ed9c04ca6ea8a5fd1a6d3a5fe2d17" -} diff --git a/rust/cloud-storage/.sqlx/query-c08f7032873bddafca439eb4a7dcdeab60aed26e9025fde7ea45b89c4d2cb4ed.json b/rust/cloud-storage/.sqlx/query-c08f7032873bddafca439eb4a7dcdeab60aed26e9025fde7ea45b89c4d2cb4ed.json deleted file mode 100644 index 351b1b820c..0000000000 --- a/rust/cloud-storage/.sqlx/query-c08f7032873bddafca439eb4a7dcdeab60aed26e9025fde7ea45b89c4d2cb4ed.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE crm_companies\n SET email_sync = $3\n WHERE id = $1 AND team_id = $2\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Bool" - ] - }, - "nullable": [ - false - ] - }, - "hash": "c08f7032873bddafca439eb4a7dcdeab60aed26e9025fde7ea45b89c4d2cb4ed" -} diff --git a/rust/cloud-storage/.sqlx/query-c0b0f58e6b2129250821f51fcb1ebe9d876c2e251f04f0aa9b1c0942d73a4e0d.json b/rust/cloud-storage/.sqlx/query-c0b0f58e6b2129250821f51fcb1ebe9d876c2e251f04f0aa9b1c0942d73a4e0d.json deleted file mode 100644 index 658c35ffa3..0000000000 --- a/rust/cloud-storage/.sqlx/query-c0b0f58e6b2129250821f51fcb1ebe9d876c2e251f04f0aa9b1c0942d73a4e0d.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n p.id,\n p.name,\n p.\"userId\" as user_id, -- createor of the project\n p.\"parentId\" as parent_id,\n p.\"createdAt\"::timestamptz as created_at,\n p.\"updatedAt\"::timestamptz as updated_at,\n p.\"deletedAt\"::timestamptz as deleted_at\n FROM \"UserHistory\" up\n INNER JOIN \"Project\" p ON up.\"itemId\" = p.id AND up.\"itemType\" = 'project'\n WHERE up.\"userId\" = $1 AND p.\"deletedAt\" IS NULL AND p.\"uploadPending\" = false\n ORDER BY p.\"updatedAt\" DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "parent_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - null, - null, - null - ] - }, - "hash": "c0b0f58e6b2129250821f51fcb1ebe9d876c2e251f04f0aa9b1c0942d73a4e0d" -} diff --git a/rust/cloud-storage/.sqlx/query-c0fe6e2c93305ff791d9386d987d4ea8bacc6cdb063fd8f18894c6b70b9cbd3c.json b/rust/cloud-storage/.sqlx/query-c0fe6e2c93305ff791d9386d987d4ea8bacc6cdb063fd8f18894c6b70b9cbd3c.json deleted file mode 100644 index 6e51d8d6d6..0000000000 --- a/rust/cloud-storage/.sqlx/query-c0fe6e2c93305ff791d9386d987d4ea8bacc6cdb063fd8f18894c6b70b9cbd3c.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT EXISTS(SELECT 1 FROM email_messages WHERE thread_id = $1) AS \"exists!\"", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "c0fe6e2c93305ff791d9386d987d4ea8bacc6cdb063fd8f18894c6b70b9cbd3c" -} diff --git a/rust/cloud-storage/.sqlx/query-c11f23488f780d7d26380775088aee0d8c1c9cf7cb28867dbdd96b7004a5d259.json b/rust/cloud-storage/.sqlx/query-c11f23488f780d7d26380775088aee0d8c1c9cf7cb28867dbdd96b7004a5d259.json deleted file mode 100644 index dbdf277f15..0000000000 --- a/rust/cloud-storage/.sqlx/query-c11f23488f780d7d26380775088aee0d8c1c9cf7cb28867dbdd96b7004a5d259.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"User\"\n WHERE id = $1\n AND EXISTS (SELECT 1 FROM promoted_shared_mailboxes WHERE macro_id = $1)\n RETURNING macro_user_id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "c11f23488f780d7d26380775088aee0d8c1c9cf7cb28867dbdd96b7004a5d259" -} diff --git a/rust/cloud-storage/.sqlx/query-c12b511f8fbe853ce8e5489db2468ee8a07030cb234bc0a10bc014c493b8e9c2.json b/rust/cloud-storage/.sqlx/query-c12b511f8fbe853ce8e5489db2468ee8a07030cb234bc0a10bc014c493b8e9c2.json deleted file mode 100644 index e2aa061544..0000000000 --- a/rust/cloud-storage/.sqlx/query-c12b511f8fbe853ce8e5489db2468ee8a07030cb234bc0a10bc014c493b8e9c2.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM entity_properties WHERE entity_id = $1 AND entity_type = $2", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "c12b511f8fbe853ce8e5489db2468ee8a07030cb234bc0a10bc014c493b8e9c2" -} diff --git a/rust/cloud-storage/.sqlx/query-c12b8985453ee1e1e49a06e2fa814dea634830b06660aef9661b820760a30768.json b/rust/cloud-storage/.sqlx/query-c12b8985453ee1e1e49a06e2fa814dea634830b06660aef9661b820760a30768.json deleted file mode 100644 index 114ad91e23..0000000000 --- a/rust/cloud-storage/.sqlx/query-c12b8985453ee1e1e49a06e2fa814dea634830b06660aef9661b820760a30768.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n provider_id,\n global_id,\n thread_id,\n provider_thread_id,\n replying_to_id,\n link_id,\n provider_history_id,\n internal_date_ts,\n snippet,\n size_estimate,\n subject,\n from_name,\n from_contact_id,\n sent_at,\n has_attachments,\n is_read,\n is_starred,\n is_sent,\n is_draft,\n headers_jsonb,\n created_at,\n updated_at,\n -- No body attributes\n body_text as body_text,\n body_html_sanitized as body_html_sanitized,\n NULL::TEXT as body_macro\n FROM email_messages\n WHERE thread_id = $1\n ORDER BY internal_date_ts DESC NULLS LAST\n LIMIT $2 OFFSET $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 6, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 21, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 22, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 23, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 24, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 25, - "name": "body_macro", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - true, - true, - false, - true, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - true, - false, - false, - true, - true, - null - ] - }, - "hash": "c12b8985453ee1e1e49a06e2fa814dea634830b06660aef9661b820760a30768" -} diff --git a/rust/cloud-storage/.sqlx/query-c12febd2112dc6065735c6e44d735684cd0163b2f71460d838be8eb16a25b7b6.json b/rust/cloud-storage/.sqlx/query-c12febd2112dc6065735c6e44d735684cd0163b2f71460d838be8eb16a25b7b6.json deleted file mode 100644 index 4670c2e5dd..0000000000 --- a/rust/cloud-storage/.sqlx/query-c12febd2112dc6065735c6e44d735684cd0163b2f71460d838be8eb16a25b7b6.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentBom\" (\"documentId\")\n VALUES ($1)\n RETURNING id, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 2, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - null, - null - ] - }, - "hash": "c12febd2112dc6065735c6e44d735684cd0163b2f71460d838be8eb16a25b7b6" -} diff --git a/rust/cloud-storage/.sqlx/query-c17d5fb574b826a4615cd339d550302bcd20260c4d2d82e49167e5c7c7e77958.json b/rust/cloud-storage/.sqlx/query-c17d5fb574b826a4615cd339d550302bcd20260c4d2d82e49167e5c7c7e77958.json deleted file mode 100644 index be9247eda4..0000000000 --- a/rust/cloud-storage/.sqlx/query-c17d5fb574b826a4615cd339d550302bcd20260c4d2d82e49167e5c7c7e77958.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT\n \"tokenCount\" as token_count\n FROM\n \"DocumentText\"\n WHERE\n \"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "token_count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "c17d5fb574b826a4615cd339d550302bcd20260c4d2d82e49167e5c7c7e77958" -} diff --git a/rust/cloud-storage/.sqlx/query-c18576c18caa0b7e23198ee55981cb8d7b9859dfe4272a92cbb29a4b64a1d695.json b/rust/cloud-storage/.sqlx/query-c18576c18caa0b7e23198ee55981cb8d7b9859dfe4272a92cbb29a4b64a1d695.json deleted file mode 100644 index f81d0eeecc..0000000000 --- a/rust/cloud-storage/.sqlx/query-c18576c18caa0b7e23198ee55981cb8d7b9859dfe4272a92cbb29a4b64a1d695.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.name,\n d.owner\n FROM\n \"Document\" d\n WHERE\n d.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "c18576c18caa0b7e23198ee55981cb8d7b9859dfe4272a92cbb29a4b64a1d695" -} diff --git a/rust/cloud-storage/.sqlx/query-c1bc29d0f7278ed6a027978d51a6e15d8be6d62ead3408dc6641866a9230935d.json b/rust/cloud-storage/.sqlx/query-c1bc29d0f7278ed6a027978d51a6e15d8be6d62ead3408dc6641866a9230935d.json deleted file mode 100644 index 8d3fe9e37e..0000000000 --- a/rust/cloud-storage/.sqlx/query-c1bc29d0f7278ed6a027978d51a6e15d8be6d62ead3408dc6641866a9230935d.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Document\" d\n WHERE owner = $1 AND d.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "c1bc29d0f7278ed6a027978d51a6e15d8be6d62ead3408dc6641866a9230935d" -} diff --git a/rust/cloud-storage/.sqlx/query-c1ccd5b7d22222b5112aa06f6cb9d19523156de3b771696a069389e5a38cd51d.json b/rust/cloud-storage/.sqlx/query-c1ccd5b7d22222b5112aa06f6cb9d19523156de3b771696a069389e5a38cd51d.json deleted file mode 100644 index 738f61d570..0000000000 --- a/rust/cloud-storage/.sqlx/query-c1ccd5b7d22222b5112aa06f6cb9d19523156de3b771696a069389e5a38cd51d.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO team_crm_settings (team_id)\n VALUES ($1)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "c1ccd5b7d22222b5112aa06f6cb9d19523156de3b771696a069389e5a38cd51d" -} diff --git a/rust/cloud-storage/.sqlx/query-c27077a4053c8a35ca011c5edaf08e3bf1c954b1773fcd2ecab33c2ba518ba34.json b/rust/cloud-storage/.sqlx/query-c27077a4053c8a35ca011c5edaf08e3bf1c954b1773fcd2ecab33c2ba518ba34.json deleted file mode 100644 index 7efbc7703b..0000000000 --- a/rust/cloud-storage/.sqlx/query-c27077a4053c8a35ca011c5edaf08e3bf1c954b1773fcd2ecab33c2ba518ba34.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT email\n FROM mobile_welcome_email\n WHERE email = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "c27077a4053c8a35ca011c5edaf08e3bf1c954b1773fcd2ecab33c2ba518ba34" -} diff --git a/rust/cloud-storage/.sqlx/query-c2a48995144a813f912bbba9c9f5b91e1b413978e8262f7db56a6a27fa5ceaf0.json b/rust/cloud-storage/.sqlx/query-c2a48995144a813f912bbba9c9f5b91e1b413978e8262f7db56a6a27fa5ceaf0.json deleted file mode 100644 index c8aed48f72..0000000000 --- a/rust/cloud-storage/.sqlx/query-c2a48995144a813f912bbba9c9f5b91e1b413978e8262f7db56a6a27fa5ceaf0.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT c.id as comment_id\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n WHERE t.id = $1 AND c.\"deletedAt\" IS NULL\n ORDER BY c.\"order\", c.\"createdAt\" ASC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "comment_id", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "c2a48995144a813f912bbba9c9f5b91e1b413978e8262f7db56a6a27fa5ceaf0" -} diff --git a/rust/cloud-storage/.sqlx/query-c2f19d911d10a576d01505d6da90f66fad4698c52efa69d3b4a03324c09b87a7.json b/rust/cloud-storage/.sqlx/query-c2f19d911d10a576d01505d6da90f66fad4698c52efa69d3b4a03324c09b87a7.json deleted file mode 100644 index 0596339115..0000000000 --- a/rust/cloud-storage/.sqlx/query-c2f19d911d10a576d01505d6da90f66fad4698c52efa69d3b4a03324c09b87a7.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.\"id\" as \"item_id!\",\n c.\"createdAt\" as \"created_at!\",\n c.\"updatedAt\" as \"updated_at!\",\n c.\"deletedAt\" as \"deleted_at?\",\n uh.\"updatedAt\" as \"viewed_at?\",\n c.\"projectId\" as \"project_id?\",\n c.\"userId\" as \"user_id\",\n c.\"name\"\n FROM\n \"Chat\" c\n LEFT JOIN\n \"UserHistory\" uh ON uh.\"itemId\" = c.\"id\"\n AND uh.\"userId\" = $1\n AND uh.\"itemType\" = 'chat'\n WHERE\n c.\"id\" = ANY($2)\n ORDER BY\n c.\"updatedAt\" DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "created_at!", - "type_info": "Timestamp" - }, - { - "ordinal": 2, - "name": "updated_at!", - "type_info": "Timestamp" - }, - { - "ordinal": 3, - "name": "deleted_at?", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "viewed_at?", - "type_info": "Timestamp" - }, - { - "ordinal": 5, - "name": "project_id?", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - false - ] - }, - "hash": "c2f19d911d10a576d01505d6da90f66fad4698c52efa69d3b4a03324c09b87a7" -} diff --git a/rust/cloud-storage/.sqlx/query-c30711e82376ca92d1e4e346334517c98cfa67d86663cd13575bec99ee24c785.json b/rust/cloud-storage/.sqlx/query-c30711e82376ca92d1e4e346334517c98cfa67d86663cd13575bec99ee24c785.json deleted file mode 100644 index 8a8e0cd1b2..0000000000 --- a/rust/cloud-storage/.sqlx/query-c30711e82376ca92d1e4e346334517c98cfa67d86663cd13575bec99ee24c785.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, channel_id, room_name, created_by, created_at, egress_id, recording_key, preview_url, recording_started_at, share_with_team\n FROM calls\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "room_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_by", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "egress_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "recording_key", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "preview_url", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "recording_started_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "share_with_team", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true, - true, - true, - true, - false - ] - }, - "hash": "c30711e82376ca92d1e4e346334517c98cfa67d86663cd13575bec99ee24c785" -} diff --git a/rust/cloud-storage/.sqlx/query-c33f85b35573916eb380c8b6069939087fbd3b34b296b546a34cdfc3e7c9eee0.json b/rust/cloud-storage/.sqlx/query-c33f85b35573916eb380c8b6069939087fbd3b34b296b546a34cdfc3e7c9eee0.json deleted file mode 100644 index 9da8336f8e..0000000000 --- a/rust/cloud-storage/.sqlx/query-c33f85b35573916eb380c8b6069939087fbd3b34b296b546a34cdfc3e7c9eee0.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_message_recipients\n WHERE message_id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "c33f85b35573916eb380c8b6069939087fbd3b34b296b546a34cdfc3e7c9eee0" -} diff --git a/rust/cloud-storage/.sqlx/query-c370c41d4e1fd496016a5689da4ca6dd9e6af7a364499871944691b3dfee5a09.json b/rust/cloud-storage/.sqlx/query-c370c41d4e1fd496016a5689da4ca6dd9e6af7a364499871944691b3dfee5a09.json deleted file mode 100644 index f8ee410a86..0000000000 --- a/rust/cloud-storage/.sqlx/query-c370c41d4e1fd496016a5689da4ca6dd9e6af7a364499871944691b3dfee5a09.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE calls\n SET recording_started_at = $1\n WHERE id = $2\n AND (\n recording_started_at IS NULL\n OR recording_started_at = date_trunc('second', recording_started_at)\n OR $1 < recording_started_at\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Timestamptz", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "c370c41d4e1fd496016a5689da4ca6dd9e6af7a364499871944691b3dfee5a09" -} diff --git a/rust/cloud-storage/.sqlx/query-c396a4e1c32ab75bdb9a1bb4b3bb0f550620554bab6862d4ec9731236c227cfc.json b/rust/cloud-storage/.sqlx/query-c396a4e1c32ab75bdb9a1bb4b3bb0f550620554bab6862d4ec9731236c227cfc.json deleted file mode 100644 index e61663ad16..0000000000 --- a/rust/cloud-storage/.sqlx/query-c396a4e1c32ab75bdb9a1bb4b3bb0f550620554bab6862d4ec9731236c227cfc.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT plan as \"plan?: TeamPlan\"\n FROM team\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "plan?: TeamPlan", - "type_info": { - "Custom": { - "name": "team_plan", - "kind": { - "Enum": [ - "idea", - "pre_seed", - "seed", - "series_a", - "growth" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - true - ] - }, - "hash": "c396a4e1c32ab75bdb9a1bb4b3bb0f550620554bab6862d4ec9731236c227cfc" -} diff --git a/rust/cloud-storage/.sqlx/query-c3f9152d242ae679d87961e306f319ac0035e078be790795eed823a95095c7cc.json b/rust/cloud-storage/.sqlx/query-c3f9152d242ae679d87961e306f319ac0035e078be790795eed823a95095c7cc.json deleted file mode 100644 index 736ecd78b6..0000000000 --- a/rust/cloud-storage/.sqlx/query-c3f9152d242ae679d87961e306f319ac0035e078be790795eed823a95095c7cc.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, \"organizationId\" as \"organization_id?\"\n FROM \"User\"\n WHERE \"macro_user_id\" = $1\n AND email = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "organization_id?", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "c3f9152d242ae679d87961e306f319ac0035e078be790795eed823a95095c7cc" -} diff --git a/rust/cloud-storage/.sqlx/query-c4116c441fc76ecc39a9db7c29da7b5a952ef5031c2737d084da33a24af2c8ad.json b/rust/cloud-storage/.sqlx/query-c4116c441fc76ecc39a9db7c29da7b5a952ef5031c2737d084da33a24af2c8ad.json deleted file mode 100644 index d80f30ce43..0000000000 --- a/rust/cloud-storage/.sqlx/query-c4116c441fc76ecc39a9db7c29da7b5a952ef5031c2737d084da33a24af2c8ad.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n call_record_id,\n segment_id,\n speaker_id,\n diarized_speaker_id,\n custom_speaker,\n voice_id,\n content,\n started_at,\n ended_at,\n sequence_num\n FROM call_record_transcripts\n WHERE call_record_id = $1\n ORDER BY sequence_num ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "call_record_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "segment_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "speaker_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "diarized_speaker_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "custom_speaker", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "voice_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "started_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "ended_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "sequence_num", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - true, - false, - true, - true, - true, - false, - false, - true, - false - ] - }, - "hash": "c4116c441fc76ecc39a9db7c29da7b5a952ef5031c2737d084da33a24af2c8ad" -} diff --git a/rust/cloud-storage/.sqlx/query-c415f922985187174693b51466423fa1d2ed8c301776a9778c4947a9d84590e1.json b/rust/cloud-storage/.sqlx/query-c415f922985187174693b51466423fa1d2ed8c301776a9778c4947a9d84590e1.json deleted file mode 100644 index 69b4971298..0000000000 --- a/rust/cloud-storage/.sqlx/query-c415f922985187174693b51466423fa1d2ed8c301776a9778c4947a9d84590e1.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Comment\" AS c \n (\"threadId\", \"owner\", \"text\", \"metadata\")\n VALUES ($1, $2, $3, $4)\n RETURNING\n c.id as comment_id, \n c.\"threadId\" as thread_id, \n c.owner, \n c.sender, \n c.text, \n c.metadata, \n c.\"createdAt\"::timestamptz as created_at, \n c.\"updatedAt\"::timestamptz as updated_at, \n c.\"deletedAt\"::timestamptz as deleted_at, \n c.order\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "comment_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "sender", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "text", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "order", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Int8", - "Text", - "Text", - "Jsonb" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - true, - null, - null, - null, - true - ] - }, - "hash": "c415f922985187174693b51466423fa1d2ed8c301776a9778c4947a9d84590e1" -} diff --git a/rust/cloud-storage/.sqlx/query-c449c7237e08cf511f7bc2182d62e12e2aaff653c37f79cd3feb22ea4b849ea6.json b/rust/cloud-storage/.sqlx/query-c449c7237e08cf511f7bc2182d62e12e2aaff653c37f79cd3feb22ea4b849ea6.json deleted file mode 100644 index 7f2a36f19f..0000000000 --- a/rust/cloud-storage/.sqlx/query-c449c7237e08cf511f7bc2182d62e12e2aaff653c37f79cd3feb22ea4b849ea6.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id as \"call_id!\",\n channel_id as \"channel_id!\",\n created_at as \"started_at!\",\n NULL::timestamptz as \"ended_at\",\n NULL::text as \"custom_name\"\n FROM calls\n WHERE id = ANY($1)\n UNION ALL\n SELECT\n id as \"call_id!\",\n channel_id as \"channel_id!\",\n started_at as \"started_at!\",\n ended_at as \"ended_at\",\n custom_name as \"custom_name\"\n FROM call_records\n WHERE id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "call_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id!", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "started_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "ended_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "custom_name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - null, - null, - null, - null, - null - ] - }, - "hash": "c449c7237e08cf511f7bc2182d62e12e2aaff653c37f79cd3feb22ea4b849ea6" -} diff --git a/rust/cloud-storage/.sqlx/query-c4d2fed1a0fb95c20ef9b4049cc5cacfb7f0a441c630528d2cde076211ff63f9.json b/rust/cloud-storage/.sqlx/query-c4d2fed1a0fb95c20ef9b4049cc5cacfb7f0a441c630528d2cde076211ff63f9.json deleted file mode 100644 index 93c23384d7..0000000000 --- a/rust/cloud-storage/.sqlx/query-c4d2fed1a0fb95c20ef9b4049cc5cacfb7f0a441c630528d2cde076211ff63f9.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "INSERT INTO email_filters (link_id, email_domain, is_important)\n VALUES ($1, $2, $3)\n ON CONFLICT (link_id, lower(email_domain)) WHERE email_domain IS NOT NULL\n DO UPDATE SET is_important = EXCLUDED.is_important\n RETURNING id, link_id, email_address, email_domain, is_important, created_at", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "email_domain", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "is_important", - "type_info": "Bool" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Varchar", - "Bool" - ] - }, - "nullable": [ - false, - false, - true, - true, - false, - false - ] - }, - "hash": "c4d2fed1a0fb95c20ef9b4049cc5cacfb7f0a441c630528d2cde076211ff63f9" -} diff --git a/rust/cloud-storage/.sqlx/query-c50d0f6d2aa615856bba86ac8460b637539f28a5e8644f0467eca7efdb06e387.json b/rust/cloud-storage/.sqlx/query-c50d0f6d2aa615856bba86ac8460b637539f28a5e8644f0467eca7efdb06e387.json deleted file mode 100644 index e8d1d08574..0000000000 --- a/rust/cloud-storage/.sqlx/query-c50d0f6d2aa615856bba86ac8460b637539f28a5e8644f0467eca7efdb06e387.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT name\n FROM team\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "c50d0f6d2aa615856bba86ac8460b637539f28a5e8644f0467eca7efdb06e387" -} diff --git a/rust/cloud-storage/.sqlx/query-c5196bb88afe2d67ce0a4fe7eb2c23db0321cc59a5abd6f7f714b0333ca87613.json b/rust/cloud-storage/.sqlx/query-c5196bb88afe2d67ce0a4fe7eb2c23db0321cc59a5abd6f7f714b0333ca87613.json deleted file mode 100644 index 34d7bb06c4..0000000000 --- a/rust/cloud-storage/.sqlx/query-c5196bb88afe2d67ce0a4fe7eb2c23db0321cc59a5abd6f7f714b0333ca87613.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT referrer_id FROM referral_tracking WHERE referred_id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "referrer_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "c5196bb88afe2d67ce0a4fe7eb2c23db0321cc59a5abd6f7f714b0333ca87613" -} diff --git a/rust/cloud-storage/.sqlx/query-c59c1f638ad1ff78414fdb6733442120d6333b8c605f6da5b748951d9561c1f9.json b/rust/cloud-storage/.sqlx/query-c59c1f638ad1ff78414fdb6733442120d6333b8c605f6da5b748951d9561c1f9.json deleted file mode 100644 index 8097b5691b..0000000000 --- a/rust/cloud-storage/.sqlx/query-c59c1f638ad1ff78414fdb6733442120d6333b8c605f6da5b748951d9561c1f9.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE comms_channel_participants\n SET left_at = now()\n WHERE channel_id = $1\n AND user_id = $2\n AND left_at IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "c59c1f638ad1ff78414fdb6733442120d6333b8c605f6da5b748951d9561c1f9" -} diff --git a/rust/cloud-storage/.sqlx/query-c5b5b22cfde385f2d03eebbf25a1f08e02d42d09810994f84a250e2f43cc5acf.json b/rust/cloud-storage/.sqlx/query-c5b5b22cfde385f2d03eebbf25a1f08e02d42d09810994f84a250e2f43cc5acf.json deleted file mode 100644 index 8b087037ad..0000000000 --- a/rust/cloud-storage/.sqlx/query-c5b5b22cfde385f2d03eebbf25a1f08e02d42d09810994f84a250e2f43cc5acf.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.\"documentId\" as \"document_id\",\n d.content as \"content\",\n d.\"tokenCount\" as \"token_count\"\n FROM\n \"DocumentText\" d\n WHERE\n d.\"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "token_count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "c5b5b22cfde385f2d03eebbf25a1f08e02d42d09810994f84a250e2f43cc5acf" -} diff --git a/rust/cloud-storage/.sqlx/query-c5d7f14d70f0de5fd07ae24e50441f5a5dd574ae4492f2adebd98021dbaab771.json b/rust/cloud-storage/.sqlx/query-c5d7f14d70f0de5fd07ae24e50441f5a5dd574ae4492f2adebd98021dbaab771.json deleted file mode 100644 index fd366fd300..0000000000 --- a/rust/cloud-storage/.sqlx/query-c5d7f14d70f0de5fd07ae24e50441f5a5dd574ae4492f2adebd98021dbaab771.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, name, channel_type as \"channel_type!: ChannelType\"\n FROM comms_channels\n WHERE id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "channel_type!: ChannelType", - "type_info": { - "Custom": { - "name": "comms_channel_type", - "kind": { - "Enum": [ - "public", - "private", - "direct_message", - "team" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - true, - false - ] - }, - "hash": "c5d7f14d70f0de5fd07ae24e50441f5a5dd574ae4492f2adebd98021dbaab771" -} diff --git a/rust/cloud-storage/.sqlx/query-c5e833a5efdd06f446538cca125c29318b92959b2ddab117bfd98273a45d1838.json b/rust/cloud-storage/.sqlx/query-c5e833a5efdd06f446538cca125c29318b92959b2ddab117bfd98273a45d1838.json deleted file mode 100644 index 2c03184e20..0000000000 --- a/rust/cloud-storage/.sqlx/query-c5e833a5efdd06f446538cca125c29318b92959b2ddab117bfd98273a45d1838.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE team\n SET plan = $2\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "name": "team_plan", - "kind": { - "Enum": [ - "idea", - "pre_seed", - "seed", - "series_a", - "growth" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "c5e833a5efdd06f446538cca125c29318b92959b2ddab117bfd98273a45d1838" -} diff --git a/rust/cloud-storage/.sqlx/query-c621293c78043e724b4e44f821ef3cc9e4d74a48075918e24327172256a5ad15.json b/rust/cloud-storage/.sqlx/query-c621293c78043e724b4e44f821ef3cc9e4d74a48075918e24327172256a5ad15.json deleted file mode 100644 index 0b73aaff33..0000000000 --- a/rust/cloud-storage/.sqlx/query-c621293c78043e724b4e44f821ef3cc9e4d74a48075918e24327172256a5ad15.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO macro_user (id, username, stripe_customer_id, email)\n VALUES ($1, $2, $3, $4)\n ON CONFLICT (\"id\") DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "c621293c78043e724b4e44f821ef3cc9e4d74a48075918e24327172256a5ad15" -} diff --git a/rust/cloud-storage/.sqlx/query-c631a415b25cf9edaf194dc022a044463339682b132e007d56eae675e4795169.json b/rust/cloud-storage/.sqlx/query-c631a415b25cf9edaf194dc022a044463339682b132e007d56eae675e4795169.json deleted file mode 100644 index b5f354e820..0000000000 --- a/rust/cloud-storage/.sqlx/query-c631a415b25cf9edaf194dc022a044463339682b132e007d56eae675e4795169.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_scheduled_messages\n SET\n processing = false,\n updated_at = NOW()\n WHERE link_id = $1 AND message_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "c631a415b25cf9edaf194dc022a044463339682b132e007d56eae675e4795169" -} diff --git a/rust/cloud-storage/.sqlx/query-c6908e8ef1c196e7785bcc4f1e07c57d66ad08be04685ac40956a2d7d7b396af.json b/rust/cloud-storage/.sqlx/query-c6908e8ef1c196e7785bcc4f1e07c57d66ad08be04685ac40956a2d7d7b396af.json deleted file mode 100644 index 221d0a3073..0000000000 --- a/rust/cloud-storage/.sqlx/query-c6908e8ef1c196e7785bcc4f1e07c57d66ad08be04685ac40956a2d7d7b396af.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id FROM \"User\" WHERE email = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "c6908e8ef1c196e7785bcc4f1e07c57d66ad08be04685ac40956a2d7d7b396af" -} diff --git a/rust/cloud-storage/.sqlx/query-c6a0afdba2b194e96e3b51935deeeca109ccd45ecae97f97cb61bd9fdd7c470a.json b/rust/cloud-storage/.sqlx/query-c6a0afdba2b194e96e3b51935deeeca109ccd45ecae97f97cb61bd9fdd7c470a.json deleted file mode 100644 index 833a22de08..0000000000 --- a/rust/cloud-storage/.sqlx/query-c6a0afdba2b194e96e3b51935deeeca109ccd45ecae97f97cb61bd9fdd7c470a.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT pp.\"sharePermissionId\" as id\n FROM \"ProjectPermission\" pp\n WHERE\n pp.\"projectId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "c6a0afdba2b194e96e3b51935deeeca109ccd45ecae97f97cb61bd9fdd7c470a" -} diff --git a/rust/cloud-storage/.sqlx/query-c6aec8f042b91f510b47cc9cf9a48ab072c216515c897a4a1e10f310cc63b4c4.json b/rust/cloud-storage/.sqlx/query-c6aec8f042b91f510b47cc9cf9a48ab072c216515c897a4a1e10f310cc63b4c4.json deleted file mode 100644 index 9979d4d6f7..0000000000 --- a/rust/cloud-storage/.sqlx/query-c6aec8f042b91f510b47cc9cf9a48ab072c216515c897a4a1e10f310cc63b4c4.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ItemLastAccessed\" (\"item_id\", \"item_type\", \"last_accessed\")\n VALUES ($1, $2, $3)\n ON CONFLICT (\"item_id\", \"item_type\") DO UPDATE\n SET \"last_accessed\" = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Timestamp" - ] - }, - "nullable": [] - }, - "hash": "c6aec8f042b91f510b47cc9cf9a48ab072c216515c897a4a1e10f310cc63b4c4" -} diff --git a/rust/cloud-storage/.sqlx/query-c6f8bb6a2a9cda820cf54efb5e4ff8b048d735cfcc23716612f2ee66a8c7151c.json b/rust/cloud-storage/.sqlx/query-c6f8bb6a2a9cda820cf54efb5e4ff8b048d735cfcc23716612f2ee66a8c7151c.json deleted file mode 100644 index c6b12842de..0000000000 --- a/rust/cloud-storage/.sqlx/query-c6f8bb6a2a9cda820cf54efb5e4ff8b048d735cfcc23716612f2ee66a8c7151c.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM property_options WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "c6f8bb6a2a9cda820cf54efb5e4ff8b048d735cfcc23716612f2ee66a8c7151c" -} diff --git a/rust/cloud-storage/.sqlx/query-c707e1d4017c4ab2983364705b6ea9b62060b16ba2e7714d5690cc8311a5e201.json b/rust/cloud-storage/.sqlx/query-c707e1d4017c4ab2983364705b6ea9b62060b16ba2e7714d5690cc8311a5e201.json deleted file mode 100644 index 2fc62a4bdc..0000000000 --- a/rust/cloud-storage/.sqlx/query-c707e1d4017c4ab2983364705b6ea9b62060b16ba2e7714d5690cc8311a5e201.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT share_permission_id as \"share_permission_id!\"\n FROM (\n SELECT share_permission_id FROM calls WHERE id = $1\n UNION ALL\n SELECT share_permission_id FROM call_records WHERE id = $1\n ) t\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "c707e1d4017c4ab2983364705b6ea9b62060b16ba2e7714d5690cc8311a5e201" -} diff --git a/rust/cloud-storage/.sqlx/query-c7499a6777186567833a23df8df39fd871328de140968ba50c3db3a30cd3f520.json b/rust/cloud-storage/.sqlx/query-c7499a6777186567833a23df8df39fd871328de140968ba50c3db3a30cd3f520.json deleted file mode 100644 index bdc0ab08a8..0000000000 --- a/rust/cloud-storage/.sqlx/query-c7499a6777186567833a23df8df39fd871328de140968ba50c3db3a30cd3f520.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT mui.profile_picture as \"profile_picture!\"\n FROM \"User\" u\n JOIN macro_user mu ON mu.id = u.macro_user_id\n JOIN macro_user_info mui ON mui.macro_user_id = mu.id\n WHERE u.id = $1\n AND mui.profile_picture IS NOT NULL\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "profile_picture!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "c7499a6777186567833a23df8df39fd871328de140968ba50c3db3a30cd3f520" -} diff --git a/rust/cloud-storage/.sqlx/query-c77469ffc5cc502c63d2ecb76a8578d085a7aec81551a38aa0c14b8e20491e3e.json b/rust/cloud-storage/.sqlx/query-c77469ffc5cc502c63d2ecb76a8578d085a7aec81551a38aa0c14b8e20491e3e.json deleted file mode 100644 index 1ebd795f6e..0000000000 --- a/rust/cloud-storage/.sqlx/query-c77469ffc5cc502c63d2ecb76a8578d085a7aec81551a38aa0c14b8e20491e3e.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT team_id\n FROM team_user\n WHERE user_id = $1\n ORDER BY team_id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "team_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "c77469ffc5cc502c63d2ecb76a8578d085a7aec81551a38aa0c14b8e20491e3e" -} diff --git a/rust/cloud-storage/.sqlx/query-c777a32bdb434216895e8011885c8fa8858a6c5470f1c921ab0265cf7d1c9b2a.json b/rust/cloud-storage/.sqlx/query-c777a32bdb434216895e8011885c8fa8858a6c5470f1c921ab0265cf7d1c9b2a.json deleted file mode 100644 index 00c9ed9c51..0000000000 --- a/rust/cloud-storage/.sqlx/query-c777a32bdb434216895e8011885c8fa8858a6c5470f1c921ab0265cf7d1c9b2a.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS (\n SELECT 1 FROM crm_companies\n WHERE id = $1\n AND team_id = $2\n AND ($3 OR hidden = FALSE)\n ) AS \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Bool" - ] - }, - "nullable": [ - null - ] - }, - "hash": "c777a32bdb434216895e8011885c8fa8858a6c5470f1c921ab0265cf7d1c9b2a" -} diff --git a/rust/cloud-storage/.sqlx/query-c78296b868c8a8657e5c2296049fa4809abee07e9fd473a5e9ae00ad8625a108.json b/rust/cloud-storage/.sqlx/query-c78296b868c8a8657e5c2296049fa4809abee07e9fd473a5e9ae00ad8625a108.json deleted file mode 100644 index 5cd49428ff..0000000000 --- a/rust/cloud-storage/.sqlx/query-c78296b868c8a8657e5c2296049fa4809abee07e9fd473a5e9ae00ad8625a108.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE \"Chat\" SET \"name\" = $1 WHERE id = $2", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "c78296b868c8a8657e5c2296049fa4809abee07e9fd473a5e9ae00ad8625a108" -} diff --git a/rust/cloud-storage/.sqlx/query-c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89.json b/rust/cloud-storage/.sqlx/query-c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89.json deleted file mode 100644 index fe3708f959..0000000000 --- a/rust/cloud-storage/.sqlx/query-c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Chat\"\n WHERE \"userId\" = $1 AND \"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89" -} diff --git a/rust/cloud-storage/.sqlx/query-c7c058fd3acdc93e77a805b28b844150503f955a91339be026f8b68f65092adb.json b/rust/cloud-storage/.sqlx/query-c7c058fd3acdc93e77a805b28b844150503f955a91339be026f8b68f65092adb.json deleted file mode 100644 index b25657bb43..0000000000 --- a/rust/cloud-storage/.sqlx/query-c7c058fd3acdc93e77a805b28b844150503f955a91339be026f8b68f65092adb.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id AS \"company_id!\",\n c.team_id AS \"company_team_id!\",\n c.email_sync AS \"company_email_sync!\",\n c.hidden AS \"company_hidden!\",\n c.first_interaction AS \"company_created_at!\",\n c.last_interaction AS \"company_updated_at!\",\n d.id AS \"domain_id?\",\n d.domain AS \"domain?\",\n d.created_at AS \"domain_created_at?\",\n dd.name AS \"dir_name?\",\n dd.description AS \"dir_description?\"\n FROM crm_companies c\n LEFT JOIN crm_domains d ON d.company_id = c.id\n LEFT JOIN crm_domain_directory dd\n ON LOWER(dd.domain) = LOWER(d.domain)\n WHERE c.id = $1\n AND c.team_id = $2\n AND ($3 OR c.hidden = FALSE)\n ORDER BY d.created_at ASC NULLS LAST\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "company_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "company_team_id!", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "company_email_sync!", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "company_hidden!", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "company_created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "company_updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "domain_id?", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "domain?", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "domain_created_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "dir_name?", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "dir_description?", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Bool" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - true - ] - }, - "hash": "c7c058fd3acdc93e77a805b28b844150503f955a91339be026f8b68f65092adb" -} diff --git a/rust/cloud-storage/.sqlx/query-c8569a737734eab039a3ca9759478b203596330442305a6f3925edf67a8b52a3.json b/rust/cloud-storage/.sqlx/query-c8569a737734eab039a3ca9759478b203596330442305a6f3925edf67a8b52a3.json deleted file mode 100644 index dec05aa8a8..0000000000 --- a/rust/cloud-storage/.sqlx/query-c8569a737734eab039a3ca9759478b203596330442305a6f3925edf67a8b52a3.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, macro_id, fusionauth_user_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at\n FROM email_links\n WHERE fusionauth_user_id = $1 AND macro_id = $2 AND provider = $3\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "provider: _", - "type_info": { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_sync_active", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "c8569a737734eab039a3ca9759478b203596330442305a6f3925edf67a8b52a3" -} diff --git a/rust/cloud-storage/.sqlx/query-c858541d6cbadae374ef95f2c69a582d76bd73ae439d3d3e6f1cf4e482b9ff55.json b/rust/cloud-storage/.sqlx/query-c858541d6cbadae374ef95f2c69a582d76bd73ae439d3d3e6f1cf4e482b9ff55.json deleted file mode 100644 index b67166da2e..0000000000 --- a/rust/cloud-storage/.sqlx/query-c858541d6cbadae374ef95f2c69a582d76bd73ae439d3d3e6f1cf4e482b9ff55.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n pa.uuid, \n pa.\"documentId\" as document_id, \n pa.owner, \n pa.\"threadId\" as thread_id, \n pa.page, \n pa.\"originalPage\" as original_page, \n pa.\"originalIndex\" as original_index, \n pa.\"xPct\" as x_pct, \n pa.\"yPct\" as y_pct, \n pa.\"widthPct\" as width_pct, \n pa.\"heightPct\" as height_pct,\n pa.rotation, \n pa.\"allowableEdits\" as allowable_edits,\n pa.\"wasEdited\" as was_edited,\n pa.\"wasDeleted\" as was_deleted,\n pa.\"shouldLockOnSave\" as should_lock_on_save\n FROM \"PdfPlaceableCommentAnchor\" pa\n JOIN \"Thread\" t ON pa.\"threadId\" = t.id\n WHERE pa.\"documentId\" = $1\n AND t.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "page", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "original_page", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "original_index", - "type_info": "Int4" - }, - { - "ordinal": 7, - "name": "x_pct", - "type_info": "Float8" - }, - { - "ordinal": 8, - "name": "y_pct", - "type_info": "Float8" - }, - { - "ordinal": 9, - "name": "width_pct", - "type_info": "Float8" - }, - { - "ordinal": 10, - "name": "height_pct", - "type_info": "Float8" - }, - { - "ordinal": 11, - "name": "rotation", - "type_info": "Float8" - }, - { - "ordinal": 12, - "name": "allowable_edits", - "type_info": "Jsonb" - }, - { - "ordinal": 13, - "name": "was_edited", - "type_info": "Bool" - }, - { - "ordinal": 14, - "name": "was_deleted", - "type_info": "Bool" - }, - { - "ordinal": 15, - "name": "should_lock_on_save", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false - ] - }, - "hash": "c858541d6cbadae374ef95f2c69a582d76bd73ae439d3d3e6f1cf4e482b9ff55" -} diff --git a/rust/cloud-storage/.sqlx/query-c8dac77aedb5609a57ce5ee03d97f7e3c28fa0e94f2563e99d82f306cf6530e5.json b/rust/cloud-storage/.sqlx/query-c8dac77aedb5609a57ce5ee03d97f7e3c28fa0e94f2563e99d82f306cf6530e5.json deleted file mode 100644 index 31ebb1fc30..0000000000 --- a/rust/cloud-storage/.sqlx/query-c8dac77aedb5609a57ce5ee03d97f7e3c28fa0e94f2563e99d82f306cf6530e5.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\nDELETE FROM \"PdfHighlightAnchor\" WHERE \"documentId\" = $1;\n", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "c8dac77aedb5609a57ce5ee03d97f7e3c28fa0e94f2563e99d82f306cf6530e5" -} diff --git a/rust/cloud-storage/.sqlx/query-c8e8b950c4f8645562fb36042b549b0c1f6ec3da1b9beb4d212ddd5bc640948e.json b/rust/cloud-storage/.sqlx/query-c8e8b950c4f8645562fb36042b549b0c1f6ec3da1b9beb4d212ddd5bc640948e.json deleted file mode 100644 index c15673d65f..0000000000 --- a/rust/cloud-storage/.sqlx/query-c8e8b950c4f8645562fb36042b549b0c1f6ec3da1b9beb4d212ddd5bc640948e.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, draft_id, file_name, content_type, sha, size, s3_key\n FROM email_attachments_drafts\n WHERE draft_id = ANY($1)\n ORDER BY draft_id, file_name ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "draft_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "file_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content_type", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "size", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "s3_key", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "c8e8b950c4f8645562fb36042b549b0c1f6ec3da1b9beb4d212ddd5bc640948e" -} diff --git a/rust/cloud-storage/.sqlx/query-c922ac06eee1109006d3bf676ab8b8341b10cfee0b725409138cfdde038712aa.json b/rust/cloud-storage/.sqlx/query-c922ac06eee1109006d3bf676ab8b8341b10cfee0b725409138cfdde038712aa.json deleted file mode 100644 index 29b18e9923..0000000000 --- a/rust/cloud-storage/.sqlx/query-c922ac06eee1109006d3bf676ab8b8341b10cfee0b725409138cfdde038712aa.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Thread\"\n SET \"deletedAt\" = NOW()\n WHERE id = $1 and \"deletedAt\" IS NULL\n RETURNING \"deletedAt\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "deletedAt", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - true - ] - }, - "hash": "c922ac06eee1109006d3bf676ab8b8341b10cfee0b725409138cfdde038712aa" -} diff --git a/rust/cloud-storage/.sqlx/query-c9fce1ac31e4e4f9992809c650e85fe45f4dc1e66d4b5a846c734b308c74fa70.json b/rust/cloud-storage/.sqlx/query-c9fce1ac31e4e4f9992809c650e85fe45f4dc1e66d4b5a846c734b308c74fa70.json deleted file mode 100644 index 452e680e85..0000000000 --- a/rust/cloud-storage/.sqlx/query-c9fce1ac31e4e4f9992809c650e85fe45f4dc1e66d4b5a846c734b308c74fa70.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as \"document_id\",\n d.owner as \"owner\",\n d.name as \"document_name\",\n COALESCE(di.id, db.id) as \"document_version_id!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"fileType\" as \"file_type\",\n db.bom_parts as \"document_bom?\",\n di.modification_data as \"modification_data?\",\n d.\"projectId\" as \"project_id?\",\n p.name as \"project_name?\",\n di.sha as \"sha?\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"deletedAt\"::timestamptz as deleted_at\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.sha,\n i.\"createdAt\",\n (\n SELECT\n imod.\"modificationData\"\n FROM\n \"DocumentInstanceModificationData\" imod\n WHERE\n imod.\"documentInstanceId\" = i.id\n ) as modification_data,\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n AND\n i.id = $2\n ) di ON true\n LEFT JOIN LATERAL (\n SELECT\n b.id,\n (\n SELECT\n json_agg(\n json_build_object(\n 'id', bp.id,\n 'sha', bp.sha,\n 'path', bp.path\n )\n )\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = b.id\n ) as bom_parts\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n AND\n b.id = $2\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n p.name\n FROM \"Project\" p\n WHERE p.id = d.\"projectId\"\n ) p ON d.\"projectId\" IS NOT NULL\n WHERE\n d.id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "document_version_id!", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "document_bom?", - "type_info": "Json" - }, - { - "ordinal": 11, - "name": "modification_data?", - "type_info": "Jsonb" - }, - { - "ordinal": 12, - "name": "project_id?", - "type_info": "Text" - }, - { - "ordinal": 13, - "name": "project_name?", - "type_info": "Text" - }, - { - "ordinal": 14, - "name": "sha?", - "type_info": "Text" - }, - { - "ordinal": 15, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 16, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - null, - true, - true, - true, - null, - null, - true, - null, - null, - true, - false, - false, - false, - null - ] - }, - "hash": "c9fce1ac31e4e4f9992809c650e85fe45f4dc1e66d4b5a846c734b308c74fa70" -} diff --git a/rust/cloud-storage/.sqlx/query-c9ff8e2deb86a25e4e0e16c9de66a5c116b68362ec45ffea5e2b25d86cfccf01.json b/rust/cloud-storage/.sqlx/query-c9ff8e2deb86a25e4e0e16c9de66a5c116b68362ec45ffea5e2b25d86cfccf01.json deleted file mode 100644 index 186691e7f3..0000000000 --- a/rust/cloud-storage/.sqlx/query-c9ff8e2deb86a25e4e0e16c9de66a5c116b68362ec45ffea5e2b25d86cfccf01.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE \"Chat\" SET \"updatedAt\" = NOW() WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "c9ff8e2deb86a25e4e0e16c9de66a5c116b68362ec45ffea5e2b25d86cfccf01" -} diff --git a/rust/cloud-storage/.sqlx/query-cac5e246875c3539f7a03cee8271708be47a56582c2f0323716f206ab905a580.json b/rust/cloud-storage/.sqlx/query-cac5e246875c3539f7a03cee8271708be47a56582c2f0323716f206ab905a580.json deleted file mode 100644 index ddcaf87146..0000000000 --- a/rust/cloud-storage/.sqlx/query-cac5e246875c3539f7a03cee8271708be47a56582c2f0323716f206ab905a580.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT cp.channel_id::text FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "cac5e246875c3539f7a03cee8271708be47a56582c2f0323716f206ab905a580" -} diff --git a/rust/cloud-storage/.sqlx/query-cb37182733a71e6939495eb29d0ab6544c02094129fc9c7e921dd5280d78047a.json b/rust/cloud-storage/.sqlx/query-cb37182733a71e6939495eb29d0ab6544c02094129fc9c7e921dd5280d78047a.json deleted file mode 100644 index 6213530d30..0000000000 --- a/rust/cloud-storage/.sqlx/query-cb37182733a71e6939495eb29d0ab6544c02094129fc9c7e921dd5280d78047a.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.\"content\"\n FROM \"DocumentProcessResult\" d\n JOIN \"JobToDocumentProcessResult\" j ON d.id = j.\"documentProcessResultId\"\n WHERE j.\"jobId\" = $1 AND d.\"documentId\" = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "content", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "cb37182733a71e6939495eb29d0ab6544c02094129fc9c7e921dd5280d78047a" -} diff --git a/rust/cloud-storage/.sqlx/query-cb43982dff09d09997be524b6e1034ed73a87e8599f27986495b62ce42e86384.json b/rust/cloud-storage/.sqlx/query-cb43982dff09d09997be524b6e1034ed73a87e8599f27986495b62ce42e86384.json deleted file mode 100644 index daf77cdfde..0000000000 --- a/rust/cloud-storage/.sqlx/query-cb43982dff09d09997be524b6e1034ed73a87e8599f27986495b62ce42e86384.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT sender_id\n FROM comms_messages\n WHERE id = $1 AND channel_id = $2\n ORDER BY created_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sender_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "cb43982dff09d09997be524b6e1034ed73a87e8599f27986495b62ce42e86384" -} diff --git a/rust/cloud-storage/.sqlx/query-cb4e7ca0b0a9c275fd8e4e2507017d2dcf7238a82ac9779e4887536003556e60.json b/rust/cloud-storage/.sqlx/query-cb4e7ca0b0a9c275fd8e4e2507017d2dcf7238a82ac9779e4887536003556e60.json deleted file mode 100644 index af2517bc84..0000000000 --- a/rust/cloud-storage/.sqlx/query-cb4e7ca0b0a9c275fd8e4e2507017d2dcf7238a82ac9779e4887536003556e60.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH MultiAttachmentChats AS (\n SELECT\n \"chatId\",\n COUNT(*) as attachment_count\n FROM \"ChatAttachment\"\n GROUP BY \"chatId\"\n )\n SELECT\n c.id,\n c.name,\n c.\"userId\" as \"user_id\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.model,\n c.\"tokenCount\" as \"token_count\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\"\n FROM \"Chat\" c\n INNER JOIN \"ChatAttachment\" ca ON c.id = ca.\"chatId\"\n INNER JOIN MultiAttachmentChats mac ON c.id = mac.\"chatId\"\n WHERE\n ca.\"entity_id\"::TEXT = $1 AND c.\"userId\" = $2\n AND\n c.\"deletedAt\" IS NULL\n ORDER BY c.\"updatedAt\" DESC;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "model", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "token_count", - "type_info": "Int8" - }, - { - "ordinal": 8, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "is_persistent", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - null, - null, - null, - false, - true, - true, - false - ] - }, - "hash": "cb4e7ca0b0a9c275fd8e4e2507017d2dcf7238a82ac9779e4887536003556e60" -} diff --git a/rust/cloud-storage/.sqlx/query-cb99b956db41571415b60886ba181d8767260559ccb0198eb8b7178448673810.json b/rust/cloud-storage/.sqlx/query-cb99b956db41571415b60886ba181d8767260559ccb0198eb8b7178448673810.json deleted file mode 100644 index 042ac07422..0000000000 --- a/rust/cloud-storage/.sqlx/query-cb99b956db41571415b60886ba181d8767260559ccb0198eb8b7178448673810.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO contacts_connections(user1, user2)\n SELECT * FROM unnest($1::text[], $2::text[])\n ON CONFLICT(user1, user2) DO UPDATE SET updated_at = now()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "cb99b956db41571415b60886ba181d8767260559ccb0198eb8b7178448673810" -} diff --git a/rust/cloud-storage/.sqlx/query-cba64686023001741b1fa46b747fffa9af9eabd558af03fd0e2a250d29a4a64d.json b/rust/cloud-storage/.sqlx/query-cba64686023001741b1fa46b747fffa9af9eabd558af03fd0e2a250d29a4a64d.json deleted file mode 100644 index fc4e6700ae..0000000000 --- a/rust/cloud-storage/.sqlx/query-cba64686023001741b1fa46b747fffa9af9eabd558af03fd0e2a250d29a4a64d.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT t.id, t.name, t.slug, t.owner_id\n FROM team t\n JOIN team_user tu ON t.id = tu.team_id\n WHERE tu.user_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "slug", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "owner_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false - ] - }, - "hash": "cba64686023001741b1fa46b747fffa9af9eabd558af03fd0e2a250d29a4a64d" -} diff --git a/rust/cloud-storage/.sqlx/query-cbb8834b22cfc83665886957d72b6c25ac9159ac952804c94f8061d811e1e7c3.json b/rust/cloud-storage/.sqlx/query-cbb8834b22cfc83665886957d72b6c25ac9159ac952804c94f8061d811e1e7c3.json deleted file mode 100644 index 3ca8bca1eb..0000000000 --- a/rust/cloud-storage/.sqlx/query-cbb8834b22cfc83665886957d72b6c25ac9159ac952804c94f8061d811e1e7c3.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.id,\n c.link_id,\n c.email_address,\n COALESCE(m.from_name, c.name) as \"name\", -- name from message overrides contact name\n c.original_photo_url,\n c.sfs_photo_url,\n c.created_at,\n c.updated_at\n FROM email_messages m\n INNER JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.id = $1\n AND m.from_contact_id IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "original_photo_url", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "sfs_photo_url", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - null, - true, - true, - false, - false - ] - }, - "hash": "cbb8834b22cfc83665886957d72b6c25ac9159ac952804c94f8061d811e1e7c3" -} diff --git a/rust/cloud-storage/.sqlx/query-cbc32c96712e2169984254c7fc98f082189e1588601b714f52d11fc273afb01e.json b/rust/cloud-storage/.sqlx/query-cbc32c96712e2169984254c7fc98f082189e1588601b714f52d11fc273afb01e.json deleted file mode 100644 index ec8a703d3e..0000000000 --- a/rust/cloud-storage/.sqlx/query-cbc32c96712e2169984254c7fc98f082189e1588601b714f52d11fc273afb01e.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n provider_id,\n global_id,\n thread_id,\n provider_thread_id,\n replying_to_id,\n link_id,\n provider_history_id,\n internal_date_ts,\n snippet,\n size_estimate,\n subject,\n from_name,\n from_contact_id,\n sent_at,\n has_attachments,\n is_read,\n is_starred,\n is_sent,\n is_draft,\n body_text,\n body_html_sanitized,\n body_macro,\n headers_jsonb,\n created_at,\n updated_at\n FROM email_messages\n WHERE id = $1 and link_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 6, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 21, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 22, - "name": "body_macro", - "type_info": "Text" - }, - { - "ordinal": 23, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 24, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 25, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - true, - true, - false, - true, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - true, - true, - true, - true, - false, - false - ] - }, - "hash": "cbc32c96712e2169984254c7fc98f082189e1588601b714f52d11fc273afb01e" -} diff --git a/rust/cloud-storage/.sqlx/query-cbd3dc65e8a0068465b09cf9bf7e2ca71b6832b6c46a075b432cfc5266c05115.json b/rust/cloud-storage/.sqlx/query-cbd3dc65e8a0068465b09cf9bf7e2ca71b6832b6c46a075b432cfc5266c05115.json deleted file mode 100644 index 7813ad5fa2..0000000000 --- a/rust/cloud-storage/.sqlx/query-cbd3dc65e8a0068465b09cf9bf7e2ca71b6832b6c46a075b432cfc5266c05115.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n bt.id AS token_id,\n bt.bot_id,\n bt.token_hash,\n bt.token_prefix,\n bt.label,\n bt.last_used_at,\n bt.expires_at,\n bt.revoked_at,\n bt.created_at,\n b.kind\n FROM bot_tokens bt\n JOIN bots b ON b.id = bt.bot_id\n JOIN comms_channel_participants cp\n ON cp.channel_id = $1\n AND cp.user_id = ('bot|' || b.id::text)\n AND cp.left_at IS NULL\n WHERE bt.token_prefix = $2\n AND b.deleted_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "token_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "bot_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "token_hash", - "type_info": "Bytea" - }, - { - "ordinal": 3, - "name": "token_prefix", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "label", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "last_used_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "expires_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "revoked_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "kind", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - true, - true, - true, - true, - false, - false - ] - }, - "hash": "cbd3dc65e8a0068465b09cf9bf7e2ca71b6832b6c46a075b432cfc5266c05115" -} diff --git a/rust/cloud-storage/.sqlx/query-cbd8fd7362c56f8c1a5bb9db32538a0d4a1716f4d311683cc07f488d33fecad7.json b/rust/cloud-storage/.sqlx/query-cbd8fd7362c56f8c1a5bb9db32538a0d4a1716f4d311683cc07f488d33fecad7.json deleted file mode 100644 index 32a9748280..0000000000 --- a/rust/cloud-storage/.sqlx/query-cbd8fd7362c56f8c1a5bb9db32538a0d4a1716f4d311683cc07f488d33fecad7.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "INSERT INTO excluded_default_view (id, user_id, default_view_id) \n VALUES ($1, $2, $3)", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "cbd8fd7362c56f8c1a5bb9db32538a0d4a1716f4d311683cc07f488d33fecad7" -} diff --git a/rust/cloud-storage/.sqlx/query-cc006af8fccc5e02930c42ce1251e454df554d615c9ceeff5af763029972af30.json b/rust/cloud-storage/.sqlx/query-cc006af8fccc5e02930c42ce1251e454df554d615c9ceeff5af763029972af30.json deleted file mode 100644 index c609870e1d..0000000000 --- a/rust/cloud-storage/.sqlx/query-cc006af8fccc5e02930c42ce1251e454df554d615c9ceeff5af763029972af30.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_backfill_jobs\n SET status = $1::email_backfill_job_status, updated_at = now()\n WHERE link_id = $2\n AND status IN ('Init', 'InProgress')\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - { - "Custom": { - "name": "email_backfill_job_status", - "kind": { - "Enum": [ - "Init", - "InProgress", - "Complete", - "Cancelled", - "Failed" - ] - } - } - }, - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "cc006af8fccc5e02930c42ce1251e454df554d615c9ceeff5af763029972af30" -} diff --git a/rust/cloud-storage/.sqlx/query-cc0889c0d1cb757fce4cbfbb58eaefb065d608c3866d2707edfec8e907c460c1.json b/rust/cloud-storage/.sqlx/query-cc0889c0d1cb757fce4cbfbb58eaefb065d608c3866d2707edfec8e907c460c1.json deleted file mode 100644 index d0c38172a9..0000000000 --- a/rust/cloud-storage/.sqlx/query-cc0889c0d1cb757fce4cbfbb58eaefb065d608c3866d2707edfec8e907c460c1.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE \"Chat\" SET \"projectId\" = NULL WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "cc0889c0d1cb757fce4cbfbb58eaefb065d608c3866d2707edfec8e907c460c1" -} diff --git a/rust/cloud-storage/.sqlx/query-cc1d96c7390033014832a250d080d0a6c08112e41f085f59abcc855ef35d5bd2.json b/rust/cloud-storage/.sqlx/query-cc1d96c7390033014832a250d080d0a6c08112e41f085f59abcc855ef35d5bd2.json deleted file mode 100644 index a39f9cde8a..0000000000 --- a/rust/cloud-storage/.sqlx/query-cc1d96c7390033014832a250d080d0a6c08112e41f085f59abcc855ef35d5bd2.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_message_labels\n WHERE \n message_id = ANY($1) \n AND label_id = (\n SELECT id FROM email_labels\n WHERE link_id = $2 AND provider_label_id = $3\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "cc1d96c7390033014832a250d080d0a6c08112e41f085f59abcc855ef35d5bd2" -} diff --git a/rust/cloud-storage/.sqlx/query-cc388518e9c137d9c849d408300cd2d4687d41e8fd09e04edf0f4861d48a3e62.json b/rust/cloud-storage/.sqlx/query-cc388518e9c137d9c849d408300cd2d4687d41e8fd09e04edf0f4861d48a3e62.json deleted file mode 100644 index 81608c6bd3..0000000000 --- a/rust/cloud-storage/.sqlx/query-cc388518e9c137d9c849d408300cd2d4687d41e8fd09e04edf0f4861d48a3e62.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Comment\"\n SET \"deletedAt\" = NOW()\n WHERE \"id\" = $1 AND \"deletedAt\" IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [] - }, - "hash": "cc388518e9c137d9c849d408300cd2d4687d41e8fd09e04edf0f4861d48a3e62" -} diff --git a/rust/cloud-storage/.sqlx/query-cc55e105bd5f6916a779d57ed7e4379c7fdaca83a33355842cf8b0b29d25a517.json b/rust/cloud-storage/.sqlx/query-cc55e105bd5f6916a779d57ed7e4379c7fdaca83a33355842cf8b0b29d25a517.json deleted file mode 100644 index 91afbc0b52..0000000000 --- a/rust/cloud-storage/.sqlx/query-cc55e105bd5f6916a779d57ed7e4379c7fdaca83a33355842cf8b0b29d25a517.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as \"document_id\",\n d.owner as \"owner\",\n COALESCE(db.id, di.id) as \"document_version_id!\",\n d.name as \"document_name\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"fileType\" as \"file_type\",\n db.bom_parts as \"document_bom?\",\n di.modification_data as \"modification_data?\",\n d.\"projectId\" as \"project_id\",\n p.name as \"project_name?\",\n di.sha as \"sha?\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.sha,\n i.\"createdAt\",\n (\n SELECT\n imod.\"modificationData\"\n FROM\n \"DocumentInstanceModificationData\" imod\n WHERE\n imod.\"documentInstanceId\" = i.id\n ) as modification_data,\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" DESC\n LIMIT 1\n ) di ON true\n LEFT JOIN LATERAL (\n SELECT\n b.id,\n (\n SELECT\n json_agg(\n json_build_object(\n 'id', bp.id,\n 'sha', bp.sha,\n 'path', bp.path\n )\n )\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = b.id\n ) as bom_parts\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n p.name\n FROM \"Project\" p\n WHERE p.id = d.\"projectId\"\n ) p ON d.\"projectId\" IS NOT NULL\n WHERE\n d.id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_version_id!", - "type_info": "Int8" - }, - { - "ordinal": 3, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "document_bom?", - "type_info": "Json" - }, - { - "ordinal": 11, - "name": "modification_data?", - "type_info": "Jsonb" - }, - { - "ordinal": 12, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 13, - "name": "project_name?", - "type_info": "Text" - }, - { - "ordinal": 14, - "name": "sha?", - "type_info": "Text" - }, - { - "ordinal": 15, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 16, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - null, - false, - true, - true, - true, - null, - null, - true, - null, - null, - true, - false, - false, - false, - null - ] - }, - "hash": "cc55e105bd5f6916a779d57ed7e4379c7fdaca83a33355842cf8b0b29d25a517" -} diff --git a/rust/cloud-storage/.sqlx/query-cc7926b302ce23fa4e727b6986ec14253589d794894668f4eaf078ec8a5d4ca8.json b/rust/cloud-storage/.sqlx/query-cc7926b302ce23fa4e727b6986ec14253589d794894668f4eaf078ec8a5d4ca8.json deleted file mode 100644 index 5ac7889fce..0000000000 --- a/rust/cloud-storage/.sqlx/query-cc7926b302ce23fa4e727b6986ec14253589d794894668f4eaf078ec8a5d4ca8.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n phr.top,\n phr.left,\n phr.width,\n phr.height\n FROM \"PdfHighlightRect\" phr \n WHERE phr.\"pdfHighlightAnchorId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "top", - "type_info": "Float8" - }, - { - "ordinal": 1, - "name": "left", - "type_info": "Float8" - }, - { - "ordinal": 2, - "name": "width", - "type_info": "Float8" - }, - { - "ordinal": 3, - "name": "height", - "type_info": "Float8" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false - ] - }, - "hash": "cc7926b302ce23fa4e727b6986ec14253589d794894668f4eaf078ec8a5d4ca8" -} diff --git a/rust/cloud-storage/.sqlx/query-cc9cd9c1d19f49627d619e8111ccf71139a34878ece29560f7a1c48a73c974d8.json b/rust/cloud-storage/.sqlx/query-cc9cd9c1d19f49627d619e8111ccf71139a34878ece29560f7a1c48a73c974d8.json deleted file mode 100644 index 6134ab08e0..0000000000 --- a/rust/cloud-storage/.sqlx/query-cc9cd9c1d19f49627d619e8111ccf71139a34878ece29560f7a1c48a73c974d8.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COALESCE(\n (SELECT crm_enabled FROM team_crm_settings WHERE team_id = $1),\n FALSE\n ) AS \"crm_enabled!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "crm_enabled!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "cc9cd9c1d19f49627d619e8111ccf71139a34878ece29560f7a1c48a73c974d8" -} diff --git a/rust/cloud-storage/.sqlx/query-cd0fcad5f9177a5b57fa20cdf5996f4ea4bd008a19afc916a1147fca76b6d5b4.json b/rust/cloud-storage/.sqlx/query-cd0fcad5f9177a5b57fa20cdf5996f4ea4bd008a19afc916a1147fca76b6d5b4.json deleted file mode 100644 index 488a2cccd5..0000000000 --- a/rust/cloud-storage/.sqlx/query-cd0fcad5f9177a5b57fa20cdf5996f4ea4bd008a19afc916a1147fca76b6d5b4.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentInstance\" (\"documentId\", \"sha\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $3)\n RETURNING id, sha, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Timestamp" - ] - }, - "nullable": [ - false, - false, - null, - null - ] - }, - "hash": "cd0fcad5f9177a5b57fa20cdf5996f4ea4bd008a19afc916a1147fca76b6d5b4" -} diff --git a/rust/cloud-storage/.sqlx/query-cd2334cf312dee1e9b230cce0d7b26999ba3ac23f89c8882c144d4c9a657e235.json b/rust/cloud-storage/.sqlx/query-cd2334cf312dee1e9b230cce0d7b26999ba3ac23f89c8882c144d4c9a657e235.json deleted file mode 100644 index 945fd5a6db..0000000000 --- a/rust/cloud-storage/.sqlx/query-cd2334cf312dee1e9b230cce0d7b26999ba3ac23f89c8882c144d4c9a657e235.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH requested_ids AS (\n SELECT UNNEST($2::text[]) as id\n ),\n user_links AS (\n SELECT id as link_id\n FROM email_links\n WHERE macro_id = $1\n ),\n users_found AS (\n SELECT\n u.id as user_profile_id,\n mui.first_name as mui_first_name,\n mui.last_name as mui_last_name\n FROM requested_ids req\n JOIN \"User\" u ON u.id = req.id\n LEFT JOIN macro_user_info mui ON u.macro_user_id = mui.macro_user_id\n ),\n contacts_requested AS (\n SELECT\n req.id as user_profile_id,\n ec.name as contact_name\n FROM requested_ids req\n CROSS JOIN user_links li\n JOIN email_contacts ec\n ON ec.link_id = li.link_id\n AND ec.email_address = REPLACE(req.id, 'macro|', '')\n AND ec.name IS NOT NULL\n )\n SELECT DISTINCT ON (user_profile_id)\n user_profile_id as \"user_profile_id!\",\n CASE\n -- If Macro has either first or last name (non-\"N/A\"), use Macro for BOTH fields.\n WHEN NULLIF(mui_first_name, 'N/A') IS NOT NULL\n OR NULLIF(mui_last_name, 'N/A') IS NOT NULL\n THEN NULLIF(mui_first_name, 'N/A')\n -- Otherwise fall back to email contact name parsing.\n ELSE SPLIT_PART(contact_name, ' ', 1)\n END as \"first_name\",\n CASE\n -- If Macro has either first or last name (non-\"N/A\"), use Macro for BOTH fields.\n WHEN NULLIF(mui_first_name, 'N/A') IS NOT NULL\n OR NULLIF(mui_last_name, 'N/A') IS NOT NULL\n THEN NULLIF(mui_last_name, 'N/A')\n -- Otherwise fall back to email contact name parsing.\n ELSE CASE\n WHEN POSITION(' ' IN contact_name) > 0\n THEN NULLIF(TRIM(SUBSTRING(contact_name FROM POSITION(' ' IN contact_name) + 1)), '')\n ELSE NULL\n END\n END as \"last_name\"\n FROM (\n -- Users in User table with contact fallback (in case user hasn't set name in Macro)\n SELECT\n uf.user_profile_id,\n uf.mui_first_name,\n uf.mui_last_name,\n cr.contact_name\n FROM users_found uf\n LEFT JOIN contacts_requested cr ON cr.user_profile_id = uf.user_profile_id\n\n UNION ALL\n\n -- People only in email_contacts (haven't joined Macro yet)\n SELECT\n cr.user_profile_id,\n NULL::text as mui_first_name,\n NULL::text as mui_last_name,\n cr.contact_name\n FROM contacts_requested cr\n WHERE NOT EXISTS (\n SELECT 1\n FROM users_found uf\n WHERE uf.user_profile_id = cr.user_profile_id\n )\n ) combined\n ORDER BY user_profile_id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_profile_id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "first_name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "last_name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [ - null, - null, - null - ] - }, - "hash": "cd2334cf312dee1e9b230cce0d7b26999ba3ac23f89c8882c144d4c9a657e235" -} diff --git a/rust/cloud-storage/.sqlx/query-cd2ae30f38c8fd4467fafbf57d515e303d2c5bed1c53a5c1cf255a172defa46c.json b/rust/cloud-storage/.sqlx/query-cd2ae30f38c8fd4467fafbf57d515e303d2c5bed1c53a5c1cf255a172defa46c.json deleted file mode 100644 index a42c11b623..0000000000 --- a/rust/cloud-storage/.sqlx/query-cd2ae30f38c8fd4467fafbf57d515e303d2c5bed1c53a5c1cf255a172defa46c.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM entity_access\n WHERE entity_id = $1\n AND entity_type = $2\n AND granted_from_project_id = ANY($3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "cd2ae30f38c8fd4467fafbf57d515e303d2c5bed1c53a5c1cf255a172defa46c" -} diff --git a/rust/cloud-storage/.sqlx/query-cd39c593bdca8f628570365a8aa6787d34173da3b114c61b2cddc69b7d197819.json b/rust/cloud-storage/.sqlx/query-cd39c593bdca8f628570365a8aa6787d34173da3b114c61b2cddc69b7d197819.json deleted file mode 100644 index a140edbf63..0000000000 --- a/rust/cloud-storage/.sqlx/query-cd39c593bdca8f628570365a8aa6787d34173da3b114c61b2cddc69b7d197819.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT pg_try_advisory_xact_lock($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "pg_try_advisory_xact_lock", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - null - ] - }, - "hash": "cd39c593bdca8f628570365a8aa6787d34173da3b114c61b2cddc69b7d197819" -} diff --git a/rust/cloud-storage/.sqlx/query-cd3ae40ade95369aeeffcd17cd99301e0c36f4d600917c7573137e15688b1f68.json b/rust/cloud-storage/.sqlx/query-cd3ae40ade95369aeeffcd17cd99301e0c36f4d600917c7573137e15688b1f68.json deleted file mode 100644 index fbeee80ef8..0000000000 --- a/rust/cloud-storage/.sqlx/query-cd3ae40ade95369aeeffcd17cd99301e0c36f4d600917c7573137e15688b1f68.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"PdfHighlightRect\" (\n \"top\", \"left\", \"width\", \"height\", \"pdfHighlightAnchorId\"\n )\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Float8", - "Float8", - "Float8", - "Float8", - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "cd3ae40ade95369aeeffcd17cd99301e0c36f4d600917c7573137e15688b1f68" -} diff --git a/rust/cloud-storage/.sqlx/query-cd98a8eb1ebdeb28951774b9daf0a9f05967d0adb106e93608b3b5a64adae02a.json b/rust/cloud-storage/.sqlx/query-cd98a8eb1ebdeb28951774b9daf0a9f05967d0adb106e93608b3b5a64adae02a.json deleted file mode 100644 index e7498491d6..0000000000 --- a/rust/cloud-storage/.sqlx/query-cd98a8eb1ebdeb28951774b9daf0a9f05967d0adb106e93608b3b5a64adae02a.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n bp.sha\n FROM \"BomPart\" bp\n WHERE bp.\"documentBomId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sha", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "cd98a8eb1ebdeb28951774b9daf0a9f05967d0adb106e93608b3b5a64adae02a" -} diff --git a/rust/cloud-storage/.sqlx/query-cdce5c0c87367db68fee9c3107ae916da208d1525bf04497687e941d329513c6.json b/rust/cloud-storage/.sqlx/query-cdce5c0c87367db68fee9c3107ae916da208d1525bf04497687e941d329513c6.json deleted file mode 100644 index af20730827..0000000000 --- a/rust/cloud-storage/.sqlx/query-cdce5c0c87367db68fee9c3107ae916da208d1525bf04497687e941d329513c6.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id\n FROM email_messages\n WHERE link_id = $1 AND global_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "cdce5c0c87367db68fee9c3107ae916da208d1525bf04497687e941d329513c6" -} diff --git a/rust/cloud-storage/.sqlx/query-ce008daea4cb34b00a1c882b25444c58e68634e942d43ed59582b7bf0786893f.json b/rust/cloud-storage/.sqlx/query-ce008daea4cb34b00a1c882b25444c58e68634e942d43ed59582b7bf0786893f.json deleted file mode 100644 index 8a6b62eddf..0000000000 --- a/rust/cloud-storage/.sqlx/query-ce008daea4cb34b00a1c882b25444c58e68634e942d43ed59582b7bf0786893f.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE call_records SET custom_name = $2 WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "ce008daea4cb34b00a1c882b25444c58e68634e942d43ed59582b7bf0786893f" -} diff --git a/rust/cloud-storage/.sqlx/query-ce218da82b99295aed3a609a21f5feaf304a4d50bbabe9151bb0bbaef7bcef16.json b/rust/cloud-storage/.sqlx/query-ce218da82b99295aed3a609a21f5feaf304a4d50bbabe9151bb0bbaef7bcef16.json deleted file mode 100644 index 1331a9c60a..0000000000 --- a/rust/cloud-storage/.sqlx/query-ce218da82b99295aed3a609a21f5feaf304a4d50bbabe9151bb0bbaef7bcef16.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n entity_type,\n entity_id\n FROM\n comms_entity_mentions\n WHERE\n source_entity_id = $1 AND source_entity_type = 'message'\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_type", - "type_info": "Varchar" - }, - { - "ordinal": 1, - "name": "entity_id", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "ce218da82b99295aed3a609a21f5feaf304a4d50bbabe9151bb0bbaef7bcef16" -} diff --git a/rust/cloud-storage/.sqlx/query-ce97d5a94360438e17479379fcab57a8d30a1d2a7c03150526322a2aa8175c71.json b/rust/cloud-storage/.sqlx/query-ce97d5a94360438e17479379fcab57a8d30a1d2a7c03150526322a2aa8175c71.json deleted file mode 100644 index 30efbd4948..0000000000 --- a/rust/cloud-storage/.sqlx/query-ce97d5a94360438e17479379fcab57a8d30a1d2a7c03150526322a2aa8175c71.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO id_mapping (source_id, target_id)\n VALUES ($1, $2)\n ON CONFLICT (source_id)\n DO UPDATE SET target_id = EXCLUDED.target_id\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "ce97d5a94360438e17479379fcab57a8d30a1d2a7c03150526322a2aa8175c71" -} diff --git a/rust/cloud-storage/.sqlx/query-cea740c7d7764d20771d15ddd5cf047e9638cfa5d7e07d9885af0592142e5304.json b/rust/cloud-storage/.sqlx/query-cea740c7d7764d20771d15ddd5cf047e9638cfa5d7e07d9885af0592142e5304.json deleted file mode 100644 index a7635cc3df..0000000000 --- a/rust/cloud-storage/.sqlx/query-cea740c7d7764d20771d15ddd5cf047e9638cfa5d7e07d9885af0592142e5304.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, email_address, name\n FROM email_contacts\n WHERE (link_id, email_address) IN (\n SELECT * FROM UNNEST($1::uuid[], $2::varchar[])\n )\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "name", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "VarcharArray" - ] - }, - "nullable": [ - false, - false, - true - ] - }, - "hash": "cea740c7d7764d20771d15ddd5cf047e9638cfa5d7e07d9885af0592142e5304" -} diff --git a/rust/cloud-storage/.sqlx/query-cebafd0d72b44d2f63bce484750fcab2a26f543e5a6ca992e38bdb662dc7c2f4.json b/rust/cloud-storage/.sqlx/query-cebafd0d72b44d2f63bce484750fcab2a26f543e5a6ca992e38bdb662dc7c2f4.json deleted file mode 100644 index 75361e6ea2..0000000000 --- a/rust/cloud-storage/.sqlx/query-cebafd0d72b44d2f63bce484750fcab2a26f543e5a6ca992e38bdb662dc7c2f4.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n p.id as entity_id,\n p.name,\n regexp_replace(\n p.name,\n $7,\n '\\1',\n 'gi'\n ) as name_highlighted,\n p.\"updatedAt\" as updated_at\n FROM \"Project\" p\n WHERE (p.\"userId\" = $1 OR p.id = ANY($2))\n AND p.\"deletedAt\" IS NULL\n AND p.name ILIKE $3\n AND (\n $5::timestamptz IS NULL\n OR (p.\"updatedAt\", p.id) < ($5, $6)\n )\n ORDER BY p.\"updatedAt\" DESC, p.id DESC\n LIMIT $4\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name_highlighted", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "updated_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray", - "Text", - "Int8", - "Timestamptz", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - null, - false - ] - }, - "hash": "cebafd0d72b44d2f63bce484750fcab2a26f543e5a6ca992e38bdb662dc7c2f4" -} diff --git a/rust/cloud-storage/.sqlx/query-cef69d1963846d65ce695cbc2d5a97a325f4081b69a3b8a7d1a481ed69f86bf0.json b/rust/cloud-storage/.sqlx/query-cef69d1963846d65ce695cbc2d5a97a325f4081b69a3b8a7d1a481ed69f86bf0.json deleted file mode 100644 index eaf11d058d..0000000000 --- a/rust/cloud-storage/.sqlx/query-cef69d1963846d65ce695cbc2d5a97a325f4081b69a3b8a7d1a481ed69f86bf0.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Comment\" c\n SET \"text\" = $1, \"metadata\" = $2, \"updatedAt\" = NOW()\n WHERE \"id\" = $3 AND \"deletedAt\" IS NULL\n RETURNING \n c.id as comment_id, \n c.\"threadId\" as thread_id, \n c.owner, \n c.sender, \n c.text, \n c.metadata, \n c.\"createdAt\"::timestamptz as created_at, \n c.\"updatedAt\"::timestamptz as updated_at, \n c.\"deletedAt\"::timestamptz as deleted_at, \n c.order\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "comment_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "sender", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "text", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "order", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Text", - "Jsonb", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - true, - null, - null, - null, - true - ] - }, - "hash": "cef69d1963846d65ce695cbc2d5a97a325f4081b69a3b8a7d1a481ed69f86bf0" -} diff --git a/rust/cloud-storage/.sqlx/query-cf095b171e7a5b06335671a0ffe392c7e93978451b4ae208a23ab27c3b10c1b7.json b/rust/cloud-storage/.sqlx/query-cf095b171e7a5b06335671a0ffe392c7e93978451b4ae208a23ab27c3b10c1b7.json deleted file mode 100644 index c4c3783762..0000000000 --- a/rust/cloud-storage/.sqlx/query-cf095b171e7a5b06335671a0ffe392c7e93978451b4ae208a23ab27c3b10c1b7.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Chat\" SET \"tokenCount\" = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int8", - "Text" - ] - }, - "nullable": [] - }, - "hash": "cf095b171e7a5b06335671a0ffe392c7e93978451b4ae208a23ab27c3b10c1b7" -} diff --git a/rust/cloud-storage/.sqlx/query-cf1161cb3ef4f573dd8e15092ebedc6cfa7e0f8b9f8b3c3a698991d37860c76f.json b/rust/cloud-storage/.sqlx/query-cf1161cb3ef4f573dd8e15092ebedc6cfa7e0f8b9f8b3c3a698991d37860c76f.json deleted file mode 100644 index ca358e80ad..0000000000 --- a/rust/cloud-storage/.sqlx/query-cf1161cb3ef4f573dd8e15092ebedc6cfa7e0f8b9f8b3c3a698991d37860c76f.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.name as \"name?\",\n c.owner_id\n FROM\n \"comms_channels\" c\n WHERE\n c.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name?", - "type_info": "Varchar" - }, - { - "ordinal": 1, - "name": "owner_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - true, - false - ] - }, - "hash": "cf1161cb3ef4f573dd8e15092ebedc6cfa7e0f8b9f8b3c3a698991d37860c76f" -} diff --git a/rust/cloud-storage/.sqlx/query-cf156bbe38f634e623a39ae1d388cad0a5e18597f640111861f469e273e56e88.json b/rust/cloud-storage/.sqlx/query-cf156bbe38f634e623a39ae1d388cad0a5e18597f640111861f469e273e56e88.json deleted file mode 100644 index 09ef7d3137..0000000000 --- a/rust/cloud-storage/.sqlx/query-cf156bbe38f634e623a39ae1d388cad0a5e18597f640111861f469e273e56e88.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT name, avatar_url\n FROM bots\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "avatar_url", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "cf156bbe38f634e623a39ae1d388cad0a5e18597f640111861f469e273e56e88" -} diff --git a/rust/cloud-storage/.sqlx/query-cf47cbebc8adc6834b44c503c18fb66ce5dbb225c7ca91b3d71dcfe398c8f95a.json b/rust/cloud-storage/.sqlx/query-cf47cbebc8adc6834b44c503c18fb66ce5dbb225c7ca91b3d71dcfe398c8f95a.json deleted file mode 100644 index 94ce722428..0000000000 --- a/rust/cloud-storage/.sqlx/query-cf47cbebc8adc6834b44c503c18fb66ce5dbb225c7ca91b3d71dcfe398c8f95a.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_attachments_sfs\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "cf47cbebc8adc6834b44c503c18fb66ce5dbb225c7ca91b3d71dcfe398c8f95a" -} diff --git a/rust/cloud-storage/.sqlx/query-cfbec090ff3b62415ec0c215aa52bdafe162fb8c8fd217a8fcaf613e39525b0f.json b/rust/cloud-storage/.sqlx/query-cfbec090ff3b62415ec0c215aa52bdafe162fb8c8fd217a8fcaf613e39525b0f.json deleted file mode 100644 index 358d08c4ed..0000000000 --- a/rust/cloud-storage/.sqlx/query-cfbec090ff3b62415ec0c215aa52bdafe162fb8c8fd217a8fcaf613e39525b0f.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as \"document_id!\",\n d.name as \"document_name!\",\n d.\"fileType\" as file_type,\n d.owner as \"owner!\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n CASE \n WHEN dt.sub_type = 'task' \n AND ep_status.values->'value' ? $2\n THEN true \n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL \n END as \"is_completed\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status \n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id \n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $3\n WHERE\n d.\"id\" = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "document_name!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "owner!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 6, - "name": "is_completed", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "TextArray", - "Text", - "Uuid" - ] - }, - "nullable": [ - false, - false, - true, - false, - null, - true, - null - ] - }, - "hash": "cfbec090ff3b62415ec0c215aa52bdafe162fb8c8fd217a8fcaf613e39525b0f" -} diff --git a/rust/cloud-storage/.sqlx/query-cfc7c8a549dffd94c8d201c665e84c110d780e5be92b5e160c64189355f5f31f.json b/rust/cloud-storage/.sqlx/query-cfc7c8a549dffd94c8d201c665e84c110d780e5be92b5e160c64189355f5f31f.json deleted file mode 100644 index 1419957cba..0000000000 --- a/rust/cloud-storage/.sqlx/query-cfc7c8a549dffd94c8d201c665e84c110d780e5be92b5e160c64189355f5f31f.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.\"id\" as \"chat_id\",\n m.id as \"message_id\",\n c.\"userId\" as \"user_id\",\n m.\"createdAt\" as \"created_at\",\n m.\"updatedAt\" as \"updated_at\"\n FROM\n \"ChatMessage\" m\n JOIN\n \"Chat\" c on c.\"id\" = m.\"chatId\"\n WHERE\n m.\"chatId\" = ANY($1)\n AND (\n $3::bool IS NULL\n OR ($3 AND c.\"deletedAt\" IS NOT NULL)\n OR (NOT $3 AND c.\"deletedAt\" IS NULL)\n )\n AND ($4::timestamptz IS NULL OR m.\"updatedAt\" >= $4)\n AND ($5::timestamptz IS NULL OR m.\"updatedAt\" < $5)\n AND (\n $6::timestamptz IS NULL\n OR (m.\"updatedAt\", m.id) > ($6, $7::text)\n )\n ORDER BY m.\"updatedAt\" ASC, m.id ASC\n LIMIT $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "chat_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamp" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "TextArray", - "Int8", - "Bool", - "Timestamptz", - "Timestamptz", - "Timestamptz", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false - ] - }, - "hash": "cfc7c8a549dffd94c8d201c665e84c110d780e5be92b5e160c64189355f5f31f" -} diff --git a/rust/cloud-storage/.sqlx/query-d0150fe28f8fe11bbc69c475a6fc3277a1ced2c563a2e2bc98a742ef71da40fc.json b/rust/cloud-storage/.sqlx/query-d0150fe28f8fe11bbc69c475a6fc3277a1ced2c563a2e2bc98a742ef71da40fc.json deleted file mode 100644 index 50a8a3cc0d..0000000000 --- a/rust/cloud-storage/.sqlx/query-d0150fe28f8fe11bbc69c475a6fc3277a1ced2c563a2e2bc98a742ef71da40fc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n sp.id as id\n FROM\n \"ChatPermission\" cp\n JOIN \"SharePermission\" sp ON cp.\"sharePermissionId\" = sp.id\n WHERE\n cp.\"chatId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "d0150fe28f8fe11bbc69c475a6fc3277a1ced2c563a2e2bc98a742ef71da40fc" -} diff --git a/rust/cloud-storage/.sqlx/query-d025cbcd336023d8d266d144ed579003a1f0f549e4e1585f641c86d0f2336c64.json b/rust/cloud-storage/.sqlx/query-d025cbcd336023d8d266d144ed579003a1f0f549e4e1585f641c86d0f2336c64.json deleted file mode 100644 index c8deb9a5f8..0000000000 --- a/rust/cloud-storage/.sqlx/query-d025cbcd336023d8d266d144ed579003a1f0f549e4e1585f641c86d0f2336c64.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT provider_label_id\n FROM email_labels\n WHERE link_id = $1 AND provider_label_id = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "provider_label_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "d025cbcd336023d8d266d144ed579003a1f0f549e4e1585f641c86d0f2336c64" -} diff --git a/rust/cloud-storage/.sqlx/query-d0a3d7eadc0e7d5d469f5ae755561b859efa9b55a2b085a1f564b42024be3e92.json b/rust/cloud-storage/.sqlx/query-d0a3d7eadc0e7d5d469f5ae755561b859efa9b55a2b085a1f564b42024be3e92.json deleted file mode 100644 index 909828efa5..0000000000 --- a/rust/cloud-storage/.sqlx/query-d0a3d7eadc0e7d5d469f5ae755561b859efa9b55a2b085a1f564b42024be3e92.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n t.id as \"thread_id!\",\n t.resolved as \"resolved!\",\n t.\"documentId\" as \"document_id!\",\n t.\"createdAt\"::timestamptz as \"created_at\",\n t.\"updatedAt\"::timestamptz as \"updated_at\",\n t.\"deletedAt\"::timestamptz as \"deleted_at\",\n t.metadata as \"metadata\",\n t.owner as \"owner!\"\n FROM \"Thread\" t\n WHERE t.\"documentId\" = $1 AND t.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id!", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "resolved!", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "document_id!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "metadata", - "type_info": "Jsonb" - }, - { - "ordinal": 7, - "name": "owner!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - null, - null, - null, - true, - false - ] - }, - "hash": "d0a3d7eadc0e7d5d469f5ae755561b859efa9b55a2b085a1f564b42024be3e92" -} diff --git a/rust/cloud-storage/.sqlx/query-d0c976b53ed5c8b754013dc219219ae33bff5dc510075ca8f0f24db8a9e1ead6.json b/rust/cloud-storage/.sqlx/query-d0c976b53ed5c8b754013dc219219ae33bff5dc510075ca8f0f24db8a9e1ead6.json deleted file mode 100644 index 32a1192c57..0000000000 --- a/rust/cloud-storage/.sqlx/query-d0c976b53ed5c8b754013dc219219ae33bff5dc510075ca8f0f24db8a9e1ead6.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO call_participants (call_id, user_id)\n VALUES ($1, $2)\n ON CONFLICT (call_id, user_id) DO UPDATE SET left_at = NULL, joined_at = now()\n RETURNING call_id, user_id, joined_at\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "call_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "joined_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "d0c976b53ed5c8b754013dc219219ae33bff5dc510075ca8f0f24db8a9e1ead6" -} diff --git a/rust/cloud-storage/.sqlx/query-d0dcb62233091aee045f96c8f2cd8ebee5614196a92bcbc250b9702a8194c329.json b/rust/cloud-storage/.sqlx/query-d0dcb62233091aee045f96c8f2cd8ebee5614196a92bcbc250b9702a8194c329.json deleted file mode 100644 index b9297391ad..0000000000 --- a/rust/cloud-storage/.sqlx/query-d0dcb62233091aee045f96c8f2cd8ebee5614196a92bcbc250b9702a8194c329.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO calls (id, channel_id, room_name, created_by, share_permission_id)\n VALUES ($1, $2, $3, $4, $5)\n ON CONFLICT (channel_id) DO NOTHING\n RETURNING id, channel_id, room_name, created_by, created_at, egress_id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "room_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_by", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "egress_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true - ] - }, - "hash": "d0dcb62233091aee045f96c8f2cd8ebee5614196a92bcbc250b9702a8194c329" -} diff --git a/rust/cloud-storage/.sqlx/query-d0de0e065ad2c62601b5d401357d295c602e8ea01dc164bd95c7ed30a7726a54.json b/rust/cloud-storage/.sqlx/query-d0de0e065ad2c62601b5d401357d295c602e8ea01dc164bd95c7ed30a7726a54.json deleted file mode 100644 index 3c5e0b3b93..0000000000 --- a/rust/cloud-storage/.sqlx/query-d0de0e065ad2c62601b5d401357d295c602e8ea01dc164bd95c7ed30a7726a54.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"hasOnboardingDocuments\"::boolean\n FROM \"User\"\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "hasOnboardingDocuments", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "d0de0e065ad2c62601b5d401357d295c602e8ea01dc164bd95c7ed30a7726a54" -} diff --git a/rust/cloud-storage/.sqlx/query-d0e25ec078af21bc5a7771937ed5bfc9d190e4154c906fae3e67846c308332dd.json b/rust/cloud-storage/.sqlx/query-d0e25ec078af21bc5a7771937ed5bfc9d190e4154c906fae3e67846c308332dd.json deleted file mode 100644 index a6b6058037..0000000000 --- a/rust/cloud-storage/.sqlx/query-d0e25ec078af21bc5a7771937ed5bfc9d190e4154c906fae3e67846c308332dd.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Chat\" (\"userId\", name, model, \"projectId\", \"isPersistent\")\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 2, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Text", - "Bool" - ] - }, - "nullable": [ - false, - null, - null - ] - }, - "hash": "d0e25ec078af21bc5a7771937ed5bfc9d190e4154c906fae3e67846c308332dd" -} diff --git a/rust/cloud-storage/.sqlx/query-d0e2ccb572c57cb856c6d68e739aa5cf85994ae8af80af65ade5f879f837cc6a.json b/rust/cloud-storage/.sqlx/query-d0e2ccb572c57cb856c6d68e739aa5cf85994ae8af80af65ade5f879f837cc6a.json deleted file mode 100644 index de8322f023..0000000000 --- a/rust/cloud-storage/.sqlx/query-d0e2ccb572c57cb856c6d68e739aa5cf85994ae8af80af65ade5f879f837cc6a.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT content FROM \"DocumentText\" WHERE \"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "content", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "d0e2ccb572c57cb856c6d68e739aa5cf85994ae8af80af65ade5f879f837cc6a" -} diff --git a/rust/cloud-storage/.sqlx/query-d0f5de1518cf48faa63380a71ff6633e40c9a0d9f8e87262e31fa218400752a7.json b/rust/cloud-storage/.sqlx/query-d0f5de1518cf48faa63380a71ff6633e40c9a0d9f8e87262e31fa218400752a7.json deleted file mode 100644 index 90383258c6..0000000000 --- a/rust/cloud-storage/.sqlx/query-d0f5de1518cf48faa63380a71ff6633e40c9a0d9f8e87262e31fa218400752a7.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"MacroPrompt\" (user_id, title, prompt, icon, color, required_docs)\n VALUES ($1, $2, $3, $4, $5, $6)\n RETURNING id;\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Text", - "Text", - "Int4" - ] - }, - "nullable": [ - false - ] - }, - "hash": "d0f5de1518cf48faa63380a71ff6633e40c9a0d9f8e87262e31fa218400752a7" -} diff --git a/rust/cloud-storage/.sqlx/query-d138759f663ddea66b623d88820383631011b1c3cbd5d36e137dbd0c5442f456.json b/rust/cloud-storage/.sqlx/query-d138759f663ddea66b623d88820383631011b1c3cbd5d36e137dbd0c5442f456.json deleted file mode 100644 index f864dfe1a1..0000000000 --- a/rust/cloud-storage/.sqlx/query-d138759f663ddea66b623d88820383631011b1c3cbd5d36e137dbd0c5442f456.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM\n in_progress_email_link\n WHERE\n created_at < $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Timestamp" - ] - }, - "nullable": [] - }, - "hash": "d138759f663ddea66b623d88820383631011b1c3cbd5d36e137dbd0c5442f456" -} diff --git a/rust/cloud-storage/.sqlx/query-d13e90d3f2bda80111ac9849f14099b08f372bf4606405d18d8c465d241b5781.json b/rust/cloud-storage/.sqlx/query-d13e90d3f2bda80111ac9849f14099b08f372bf4606405d18d8c465d241b5781.json deleted file mode 100644 index 279e89e180..0000000000 --- a/rust/cloud-storage/.sqlx/query-d13e90d3f2bda80111ac9849f14099b08f372bf4606405d18d8c465d241b5781.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO crm_comment (thread_id, owner, text, metadata)\n VALUES ($1, $2, $3, $4)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Jsonb" - ] - }, - "nullable": [] - }, - "hash": "d13e90d3f2bda80111ac9849f14099b08f372bf4606405d18d8c465d241b5781" -} diff --git a/rust/cloud-storage/.sqlx/query-d162c039601a7fe5f829eeaedb6cd324c875cdc9e74287873ec41a9fd495e696.json b/rust/cloud-storage/.sqlx/query-d162c039601a7fe5f829eeaedb6cd324c875cdc9e74287873ec41a9fd495e696.json deleted file mode 100644 index a8872a64c6..0000000000 --- a/rust/cloud-storage/.sqlx/query-d162c039601a7fe5f829eeaedb6cd324c875cdc9e74287873ec41a9fd495e696.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"OrganizationRetentionPolicy\" (organization_id, retention_days)\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int4", - "Int4" - ] - }, - "nullable": [] - }, - "hash": "d162c039601a7fe5f829eeaedb6cd324c875cdc9e74287873ec41a9fd495e696" -} diff --git a/rust/cloud-storage/.sqlx/query-d185f3b4ca09c5a6372f6a64c4e6e5e12937814433dc5499b0dfdbe882c76192.json b/rust/cloud-storage/.sqlx/query-d185f3b4ca09c5a6372f6a64c4e6e5e12937814433dc5499b0dfdbe882c76192.json deleted file mode 100644 index 37b3c65667..0000000000 --- a/rust/cloud-storage/.sqlx/query-d185f3b4ca09c5a6372f6a64c4e6e5e12937814433dc5499b0dfdbe882c76192.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT d.device_endpoint,\n d.user_id,\n d.device_type as \"device_type: DeviceType\"\n FROM notification_user_device_registration d\n WHERE d.user_id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "device_endpoint", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "device_type: DeviceType", - "type_info": { - "Custom": { - "name": "notification_device_type_option", - "kind": { - "Enum": [ - "ios", - "android", - "iosvoip" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "d185f3b4ca09c5a6372f6a64c4e6e5e12937814433dc5499b0dfdbe882c76192" -} diff --git a/rust/cloud-storage/.sqlx/query-d1c575aba71170e53f0d8a786d9c1a67edb6dd76a80889a538b6c1aceb837e45.json b/rust/cloud-storage/.sqlx/query-d1c575aba71170e53f0d8a786d9c1a67edb6dd76a80889a538b6c1aceb837e45.json deleted file mode 100644 index 9b6865d2db..0000000000 --- a/rust/cloud-storage/.sqlx/query-d1c575aba71170e53f0d8a786d9c1a67edb6dd76a80889a538b6c1aceb837e45.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n link_id,\n fusionauth_user_id,\n threads_requested_limit,\n total_threads,\n threads_retrieved_count,\n status as \"status: db::backfill::BackfillJobStatus\",\n created_at,\n updated_at\n FROM email_backfill_jobs\n WHERE id = $1\n AND link_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "threads_requested_limit", - "type_info": "Int4" - }, - { - "ordinal": 4, - "name": "total_threads", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "threads_retrieved_count", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "status: db::backfill::BackfillJobStatus", - "type_info": { - "Custom": { - "name": "email_backfill_job_status", - "kind": { - "Enum": [ - "Init", - "InProgress", - "Complete", - "Cancelled", - "Failed" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - true, - false, - true, - false, - false, - false, - false, - false - ] - }, - "hash": "d1c575aba71170e53f0d8a786d9c1a67edb6dd76a80889a538b6c1aceb837e45" -} diff --git a/rust/cloud-storage/.sqlx/query-d1d1519e0bdb30ddcbaa6d602bc04617613bb21df0e7728150e74b4125d28a59.json b/rust/cloud-storage/.sqlx/query-d1d1519e0bdb30ddcbaa6d602bc04617613bb21df0e7728150e74b4125d28a59.json deleted file mode 100644 index 12ed677b43..0000000000 --- a/rust/cloud-storage/.sqlx/query-d1d1519e0bdb30ddcbaa6d602bc04617613bb21df0e7728150e74b4125d28a59.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChannelSharePermission\" (\"share_permission_id\", \"channel_id\", \"access_level\")\n VALUES ($1, $2, $3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - { - "Custom": { - "name": "\"AccessLevel\"", - "kind": { - "Enum": [ - "view", - "comment", - "edit", - "owner" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "d1d1519e0bdb30ddcbaa6d602bc04617613bb21df0e7728150e74b4125d28a59" -} diff --git a/rust/cloud-storage/.sqlx/query-d20c082d3cea0215d43fba8023c43c48e9ad8b934613ece6777e4948e18572bc.json b/rust/cloud-storage/.sqlx/query-d20c082d3cea0215d43fba8023c43c48e9ad8b934613ece6777e4948e18572bc.json deleted file mode 100644 index c6a7deabe5..0000000000 --- a/rust/cloud-storage/.sqlx/query-d20c082d3cea0215d43fba8023c43c48e9ad8b934613ece6777e4948e18572bc.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT id, user_id, name, config, created_at, updated_at FROM saved_view WHERE id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "config", - "type_info": "Jsonb" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false - ] - }, - "hash": "d20c082d3cea0215d43fba8023c43c48e9ad8b934613ece6777e4948e18572bc" -} diff --git a/rust/cloud-storage/.sqlx/query-d31d574569460a9137ba589cfb552f811f014cd6ef1d0b3f9bea3074a478f785.json b/rust/cloud-storage/.sqlx/query-d31d574569460a9137ba589cfb552f811f014cd6ef1d0b3f9bea3074a478f785.json deleted file mode 100644 index 6367646aaf..0000000000 --- a/rust/cloud-storage/.sqlx/query-d31d574569460a9137ba589cfb552f811f014cd6ef1d0b3f9bea3074a478f785.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT 1\n FROM \"Thread\" t\n WHERE t.id = $1 AND t.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "?column?", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - null - ] - }, - "hash": "d31d574569460a9137ba589cfb552f811f014cd6ef1d0b3f9bea3074a478f785" -} diff --git a/rust/cloud-storage/.sqlx/query-d357cee4f06a87dd2d7fe9d64a0fd2c9e95591835b82393ecb2492f8966883bb.json b/rust/cloud-storage/.sqlx/query-d357cee4f06a87dd2d7fe9d64a0fd2c9e95591835b82393ecb2492f8966883bb.json deleted file mode 100644 index 81fffbddc8..0000000000 --- a/rust/cloud-storage/.sqlx/query-d357cee4f06a87dd2d7fe9d64a0fd2c9e95591835b82393ecb2492f8966883bb.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT crm_enabled FROM team_crm_settings WHERE team_id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "crm_enabled", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "d357cee4f06a87dd2d7fe9d64a0fd2c9e95591835b82393ecb2492f8966883bb" -} diff --git a/rust/cloud-storage/.sqlx/query-d35bd972bde3e682873d7088574ab3afced6278d25e630969724dd5837182f0c.json b/rust/cloud-storage/.sqlx/query-d35bd972bde3e682873d7088574ab3afced6278d25e630969724dd5837182f0c.json deleted file mode 100644 index ba803da97e..0000000000 --- a/rust/cloud-storage/.sqlx/query-d35bd972bde3e682873d7088574ab3afced6278d25e630969724dd5837182f0c.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT dst.document_id\n FROM document_sub_type dst\n JOIN \"Document\" d ON d.id = dst.document_id\n WHERE dst.sub_type = 'task'\n AND d.\"deletedAt\" IS NULL\n AND (\n $1\n OR NOT EXISTS (\n SELECT 1\n FROM task_duplicate_embedding tde\n WHERE tde.document_id = dst.document_id\n )\n )\n LIMIT $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Bool", - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "d35bd972bde3e682873d7088574ab3afced6278d25e630969724dd5837182f0c" -} diff --git a/rust/cloud-storage/.sqlx/query-d42e3270642ca0b9eff6b5807f600c24fd26d50d612a66edf0738c62d15680ba.json b/rust/cloud-storage/.sqlx/query-d42e3270642ca0b9eff6b5807f600c24fd26d50d612a66edf0738c62d15680ba.json deleted file mode 100644 index 563aad9bf4..0000000000 --- a/rust/cloud-storage/.sqlx/query-d42e3270642ca0b9eff6b5807f600c24fd26d50d612a66edf0738c62d15680ba.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT *\n FROM\n frecency_events\n WHERE was_processed = false\n LIMIT $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "entity_type", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "event_type", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "timestamp", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "connection_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "entity_id", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "was_processed", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "d42e3270642ca0b9eff6b5807f600c24fd26d50d612a66edf0738c62d15680ba" -} diff --git a/rust/cloud-storage/.sqlx/query-d4fc8cb85acc88cc8c342220506921a23d5de6a44ed9e4af285f49f4e44d174f.json b/rust/cloud-storage/.sqlx/query-d4fc8cb85acc88cc8c342220506921a23d5de6a44ed9e4af285f49f4e44d174f.json deleted file mode 100644 index 092343da7f..0000000000 --- a/rust/cloud-storage/.sqlx/query-d4fc8cb85acc88cc8c342220506921a23d5de6a44ed9e4af285f49f4e44d174f.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n p.id,\n p.\"userId\" as user_id,\n p.\"name\" as name,\n p.\"parentId\" as parent_id,\n p.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Project\" p\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "parent_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true, - null - ] - }, - "hash": "d4fc8cb85acc88cc8c342220506921a23d5de6a44ed9e4af285f49f4e44d174f" -} diff --git a/rust/cloud-storage/.sqlx/query-d501983b009e4418f1753f03db0ea12db11f18e4a89a76c87b4c8ddda431cbdb.json b/rust/cloud-storage/.sqlx/query-d501983b009e4418f1753f03db0ea12db11f18e4a89a76c87b4c8ddda431cbdb.json deleted file mode 100644 index 07bca28bb4..0000000000 --- a/rust/cloud-storage/.sqlx/query-d501983b009e4418f1753f03db0ea12db11f18e4a89a76c87b4c8ddda431cbdb.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT DISTINCT ON (l.id, m.thread_id)\n l.id,\n m.thread_id as \"thread_id!\",\n l.link_id,\n l.provider_label_id,\n l.name,\n l.created_at,\n l.message_list_visibility as \"message_list_visibility: _\",\n l.label_list_visibility as \"label_list_visibility: _\",\n l.type as \"type_: _\"\n FROM\n email_messages m\n JOIN email_message_labels ml ON m.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m.thread_id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "thread_id!", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "provider_label_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "message_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_message_list_visibility_enum", - "kind": { - "Enum": [ - "Show", - "Hide" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "label_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_label_list_visibility_enum", - "kind": { - "Enum": [ - "LabelShow", - "LabelShowIfUnread", - "LabelHide" - ] - } - } - } - }, - { - "ordinal": 8, - "name": "type_: _", - "type_info": { - "Custom": { - "name": "email_label_type_enum", - "kind": { - "Enum": [ - "System", - "User" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "d501983b009e4418f1753f03db0ea12db11f18e4a89a76c87b4c8ddda431cbdb" -} diff --git a/rust/cloud-storage/.sqlx/query-d504950303eab672518c9c99ee3df3044ca299f2a677c812b11592fc9b2fe6cd.json b/rust/cloud-storage/.sqlx/query-d504950303eab672518c9c99ee3df3044ca299f2a677c812b11592fc9b2fe6cd.json deleted file mode 100644 index b44ec41281..0000000000 --- a/rust/cloud-storage/.sqlx/query-d504950303eab672518c9c99ee3df3044ca299f2a677c812b11592fc9b2fe6cd.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.name\n FROM\n \"Chat\" c\n WHERE\n c.id = $1 AND c.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "d504950303eab672518c9c99ee3df3044ca299f2a677c812b11592fc9b2fe6cd" -} diff --git a/rust/cloud-storage/.sqlx/query-d50b26323778ecb0ea88bb43c8a3df49df49acf6ec6d56955022e81ae92a2278.json b/rust/cloud-storage/.sqlx/query-d50b26323778ecb0ea88bb43c8a3df49df49acf6ec6d56955022e81ae92a2278.json deleted file mode 100644 index 9c3c969b87..0000000000 --- a/rust/cloud-storage/.sqlx/query-d50b26323778ecb0ea88bb43c8a3df49df49acf6ec6d56955022e81ae92a2278.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH\n -- Get all individual interactions with timestamps\n LinkMessageTimestamps AS (\n SELECT\n m.link_id,\n mr.contact_id AS contact_address_id,\n m.internal_date_ts\n FROM\n email_messages m\n JOIN\n email_message_recipients mr ON m.id = mr.message_id\n WHERE\n m.link_id = $1\n AND m.is_sent = TRUE\n AND mr.contact_id IS NOT NULL\n ),\n -- Get the latest interaction timestamp for each contact_address_id\n LatestContactInteractions AS (\n SELECT\n lmt.link_id,\n lmt.contact_address_id,\n MAX(lmt.internal_date_ts) AS last_interaction_ts\n FROM\n LinkMessageTimestamps lmt\n WHERE\n lmt.contact_address_id IS NOT NULL\n GROUP BY\n lmt.link_id,\n lmt.contact_address_id\n )\n -- Final SELECT to join with email_addresses and get details\n SELECT\n c.email_address as \"email_address!\",\n c.name as \"name?\",\n c.sfs_photo_url as \"photo_url?\",\n lci.last_interaction_ts as \"last_interaction!\"\n FROM\n LatestContactInteractions lci\n JOIN\n email_contacts c ON lci.contact_address_id = c.id\n ORDER BY\n lci.last_interaction_ts DESC, c.email_address\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email_address!", - "type_info": "Varchar" - }, - { - "ordinal": 1, - "name": "name?", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "photo_url?", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "last_interaction!", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - true, - null - ] - }, - "hash": "d50b26323778ecb0ea88bb43c8a3df49df49acf6ec6d56955022e81ae92a2278" -} diff --git a/rust/cloud-storage/.sqlx/query-d5c0095efa9c8162d511f1f9b1b2d44bfd717c8761fcb3c8561cd6c292b1eea4.json b/rust/cloud-storage/.sqlx/query-d5c0095efa9c8162d511f1f9b1b2d44bfd717c8761fcb3c8561cd6c292b1eea4.json deleted file mode 100644 index df9d45c1ad..0000000000 --- a/rust/cloud-storage/.sqlx/query-d5c0095efa9c8162d511f1f9b1b2d44bfd717c8761fcb3c8561cd6c292b1eea4.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"InstructionsDocuments\" (\"documentId\", \"userId\")\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "d5c0095efa9c8162d511f1f9b1b2d44bfd717c8761fcb3c8561cd6c292b1eea4" -} diff --git a/rust/cloud-storage/.sqlx/query-d5db55179b8f46b8788f1cc573b0734a33e800cd3fd990498c76c991b48931a8.json b/rust/cloud-storage/.sqlx/query-d5db55179b8f46b8788f1cc573b0734a33e800cd3fd990498c76c991b48931a8.json deleted file mode 100644 index ad5a0976fe..0000000000 --- a/rust/cloud-storage/.sqlx/query-d5db55179b8f46b8788f1cc573b0734a33e800cd3fd990498c76c991b48931a8.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO notification_user_device_registration (id, user_id, device_token, device_endpoint, device_type)\n VALUES ($1, $2, $3, $4, $5)\n ON CONFLICT (device_endpoint) DO UPDATE SET user_id = $2, device_token = $3, device_type = $5, updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Text", - { - "Custom": { - "name": "notification_device_type_option", - "kind": { - "Enum": [ - "ios", - "android", - "iosvoip" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "d5db55179b8f46b8788f1cc573b0734a33e800cd3fd990498c76c991b48931a8" -} diff --git a/rust/cloud-storage/.sqlx/query-d5fbd2557b6759572b20117681fac9c4d0b723c7a7abfa0fd92ae362ea32b88f.json b/rust/cloud-storage/.sqlx/query-d5fbd2557b6759572b20117681fac9c4d0b723c7a7abfa0fd92ae362ea32b88f.json deleted file mode 100644 index bbc3e3d461..0000000000 --- a/rust/cloud-storage/.sqlx/query-d5fbd2557b6759572b20117681fac9c4d0b723c7a7abfa0fd92ae362ea32b88f.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"is_verified\"\n FROM \"macro_user_email_verification\"\n WHERE \"email\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "is_verified", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "d5fbd2557b6759572b20117681fac9c4d0b723c7a7abfa0fd92ae362ea32b88f" -} diff --git a/rust/cloud-storage/.sqlx/query-d61fd0eda66672d4ba0ed8d648c93fdc9b145bcea0d50bfb62acabba93d5818c.json b/rust/cloud-storage/.sqlx/query-d61fd0eda66672d4ba0ed8d648c93fdc9b145bcea0d50bfb62acabba93d5818c.json deleted file mode 100644 index 56463591cc..0000000000 --- a/rust/cloud-storage/.sqlx/query-d61fd0eda66672d4ba0ed8d648c93fdc9b145bcea0d50bfb62acabba93d5818c.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_scheduled_messages (\n link_id, message_id, send_time, sent,\n created_at, updated_at\n )\n VALUES ($1, $2, $3, $4, NOW(), NOW())\n ON CONFLICT (link_id, message_id) DO UPDATE SET\n send_time = EXCLUDED.send_time,\n sent = EXCLUDED.sent,\n updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Timestamptz", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "d61fd0eda66672d4ba0ed8d648c93fdc9b145bcea0d50bfb62acabba93d5818c" -} diff --git a/rust/cloud-storage/.sqlx/query-d672dff677cfcb21b6f90672e2d79b6d56ccda8789dd737a8cb2d89eb6858b03.json b/rust/cloud-storage/.sqlx/query-d672dff677cfcb21b6f90672e2d79b6d56ccda8789dd737a8cb2d89eb6858b03.json deleted file mode 100644 index 748fb52c0c..0000000000 --- a/rust/cloud-storage/.sqlx/query-d672dff677cfcb21b6f90672e2d79b6d56ccda8789dd737a8cb2d89eb6858b03.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_channel_participants (channel_id, role, user_id)\n VALUES ($1, $2, $3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "name": "comms_participant_role", - "kind": { - "Enum": [ - "owner", - "admin", - "member" - ] - } - } - }, - "Text" - ] - }, - "nullable": [] - }, - "hash": "d672dff677cfcb21b6f90672e2d79b6d56ccda8789dd737a8cb2d89eb6858b03" -} diff --git a/rust/cloud-storage/.sqlx/query-d6e62d780e55c6597e725a12a3785ba2c222905943458d205112e1e064a0bcc9.json b/rust/cloud-storage/.sqlx/query-d6e62d780e55c6597e725a12a3785ba2c222905943458d205112e1e064a0bcc9.json deleted file mode 100644 index c6522e433f..0000000000 --- a/rust/cloud-storage/.sqlx/query-d6e62d780e55c6597e725a12a3785ba2c222905943458d205112e1e064a0bcc9.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n \"threadId\" as thread_id,\n \"sharePermissionId\" as share_permission_id,\n \"userId\" as user_id,\n \"projectId\" as project_id\n FROM \"EmailThreadPermission\"\n WHERE \"threadId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "thread_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "share_permission_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "project_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - true - ] - }, - "hash": "d6e62d780e55c6597e725a12a3785ba2c222905943458d205112e1e064a0bcc9" -} diff --git a/rust/cloud-storage/.sqlx/query-d742a92f0fe0ee9d7804e59bf37182fb33d0dcc2df012cdc4eed91e8994ca2b7.json b/rust/cloud-storage/.sqlx/query-d742a92f0fe0ee9d7804e59bf37182fb33d0dcc2df012cdc4eed91e8994ca2b7.json deleted file mode 100644 index 773603fabb..0000000000 --- a/rust/cloud-storage/.sqlx/query-d742a92f0fe0ee9d7804e59bf37182fb33d0dcc2df012cdc4eed91e8994ca2b7.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n t.id,\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n (\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m_imp.thread_id = t.id\n AND l.link_id = t.link_id\n AND l.name = 'IMPORTANT'\n )\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Find the latest labeled message timestamp for each thread,\n -- calculate the effective sort key, then sort and limit the results.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.inbox_visible,\n t.is_read,\n t.project_id,\n llpt.latest_labeled_ts AS created_at,\n llpt.latest_labeled_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $6 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, llpt.latest_labeled_ts)\n ELSE llpt.latest_labeled_ts\n END AS effective_ts\n FROM (\n -- This sub-subquery efficiently finds the latest timestamp for every thread\n -- that has at least one message with the specified label.\n SELECT\n m.thread_id,\n MAX(m.internal_date_ts) as latest_labeled_ts\n FROM email_messages m\n JOIN email_message_labels ml ON m.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m.link_id = ANY($1) AND l.name = $5\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml2\n JOIN email_labels l2 ON ml2.label_id = l2.id\n WHERE ml2.message_id = m.id AND l2.name = 'TRASH' AND l2.link_id = m.link_id\n )\n GROUP BY m.thread_id\n ) llpt\n JOIN email_threads t ON llpt.thread_id = t.id\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n (($3::timestamptz IS NULL) OR (\n CASE $6 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, llpt.latest_labeled_ts)\n ELSE llpt.latest_labeled_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find the full details of its latest message with that specific label.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name,\n m.is_draft\n FROM email_messages m\n JOIN email_message_labels ml ON m.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m.thread_id = t.id AND m.is_draft = FALSE AND l.link_id = t.link_id AND l.name = $5\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml2\n JOIN email_labels l2 ON ml2.label_id = l2.id\n WHERE ml2.message_id = m.id AND l2.name = 'TRASH' AND l2.link_id = t.link_id\n )\n ORDER BY m.internal_date_ts DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n ORDER BY t.effective_ts DESC, t.updated_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "inbox_visible", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "sort_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "viewed_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "name?", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "snippet?", - "type_info": "Text" - }, - { - "ordinal": 11, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 12, - "name": "is_important!", - "type_info": "Bool" - }, - { - "ordinal": 13, - "name": "sender_email?", - "type_info": "Varchar" - }, - { - "ordinal": 14, - "name": "sender_name?", - "type_info": "Varchar" - }, - { - "ordinal": 15, - "name": "sender_photo_url?", - "type_info": "Text" - }, - { - "ordinal": 16, - "name": "owner_id!", - "type_info": "Text" - }, - { - "ordinal": 17, - "name": "link_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "Int8", - "Timestamptz", - "Uuid", - "Text", - "Text" - ] - }, - "nullable": [ - false, - true, - false, - false, - null, - null, - null, - true, - false, - true, - true, - false, - null, - false, - null, - true, - false, - false - ] - }, - "hash": "d742a92f0fe0ee9d7804e59bf37182fb33d0dcc2df012cdc4eed91e8994ca2b7" -} diff --git a/rust/cloud-storage/.sqlx/query-d7689899580f3928cca462a572058dd54f85dc6082f369fbecb2afa873fda66b.json b/rust/cloud-storage/.sqlx/query-d7689899580f3928cca462a572058dd54f85dc6082f369fbecb2afa873fda66b.json deleted file mode 100644 index 8a1d028baf..0000000000 --- a/rust/cloud-storage/.sqlx/query-d7689899580f3928cca462a572058dd54f85dc6082f369fbecb2afa873fda66b.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT access_level FROM (\n -- Source 1: entity_access source_id match\n SELECT\n access_level::text FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'project'\n AND source_id = ANY($2)\n\n UNION ALL\n -- Source 2: items share permission\n SELECT\n \"publicAccessLevel\"::text AS access_level\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"ProjectPermission\" WHERE \"projectId\" = $3\n )\n ) AS combined_access\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "access_level", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "d7689899580f3928cca462a572058dd54f85dc6082f369fbecb2afa873fda66b" -} diff --git a/rust/cloud-storage/.sqlx/query-d792ba8c4730364e650045395d110e6acda592d3e27ecac39f93370bacccd7a7.json b/rust/cloud-storage/.sqlx/query-d792ba8c4730364e650045395d110e6acda592d3e27ecac39f93370bacccd7a7.json deleted file mode 100644 index fb99ecd6dc..0000000000 --- a/rust/cloud-storage/.sqlx/query-d792ba8c4730364e650045395d110e6acda592d3e27ecac39f93370bacccd7a7.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"allowListOnly\" as allow_list_only\n FROM \"Organization\"\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "allow_list_only", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Int4" - ] - }, - "nullable": [ - true - ] - }, - "hash": "d792ba8c4730364e650045395d110e6acda592d3e27ecac39f93370bacccd7a7" -} diff --git a/rust/cloud-storage/.sqlx/query-d7a3be325f304ca9642f1ae4f18a3b22e871c61feff6dbc1fe793cedd2cf403c.json b/rust/cloud-storage/.sqlx/query-d7a3be325f304ca9642f1ae4f18a3b22e871c61feff6dbc1fe793cedd2cf403c.json deleted file mode 100644 index 59be5b6504..0000000000 --- a/rust/cloud-storage/.sqlx/query-d7a3be325f304ca9642f1ae4f18a3b22e871c61feff6dbc1fe793cedd2cf403c.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id,\n m.channel_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.edited_at::timestamptz AS \"edited_at?\",\n m.deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages m\n WHERE m.channel_id = $1\n AND m.thread_id IS NULL\n AND (m.deleted_at IS NULL OR EXISTS (\n SELECT 1 FROM comms_messages r\n WHERE r.thread_id = m.id AND r.deleted_at IS NULL\n ))\n AND (m.created_at, m.id) > ($2, $3)\n ORDER BY m.created_at ASC, m.id ASC\n LIMIT $4\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "edited_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "deleted_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Timestamptz", - "Uuid", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - null, - null - ] - }, - "hash": "d7a3be325f304ca9642f1ae4f18a3b22e871c61feff6dbc1fe793cedd2cf403c" -} diff --git a/rust/cloud-storage/.sqlx/query-d7c799b9e8432474ef422195e5e17f6cd611c9845f2830ab6ded46a4d640d362.json b/rust/cloud-storage/.sqlx/query-d7c799b9e8432474ef422195e5e17f6cd611c9845f2830ab6ded46a4d640d362.json deleted file mode 100644 index 819e90ee19..0000000000 --- a/rust/cloud-storage/.sqlx/query-d7c799b9e8432474ef422195e5e17f6cd611c9845f2830ab6ded46a4d640d362.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"id\"\n FROM \"User\"\n WHERE \"id\" = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "d7c799b9e8432474ef422195e5e17f6cd611c9845f2830ab6ded46a4d640d362" -} diff --git a/rust/cloud-storage/.sqlx/query-d81549c7156fb08cde5260f6196eb6a80bb82c9640845a835c6d32eea7e6dcad.json b/rust/cloud-storage/.sqlx/query-d81549c7156fb08cde5260f6196eb6a80bb82c9640845a835c6d32eea7e6dcad.json deleted file mode 100644 index a51efcbe83..0000000000 --- a/rust/cloud-storage/.sqlx/query-d81549c7156fb08cde5260f6196eb6a80bb82c9640845a835c6d32eea7e6dcad.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"ExperimentLog\"\n SET completed = true\n WHERE user_id = $1 AND experiment_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "d81549c7156fb08cde5260f6196eb6a80bb82c9640845a835c6d32eea7e6dcad" -} diff --git a/rust/cloud-storage/.sqlx/query-d84f480cd90b929670bdbe24b839126ad17975d9f7490e8a5d521e2c1eb752c5.json b/rust/cloud-storage/.sqlx/query-d84f480cd90b929670bdbe24b839126ad17975d9f7490e8a5d521e2c1eb752c5.json deleted file mode 100644 index b146805915..0000000000 --- a/rust/cloud-storage/.sqlx/query-d84f480cd90b929670bdbe24b839126ad17975d9f7490e8a5d521e2c1eb752c5.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_settings (link_id, signature_on_replies_forwards)\n VALUES ($1, $2)\n ON CONFLICT (link_id)\n DO UPDATE SET\n signature_on_replies_forwards = EXCLUDED.signature_on_replies_forwards,\n updated_at = NOW()\n RETURNING link_id, signature_on_replies_forwards\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "signature_on_replies_forwards", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Bool" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "d84f480cd90b929670bdbe24b839126ad17975d9f7490e8a5d521e2c1eb752c5" -} diff --git a/rust/cloud-storage/.sqlx/query-d8677557689260c205fa17b9b36990834ea8846624132386f2fcd92d0d9b9905.json b/rust/cloud-storage/.sqlx/query-d8677557689260c205fa17b9b36990834ea8846624132386f2fcd92d0d9b9905.json deleted file mode 100644 index bbc7330bb2..0000000000 --- a/rust/cloud-storage/.sqlx/query-d8677557689260c205fa17b9b36990834ea8846624132386f2fcd92d0d9b9905.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE github_app_installation\n SET source_id = $2::text,\n source_type = 'team'::github_app_installation_source_type\n WHERE source_id = $1\n AND source_type = 'user'::github_app_installation_source_type\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "d8677557689260c205fa17b9b36990834ea8846624132386f2fcd92d0d9b9905" -} diff --git a/rust/cloud-storage/.sqlx/query-d86be6e3a5bac69df99498b43dfc645a882c4f965226e71fc300d84a081ad30d.json b/rust/cloud-storage/.sqlx/query-d86be6e3a5bac69df99498b43dfc645a882c4f965226e71fc300d84a081ad30d.json deleted file mode 100644 index d4ba5f46e7..0000000000 --- a/rust/cloud-storage/.sqlx/query-d86be6e3a5bac69df99498b43dfc645a882c4f965226e71fc300d84a081ad30d.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as \"document_id\",\n d.owner as \"owner\",\n COALESCE(db.id, di.id) as \"document_version_id!\",\n d.name as \"document_name\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"fileType\" as \"file_type\",\n db.bom_parts as \"document_bom?\",\n di.modification_data as \"modification_data?\",\n d.\"projectId\" as \"project_id\",\n p.name as \"project_name?\",\n di.sha as \"sha?\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.sha,\n i.\"createdAt\",\n (\n SELECT\n imod.\"modificationData\"\n FROM\n \"DocumentInstanceModificationData\" imod\n WHERE\n imod.\"documentInstanceId\" = i.id\n ) as modification_data,\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" DESC\n LIMIT 1\n ) di ON true\n LEFT JOIN LATERAL (\n SELECT\n b.id,\n (\n SELECT\n json_agg(\n json_build_object(\n 'id', bp.id,\n 'sha', bp.sha,\n 'path', bp.path\n )\n )\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = b.id\n ) as bom_parts\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n p.name\n FROM \"Project\" p\n WHERE p.id = d.\"projectId\"\n ) p ON d.\"projectId\" IS NOT NULL\n WHERE\n d.id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_version_id!", - "type_info": "Int8" - }, - { - "ordinal": 3, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "document_bom?", - "type_info": "Json" - }, - { - "ordinal": 11, - "name": "modification_data?", - "type_info": "Jsonb" - }, - { - "ordinal": 12, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 13, - "name": "project_name?", - "type_info": "Text" - }, - { - "ordinal": 14, - "name": "sha?", - "type_info": "Text" - }, - { - "ordinal": 15, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 16, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - null, - false, - true, - true, - true, - null, - null, - true, - null, - null, - true, - false, - false, - false, - null - ] - }, - "hash": "d86be6e3a5bac69df99498b43dfc645a882c4f965226e71fc300d84a081ad30d" -} diff --git a/rust/cloud-storage/.sqlx/query-d8bd24cd40bf28ba54dcc3a846931d4e00fbc7854d8f315b87f70dfdc44cb901.json b/rust/cloud-storage/.sqlx/query-d8bd24cd40bf28ba54dcc3a846931d4e00fbc7854d8f315b87f70dfdc44cb901.json deleted file mode 100644 index 2347731904..0000000000 --- a/rust/cloud-storage/.sqlx/query-d8bd24cd40bf28ba54dcc3a846931d4e00fbc7854d8f315b87f70dfdc44cb901.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Pin\" (\"userId\", \"pinnedItemId\", \"pinnedItemType\", \"pinIndex\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, NOW(), NOW())\n ON CONFLICT (\"userId\", \"pinnedItemId\", \"pinnedItemType\") DO UPDATE\n SET \"updatedAt\" = NOW();\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Int4" - ] - }, - "nullable": [] - }, - "hash": "d8bd24cd40bf28ba54dcc3a846931d4e00fbc7854d8f315b87f70dfdc44cb901" -} diff --git a/rust/cloud-storage/.sqlx/query-d8f3ede64d3ac515f4247672f6edc47ed61f608db54b649cc3daba87817c680a.json b/rust/cloud-storage/.sqlx/query-d8f3ede64d3ac515f4247672f6edc47ed61f608db54b649cc3daba87817c680a.json deleted file mode 100644 index 2363d781a9..0000000000 --- a/rust/cloud-storage/.sqlx/query-d8f3ede64d3ac515f4247672f6edc47ed61f608db54b649cc3daba87817c680a.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE team\n SET seat_count = seat_count + $2\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Int4" - ] - }, - "nullable": [] - }, - "hash": "d8f3ede64d3ac515f4247672f6edc47ed61f608db54b649cc3daba87817c680a" -} diff --git a/rust/cloud-storage/.sqlx/query-d970eeb5bb4aebc43674b6ad89fb00c04c18f94145346063a2b012c1104afa53.json b/rust/cloud-storage/.sqlx/query-d970eeb5bb4aebc43674b6ad89fb00c04c18f94145346063a2b012c1104afa53.json deleted file mode 100644 index 0046c78ad0..0000000000 --- a/rust/cloud-storage/.sqlx/query-d970eeb5bb4aebc43674b6ad89fb00c04c18f94145346063a2b012c1104afa53.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Pin\"\n WHERE \"userId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "d970eeb5bb4aebc43674b6ad89fb00c04c18f94145346063a2b012c1104afa53" -} diff --git a/rust/cloud-storage/.sqlx/query-d990b4285faa94bcc23b8e4ebd3c433d0dd69045b66f7cf5952f1126115dec84.json b/rust/cloud-storage/.sqlx/query-d990b4285faa94bcc23b8e4ebd3c433d0dd69045b66f7cf5952f1126115dec84.json deleted file mode 100644 index 0cfdf07faf..0000000000 --- a/rust/cloud-storage/.sqlx/query-d990b4285faa94bcc23b8e4ebd3c433d0dd69045b66f7cf5952f1126115dec84.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO task_duplicate_embedding (document_id, search_key, content, embedding)\n SELECT $1, sk, ct, emb::vector\n FROM unnest($2::text[], $3::text[], $4::text[]) AS t(sk, ct, emb)\n ON CONFLICT (document_id, search_key) DO UPDATE\n SET content = EXCLUDED.content,\n embedding = EXCLUDED.embedding,\n updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "TextArray", - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "d990b4285faa94bcc23b8e4ebd3c433d0dd69045b66f7cf5952f1126115dec84" -} diff --git a/rust/cloud-storage/.sqlx/query-d9956cd2e52cda4f0e7c080058d33f2bbf35c99b29e7482f198d592ff435cf28.json b/rust/cloud-storage/.sqlx/query-d9956cd2e52cda4f0e7c080058d33f2bbf35c99b29e7482f198d592ff435cf28.json deleted file mode 100644 index 6790b93ff8..0000000000 --- a/rust/cloud-storage/.sqlx/query-d9956cd2e52cda4f0e7c080058d33f2bbf35c99b29e7482f198d592ff435cf28.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT t.id, t.provider_id, t.link_id, t.inbox_visible, t.is_read,\n t.latest_inbound_message_ts, t.latest_outbound_message_ts,\n t.latest_non_spam_message_ts, t.created_at, t.updated_at,\n t.project_id\n FROM email_threads t\n WHERE t.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "inbox_visible", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 5, - "name": "latest_inbound_message_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "latest_outbound_message_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "latest_non_spam_message_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "project_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - false, - false, - false, - true, - true, - true, - false, - false, - true - ] - }, - "hash": "d9956cd2e52cda4f0e7c080058d33f2bbf35c99b29e7482f198d592ff435cf28" -} diff --git a/rust/cloud-storage/.sqlx/query-d9ad977df73e6a2e5cf561edfb41d5ab7728a12ca7245876c3ede0c3adc69647.json b/rust/cloud-storage/.sqlx/query-d9ad977df73e6a2e5cf561edfb41d5ab7728a12ca7245876c3ede0c3adc69647.json deleted file mode 100644 index 921f441cd6..0000000000 --- a/rust/cloud-storage/.sqlx/query-d9ad977df73e6a2e5cf561edfb41d5ab7728a12ca7245876c3ede0c3adc69647.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT share_permission_id as \"share_permission_id!\"\n FROM (\n SELECT share_permission_id FROM calls WHERE id = $1\n UNION ALL\n SELECT share_permission_id FROM call_records WHERE id = $1\n ) t\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "d9ad977df73e6a2e5cf561edfb41d5ab7728a12ca7245876c3ede0c3adc69647" -} diff --git a/rust/cloud-storage/.sqlx/query-d9f818ade03e85f7f57ff02b2093b46ac7899be8421cdd83e5dd46f5b8211fd2.json b/rust/cloud-storage/.sqlx/query-d9f818ade03e85f7f57ff02b2093b46ac7899be8421cdd83e5dd46f5b8211fd2.json deleted file mode 100644 index 3bf2c1efc4..0000000000 --- a/rust/cloud-storage/.sqlx/query-d9f818ade03e85f7f57ff02b2093b46ac7899be8421cdd83e5dd46f5b8211fd2.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n a.id,\n a.message_id,\n a.provider_attachment_id,\n a.filename,\n a.mime_type,\n a.size_bytes,\n a.content_id,\n eas.sfs_id as \"sfs_id?\",\n a.created_at,\n m.thread_id\n FROM \n email_attachments a\n JOIN\n email_messages m ON a.message_id = m.id\n LEFT JOIN\n email_attachments_sfs eas ON a.id = eas.attachment_id\n WHERE\n m.thread_id = ANY($1)\n ORDER BY \n a.created_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_attachment_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "filename", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "mime_type", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "size_bytes", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "content_id", - "type_info": "Varchar" - }, - { - "ordinal": 7, - "name": "sfs_id?", - "type_info": "Uuid" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "thread_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - false, - false, - false - ] - }, - "hash": "d9f818ade03e85f7f57ff02b2093b46ac7899be8421cdd83e5dd46f5b8211fd2" -} diff --git a/rust/cloud-storage/.sqlx/query-da0e4cfc27ca84e3cad6ed3d7b58d20ea15ba8756bc54a8d518ea82a39a27ec4.json b/rust/cloud-storage/.sqlx/query-da0e4cfc27ca84e3cad6ed3d7b58d20ea15ba8756bc54a8d518ea82a39a27ec4.json deleted file mode 100644 index 12f733e69c..0000000000 --- a/rust/cloud-storage/.sqlx/query-da0e4cfc27ca84e3cad6ed3d7b58d20ea15ba8756bc54a8d518ea82a39a27ec4.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n thread_id AS \"thread_id!\",\n sender_id,\n content,\n created_at,\n updated_at,\n edited_at::timestamptz AS \"edited_at?\"\n FROM comms_messages\n WHERE thread_id = $1\n AND deleted_at IS NULL\n ORDER BY created_at ASC, id ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "thread_id!", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "edited_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - false, - false, - false, - false, - null - ] - }, - "hash": "da0e4cfc27ca84e3cad6ed3d7b58d20ea15ba8756bc54a8d518ea82a39a27ec4" -} diff --git a/rust/cloud-storage/.sqlx/query-da11b9c3b9850e3a763035f7873921f7887f3bf828b5be3c7a599fade54a0dc1.json b/rust/cloud-storage/.sqlx/query-da11b9c3b9850e3a763035f7873921f7887f3bf828b5be3c7a599fade54a0dc1.json deleted file mode 100644 index 45d7afe7de..0000000000 --- a/rust/cloud-storage/.sqlx/query-da11b9c3b9850e3a763035f7873921f7887f3bf828b5be3c7a599fade54a0dc1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id,\n CASE WHEN m.task_id = $1 THEN m.duplicate_task_id ELSE m.task_id END AS \"other_task_id!\",\n d.name AS \"other_task_name!\",\n m.vector_score AS \"vector_score!\",\n m.judge_reason\n FROM task_duplicate_match m\n JOIN \"Document\" d\n ON d.id = CASE WHEN m.task_id = $1 THEN m.duplicate_task_id ELSE m.task_id END\n WHERE m.status = 'active'\n AND (m.task_id = $1 OR m.duplicate_task_id = $1)\n AND d.\"deletedAt\" IS NULL\n ORDER BY m.vector_score DESC, m.created_at DESC\n LIMIT 10\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "other_task_id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "other_task_name!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "vector_score!", - "type_info": "Float8" - }, - { - "ordinal": 4, - "name": "judge_reason", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - null, - false, - false, - true - ] - }, - "hash": "da11b9c3b9850e3a763035f7873921f7887f3bf828b5be3c7a599fade54a0dc1" -} diff --git a/rust/cloud-storage/.sqlx/query-da534350a843bec8ccf928f5d774a0a281601cb56674d2b5ea331e02ae8bbf60.json b/rust/cloud-storage/.sqlx/query-da534350a843bec8ccf928f5d774a0a281601cb56674d2b5ea331e02ae8bbf60.json deleted file mode 100644 index 01f4971f8f..0000000000 --- a/rust/cloud-storage/.sqlx/query-da534350a843bec8ccf928f5d774a0a281601cb56674d2b5ea331e02ae8bbf60.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_attachments\n WHERE id = ANY($1::uuid[])\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [] - }, - "hash": "da534350a843bec8ccf928f5d774a0a281601cb56674d2b5ea331e02ae8bbf60" -} diff --git a/rust/cloud-storage/.sqlx/query-da59b393b3c5c2cc664c6ac89fb05dec57b4fb5d0b4ea2def2c8c4978c1d9c36.json b/rust/cloud-storage/.sqlx/query-da59b393b3c5c2cc664c6ac89fb05dec57b4fb5d0b4ea2def2c8c4978c1d9c36.json deleted file mode 100644 index 648acdb6cb..0000000000 --- a/rust/cloud-storage/.sqlx/query-da59b393b3c5c2cc664c6ac89fb05dec57b4fb5d0b4ea2def2c8c4978c1d9c36.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT memory\n FROM memory\n WHERE id = $1 AND user_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "memory", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "da59b393b3c5c2cc664c6ac89fb05dec57b4fb5d0b4ea2def2c8c4978c1d9c36" -} diff --git a/rust/cloud-storage/.sqlx/query-da6586a61ad110e335c8b5a9c6c840cee4f1db25c7b9b4f5a1157ef655fe1575.json b/rust/cloud-storage/.sqlx/query-da6586a61ad110e335c8b5a9c6c840cee4f1db25c7b9b4f5a1157ef655fe1575.json deleted file mode 100644 index 20e342f48c..0000000000 --- a/rust/cloud-storage/.sqlx/query-da6586a61ad110e335c8b5a9c6c840cee4f1db25c7b9b4f5a1157ef655fe1575.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentPermission\" (\"documentId\", \"sharePermissionId\")\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "da6586a61ad110e335c8b5a9c6c840cee4f1db25c7b9b4f5a1157ef655fe1575" -} diff --git a/rust/cloud-storage/.sqlx/query-da98ce3985fbf5eaed5300bb94b3354c7b4bd005b9e5657a702bd39846ff0917.json b/rust/cloud-storage/.sqlx/query-da98ce3985fbf5eaed5300bb94b3354c7b4bd005b9e5657a702bd39846ff0917.json deleted file mode 100644 index 5aa5cecd85..0000000000 --- a/rust/cloud-storage/.sqlx/query-da98ce3985fbf5eaed5300bb94b3354c7b4bd005b9e5657a702bd39846ff0917.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO document_sub_type (document_id, sub_type) \n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "da98ce3985fbf5eaed5300bb94b3354c7b4bd005b9e5657a702bd39846ff0917" -} diff --git a/rust/cloud-storage/.sqlx/query-dae0d3d0cdf09f727a8b7c3ecc9f3ae64ea91023d356c47232736672cd1ba5ec.json b/rust/cloud-storage/.sqlx/query-dae0d3d0cdf09f727a8b7c3ecc9f3ae64ea91023d356c47232736672cd1ba5ec.json deleted file mode 100644 index c2eff32a5e..0000000000 --- a/rust/cloud-storage/.sqlx/query-dae0d3d0cdf09f727a8b7c3ecc9f3ae64ea91023d356c47232736672cd1ba5ec.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"BlockedEmail\" (email)\n SELECT email FROM unnest($1::text[]) AS email\n ON CONFLICT (email) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "dae0d3d0cdf09f727a8b7c3ecc9f3ae64ea91023d356c47232736672cd1ba5ec" -} diff --git a/rust/cloud-storage/.sqlx/query-daefc7270b27ce0caef8b61a651c38d76dfd087a2a8032ff6ebce392d7892764.json b/rust/cloud-storage/.sqlx/query-daefc7270b27ce0caef8b61a651c38d76dfd087a2a8032ff6ebce392d7892764.json deleted file mode 100644 index 5c8a8c15b1..0000000000 --- a/rust/cloud-storage/.sqlx/query-daefc7270b27ce0caef8b61a651c38d76dfd087a2a8032ff6ebce392d7892764.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO action_execution_record (action_id, resource_id, start_time, end_time, is_success, result)\n VALUES ($1, $2, $3, $4, $5, $6)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Timestamptz", - "Timestamptz", - "Bool", - "Jsonb" - ] - }, - "nullable": [] - }, - "hash": "daefc7270b27ce0caef8b61a651c38d76dfd087a2a8032ff6ebce392d7892764" -} diff --git a/rust/cloud-storage/.sqlx/query-db297e24e3ed1e94c27121977d81813bbe4cde5e5b7bec42e424c72db0e27e73.json b/rust/cloud-storage/.sqlx/query-db297e24e3ed1e94c27121977d81813bbe4cde5e5b7bec42e424c72db0e27e73.json deleted file mode 100644 index d197caf563..0000000000 --- a/rust/cloud-storage/.sqlx/query-db297e24e3ed1e94c27121977d81813bbe4cde5e5b7bec42e424c72db0e27e73.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id FROM user_notification_type_preference\n WHERE notification_event_type = $1 AND user_id = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "db297e24e3ed1e94c27121977d81813bbe4cde5e5b7bec42e424c72db0e27e73" -} diff --git a/rust/cloud-storage/.sqlx/query-dbf934ed3c82b433deea3da7035a976b443a4280c01b09fdc5f673ad66f06c28.json b/rust/cloud-storage/.sqlx/query-dbf934ed3c82b433deea3da7035a976b443a4280c01b09fdc5f673ad66f06c28.json deleted file mode 100644 index 568c59efeb..0000000000 --- a/rust/cloud-storage/.sqlx/query-dbf934ed3c82b433deea3da7035a976b443a4280c01b09fdc5f673ad66f06c28.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE comms_channel_participants\n SET left_at = now()\n WHERE user_id = $1\n AND left_at IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "dbf934ed3c82b433deea3da7035a976b443a4280c01b09fdc5f673ad66f06c28" -} diff --git a/rust/cloud-storage/.sqlx/query-dc09f10b914618441e30f7b1e12c60d684f1a422d5cd1de162b6f657c8ddfa98.json b/rust/cloud-storage/.sqlx/query-dc09f10b914618441e30f7b1e12c60d684f1a422d5cd1de162b6f657c8ddfa98.json deleted file mode 100644 index cbd759ab9a..0000000000 --- a/rust/cloud-storage/.sqlx/query-dc09f10b914618441e30f7b1e12c60d684f1a422d5cd1de162b6f657c8ddfa98.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT c.id, c.\"createdAt\" as created_at, c.\"updatedAt\" as updated_at\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n WHERE t.\"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "created_at", - "type_info": "Timestamp" - }, - { - "ordinal": 2, - "name": "updated_at", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false - ] - }, - "hash": "dc09f10b914618441e30f7b1e12c60d684f1a422d5cd1de162b6f657c8ddfa98" -} diff --git a/rust/cloud-storage/.sqlx/query-dc8363500c41804887b52ba9bab5fe1745738d475322e937d4553623a8294dc6.json b/rust/cloud-storage/.sqlx/query-dc8363500c41804887b52ba9bab5fe1745738d475322e937d4553623a8294dc6.json deleted file mode 100644 index 5c5ea59ceb..0000000000 --- a/rust/cloud-storage/.sqlx/query-dc8363500c41804887b52ba9bab5fe1745738d475322e937d4553623a8294dc6.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"ChatMessage\" (\"chatId\", \"createdAt\", \"updatedAt\", \"content\", \"role\", \"model\")\n SELECT $1, \"createdAt\", \"updatedAt\", \"content\", \"role\", \"model\"\n FROM \"ChatMessage\"\n WHERE \"chatId\"=$2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "dc8363500c41804887b52ba9bab5fe1745738d475322e937d4553623a8294dc6" -} diff --git a/rust/cloud-storage/.sqlx/query-dc836e7dd12a3df4a05ba072af32cb1aca7d6b8c20e636adff6fb3977577e62a.json b/rust/cloud-storage/.sqlx/query-dc836e7dd12a3df4a05ba072af32cb1aca7d6b8c20e636adff6fb3977577e62a.json deleted file mode 100644 index 2ce75f867a..0000000000 --- a/rust/cloud-storage/.sqlx/query-dc836e7dd12a3df4a05ba072af32cb1aca7d6b8c20e636adff6fb3977577e62a.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n t.id,\n t.latest_inbound_message_ts as last_received,\n t.latest_outbound_message_ts as last_sent,\n first_msg.internal_date_ts as thread_started,\n first_msg.subject,\n (SELECT COUNT(*)::bigint FROM email_messages WHERE thread_id = t.id) as \"message_count!\"\n FROM\n email_threads t\n -- LATERAL join to get subject and timestamp from the first message\n LEFT JOIN LATERAL (\n SELECT internal_date_ts, subject\n FROM email_messages\n WHERE thread_id = t.id\n ORDER BY internal_date_ts ASC NULLS LAST\n LIMIT 1\n ) first_msg ON true\n WHERE\n t.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "last_received", - "type_info": "Timestamptz" - }, - { - "ordinal": 2, - "name": "last_sent", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "thread_started", - "type_info": "Timestamptz" - }, - { - "ordinal": 4, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "message_count!", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - true, - true, - true, - null - ] - }, - "hash": "dc836e7dd12a3df4a05ba072af32cb1aca7d6b8c20e636adff6fb3977577e62a" -} diff --git a/rust/cloud-storage/.sqlx/query-dcf19b1a30385a18a23d0fa7d4d724d755c0a3353480bcbe573a3f867cf24091.json b/rust/cloud-storage/.sqlx/query-dcf19b1a30385a18a23d0fa7d4d724d755c0a3353480bcbe573a3f867cf24091.json deleted file mode 100644 index 15e39a719d..0000000000 --- a/rust/cloud-storage/.sqlx/query-dcf19b1a30385a18a23d0fa7d4d724d755c0a3353480bcbe573a3f867cf24091.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO bot_tokens (\n id, bot_id, token_hash, token_prefix, label, expires_at\n )\n VALUES ($1, $2, $3, $4, $5, $6)\n RETURNING id, bot_id, token_prefix, label, last_used_at, expires_at, revoked_at, created_at\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "bot_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "token_prefix", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "label", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "last_used_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "expires_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "revoked_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Bytea", - "Text", - "Text", - "Timestamptz" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - true, - true, - false - ] - }, - "hash": "dcf19b1a30385a18a23d0fa7d4d724d755c0a3353480bcbe573a3f867cf24091" -} diff --git a/rust/cloud-storage/.sqlx/query-dd019c8633d6089e59d0560d601dbb294e66474310e66c28a0a8510c64fca149.json b/rust/cloud-storage/.sqlx/query-dd019c8633d6089e59d0560d601dbb294e66474310e66c28a0a8510c64fca149.json deleted file mode 100644 index d64ed086f1..0000000000 --- a/rust/cloud-storage/.sqlx/query-dd019c8633d6089e59d0560d601dbb294e66474310e66c28a0a8510c64fca149.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id FROM user_mute_notification\n WHERE user_id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "dd019c8633d6089e59d0560d601dbb294e66474310e66c28a0a8510c64fca149" -} diff --git a/rust/cloud-storage/.sqlx/query-dd1e3498501c9aad2a5db8c9f55269928b43c4a9e523b84383bf9c7dc636c1fd.json b/rust/cloud-storage/.sqlx/query-dd1e3498501c9aad2a5db8c9f55269928b43c4a9e523b84383bf9c7dc636c1fd.json deleted file mode 100644 index 6c18c195e9..0000000000 --- a/rust/cloud-storage/.sqlx/query-dd1e3498501c9aad2a5db8c9f55269928b43c4a9e523b84383bf9c7dc636c1fd.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, owner, name, schedule, kind, timezone, task, claimed, created_at, updated_at, next_run_at, enabled\n FROM scheduled_action\n WHERE owner = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "schedule", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "kind", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "timezone", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "task", - "type_info": "Jsonb" - }, - { - "ordinal": 7, - "name": "claimed", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "next_run_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "enabled", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - false - ] - }, - "hash": "dd1e3498501c9aad2a5db8c9f55269928b43c4a9e523b84383bf9c7dc636c1fd" -} diff --git a/rust/cloud-storage/.sqlx/query-dd4f7c4b90b6340ea7f4a7d6eb16347612e9d197979f9d4a4df40314f22559f8.json b/rust/cloud-storage/.sqlx/query-dd4f7c4b90b6340ea7f4a7d6eb16347612e9d197979f9d4a4df40314f22559f8.json deleted file mode 100644 index 6522361cd3..0000000000 --- a/rust/cloud-storage/.sqlx/query-dd4f7c4b90b6340ea7f4a7d6eb16347612e9d197979f9d4a4df40314f22559f8.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n UserAccessibleItems AS (\n SELECT DISTINCT\n ea.entity_id::text as item_id,\n ea.entity_type as item_type\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n ),\n Combined AS (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\", \n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\",\n d.\"projectId\" as \"project_id\",\n NULL as \"is_persistent\",\n di.sha as \"sha\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", d.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN d.\"createdAt\"\n ELSE d.\"updatedAt\"\n END::timestamptz as \"sort_ts!\",\n CASE\n WHEN dt.sub_type = 'task'\n AND ep_status.values->'value' ? $6\n THEN true\n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL\n END as \"is_completed\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status\n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id\n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $7\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = d.id\n AND uai.item_type = 'document'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = d.id\n AND uh.\"itemType\" = 'document'\n AND uh.\"userId\" = $1\n LEFT JOIN LATERAL (\n SELECT b.id\n FROM \"DocumentBom\" b\n WHERE b.\"documentId\" = d.id\n ORDER BY b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT i.id, i.sha\n FROM \"DocumentInstance\" i\n WHERE i.\"documentId\" = d.id\n ORDER BY i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n WHERE d.\"deletedAt\" IS NULL\n\n UNION ALL\n\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at!\",\n c.\"updatedAt\"::timestamptz as \"updated_at!\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", c.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN c.\"createdAt\"\n ELSE c.\"updatedAt\"\n END::timestamptz as \"sort_ts!\",\n NULL as \"is_completed\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Chat\" c\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = c.id\n AND uai.item_type = 'chat'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = c.id\n AND uh.\"itemType\" = 'chat'\n AND uh.\"userId\" = $1\n WHERE c.\"deletedAt\" IS NULL\n\n UNION ALL\n\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at!\",\n p.\"updatedAt\"::timestamptz as \"updated_at!\",\n p.\"parentId\" as \"project_id\",\n NULL as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", p.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN p.\"createdAt\"\n ELSE p.\"updatedAt\"\n END::timestamptz as \"sort_ts!\",\n NULL as \"is_completed\",\n p.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Project\" p\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = p.id\n AND uai.item_type = 'project'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = p.id\n AND uh.\"itemType\" = 'project'\n AND uh.\"userId\" = $1\n WHERE p.\"deletedAt\" IS NULL\n )\n SELECT * \n FROM Combined\n WHERE ($4::timestamptz IS NULL)\n OR (\"sort_ts!\", \"id!\") < ($4, $5)\n ORDER BY \"sort_ts!\" DESC, \"id!\" DESC\n LIMIT $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_type!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_version_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "user_id!", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "name!", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 8, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "is_persistent", - "type_info": "Bool" - }, - { - "ordinal": 13, - "name": "sha", - "type_info": "Text" - }, - { - "ordinal": 14, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 15, - "name": "viewed_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 16, - "name": "sort_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 17, - "name": "is_completed", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Int8", - "Timestamptz", - "Text", - "Text", - "Uuid" - ] - }, - "nullable": [ - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null - ] - }, - "hash": "dd4f7c4b90b6340ea7f4a7d6eb16347612e9d197979f9d4a4df40314f22559f8" -} diff --git a/rust/cloud-storage/.sqlx/query-ddc49e2430354b28a22a3168b217f351cd450b0fe95a4c6015573da664c5c27d.json b/rust/cloud-storage/.sqlx/query-ddc49e2430354b28a22a3168b217f351cd450b0fe95a4c6015573da664c5c27d.json deleted file mode 100644 index 58aefc0d62..0000000000 --- a/rust/cloud-storage/.sqlx/query-ddc49e2430354b28a22a3168b217f351cd450b0fe95a4c6015573da664c5c27d.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM user_notification\n WHERE user_id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "ddc49e2430354b28a22a3168b217f351cd450b0fe95a4c6015573da664c5c27d" -} diff --git a/rust/cloud-storage/.sqlx/query-ddd8755195a3cf6673045d0182a08a933c8e7ac6f811305b607046ae6021be79.json b/rust/cloud-storage/.sqlx/query-ddd8755195a3cf6673045d0182a08a933c8e7ac6f811305b607046ae6021be79.json deleted file mode 100644 index 7e4b4f4136..0000000000 --- a/rust/cloud-storage/.sqlx/query-ddd8755195a3cf6673045d0182a08a933c8e7ac6f811305b607046ae6021be79.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH thread_owner AS (\n SELECT el.macro_id\n FROM email_threads t\n JOIN email_links el ON el.id = t.link_id\n WHERE t.id = $1::uuid\n ),\n shared_teams AS (\n -- Teams the requester shares with the owner that have CRM enabled.\n SELECT tcs.team_id, requester.team_role\n FROM team_user requester\n JOIN team_user owner_member ON owner_member.team_id = requester.team_id\n JOIN thread_owner o ON o.macro_id = owner_member.user_id\n JOIN team_crm_settings tcs ON tcs.team_id = requester.team_id\n WHERE requester.user_id = $2\n AND tcs.crm_enabled\n ),\n participants AS (\n -- Distinct addresses across from + to/cc/bcc on the thread.\n SELECT DISTINCT LOWER(ec.email_address) AS email\n FROM email_messages m\n JOIN email_contacts ec ON ec.id = m.from_contact_id\n WHERE m.thread_id = $1::uuid\n UNION\n SELECT DISTINCT LOWER(ec.email_address)\n FROM email_messages m\n JOIN email_message_recipients r ON r.message_id = m.id\n JOIN email_contacts ec ON ec.id = r.contact_id\n WHERE m.thread_id = $1::uuid\n )\n SELECT EXISTS (\n SELECT 1\n FROM shared_teams st\n -- Require at least one *external* participant (outside the\n -- requester's own email domain). A purely-internal thread\n -- shouldn't grant CRM access.\n WHERE EXISTS (\n SELECT 1\n FROM participants p\n WHERE split_part(p.email, '@', 2) <> split_part(LOWER($2), '@', 2)\n )\n AND NOT EXISTS (\n -- An external participant flagged for opt-out on this\n -- team. email_sync=false blocks everyone; hidden flags\n -- only block plain members.\n SELECT 1\n FROM participants p\n JOIN crm_contacts ct ON ct.email = p.email\n JOIN crm_companies c ON c.id = ct.company_id\n WHERE c.team_id = st.team_id\n AND split_part(p.email, '@', 2) <> split_part(LOWER($2), '@', 2)\n AND (\n NOT c.email_sync\n OR (\n (ct.hidden OR c.hidden)\n AND st.team_role = 'member'\n )\n )\n )\n ) AS \"granted!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "granted!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "ddd8755195a3cf6673045d0182a08a933c8e7ac6f811305b607046ae6021be79" -} diff --git a/rust/cloud-storage/.sqlx/query-de68d0cec65bf1c6779ac453af4ca4185ce3ebe294d432408c876b8a0b0a6b63.json b/rust/cloud-storage/.sqlx/query-de68d0cec65bf1c6779ac453af4ca4185ce3ebe294d432408c876b8a0b0a6b63.json deleted file mode 100644 index 55078c8d47..0000000000 --- a/rust/cloud-storage/.sqlx/query-de68d0cec65bf1c6779ac453af4ca4185ce3ebe294d432408c876b8a0b0a6b63.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_settings (link_id) -- default settings for new links\n VALUES ($1)\n ON CONFLICT (link_id)\n DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "de68d0cec65bf1c6779ac453af4ca4185ce3ebe294d432408c876b8a0b0a6b63" -} diff --git a/rust/cloud-storage/.sqlx/query-de8329eb43d809c9055c9530784594572d9da9387c41873beacfb4a615e964cb.json b/rust/cloud-storage/.sqlx/query-de8329eb43d809c9055c9530784594572d9da9387c41873beacfb4a615e964cb.json deleted file mode 100644 index fc174aa223..0000000000 --- a/rust/cloud-storage/.sqlx/query-de8329eb43d809c9055c9530784594572d9da9387c41873beacfb4a615e964cb.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT l.macro_id AS \"macro_id!\"\n FROM email_threads et\n JOIN email_links l ON et.link_id = l.id\n WHERE et.id = $1\n UNION\n SELECT mul.primary_macro_id\n FROM email_threads et\n JOIN email_links l ON et.link_id = l.id\n JOIN macro_user_links mul ON mul.child_macro_id = l.macro_id\n WHERE et.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "de8329eb43d809c9055c9530784594572d9da9387c41873beacfb4a615e964cb" -} diff --git a/rust/cloud-storage/.sqlx/query-de888f70b426374eb436dfab5e58cab5a5d5423325a7834515c9c6a327f25f50.json b/rust/cloud-storage/.sqlx/query-de888f70b426374eb436dfab5e58cab5a5d5423325a7834515c9c6a327f25f50.json deleted file mode 100644 index 4f08d6fc9f..0000000000 --- a/rust/cloud-storage/.sqlx/query-de888f70b426374eb436dfab5e58cab5a5d5423325a7834515c9c6a327f25f50.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT tu.team_id\n FROM \"Document\" d\n JOIN team_user tu ON tu.user_id = d.owner\n WHERE d.id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "team_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "de888f70b426374eb436dfab5e58cab5a5d5423325a7834515c9c6a327f25f50" -} diff --git a/rust/cloud-storage/.sqlx/query-de8dbe51fdbaeeb8ac8c8af8627c6838a4054a719ac6b54f6f7acb53a9353a3a.json b/rust/cloud-storage/.sqlx/query-de8dbe51fdbaeeb8ac8c8af8627c6838a4054a719ac6b54f6f7acb53a9353a3a.json deleted file mode 100644 index d798a0af26..0000000000 --- a/rust/cloud-storage/.sqlx/query-de8dbe51fdbaeeb8ac8c8af8627c6838a4054a719ac6b54f6f7acb53a9353a3a.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Document\"\n SET \"deletedAt\" = NULL\n WHERE id = $1\n RETURNING owner as owner\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "owner", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "de8dbe51fdbaeeb8ac8c8af8627c6838a4054a719ac6b54f6f7acb53a9353a3a" -} diff --git a/rust/cloud-storage/.sqlx/query-debae3edf7b8f02aefffa4464ad9a4c474f1e7d5c0071bdb1261df0c1d8b2373.json b/rust/cloud-storage/.sqlx/query-debae3edf7b8f02aefffa4464ad9a4c474f1e7d5c0071bdb1261df0c1d8b2373.json deleted file mode 100644 index be486fcbde..0000000000 --- a/rust/cloud-storage/.sqlx/query-debae3edf7b8f02aefffa4464ad9a4c474f1e7d5c0071bdb1261df0c1d8b2373.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"modificationData\" as modification_data\n FROM \"DocumentInstanceModificationData\"\n WHERE \"documentInstanceId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "modification_data", - "type_info": "Jsonb" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "debae3edf7b8f02aefffa4464ad9a4c474f1e7d5c0071bdb1261df0c1d8b2373" -} diff --git a/rust/cloud-storage/.sqlx/query-debef3a27b832b3600037a6304558a23c2407f742e67e7c06553929f4405478e.json b/rust/cloud-storage/.sqlx/query-debef3a27b832b3600037a6304558a23c2407f742e67e7c06553929f4405478e.json deleted file mode 100644 index d7dc0f11fd..0000000000 --- a/rust/cloud-storage/.sqlx/query-debef3a27b832b3600037a6304558a23c2407f742e67e7c06553929f4405478e.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT 1 as exists FROM macro_user WHERE id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "debef3a27b832b3600037a6304558a23c2407f742e67e7c06553929f4405478e" -} diff --git a/rust/cloud-storage/.sqlx/query-dedb4996ddd1f4a5a44ce96d8ab9e7ad85d35c823d233e6d9b53534c5aaf94b0.json b/rust/cloud-storage/.sqlx/query-dedb4996ddd1f4a5a44ce96d8ab9e7ad85d35c823d233e6d9b53534c5aaf94b0.json deleted file mode 100644 index 6e0e82479b..0000000000 --- a/rust/cloud-storage/.sqlx/query-dedb4996ddd1f4a5a44ce96d8ab9e7ad85d35c823d233e6d9b53534c5aaf94b0.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n NULLIF(mui.first_name, 'N/A') AS first_name,\n NULLIF(mui.last_name, 'N/A') AS last_name\n FROM macro_user_info mui\n JOIN \"User\" u ON mui.macro_user_id = u.macro_user_id\n WHERE u.id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "first_name", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "last_name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null, - null - ] - }, - "hash": "dedb4996ddd1f4a5a44ce96d8ab9e7ad85d35c823d233e6d9b53534c5aaf94b0" -} diff --git a/rust/cloud-storage/.sqlx/query-df4f91b8a401ff941c7b57f910979e0ec39a507de612ff7887172062237f29ce.json b/rust/cloud-storage/.sqlx/query-df4f91b8a401ff941c7b57f910979e0ec39a507de612ff7887172062237f29ce.json deleted file mode 100644 index 9f8f5e53d4..0000000000 --- a/rust/cloud-storage/.sqlx/query-df4f91b8a401ff941c7b57f910979e0ec39a507de612ff7887172062237f29ce.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Project\" SET \"deletedAt\" = NULL WHERE id = ANY($1);\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "df4f91b8a401ff941c7b57f910979e0ec39a507de612ff7887172062237f29ce" -} diff --git a/rust/cloud-storage/.sqlx/query-dfc54abc6dd32c35bf3d3c65288ead04d9990d5f6613bd7668dd7cba38ebe3a5.json b/rust/cloud-storage/.sqlx/query-dfc54abc6dd32c35bf3d3c65288ead04d9990d5f6613bd7668dd7cba38ebe3a5.json deleted file mode 100644 index f8ffb29abe..0000000000 --- a/rust/cloud-storage/.sqlx/query-dfc54abc6dd32c35bf3d3c65288ead04d9990d5f6613bd7668dd7cba38ebe3a5.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id,\n m.provider_id,\n m.thread_id,\n m.provider_thread_id,\n m.replying_to_id,\n m.global_id,\n m.link_id,\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.provider_history_id,\n m.internal_date_ts,\n m.sent_at,\n m.size_estimate,\n m.is_read,\n m.is_starred,\n m.is_sent,\n m.is_draft,\n m.has_attachments,\n m.headers_jsonb,\n m.created_at,\n m.updated_at\n FROM email_messages m\n WHERE m.thread_id = $1 AND m.link_id = $2\n ORDER BY m.internal_date_ts DESC NULLS LAST\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 10, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 11, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 12, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 13, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 14, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 15, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 20, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 21, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - true, - false, - true, - true, - true, - false, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - true, - false, - false - ] - }, - "hash": "dfc54abc6dd32c35bf3d3c65288ead04d9990d5f6613bd7668dd7cba38ebe3a5" -} diff --git a/rust/cloud-storage/.sqlx/query-dfccb13f0d0abe2be31bb40067f2e4c29fe260e81d13c017b8bc4fae2b94703f.json b/rust/cloud-storage/.sqlx/query-dfccb13f0d0abe2be31bb40067f2e4c29fe260e81d13c017b8bc4fae2b94703f.json deleted file mode 100644 index e646e8765d..0000000000 --- a/rust/cloud-storage/.sqlx/query-dfccb13f0d0abe2be31bb40067f2e4c29fe260e81d13c017b8bc4fae2b94703f.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"Project\"\n SET \"uploadPending\" = false\n WHERE id = ANY($1)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "dfccb13f0d0abe2be31bb40067f2e4c29fe260e81d13c017b8bc4fae2b94703f" -} diff --git a/rust/cloud-storage/.sqlx/query-e08bcee71072e0e693b1b3f2df39a2b9574f45847919251446878f32b9febbc2.json b/rust/cloud-storage/.sqlx/query-e08bcee71072e0e693b1b3f2df39a2b9574f45847919251446878f32b9febbc2.json deleted file mode 100644 index f47413e3dc..0000000000 --- a/rust/cloud-storage/.sqlx/query-e08bcee71072e0e693b1b3f2df39a2b9574f45847919251446878f32b9febbc2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH RECURSIVE parent_projects AS (\n -- Base case: the project itself\n SELECT id, name, \"parentId\"\n FROM \"Project\"\n WHERE id = $1\n\n UNION ALL\n\n -- Recursive case: walk up to the parent\n SELECT p.id, p.name, p.\"parentId\"\n FROM \"Project\" p\n INNER JOIN parent_projects pp ON p.id = pp.\"parentId\"\n )\n SELECT id as \"id!\"\n FROM parent_projects\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "e08bcee71072e0e693b1b3f2df39a2b9574f45847919251446878f32b9febbc2" -} diff --git a/rust/cloud-storage/.sqlx/query-e0b90388e3a9f7dbd1e6586cb0633b0d2d39d64dcc88a0f0c5cd310303e7dc92.json b/rust/cloud-storage/.sqlx/query-e0b90388e3a9f7dbd1e6586cb0633b0d2d39d64dcc88a0f0c5cd310303e7dc92.json deleted file mode 100644 index a6d8c54236..0000000000 --- a/rust/cloud-storage/.sqlx/query-e0b90388e3a9f7dbd1e6586cb0633b0d2d39d64dcc88a0f0c5cd310303e7dc92.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO property_definitions (\n id,\n organization_id, \n user_id, \n display_name, \n data_type, \n is_multi_select,\n specific_entity_type\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING \n id,\n organization_id,\n user_id,\n display_name,\n data_type as \"data_type: DataType\",\n is_multi_select,\n specific_entity_type as \"specific_entity_type: Option\",\n created_at,\n updated_at\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "organization_id", - "type_info": "Int4" - }, - { - "ordinal": 2, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "display_name", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "data_type: DataType", - "type_info": { - "Custom": { - "name": "property_data_type", - "kind": { - "Enum": [ - "BOOLEAN", - "DATE", - "NUMBER", - "STRING", - "SELECT_NUMBER", - "SELECT_STRING", - "ENTITY", - "LINK" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_multi_select", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "specific_entity_type: Option", - "type_info": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Int4", - "Text", - "Text", - { - "Custom": { - "name": "property_data_type", - "kind": { - "Enum": [ - "BOOLEAN", - "DATE", - "NUMBER", - "STRING", - "SELECT_NUMBER", - "SELECT_STRING", - "ENTITY", - "LINK" - ] - } - } - }, - "Bool", - { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - false, - true, - false, - false - ] - }, - "hash": "e0b90388e3a9f7dbd1e6586cb0633b0d2d39d64dcc88a0f0c5cd310303e7dc92" -} diff --git a/rust/cloud-storage/.sqlx/query-e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957.json b/rust/cloud-storage/.sqlx/query-e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957.json deleted file mode 100644 index edb97b0c59..0000000000 --- a/rust/cloud-storage/.sqlx/query-e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, segment_id, speaker_id, diarized_speaker_id, custom_speaker, content, started_at, ended_at, sequence_num\n FROM call_record_transcripts\n WHERE call_record_id = $1\n ORDER BY sequence_num ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "segment_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "speaker_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "diarized_speaker_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "custom_speaker", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "started_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "ended_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "sequence_num", - "type_info": "Int4" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true, - false, - true, - true, - false, - false, - true, - false - ] - }, - "hash": "e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957" -} diff --git a/rust/cloud-storage/.sqlx/query-e0f9ac039268a99b0d65cecf7ed18ee7fb04db4955d5dca83ca1c6c9e0eaa884.json b/rust/cloud-storage/.sqlx/query-e0f9ac039268a99b0d65cecf7ed18ee7fb04db4955d5dca83ca1c6c9e0eaa884.json deleted file mode 100644 index 20b26e117e..0000000000 --- a/rust/cloud-storage/.sqlx/query-e0f9ac039268a99b0d65cecf7ed18ee7fb04db4955d5dca83ca1c6c9e0eaa884.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM notification_email_sent\n WHERE user_id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "e0f9ac039268a99b0d65cecf7ed18ee7fb04db4955d5dca83ca1c6c9e0eaa884" -} diff --git a/rust/cloud-storage/.sqlx/query-e10378347cb7114449942c583bb9426932aba9ae4a09ab96ebfa32c46e8b6fcf.json b/rust/cloud-storage/.sqlx/query-e10378347cb7114449942c583bb9426932aba9ae4a09ab96ebfa32c46e8b6fcf.json deleted file mode 100644 index d7cd03f2bf..0000000000 --- a/rust/cloud-storage/.sqlx/query-e10378347cb7114449942c583bb9426932aba9ae4a09ab96ebfa32c46e8b6fcf.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n mr.message_id,\n c.id,\n c.link_id,\n c.email_address,\n COALESCE(mr.name, c.name) as \"name\", -- name from message overrides contact name\n c.original_photo_url,\n c.sfs_photo_url,\n c.created_at,\n c.updated_at,\n mr.recipient_type as \"recipient_type!: db::address::EmailRecipientType\"\n FROM email_messages m\n JOIN email_message_recipients mr ON m.id = mr.message_id\n JOIN email_contacts c ON mr.contact_id = c.id\n WHERE\n m.id = ANY($1)\n ORDER BY mr.message_id, mr.recipient_type\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 5, - "name": "original_photo_url", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "sfs_photo_url", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "recipient_type!: db::address::EmailRecipientType", - "type_info": { - "Custom": { - "name": "email_recipient_type", - "kind": { - "Enum": [ - "TO", - "CC", - "BCC" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - false, - null, - true, - true, - false, - false, - false - ] - }, - "hash": "e10378347cb7114449942c583bb9426932aba9ae4a09ab96ebfa32c46e8b6fcf" -} diff --git a/rust/cloud-storage/.sqlx/query-e11187ed1bd1944597258bbdefa8ec23de215edc1de1d020d418e2e89b17424e.json b/rust/cloud-storage/.sqlx/query-e11187ed1bd1944597258bbdefa8ec23de215edc1de1d020d418e2e89b17424e.json deleted file mode 100644 index 155a235c83..0000000000 --- a/rust/cloud-storage/.sqlx/query-e11187ed1bd1944597258bbdefa8ec23de215edc1de1d020d418e2e89b17424e.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"OrganizationDefaultSharePermission\"\n WHERE \"organization_id\" = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int4" - ] - }, - "nullable": [] - }, - "hash": "e11187ed1bd1944597258bbdefa8ec23de215edc1de1d020d418e2e89b17424e" -} diff --git a/rust/cloud-storage/.sqlx/query-e12622009d9e824222ae86c7b823e4f4ba653a16b53f9ffb7b99566d202dbd68.json b/rust/cloud-storage/.sqlx/query-e12622009d9e824222ae86c7b823e4f4ba653a16b53f9ffb7b99566d202dbd68.json deleted file mode 100644 index 41d0d39078..0000000000 --- a/rust/cloud-storage/.sqlx/query-e12622009d9e824222ae86c7b823e4f4ba653a16b53f9ffb7b99566d202dbd68.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n company_id,\n email,\n name,\n hidden,\n first_interaction,\n last_interaction,\n created_at,\n updated_at\n FROM crm_contacts\n WHERE company_id = $1\n AND ($2 OR hidden = FALSE)\n ORDER BY LOWER(COALESCE(name, email)) ASC, id DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "company_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "email", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "hidden", - "type_info": "Bool" - }, - { - "ordinal": 5, - "name": "first_interaction", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "last_interaction", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Bool" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - false - ] - }, - "hash": "e12622009d9e824222ae86c7b823e4f4ba653a16b53f9ffb7b99566d202dbd68" -} diff --git a/rust/cloud-storage/.sqlx/query-e17994ebc0589faabde0aa239f24c542292d06b39c744f2055038ac46c41bbdc.json b/rust/cloud-storage/.sqlx/query-e17994ebc0589faabde0aa239f24c542292d06b39c744f2055038ac46c41bbdc.json deleted file mode 100644 index 996b2268bd..0000000000 --- a/rust/cloud-storage/.sqlx/query-e17994ebc0589faabde0aa239f24c542292d06b39c744f2055038ac46c41bbdc.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, macro_id, fusionauth_user_id as \"fusionauth_user_id: Uuid\", github_username, github_user_id, created_at, updated_at\n FROM github_links\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "github_username", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "github_user_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "e17994ebc0589faabde0aa239f24c542292d06b39c744f2055038ac46c41bbdc" -} diff --git a/rust/cloud-storage/.sqlx/query-e17eb13c62a13ec9d5355a6f632b414792f6d87963138b7969b6a8f179e508a1.json b/rust/cloud-storage/.sqlx/query-e17eb13c62a13ec9d5355a6f632b414792f6d87963138b7969b6a8f179e508a1.json deleted file mode 100644 index 15dd620397..0000000000 --- a/rust/cloud-storage/.sqlx/query-e17eb13c62a13ec9d5355a6f632b414792f6d87963138b7969b6a8f179e508a1.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n id,\n email,\n \"organizationId\" as \"organization_id?\",\n macro_user_id as \"macro_user_id?\"\n FROM \"User\"\n WHERE \"email\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "email", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "organization_id?", - "type_info": "Int4" - }, - { - "ordinal": 3, - "name": "macro_user_id?", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - true, - false - ] - }, - "hash": "e17eb13c62a13ec9d5355a6f632b414792f6d87963138b7969b6a8f179e508a1" -} diff --git a/rust/cloud-storage/.sqlx/query-e1aae69a066a831096b61a7318b753897d59e28cedd21e439c20ff09268a831a.json b/rust/cloud-storage/.sqlx/query-e1aae69a066a831096b61a7318b753897d59e28cedd21e439c20ff09268a831a.json deleted file mode 100644 index 0aa41ab440..0000000000 --- a/rust/cloud-storage/.sqlx/query-e1aae69a066a831096b61a7318b753897d59e28cedd21e439c20ff09268a831a.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE bots\n SET name = COALESCE($2, name),\n handle = COALESCE($3, handle),\n description = COALESCE($4, description),\n avatar_url = COALESCE($5, avatar_url),\n updated_at = now()\n WHERE id = $1\n AND deleted_at IS NULL\n RETURNING\n id,\n kind,\n owner_user_id,\n team_id,\n name,\n handle,\n description,\n avatar_url,\n created_by,\n created_at,\n updated_at,\n deleted_at\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "kind", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "team_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "handle", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "description", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "avatar_url", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "created_by", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - true, - true, - false, - false, - true, - true, - true, - false, - false, - true - ] - }, - "hash": "e1aae69a066a831096b61a7318b753897d59e28cedd21e439c20ff09268a831a" -} diff --git a/rust/cloud-storage/.sqlx/query-e1f9c3663588dbc2e59aa729190c477b8ae7e89dde630c125c1364ee211c454b.json b/rust/cloud-storage/.sqlx/query-e1f9c3663588dbc2e59aa729190c477b8ae7e89dde630c125c1364ee211c454b.json deleted file mode 100644 index 5b3d78de3a..0000000000 --- a/rust/cloud-storage/.sqlx/query-e1f9c3663588dbc2e59aa729190c477b8ae7e89dde630c125c1364ee211c454b.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"macro_user\" (\"id\", \"username\", \"stripe_customer_id\", \"email\", \"has_trialed\")\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Text", - "Bool" - ] - }, - "nullable": [ - false - ] - }, - "hash": "e1f9c3663588dbc2e59aa729190c477b8ae7e89dde630c125c1364ee211c454b" -} diff --git a/rust/cloud-storage/.sqlx/query-e1fc9c7524d0d20844d2cad0402fd1a2058e31c5692d66a0107d9a45c9d83f7b.json b/rust/cloud-storage/.sqlx/query-e1fc9c7524d0d20844d2cad0402fd1a2058e31c5692d66a0107d9a45c9d83f7b.json deleted file mode 100644 index 7448650148..0000000000 --- a/rust/cloud-storage/.sqlx/query-e1fc9c7524d0d20844d2cad0402fd1a2058e31c5692d66a0107d9a45c9d83f7b.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE comms_channels\n SET name = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Varchar", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "e1fc9c7524d0d20844d2cad0402fd1a2058e31c5692d66a0107d9a45c9d83f7b" -} diff --git a/rust/cloud-storage/.sqlx/query-e263f6ef753e7f2c2debc7f63c8658670ee906d1814f037f1c20e3569ecfd270.json b/rust/cloud-storage/.sqlx/query-e263f6ef753e7f2c2debc7f63c8658670ee906d1814f037f1c20e3569ecfd270.json deleted file mode 100644 index 5d79450654..0000000000 --- a/rust/cloud-storage/.sqlx/query-e263f6ef753e7f2c2debc7f63c8658670ee906d1814f037f1c20e3569ecfd270.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"User\"\n SET \"hasOnboardingDocuments\" = $1\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Bool", - "Text" - ] - }, - "nullable": [] - }, - "hash": "e263f6ef753e7f2c2debc7f63c8658670ee906d1814f037f1c20e3569ecfd270" -} diff --git a/rust/cloud-storage/.sqlx/query-e28bfb9ffa642d99401e17cbbe174df5312e5fae38f374945f807ce68d0314a8.json b/rust/cloud-storage/.sqlx/query-e28bfb9ffa642d99401e17cbbe174df5312e5fae38f374945f807ce68d0314a8.json deleted file mode 100644 index 20764699a6..0000000000 --- a/rust/cloud-storage/.sqlx/query-e28bfb9ffa642d99401e17cbbe174df5312e5fae38f374945f807ce68d0314a8.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT team_id\n FROM team_user\n WHERE user_id = $1\n ORDER BY team_role DESC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "team_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "e28bfb9ffa642d99401e17cbbe174df5312e5fae38f374945f807ce68d0314a8" -} diff --git a/rust/cloud-storage/.sqlx/query-e2c696b916af0f7591d95a280d75c01e2e6e9dee46a74504fde48b78587934b6.json b/rust/cloud-storage/.sqlx/query-e2c696b916af0f7591d95a280d75c01e2e6e9dee46a74504fde48b78587934b6.json deleted file mode 100644 index aadf5b33e9..0000000000 --- a/rust/cloud-storage/.sqlx/query-e2c696b916af0f7591d95a280d75c01e2e6e9dee46a74504fde48b78587934b6.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_channel_participants (channel_id, user_id, role)\n VALUES ($1, $2, $3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - { - "Custom": { - "name": "comms_participant_role", - "kind": { - "Enum": [ - "owner", - "admin", - "member" - ] - } - } - } - ] - }, - "nullable": [] - }, - "hash": "e2c696b916af0f7591d95a280d75c01e2e6e9dee46a74504fde48b78587934b6" -} diff --git a/rust/cloud-storage/.sqlx/query-e2cadbb29d007b092339274024c3638798761653ca72db90aa2ce7417976ef61.json b/rust/cloud-storage/.sqlx/query-e2cadbb29d007b092339274024c3638798761653ca72db90aa2ce7417976ef61.json deleted file mode 100644 index a24ebef4da..0000000000 --- a/rust/cloud-storage/.sqlx/query-e2cadbb29d007b092339274024c3638798761653ca72db90aa2ce7417976ef61.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH old AS (\n SELECT link_id, message_id, send_time, sent, processing\n FROM email_scheduled_messages\n WHERE link_id = $1 AND message_id = $2\n ), updated AS (\n UPDATE email_scheduled_messages\n SET processing = true, updated_at = NOW()\n WHERE link_id = $1 AND message_id = $2\n )\n SELECT link_id, message_id, send_time, sent, processing\n FROM old\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "send_time", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "sent", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "processing", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false - ] - }, - "hash": "e2cadbb29d007b092339274024c3638798761653ca72db90aa2ce7417976ef61" -} diff --git a/rust/cloud-storage/.sqlx/query-e33fa0c9cec501d3d4a9c98d1c80717756b395ffb54f82d50691520065eb6036.json b/rust/cloud-storage/.sqlx/query-e33fa0c9cec501d3d4a9c98d1c80717756b395ffb54f82d50691520065eb6036.json deleted file mode 100644 index 057a1963fc..0000000000 --- a/rust/cloud-storage/.sqlx/query-e33fa0c9cec501d3d4a9c98d1c80717756b395ffb54f82d50691520065eb6036.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Pin\" WHERE \"pinnedItemId\" = ANY($1)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "e33fa0c9cec501d3d4a9c98d1c80717756b395ffb54f82d50691520065eb6036" -} diff --git a/rust/cloud-storage/.sqlx/query-e3502d4611d734fa9d27c17c3adb0785d06317da255894345de287a654f24fc3.json b/rust/cloud-storage/.sqlx/query-e3502d4611d734fa9d27c17c3adb0785d06317da255894345de287a654f24fc3.json deleted file mode 100644 index 1bb390dc5d..0000000000 --- a/rust/cloud-storage/.sqlx/query-e3502d4611d734fa9d27c17c3adb0785d06317da255894345de287a654f24fc3.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM property_definitions WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "e3502d4611d734fa9d27c17c3adb0785d06317da255894345de287a654f24fc3" -} diff --git a/rust/cloud-storage/.sqlx/query-e35594f0b886c9eaba037a0b13ccb3baf21cd37b638190889fb5383180a8e437.json b/rust/cloud-storage/.sqlx/query-e35594f0b886c9eaba037a0b13ccb3baf21cd37b638190889fb5383180a8e437.json deleted file mode 100644 index 3ac1b029f6..0000000000 --- a/rust/cloud-storage/.sqlx/query-e35594f0b886c9eaba037a0b13ccb3baf21cd37b638190889fb5383180a8e437.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n \"publicAccessLevel\" as \"access_level!\"\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"EmailThreadPermission\" WHERE \"threadId\" = $1\n )\n\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "access_level!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "e35594f0b886c9eaba037a0b13ccb3baf21cd37b638190889fb5383180a8e437" -} diff --git a/rust/cloud-storage/.sqlx/query-e3cbccf7e62eaa5d655b12fbf32d181f2bb79b25ac3c2300e2eab17c912697af.json b/rust/cloud-storage/.sqlx/query-e3cbccf7e62eaa5d655b12fbf32d181f2bb79b25ac3c2300e2eab17c912697af.json deleted file mode 100644 index be2165bfbe..0000000000 --- a/rust/cloud-storage/.sqlx/query-e3cbccf7e62eaa5d655b12fbf32d181f2bb79b25ac3c2300e2eab17c912697af.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH limited_companies AS (\n SELECT\n c.id,\n c.team_id,\n c.email_sync,\n c.hidden,\n c.first_interaction,\n c.last_interaction\n FROM crm_companies c\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = c.id::text\n AND uh.\"itemType\" = 'crm_company'\n AND uh.\"userId\" = $8\n WHERE c.team_id = $1\n AND c.hidden = COALESCE($5::bool, FALSE)\n AND EXISTS (\n SELECT 1 FROM team_crm_settings tcs\n WHERE tcs.team_id = $1 AND tcs.crm_enabled\n )\n AND (cardinality($2::uuid[]) = 0 OR c.id = ANY($2::uuid[]))\n -- Keyset seek (NULL = first page): keep only rows that\n -- sort strictly after the cursor.\n AND (\n $6::timestamptz IS NULL\n OR (\n CASE $4\n WHEN 'created_at' THEN c.first_interaction\n WHEN 'viewed_at' THEN uh.\"updatedAt\"\n WHEN 'viewed_updated'\n THEN COALESCE(uh.\"updatedAt\", c.last_interaction)\n ELSE c.last_interaction\n END,\n c.id::text\n ) < ($6, $7)\n )\n ORDER BY\n CASE $4\n WHEN 'created_at' THEN c.first_interaction\n WHEN 'viewed_at' THEN uh.\"updatedAt\"\n WHEN 'viewed_updated'\n THEN COALESCE(uh.\"updatedAt\", c.last_interaction)\n ELSE c.last_interaction\n END DESC NULLS LAST,\n c.id DESC\n LIMIT $3\n )\n SELECT\n lc.id AS \"company_id!\",\n lc.team_id AS \"company_team_id!\",\n lc.email_sync AS \"company_email_sync!\",\n lc.hidden AS \"company_hidden!\",\n lc.first_interaction AS \"company_created_at!\",\n lc.last_interaction AS \"company_updated_at!\",\n d.id AS \"domain_id?\",\n d.domain AS \"domain?\",\n d.created_at AS \"domain_created_at?\",\n dd.name AS \"dir_name?\",\n dd.description AS \"dir_description?\",\n uh.\"updatedAt\"::timestamptz AS \"viewed_at?\"\n FROM limited_companies lc\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = lc.id::text\n AND uh.\"itemType\" = 'crm_company'\n AND uh.\"userId\" = $8\n LEFT JOIN crm_domains d ON d.company_id = lc.id\n LEFT JOIN crm_domain_directory dd\n ON LOWER(dd.domain) = LOWER(d.domain)\n ORDER BY\n CASE $4\n WHEN 'created_at' THEN lc.first_interaction\n WHEN 'viewed_at' THEN uh.\"updatedAt\"\n WHEN 'viewed_updated'\n THEN COALESCE(uh.\"updatedAt\", lc.last_interaction)\n ELSE lc.last_interaction\n END DESC NULLS LAST,\n lc.id DESC,\n d.created_at ASC NULLS LAST\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "company_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "company_team_id!", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "company_email_sync!", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "company_hidden!", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "company_created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "company_updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "domain_id?", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "domain?", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "domain_created_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "dir_name?", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "dir_description?", - "type_info": "Text" - }, - { - "ordinal": 11, - "name": "viewed_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "UuidArray", - "Int8", - "Text", - "Bool", - "Timestamptz", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - true, - null - ] - }, - "hash": "e3cbccf7e62eaa5d655b12fbf32d181f2bb79b25ac3c2300e2eab17c912697af" -} diff --git a/rust/cloud-storage/.sqlx/query-e3ceebff1df78cef1b26e165cc4967a55f7b5355b7ff835eed0f93b4b8458ceb.json b/rust/cloud-storage/.sqlx/query-e3ceebff1df78cef1b26e165cc4967a55f7b5355b7ff835eed0f93b4b8458ceb.json deleted file mode 100644 index b6ac45e454..0000000000 --- a/rust/cloud-storage/.sqlx/query-e3ceebff1df78cef1b26e165cc4967a55f7b5355b7ff835eed0f93b4b8458ceb.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"SharePermission\" (\"isPublic\", \"publicAccessLevel\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, NOW(), NOW())\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Bool", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "e3ceebff1df78cef1b26e165cc4967a55f7b5355b7ff835eed0f93b4b8458ceb" -} diff --git a/rust/cloud-storage/.sqlx/query-e3e481b6dc2c40e088840b2f96b463fd3df8488cbce6001cad1bfe990b347b63.json b/rust/cloud-storage/.sqlx/query-e3e481b6dc2c40e088840b2f96b463fd3df8488cbce6001cad1bfe990b347b63.json deleted file mode 100644 index d429ec70af..0000000000 --- a/rust/cloud-storage/.sqlx/query-e3e481b6dc2c40e088840b2f96b463fd3df8488cbce6001cad1bfe990b347b63.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_contacts (id, link_id, email_address, name, original_photo_url, sfs_photo_url, updated_at)\n SELECT * FROM UNNEST($1::uuid[], $2::uuid[], $3::varchar[], $4::varchar[], $5::text[], $6::text[]), NOW()\n ON CONFLICT (link_id, email_address)\n DO UPDATE SET\n -- Overwrite existing name - contact names take precedence over names included with emails\n name = COALESCE(EXCLUDED.name, email_contacts.name),\n original_photo_url = COALESCE(EXCLUDED.original_photo_url, email_contacts.original_photo_url),\n sfs_photo_url = COALESCE(EXCLUDED.sfs_photo_url, email_contacts.sfs_photo_url),\n updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "UuidArray", - "VarcharArray", - "VarcharArray", - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "e3e481b6dc2c40e088840b2f96b463fd3df8488cbce6001cad1bfe990b347b63" -} diff --git a/rust/cloud-storage/.sqlx/query-e46bb839438b0dc805a6336d9ab0e64bad441f07222bfe922c9da81c7d2c3a47.json b/rust/cloud-storage/.sqlx/query-e46bb839438b0dc805a6336d9ab0e64bad441f07222bfe922c9da81c7d2c3a47.json deleted file mode 100644 index edb2659776..0000000000 --- a/rust/cloud-storage/.sqlx/query-e46bb839438b0dc805a6336d9ab0e64bad441f07222bfe922c9da81c7d2c3a47.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT document_id\n FROM document_email de\n INNER JOIN \"Document\" d on de.document_id = d.id\n INNER JOIN email_attachments ea on de.email_attachment_id = ea.id\n INNER JOIN email_messages em on ea.message_id = em.id\n WHERE em.link_id = $1 AND email_attachment_id = $2 AND d.\"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "e46bb839438b0dc805a6336d9ab0e64bad441f07222bfe922c9da81c7d2c3a47" -} diff --git a/rust/cloud-storage/.sqlx/query-e4bd72019eaf76d30d907a1fb8b3811f1d4c96c7049794890f30b1e831381010.json b/rust/cloud-storage/.sqlx/query-e4bd72019eaf76d30d907a1fb8b3811f1d4c96c7049794890f30b1e831381010.json deleted file mode 100644 index 99718ab20d..0000000000 --- a/rust/cloud-storage/.sqlx/query-e4bd72019eaf76d30d907a1fb8b3811f1d4c96c7049794890f30b1e831381010.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n u.id as user_profile_id, \n mui.first_name, \n mui.last_name\n FROM macro_user_info mui\n JOIN \"User\" u ON mui.macro_user_id = u.macro_user_id\n WHERE u.id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_profile_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "first_name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "last_name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - true, - true - ] - }, - "hash": "e4bd72019eaf76d30d907a1fb8b3811f1d4c96c7049794890f30b1e831381010" -} diff --git a/rust/cloud-storage/.sqlx/query-e4dda9b303d359c6c4e3c7b120136ae5c11cd902c373ed20d8119ba050c7dfbd.json b/rust/cloud-storage/.sqlx/query-e4dda9b303d359c6c4e3c7b120136ae5c11cd902c373ed20d8119ba050c7dfbd.json deleted file mode 100644 index a9bb85e11c..0000000000 --- a/rust/cloud-storage/.sqlx/query-e4dda9b303d359c6c4e3c7b120136ae5c11cd902c373ed20d8119ba050c7dfbd.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n id, \n link_id, \n provider_label_id, \n name, \n created_at,\n message_list_visibility as \"message_list_visibility: _\",\n label_list_visibility as \"label_list_visibility: _\",\n type as \"type_: _\"\n FROM email_labels\n WHERE link_id = $1\n ORDER BY name\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "provider_label_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "name", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "message_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_message_list_visibility_enum", - "kind": { - "Enum": [ - "Show", - "Hide" - ] - } - } - } - }, - { - "ordinal": 6, - "name": "label_list_visibility: _", - "type_info": { - "Custom": { - "name": "email_label_list_visibility_enum", - "kind": { - "Enum": [ - "LabelShow", - "LabelShowIfUnread", - "LabelHide" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "type_: _", - "type_info": { - "Custom": { - "name": "email_label_type_enum", - "kind": { - "Enum": [ - "System", - "User" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "e4dda9b303d359c6c4e3c7b120136ae5c11cd902c373ed20d8119ba050c7dfbd" -} diff --git a/rust/cloud-storage/.sqlx/query-e4e4c79727e7a83f2dfbb1d82a00a771eb3bd08aab63d2be4a1338fbde315f62.json b/rust/cloud-storage/.sqlx/query-e4e4c79727e7a83f2dfbb1d82a00a771eb3bd08aab63d2be4a1338fbde315f62.json deleted file mode 100644 index f0ae8ed700..0000000000 --- a/rust/cloud-storage/.sqlx/query-e4e4c79727e7a83f2dfbb1d82a00a771eb3bd08aab63d2be4a1338fbde315f62.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT *\n FROM frecency_aggregates\n WHERE user_id = $1 AND ($2::float8 IS NULL OR frecency_score < $2)\n ORDER BY frecency_score DESC\n LIMIT $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "entity_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "entity_type", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "user_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "event_count", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "frecency_score", - "type_info": "Float8" - }, - { - "ordinal": 6, - "name": "first_event", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "recent_events", - "type_info": "Jsonb" - } - ], - "parameters": { - "Left": [ - "Text", - "Float8", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "e4e4c79727e7a83f2dfbb1d82a00a771eb3bd08aab63d2be4a1338fbde315f62" -} diff --git a/rust/cloud-storage/.sqlx/query-e4eb2173ecfc39987f998d5075237c0b8aaf00c3eae94c06f069591f72445e14.json b/rust/cloud-storage/.sqlx/query-e4eb2173ecfc39987f998d5075237c0b8aaf00c3eae94c06f069591f72445e14.json deleted file mode 100644 index 0c2c26e399..0000000000 --- a/rust/cloud-storage/.sqlx/query-e4eb2173ecfc39987f998d5075237c0b8aaf00c3eae94c06f069591f72445e14.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH source_ids AS (\n SELECT DISTINCT stored_for_id, stored_for_auth_entity\n FROM UNNEST($1::text[], $2::text[])\n AS source_rows(stored_for_id, stored_for_auth_entity)\n ),\n deduped AS (\n SELECT DISTINCT ON (fe.foreign_entity_source, fe.foreign_entity_id)\n fe.id,\n fe.foreign_entity_id,\n fe.foreign_entity_source,\n fe.metadata,\n fe.stored_for_id,\n fe.stored_for_auth_entity,\n fe.created_at,\n fe.updated_at,\n CASE $3::text\n WHEN 'created_at' THEN fe.created_at\n ELSE fe.updated_at\n END AS sort_at\n FROM foreign_entity fe\n WHERE EXISTS (\n SELECT 1\n FROM source_ids s\n WHERE s.stored_for_id = fe.stored_for_id\n AND s.stored_for_auth_entity = fe.stored_for_auth_entity\n )\n AND (\n $4::text IS NULL\n OR jsonb_path_match(\n jsonb_build_object(\n 'id', fe.id::text,\n 'foreignEntityId', fe.foreign_entity_id,\n 'foreignEntitySource', fe.foreign_entity_source\n ),\n ($4::text)::jsonpath\n )\n )\n AND (\n $8::text IS NULL\n OR (fe.metadata -> 'participantGithubUserIds') ? $8::text\n )\n ORDER BY fe.foreign_entity_source, fe.foreign_entity_id, sort_at DESC, fe.id DESC\n )\n SELECT\n id as \"id!: Uuid\",\n foreign_entity_id as \"foreign_entity_id!: String\",\n foreign_entity_source as \"foreign_entity_source!: String\",\n metadata as \"metadata!: serde_json::Value\",\n stored_for_id as \"stored_for_id!: String\",\n stored_for_auth_entity as \"stored_for_auth_entity!: String\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\"\n FROM deduped\n WHERE $5::timestamptz IS NULL\n OR (sort_at, id) < ($5::timestamptz, $6::uuid)\n ORDER BY sort_at DESC, id DESC\n LIMIT $7\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "foreign_entity_id!: String", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "foreign_entity_source!: String", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "metadata!: serde_json::Value", - "type_info": "Jsonb" - }, - { - "ordinal": 4, - "name": "stored_for_id!: String", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "stored_for_auth_entity!: String", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "created_at!: DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at!: DateTime", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "TextArray", - "TextArray", - "Text", - "Text", - "Timestamptz", - "Uuid", - "Int8", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "e4eb2173ecfc39987f998d5075237c0b8aaf00c3eae94c06f069591f72445e14" -} diff --git a/rust/cloud-storage/.sqlx/query-e52ca994b4107db7e434502dc1f370666bf2efa34290ee8f1a6c89330b29522e.json b/rust/cloud-storage/.sqlx/query-e52ca994b4107db7e434502dc1f370666bf2efa34290ee8f1a6c89330b29522e.json deleted file mode 100644 index 4c4e54cbd8..0000000000 --- a/rust/cloud-storage/.sqlx/query-e52ca994b4107db7e434502dc1f370666bf2efa34290ee8f1a6c89330b29522e.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"OrganizationInvitation\" (\"organization_id\", \"email\")\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int4", - "Text" - ] - }, - "nullable": [] - }, - "hash": "e52ca994b4107db7e434502dc1f370666bf2efa34290ee8f1a6c89330b29522e" -} diff --git a/rust/cloud-storage/.sqlx/query-e54d13b2e6e397c0f1fbc83ea7dea28d255c30f360759bf57b7d0b31294c785f.json b/rust/cloud-storage/.sqlx/query-e54d13b2e6e397c0f1fbc83ea7dea28d255c30f360759bf57b7d0b31294c785f.json deleted file mode 100644 index d8c8d36d0b..0000000000 --- a/rust/cloud-storage/.sqlx/query-e54d13b2e6e397c0f1fbc83ea7dea28d255c30f360759bf57b7d0b31294c785f.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n SELECT * FROM UNNEST($1::text[], $2::text[], $3::text[], $4::timestamptz[], $5::timestamptz[])\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = EXCLUDED.\"updatedAt\"\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "TextArray", - "TextArray", - "TimestamptzArray", - "TimestamptzArray" - ] - }, - "nullable": [] - }, - "hash": "e54d13b2e6e397c0f1fbc83ea7dea28d255c30f360759bf57b7d0b31294c785f" -} diff --git a/rust/cloud-storage/.sqlx/query-e57d0a84a9cb67f987d4a53bfb123136039849d1c3c5ff81463691e0ae271f74.json b/rust/cloud-storage/.sqlx/query-e57d0a84a9cb67f987d4a53bfb123136039849d1c3c5ff81463691e0ae271f74.json deleted file mode 100644 index 1f42113c88..0000000000 --- a/rust/cloud-storage/.sqlx/query-e57d0a84a9cb67f987d4a53bfb123136039849d1c3c5ff81463691e0ae271f74.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT hidden\n FROM crm_companies\n WHERE id = $1 AND team_id = $2\n FOR UPDATE\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "hidden", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "e57d0a84a9cb67f987d4a53bfb123136039849d1c3c5ff81463691e0ae271f74" -} diff --git a/rust/cloud-storage/.sqlx/query-e63fd5c15b6e5327aecb2524ee304fcd25df705766b08c6fd8d39d10cacfb33e.json b/rust/cloud-storage/.sqlx/query-e63fd5c15b6e5327aecb2524ee304fcd25df705766b08c6fd8d39d10cacfb33e.json deleted file mode 100644 index 982ccd411b..0000000000 --- a/rust/cloud-storage/.sqlx/query-e63fd5c15b6e5327aecb2524ee304fcd25df705766b08c6fd8d39d10cacfb33e.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH matched AS (\n SELECT c.id, c.last_interaction AS updated_at\n FROM crm_companies c\n WHERE c.team_id = $1\n AND (\n (c.hidden = FALSE AND ($2::bool IS NULL OR $2 = FALSE))\n OR (c.hidden = TRUE AND $2 = TRUE AND $9)\n )\n AND (cardinality($3::uuid[]) = 0 OR c.id = ANY($3))\n AND EXISTS (\n SELECT 1\n FROM crm_domains d\n LEFT JOIN crm_domain_directory dd\n ON LOWER(dd.domain) = LOWER(d.domain)\n WHERE d.company_id = c.id\n AND (d.domain ILIKE $4 OR dd.name ILIKE $4)\n )\n AND ($7::timestamptz IS NULL OR (c.last_interaction, c.id) < ($7, $8))\n ORDER BY c.last_interaction DESC, c.id DESC\n LIMIT $5\n ),\n primary_domain AS (\n SELECT DISTINCT ON (d.company_id)\n d.company_id,\n COALESCE(dd.name, d.domain) AS display_name\n FROM crm_domains d\n LEFT JOIN crm_domain_directory dd\n ON LOWER(dd.domain) = LOWER(d.domain)\n WHERE d.company_id IN (SELECT id FROM matched)\n ORDER BY d.company_id, d.created_at ASC NULLS LAST\n )\n SELECT\n m.id AS \"id!\",\n COALESCE(pd.display_name, '') AS \"name!\",\n regexp_replace(\n COALESCE(pd.display_name, ''),\n $6, '\\1', 'gi'\n ) AS \"name_highlighted!\",\n m.updated_at AS \"updated_at!\"\n FROM matched m\n LEFT JOIN primary_domain pd ON pd.company_id = m.id\n ORDER BY m.updated_at DESC, m.id DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "name!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "name_highlighted!", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "updated_at!", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Bool", - "UuidArray", - "Text", - "Int8", - "Text", - "Timestamptz", - "Uuid", - "Bool" - ] - }, - "nullable": [ - false, - null, - null, - false - ] - }, - "hash": "e63fd5c15b6e5327aecb2524ee304fcd25df705766b08c6fd8d39d10cacfb33e" -} diff --git a/rust/cloud-storage/.sqlx/query-e694a7861bbcbc4102b2335afa8d201e0b71608319da53a9551cf3c83fbf1487.json b/rust/cloud-storage/.sqlx/query-e694a7861bbcbc4102b2335afa8d201e0b71608319da53a9551cf3c83fbf1487.json deleted file mode 100644 index 5c9497b6af..0000000000 --- a/rust/cloud-storage/.sqlx/query-e694a7861bbcbc4102b2335afa8d201e0b71608319da53a9551cf3c83fbf1487.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id\n FROM\n \"Document\" d\n WHERE\n d.id = ANY($1)\n AND d.\"owner\" = ANY($2)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray", - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "e694a7861bbcbc4102b2335afa8d201e0b71608319da53a9551cf3c83fbf1487" -} diff --git a/rust/cloud-storage/.sqlx/query-e6a3bb4ea73a16bb6664ecb2adda3573d0cb043fee8aeb7c46a61bcd534357e3.json b/rust/cloud-storage/.sqlx/query-e6a3bb4ea73a16bb6664ecb2adda3573d0cb043fee8aeb7c46a61bcd534357e3.json deleted file mode 100644 index a06abc2bc4..0000000000 --- a/rust/cloud-storage/.sqlx/query-e6a3bb4ea73a16bb6664ecb2adda3573d0cb043fee8aeb7c46a61bcd534357e3.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.name AS document_name,\n d.owner AS \"owner: MacroUserIdStr\",\n d.\"fileType\" AS file_type,\n dst.sub_type::text AS sub_type\n FROM \"Document\" d\n LEFT JOIN document_sub_type dst ON dst.document_id = d.id\n WHERE d.id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner: MacroUserIdStr", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "sub_type", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - false, - true, - null - ] - }, - "hash": "e6a3bb4ea73a16bb6664ecb2adda3573d0cb043fee8aeb7c46a61bcd534357e3" -} diff --git a/rust/cloud-storage/.sqlx/query-e6f63b89995a909f72c7c4012ab340e40f13453f1bec6cf41cb202930c44e84a.json b/rust/cloud-storage/.sqlx/query-e6f63b89995a909f72c7c4012ab340e40f13453f1bec6cf41cb202930c44e84a.json deleted file mode 100644 index 9c27aa5033..0000000000 --- a/rust/cloud-storage/.sqlx/query-e6f63b89995a909f72c7c4012ab340e40f13453f1bec6cf41cb202930c44e84a.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, channel_id, thread_id, created_at\n FROM comms_messages\n WHERE id = $1\n AND channel_id = $2\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [ - false, - false, - true, - false - ] - }, - "hash": "e6f63b89995a909f72c7c4012ab340e40f13453f1bec6cf41cb202930c44e84a" -} diff --git a/rust/cloud-storage/.sqlx/query-e6fe90cc7c58f3bcdcd2655b11c82ea99a8eda29d45570028deda4075173cfe6.json b/rust/cloud-storage/.sqlx/query-e6fe90cc7c58f3bcdcd2655b11c82ea99a8eda29d45570028deda4075173cfe6.json deleted file mode 100644 index 6edc935c13..0000000000 --- a/rust/cloud-storage/.sqlx/query-e6fe90cc7c58f3bcdcd2655b11c82ea99a8eda29d45570028deda4075173cfe6.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT t.email as \"email!\", \n EXISTS(SELECT 1 FROM notification_email_unsubscribe u WHERE u.email = t.email) as \"is_unsubscribed!\"\n FROM UNNEST($1::text[]) AS t(email)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "email!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "is_unsubscribed!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - null, - null - ] - }, - "hash": "e6fe90cc7c58f3bcdcd2655b11c82ea99a8eda29d45570028deda4075173cfe6" -} diff --git a/rust/cloud-storage/.sqlx/query-e70d5acce88125ae894d9d57356559c6e59e236c9650211a52fdc90602318cc3.json b/rust/cloud-storage/.sqlx/query-e70d5acce88125ae894d9d57356559c6e59e236c9650211a52fdc90602318cc3.json deleted file mode 100644 index 3ace0da282..0000000000 --- a/rust/cloud-storage/.sqlx/query-e70d5acce88125ae894d9d57356559c6e59e236c9650211a52fdc90602318cc3.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM email_filters WHERE id = $1 AND link_id = $2", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "e70d5acce88125ae894d9d57356559c6e59e236c9650211a52fdc90602318cc3" -} diff --git a/rust/cloud-storage/.sqlx/query-e7906bd42de06eff9291279715d9f6f1a860c05be610f8b620fe2426d59b2e62.json b/rust/cloud-storage/.sqlx/query-e7906bd42de06eff9291279715d9f6f1a860c05be610f8b620fe2426d59b2e62.json deleted file mode 100644 index 2f6ba5b042..0000000000 --- a/rust/cloud-storage/.sqlx/query-e7906bd42de06eff9291279715d9f6f1a860c05be610f8b620fe2426d59b2e62.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS(\n SELECT 1 FROM crm_contact_sources WHERE contact_id = $1 LIMIT 1\n ) AS \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "e7906bd42de06eff9291279715d9f6f1a860c05be610f8b620fe2426d59b2e62" -} diff --git a/rust/cloud-storage/.sqlx/query-e792f05e8ff1bba6124255b61ae57b1429cb22745012c396910f2fa549aedf79.json b/rust/cloud-storage/.sqlx/query-e792f05e8ff1bba6124255b61ae57b1429cb22745012c396910f2fa549aedf79.json deleted file mode 100644 index bfb19c8735..0000000000 --- a/rust/cloud-storage/.sqlx/query-e792f05e8ff1bba6124255b61ae57b1429cb22745012c396910f2fa549aedf79.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT cp.\"sharePermissionId\" as share_permission_id\n FROM \"ChatPermission\" cp\n WHERE cp.\"chatId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "e792f05e8ff1bba6124255b61ae57b1429cb22745012c396910f2fa549aedf79" -} diff --git a/rust/cloud-storage/.sqlx/query-e7d8ee1a89eda56e35de8795a6bf83e4ce9af436279fc24b7aafe8f0d41aab04.json b/rust/cloud-storage/.sqlx/query-e7d8ee1a89eda56e35de8795a6bf83e4ce9af436279fc24b7aafe8f0d41aab04.json deleted file mode 100644 index 20ec02a6fe..0000000000 --- a/rust/cloud-storage/.sqlx/query-e7d8ee1a89eda56e35de8795a6bf83e4ce9af436279fc24b7aafe8f0d41aab04.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT subscription_id\n FROM team\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "subscription_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - true - ] - }, - "hash": "e7d8ee1a89eda56e35de8795a6bf83e4ce9af436279fc24b7aafe8f0d41aab04" -} diff --git a/rust/cloud-storage/.sqlx/query-e7e9e2db72c9bf45273b0cfe11057a5dbce790572f2420457e24b0fd498c2024.json b/rust/cloud-storage/.sqlx/query-e7e9e2db72c9bf45273b0cfe11057a5dbce790572f2420457e24b0fd498c2024.json deleted file mode 100644 index 5d51a7025e..0000000000 --- a/rust/cloud-storage/.sqlx/query-e7e9e2db72c9bf45273b0cfe11057a5dbce790572f2420457e24b0fd498c2024.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_threads (id, provider_id, link_id, inbox_visible, is_read,\n latest_inbound_message_ts, latest_outbound_message_ts,\n latest_non_spam_message_ts)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n ON CONFLICT (link_id, provider_id) WHERE provider_id IS NOT NULL DO UPDATE\n SET\n latest_inbound_message_ts = EXCLUDED.latest_inbound_message_ts,\n updated_at = NOW()\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Uuid", - "Bool", - "Bool", - "Timestamptz", - "Timestamptz", - "Timestamptz" - ] - }, - "nullable": [ - false - ] - }, - "hash": "e7e9e2db72c9bf45273b0cfe11057a5dbce790572f2420457e24b0fd498c2024" -} diff --git a/rust/cloud-storage/.sqlx/query-e802b95145183d9bec6fb5f542fe93d392fdcf0fbebc9935f263f3f4fd1d8c34.json b/rust/cloud-storage/.sqlx/query-e802b95145183d9bec6fb5f542fe93d392fdcf0fbebc9935f263f3f4fd1d8c34.json deleted file mode 100644 index e30af0774f..0000000000 --- a/rust/cloud-storage/.sqlx/query-e802b95145183d9bec6fb5f542fe93d392fdcf0fbebc9935f263f3f4fd1d8c34.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n t.id,\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n (\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m_imp.thread_id = t.id\n AND l.name = 'IMPORTANT'\n AND l.link_id = t.link_id\n )\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Efficiently find and sort ONLY the top N+1 candidate threads.\n -- This subquery only touches `threads` and `user_history`.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.inbox_visible,\n t.is_read,\n t.project_id,\n t.latest_outbound_message_ts AS created_at,\n t.latest_outbound_message_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_outbound_message_ts)\n ELSE t.latest_outbound_message_ts\n END AS effective_ts\n FROM email_threads t\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n t.link_id = ANY($1)\n AND t.latest_outbound_message_ts IS NOT NULL\n \n -- Cursor logic moved inside for maximum efficiency\n AND (($3::timestamptz IS NULL) OR (\n -- This CASE must exactly match the one that defines `effective_ts`\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_outbound_message_ts)\n ELSE t.latest_outbound_message_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find its latest SENT, non-trashed message.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name,\n m.is_draft\n FROM email_messages m\n WHERE m.thread_id = t.id\n AND m.is_sent = TRUE -- This condition is specific to the \"Sent\" view\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id AND l.name = 'TRASH' AND l.link_id = t.link_id\n )\n ORDER BY m.internal_date_ts DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details for the final result set.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n -- Final ordering is preserved because the input `t` is already sorted.\n ORDER BY t.effective_ts DESC, t.updated_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "inbox_visible", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "sort_ts!", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "created_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at!", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "viewed_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "name?", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "snippet?", - "type_info": "Text" - }, - { - "ordinal": 11, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 12, - "name": "is_important!", - "type_info": "Bool" - }, - { - "ordinal": 13, - "name": "sender_email?", - "type_info": "Varchar" - }, - { - "ordinal": 14, - "name": "sender_name?", - "type_info": "Varchar" - }, - { - "ordinal": 15, - "name": "sender_photo_url?", - "type_info": "Text" - }, - { - "ordinal": 16, - "name": "owner_id!", - "type_info": "Text" - }, - { - "ordinal": 17, - "name": "link_id!", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "Int8", - "Timestamptz", - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - true, - false, - false, - null, - true, - true, - true, - false, - true, - true, - false, - null, - false, - null, - true, - false, - false - ] - }, - "hash": "e802b95145183d9bec6fb5f542fe93d392fdcf0fbebc9935f263f3f4fd1d8c34" -} diff --git a/rust/cloud-storage/.sqlx/query-e82694bed350dc3b7b22de00e655dfabb45e608cfd9a0a5a463fc6e1792393f2.json b/rust/cloud-storage/.sqlx/query-e82694bed350dc3b7b22de00e655dfabb45e608cfd9a0a5a463fc6e1792393f2.json deleted file mode 100644 index c73a91ea4d..0000000000 --- a/rust/cloud-storage/.sqlx/query-e82694bed350dc3b7b22de00e655dfabb45e608cfd9a0a5a463fc6e1792393f2.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH updated AS (\n UPDATE \"PdfHighlightAnchor\"\n SET \"threadId\" = $1\n WHERE uuid = $2\n RETURNING uuid, \"threadId\"\n )\n SELECT \n ph.uuid, \n ph.\"documentId\" as document_id,\n ph.owner, \n updated.\"threadId\" as thread_id, \n ph.page, \n ph.red,\n ph.green, \n ph.blue, \n ph.alpha, \n ph.type as highlight_type, \n ph.text, \n ph.\"pageViewportWidth\" as page_viewport_width, \n ph.\"pageViewportHeight\" as page_viewport_height, \n ph.\"createdAt\"::timestamptz as created_at, \n ph.\"updatedAt\"::timestamptz as updated_at, \n ph.\"deletedAt\"::timestamptz as deleted_at, \n array_agg((phr.id, phr.top, phr.left, phr.width, phr.height)) as \"highlight_rects!: Vec\"\n FROM updated \n JOIN \"PdfHighlightAnchor\" ph ON updated.uuid = ph.uuid\n JOIN \"PdfHighlightRect\" phr ON ph.uuid = phr.\"pdfHighlightAnchorId\"\n GROUP BY ph.uuid, ph.owner, updated.\"threadId\", ph.page, ph.red, ph.green, ph.blue, ph.alpha, ph.type, ph.text, ph.\"pageViewportWidth\", ph.\"pageViewportHeight\", ph.\"createdAt\", ph.\"updatedAt\", ph.\"deletedAt\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "thread_id", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "page", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "red", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "green", - "type_info": "Int4" - }, - { - "ordinal": 7, - "name": "blue", - "type_info": "Int4" - }, - { - "ordinal": 8, - "name": "alpha", - "type_info": "Float8" - }, - { - "ordinal": 9, - "name": "highlight_type", - "type_info": "Int4" - }, - { - "ordinal": 10, - "name": "text", - "type_info": "Text" - }, - { - "ordinal": 11, - "name": "page_viewport_width", - "type_info": "Float8" - }, - { - "ordinal": 12, - "name": "page_viewport_height", - "type_info": "Float8" - }, - { - "ordinal": 13, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 14, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 16, - "name": "highlight_rects!: Vec", - "type_info": "RecordArray" - } - ], - "parameters": { - "Left": [ - "Int8", - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - null, - null, - null, - null - ] - }, - "hash": "e82694bed350dc3b7b22de00e655dfabb45e608cfd9a0a5a463fc6e1792393f2" -} diff --git a/rust/cloud-storage/.sqlx/query-e82b920450ded09debcd219dbe7a34dbde810b6b60c8d8a0854ee49ac57a7c02.json b/rust/cloud-storage/.sqlx/query-e82b920450ded09debcd219dbe7a34dbde810b6b60c8d8a0854ee49ac57a7c02.json deleted file mode 100644 index 4913744755..0000000000 --- a/rust/cloud-storage/.sqlx/query-e82b920450ded09debcd219dbe7a34dbde810b6b60c8d8a0854ee49ac57a7c02.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM macro_user_links\n WHERE child_macro_id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "e82b920450ded09debcd219dbe7a34dbde810b6b60c8d8a0854ee49ac57a7c02" -} diff --git a/rust/cloud-storage/.sqlx/query-e84c6b52fb4748ec73c01340862a1fa3c65711050239ca5d7bcd59b04f920894.json b/rust/cloud-storage/.sqlx/query-e84c6b52fb4748ec73c01340862a1fa3c65711050239ca5d7bcd59b04f920894.json deleted file mode 100644 index 51a5fb5c98..0000000000 --- a/rust/cloud-storage/.sqlx/query-e84c6b52fb4748ec73c01340862a1fa3c65711050239ca5d7bcd59b04f920894.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE scheduled_action\n SET claimed = NULL, updated_at = now()\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "e84c6b52fb4748ec73c01340862a1fa3c65711050239ca5d7bcd59b04f920894" -} diff --git a/rust/cloud-storage/.sqlx/query-e8633dfaa07a4420442beb666625c7af4b6e8db0ea192d08aa971b20ebe69eb4.json b/rust/cloud-storage/.sqlx/query-e8633dfaa07a4420442beb666625c7af4b6e8db0ea192d08aa971b20ebe69eb4.json deleted file mode 100644 index 7b0116f0b2..0000000000 --- a/rust/cloud-storage/.sqlx/query-e8633dfaa07a4420442beb666625c7af4b6e8db0ea192d08aa971b20ebe69eb4.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Project\" \n WHERE id = ANY($1)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "e8633dfaa07a4420442beb666625c7af4b6e8db0ea192d08aa971b20ebe69eb4" -} diff --git a/rust/cloud-storage/.sqlx/query-e89719852a1e6166dbcebe6190a79a830b0e0a98c92967f15c2a89b96871bbd4.json b/rust/cloud-storage/.sqlx/query-e89719852a1e6166dbcebe6190a79a830b0e0a98c92967f15c2a89b96871bbd4.json deleted file mode 100644 index 30b3a2d488..0000000000 --- a/rust/cloud-storage/.sqlx/query-e89719852a1e6166dbcebe6190a79a830b0e0a98c92967f15c2a89b96871bbd4.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n industry,\n title,\n \"firstName\" as first_name,\n \"lastName\" as last_name,\n \"profilePicture\" as profile_picture,\n \"profilePictureHash\" as profile_picture_hash\n FROM \"User\"\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "industry", - "type_info": "Varchar" - }, - { - "ordinal": 1, - "name": "title", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "first_name", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "last_name", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "profile_picture", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "profile_picture_hash", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true, - true, - true, - true, - true, - true - ] - }, - "hash": "e89719852a1e6166dbcebe6190a79a830b0e0a98c92967f15c2a89b96871bbd4" -} diff --git a/rust/cloud-storage/.sqlx/query-e8bf9c53f71988ac7364aef5680e3cb74f7ddc5bacda3caf78db4b8672a8cf72.json b/rust/cloud-storage/.sqlx/query-e8bf9c53f71988ac7364aef5680e3cb74f7ddc5bacda3caf78db4b8672a8cf72.json deleted file mode 100644 index 5d56d3b171..0000000000 --- a/rust/cloud-storage/.sqlx/query-e8bf9c53f71988ac7364aef5680e3cb74f7ddc5bacda3caf78db4b8672a8cf72.json +++ /dev/null @@ -1,162 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id, provider_id, thread_id, provider_thread_id, replying_to_id,\n global_id, link_id, provider_history_id, internal_date_ts, snippet,\n size_estimate, subject, sent_at, has_attachments, is_read, is_starred,\n is_sent, is_draft, body_text, body_html_sanitized, body_macro,\n headers_jsonb, created_at, updated_at\n FROM email_messages\n WHERE is_draft = true\n AND provider_id IS NULL\n AND replying_to_id = ANY($1)\n AND link_id = ANY($2)\n AND thread_id <> $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 13, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 14, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 15, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 19, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 20, - "name": "body_macro", - "type_info": "Text" - }, - { - "ordinal": 21, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 22, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 23, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "UuidArray", - "UuidArray", - "Uuid" - ] - }, - "nullable": [ - false, - true, - false, - true, - true, - true, - false, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - true, - true, - true, - true, - false, - false - ] - }, - "hash": "e8bf9c53f71988ac7364aef5680e3cb74f7ddc5bacda3caf78db4b8672a8cf72" -} diff --git a/rust/cloud-storage/.sqlx/query-e951a324bc8638caa7d3d8b3793b5dbe6ce6bfec8f307f22aa7b2bab42a5a13a.json b/rust/cloud-storage/.sqlx/query-e951a324bc8638caa7d3d8b3793b5dbe6ce6bfec8f307f22aa7b2bab42a5a13a.json deleted file mode 100644 index b95788812b..0000000000 --- a/rust/cloud-storage/.sqlx/query-e951a324bc8638caa7d3d8b3793b5dbe6ce6bfec8f307f22aa7b2bab42a5a13a.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH upsert AS (\n INSERT INTO team_crm_settings (team_id, crm_enabled)\n VALUES ($1, TRUE)\n ON CONFLICT (team_id) DO UPDATE\n SET crm_enabled = EXCLUDED.crm_enabled,\n updated_at = now()\n WHERE team_crm_settings.crm_enabled IS DISTINCT FROM EXCLUDED.crm_enabled\n RETURNING 1\n )\n SELECT EXISTS (SELECT 1 FROM upsert) AS \"changed!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "changed!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "e951a324bc8638caa7d3d8b3793b5dbe6ce6bfec8f307f22aa7b2bab42a5a13a" -} diff --git a/rust/cloud-storage/.sqlx/query-ea674f0a9d53a37775cee691aaa387db892d3902606258ac7c1e87652eba76e7.json b/rust/cloud-storage/.sqlx/query-ea674f0a9d53a37775cee691aaa387db892d3902606258ac7c1e87652eba76e7.json deleted file mode 100644 index 9107558690..0000000000 --- a/rust/cloud-storage/.sqlx/query-ea674f0a9d53a37775cee691aaa387db892d3902606258ac7c1e87652eba76e7.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE saved_view\n SET \n name = COALESCE($2, name),\n config = CASE \n WHEN $3::jsonb IS NOT NULL THEN config || $3 \n ELSE config \n END,\n updated_at = NOW()\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Jsonb" - ] - }, - "nullable": [] - }, - "hash": "ea674f0a9d53a37775cee691aaa387db892d3902606258ac7c1e87652eba76e7" -} diff --git a/rust/cloud-storage/.sqlx/query-ea7622c671b053d5519e2fb2a996372002b31d070e2cbfe2d58ae763bc04b7c6.json b/rust/cloud-storage/.sqlx/query-ea7622c671b053d5519e2fb2a996372002b31d070e2cbfe2d58ae763bc04b7c6.json deleted file mode 100644 index 071f6b7b3a..0000000000 --- a/rust/cloud-storage/.sqlx/query-ea7622c671b053d5519e2fb2a996372002b31d070e2cbfe2d58ae763bc04b7c6.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_backfill_jobs (id, link_id, fusionauth_user_id, threads_requested_limit, status)\n VALUES ($1, $2, $3, $4, 'Init')\n RETURNING \n id, \n link_id, \n fusionauth_user_id,\n threads_requested_limit,\n total_threads,\n threads_retrieved_count,\n status as \"status: db::backfill::BackfillJobStatus\",\n created_at, \n updated_at\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "threads_requested_limit", - "type_info": "Int4" - }, - { - "ordinal": 4, - "name": "total_threads", - "type_info": "Int4" - }, - { - "ordinal": 5, - "name": "threads_retrieved_count", - "type_info": "Int4" - }, - { - "ordinal": 6, - "name": "status: db::backfill::BackfillJobStatus", - "type_info": { - "Custom": { - "name": "email_backfill_job_status", - "kind": { - "Enum": [ - "Init", - "InProgress", - "Complete", - "Cancelled", - "Failed" - ] - } - } - } - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text", - "Int4" - ] - }, - "nullable": [ - false, - true, - false, - true, - false, - false, - false, - false, - false - ] - }, - "hash": "ea7622c671b053d5519e2fb2a996372002b31d070e2cbfe2d58ae763bc04b7c6" -} diff --git a/rust/cloud-storage/.sqlx/query-eab276e5a26ac65dd643a67de93e82418e3a012a628f1b5cd3be1f490eeec9f1.json b/rust/cloud-storage/.sqlx/query-eab276e5a26ac65dd643a67de93e82418e3a012a628f1b5cd3be1f490eeec9f1.json deleted file mode 100644 index f47afb182d..0000000000 --- a/rust/cloud-storage/.sqlx/query-eab276e5a26ac65dd643a67de93e82418e3a012a628f1b5cd3be1f490eeec9f1.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT owner FROM \"Document\" WHERE id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "owner", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "eab276e5a26ac65dd643a67de93e82418e3a012a628f1b5cd3be1f490eeec9f1" -} diff --git a/rust/cloud-storage/.sqlx/query-eaeb36fcd2e9915d830eb2cdcefb6ab84c37acac7de5fdd06fefbec94abfe956.json b/rust/cloud-storage/.sqlx/query-eaeb36fcd2e9915d830eb2cdcefb6ab84c37acac7de5fdd06fefbec94abfe956.json deleted file mode 100644 index 07c61accc9..0000000000 --- a/rust/cloud-storage/.sqlx/query-eaeb36fcd2e9915d830eb2cdcefb6ab84c37acac7de5fdd06fefbec94abfe956.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT DISTINCT id AS \"user_id!\" FROM (\n SELECT m.sender_id AS id\n FROM comms_messages m\n JOIN comms_channel_participants cp\n ON cp.channel_id = m.channel_id AND cp.user_id = m.sender_id\n WHERE (m.id = $1 OR m.thread_id = $1) AND cp.left_at IS NULL\n UNION\n SELECT em.entity_id AS id\n FROM comms_entity_mentions em\n JOIN comms_messages m ON m.id::text = em.source_entity_id\n JOIN comms_channel_participants cp\n ON cp.channel_id = m.channel_id AND cp.user_id = em.entity_id\n WHERE (m.id = $1 OR m.thread_id = $1)\n AND em.source_entity_type = 'message'\n AND em.entity_type = 'user'\n AND cp.left_at IS NULL\n ) AS combined\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "eaeb36fcd2e9915d830eb2cdcefb6ab84c37acac7de5fdd06fefbec94abfe956" -} diff --git a/rust/cloud-storage/.sqlx/query-eaef3f030f89336b4530560c11b502fd1ef001d1247a155814df5c4510170aaa.json b/rust/cloud-storage/.sqlx/query-eaef3f030f89336b4530560c11b502fd1ef001d1247a155814df5c4510170aaa.json deleted file mode 100644 index 40b5070db6..0000000000 --- a/rust/cloud-storage/.sqlx/query-eaef3f030f89336b4530560c11b502fd1ef001d1247a155814df5c4510170aaa.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT u.id\n FROM \"User\" u\n WHERE u.id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false - ] - }, - "hash": "eaef3f030f89336b4530560c11b502fd1ef001d1247a155814df5c4510170aaa" -} diff --git a/rust/cloud-storage/.sqlx/query-eb2b040d1563d048ca6a81a00fb98bbc2e5d6c3c3063be43655ed32a3baf028f.json b/rust/cloud-storage/.sqlx/query-eb2b040d1563d048ca6a81a00fb98bbc2e5d6c3c3063be43655ed32a3baf028f.json deleted file mode 100644 index 36028beba4..0000000000 --- a/rust/cloud-storage/.sqlx/query-eb2b040d1563d048ca6a81a00fb98bbc2e5d6c3c3063be43655ed32a3baf028f.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"RolesOnUsers\" (\"userId\", \"roleId\")\n SELECT $1, unnest($2::text[])\n ON CONFLICT DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "eb2b040d1563d048ca6a81a00fb98bbc2e5d6c3c3063be43655ed32a3baf028f" -} diff --git a/rust/cloud-storage/.sqlx/query-eb8ac8459fac8423966a6daf85b51dd7c57b312cf54b2c47ba87c7ee99f0d9c1.json b/rust/cloud-storage/.sqlx/query-eb8ac8459fac8423966a6daf85b51dd7c57b312cf54b2c47ba87c7ee99f0d9c1.json deleted file mode 100644 index 588363d908..0000000000 --- a/rust/cloud-storage/.sqlx/query-eb8ac8459fac8423966a6daf85b51dd7c57b312cf54b2c47ba87c7ee99f0d9c1.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE user_notification\n SET deleted_at = now()\n WHERE user_id = $1\n AND notification_id = ANY($2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "UuidArray" - ] - }, - "nullable": [] - }, - "hash": "eb8ac8459fac8423966a6daf85b51dd7c57b312cf54b2c47ba87c7ee99f0d9c1" -} diff --git a/rust/cloud-storage/.sqlx/query-ebb5fcd2dc97d8c2f1ea17927db39e0fd0419594e068b4d43eaaddca5e46f6b0.json b/rust/cloud-storage/.sqlx/query-ebb5fcd2dc97d8c2f1ea17927db39e0fd0419594e068b4d43eaaddca5e46f6b0.json deleted file mode 100644 index 9481eb3d97..0000000000 --- a/rust/cloud-storage/.sqlx/query-ebb5fcd2dc97d8c2f1ea17927db39e0fd0419594e068b4d43eaaddca5e46f6b0.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n di.id, \n d.uploaded\n FROM \"DocumentInstance\" di\n JOIN \"Document\" d ON di.\"documentId\" = d.id\n WHERE di.\"documentId\" = $1\n ORDER BY di.\"createdAt\" DESC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "uploaded", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "ebb5fcd2dc97d8c2f1ea17927db39e0fd0419594e068b4d43eaaddca5e46f6b0" -} diff --git a/rust/cloud-storage/.sqlx/query-ebd8690a2a7068b485816697c3d6660c82f616f8f3456a6137b872043404d282.json b/rust/cloud-storage/.sqlx/query-ebd8690a2a7068b485816697c3d6660c82f616f8f3456a6137b872043404d282.json deleted file mode 100644 index d7dd77cdc8..0000000000 --- a/rust/cloud-storage/.sqlx/query-ebd8690a2a7068b485816697c3d6660c82f616f8f3456a6137b872043404d282.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT c.id, c.hidden\n FROM crm_companies c\n JOIN crm_domains d ON d.company_id = c.id\n WHERE c.team_id = $1\n AND LOWER(d.domain) = $2\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "hidden", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "ebd8690a2a7068b485816697c3d6660c82f616f8f3456a6137b872043404d282" -} diff --git a/rust/cloud-storage/.sqlx/query-ebe9fefb7d1b8505df6bd0ec41102abb947fea3cb939dadaa76b6e53bf896390.json b/rust/cloud-storage/.sqlx/query-ebe9fefb7d1b8505df6bd0ec41102abb947fea3cb939dadaa76b6e53bf896390.json deleted file mode 100644 index 36a18f0f8c..0000000000 --- a/rust/cloud-storage/.sqlx/query-ebe9fefb7d1b8505df6bd0ec41102abb947fea3cb939dadaa76b6e53bf896390.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_labels\n WHERE link_id = $1 AND provider_label_id = ANY($2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "ebe9fefb7d1b8505df6bd0ec41102abb947fea3cb939dadaa76b6e53bf896390" -} diff --git a/rust/cloud-storage/.sqlx/query-ec772d88365b803914f51dbe270f14ab6cdd2fe57c9d76e430cfef7234e92168.json b/rust/cloud-storage/.sqlx/query-ec772d88365b803914f51dbe270f14ab6cdd2fe57c9d76e430cfef7234e92168.json deleted file mode 100644 index 65e2bc75d4..0000000000 --- a/rust/cloud-storage/.sqlx/query-ec772d88365b803914f51dbe270f14ab6cdd2fe57c9d76e430cfef7234e92168.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO frecency_events (\n user_id,\n entity_type,\n event_type,\n timestamp,\n connection_id,\n entity_id,\n was_processed\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Timestamptz", - "Text", - "Text", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "ec772d88365b803914f51dbe270f14ab6cdd2fe57c9d76e430cfef7234e92168" -} diff --git a/rust/cloud-storage/.sqlx/query-ec9e817e0985ec4f58c8c6bc5817016f366e31f1ac3a8cf8696ed61434472afb.json b/rust/cloud-storage/.sqlx/query-ec9e817e0985ec4f58c8c6bc5817016f366e31f1ac3a8cf8696ed61434472afb.json deleted file mode 100644 index 579bd20b2e..0000000000 --- a/rust/cloud-storage/.sqlx/query-ec9e817e0985ec4f58c8c6bc5817016f366e31f1ac3a8cf8696ed61434472afb.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id,\n m.channel_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.edited_at::timestamptz AS \"edited_at?\",\n m.deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages m\n WHERE m.channel_id = $1\n AND m.thread_id IS NULL\n AND (m.deleted_at IS NULL OR EXISTS (\n SELECT 1 FROM comms_messages r\n WHERE r.thread_id = m.id AND r.deleted_at IS NULL\n ))\n AND ($2::timestamptz IS NULL OR (m.created_at, m.id) < ($2, $3))\n AND ($5::uuid[] IS NULL OR m.id = ANY($5))\n AND ($6::timestamptz IS NULL OR m.created_at >= $6)\n AND ($7::timestamptz IS NULL OR m.created_at < $7)\n AND (\n ($8::timestamptz IS NULL AND $9::timestamptz IS NULL)\n OR (\n ($8::timestamptz IS NULL OR m.created_at >= $8)\n AND ($9::timestamptz IS NULL OR m.created_at < $9)\n )\n OR EXISTS (\n SELECT 1 FROM comms_messages r\n WHERE r.thread_id = m.id\n AND r.deleted_at IS NULL\n AND ($8::timestamptz IS NULL OR r.created_at >= $8)\n AND ($9::timestamptz IS NULL OR r.created_at < $9)\n )\n )\n AND ($10::bool = FALSE OR (\n ($11::bool IS NULL OR EXISTS (\n SELECT 1\n FROM notification n\n JOIN user_notification un ON un.notification_id = n.id\n JOIN comms_messages msg ON msg.id = (n.metadata->>'messageId')::uuid\n WHERE un.user_id = $13::text\n AND un.deleted_at IS NULL\n AND un.done = $11\n AND n.event_item_type = 'channel'\n AND n.event_item_id = $1::uuid::text\n AND n.metadata->>'messageId' IS NOT NULL\n AND msg.channel_id = $1\n AND msg.deleted_at IS NULL\n AND COALESCE(msg.thread_id, msg.id) = m.id\n ))\n AND ($12::bool IS NULL OR EXISTS (\n SELECT 1\n FROM notification n\n JOIN user_notification un ON un.notification_id = n.id\n JOIN comms_messages msg ON msg.id = (n.metadata->>'messageId')::uuid\n WHERE un.user_id = $13::text\n AND un.deleted_at IS NULL\n AND (un.seen_at IS NOT NULL) = $12\n AND n.event_item_type = 'channel'\n AND n.event_item_id = $1::uuid::text\n AND n.metadata->>'messageId' IS NOT NULL\n AND msg.channel_id = $1\n AND msg.deleted_at IS NULL\n AND COALESCE(msg.thread_id, msg.id) = m.id\n ))\n ))\n ORDER BY m.created_at DESC, m.id DESC\n LIMIT $4\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "edited_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "deleted_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Timestamptz", - "Uuid", - "Int8", - "UuidArray", - "Timestamptz", - "Timestamptz", - "Timestamptz", - "Timestamptz", - "Bool", - "Bool", - "Bool", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - null, - null - ] - }, - "hash": "ec9e817e0985ec4f58c8c6bc5817016f366e31f1ac3a8cf8696ed61434472afb" -} diff --git a/rust/cloud-storage/.sqlx/query-ecccdffab47c2a500f64baee0488afa6d87a4f32cb7c852318de504fa6d20b2f.json b/rust/cloud-storage/.sqlx/query-ecccdffab47c2a500f64baee0488afa6d87a4f32cb7c852318de504fa6d20b2f.json deleted file mode 100644 index 9c0571f3ec..0000000000 --- a/rust/cloud-storage/.sqlx/query-ecccdffab47c2a500f64baee0488afa6d87a4f32cb7c852318de504fa6d20b2f.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"SharePermission\"\n WHERE id IN (\n SELECT \"sharePermissionId\"\n FROM \"ProjectPermission\"\n WHERE \"projectId\" = ANY($1)\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "ecccdffab47c2a500f64baee0488afa6d87a4f32cb7c852318de504fa6d20b2f" -} diff --git a/rust/cloud-storage/.sqlx/query-ecd16f9e0fd909784c5831fd73e705b6f12c716417f4d337aa68f73fb05a6dd1.json b/rust/cloud-storage/.sqlx/query-ecd16f9e0fd909784c5831fd73e705b6f12c716417f4d337aa68f73fb05a6dd1.json deleted file mode 100644 index 30ceb7ad1d..0000000000 --- a/rust/cloud-storage/.sqlx/query-ecd16f9e0fd909784c5831fd73e705b6f12c716417f4d337aa68f73fb05a6dd1.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT team_id, team_role as \"role!: TeamRole\"\n FROM team_user\n WHERE user_id = $1\n ORDER BY team_role DESC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "team_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "role!: TeamRole", - "type_info": { - "Custom": { - "name": "team_role", - "kind": { - "Enum": [ - "member", - "admin", - "owner" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "ecd16f9e0fd909784c5831fd73e705b6f12c716417f4d337aa68f73fb05a6dd1" -} diff --git a/rust/cloud-storage/.sqlx/query-ecd59864bf9f241755a73ed370146370580a768c26a4c9f6b1fe9d8244abdb36.json b/rust/cloud-storage/.sqlx/query-ecd59864bf9f241755a73ed370146370580a768c26a4c9f6b1fe9d8244abdb36.json deleted file mode 100644 index c1ea54d83e..0000000000 --- a/rust/cloud-storage/.sqlx/query-ecd59864bf9f241755a73ed370146370580a768c26a4c9f6b1fe9d8244abdb36.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as \"document_id\",\n d.owner,\n d.name as \"document_name\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"projectId\" as \"project_id\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n WHERE\n d.id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "branched_from_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "branched_from_version_id", - "type_info": "Int8" - }, - { - "ordinal": 5, - "name": "document_family_id", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - }, - { - "ordinal": 8, - "name": "project_id", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - false, - false, - true, - true, - true, - true, - true, - true, - null - ] - }, - "hash": "ecd59864bf9f241755a73ed370146370580a768c26a4c9f6b1fe9d8244abdb36" -} diff --git a/rust/cloud-storage/.sqlx/query-ecfb0370e15c5d6e326a8580ada1af7ccf5264e6ac8b7ce80fa9d68be5aed976.json b/rust/cloud-storage/.sqlx/query-ecfb0370e15c5d6e326a8580ada1af7ccf5264e6ac8b7ce80fa9d68be5aed976.json deleted file mode 100644 index f162e50496..0000000000 --- a/rust/cloud-storage/.sqlx/query-ecfb0370e15c5d6e326a8580ada1af7ccf5264e6ac8b7ce80fa9d68be5aed976.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"DocumentTextParts\" (id, reference, \"documentId\")\n SELECT id, ref, $1\n FROM UNNEST($2::text[], $3::text[])\n AS t(id, ref)\n ON CONFLICT (id) \n DO UPDATE SET \n reference = EXCLUDED.reference,\n \"documentId\" = EXCLUDED.\"documentId\"\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "TextArray", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "ecfb0370e15c5d6e326a8580ada1af7ccf5264e6ac8b7ce80fa9d68be5aed976" -} diff --git a/rust/cloud-storage/.sqlx/query-ed2f2e964af409b89eceb93c1b4ee3364dbb75bdc22047789492b8f73b3e2491.json b/rust/cloud-storage/.sqlx/query-ed2f2e964af409b89eceb93c1b4ee3364dbb75bdc22047789492b8f73b3e2491.json deleted file mode 100644 index 4c202caa69..0000000000 --- a/rust/cloud-storage/.sqlx/query-ed2f2e964af409b89eceb93c1b4ee3364dbb75bdc22047789492b8f73b3e2491.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at as \"edited_at: chrono::DateTime\",\n deleted_at as \"deleted_at: chrono::DateTime\"\n FROM (\n SELECT *\n FROM comms_messages\n WHERE channel_id = $1\n AND ($2::timestamptz IS NULL OR created_at >= $2)\n ORDER BY created_at DESC\n LIMIT $3\n ) AS latest_messages\n ORDER BY created_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "edited_at: chrono::DateTime", - "type_info": "Timestamp" - }, - { - "ordinal": 8, - "name": "deleted_at: chrono::DateTime", - "type_info": "Timestamp" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Timestamptz", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - true, - true - ] - }, - "hash": "ed2f2e964af409b89eceb93c1b4ee3364dbb75bdc22047789492b8f73b3e2491" -} diff --git a/rust/cloud-storage/.sqlx/query-ed43958d3b45528df34f3216299e47e00e2aa671b9d235abffa4ad8bfe126c12.json b/rust/cloud-storage/.sqlx/query-ed43958d3b45528df34f3216299e47e00e2aa671b9d235abffa4ad8bfe126c12.json deleted file mode 100644 index 104b3123e1..0000000000 --- a/rust/cloud-storage/.sqlx/query-ed43958d3b45528df34f3216299e47e00e2aa671b9d235abffa4ad8bfe126c12.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT macro_id\n FROM github_links\n WHERE github_user_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "ed43958d3b45528df34f3216299e47e00e2aa671b9d235abffa4ad8bfe126c12" -} diff --git a/rust/cloud-storage/.sqlx/query-ed817d80e4f40fc10b32eb79e9fba0a0dd46cc9b31980dba5a76dfb4540d6cd3.json b/rust/cloud-storage/.sqlx/query-ed817d80e4f40fc10b32eb79e9fba0a0dd46cc9b31980dba5a76dfb4540d6cd3.json deleted file mode 100644 index 19bb7c918a..0000000000 --- a/rust/cloud-storage/.sqlx/query-ed817d80e4f40fc10b32eb79e9fba0a0dd46cc9b31980dba5a76dfb4540d6cd3.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"jobId\" as job_id, \"jobType\" as job_type FROM \"UploadJob\" WHERE \"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "job_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "job_type", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "ed817d80e4f40fc10b32eb79e9fba0a0dd46cc9b31980dba5a76dfb4540d6cd3" -} diff --git a/rust/cloud-storage/.sqlx/query-ed8fbc6860616548698e4134d1f4404c910188de8a57899dd6cadea50025b4bf.json b/rust/cloud-storage/.sqlx/query-ed8fbc6860616548698e4134d1f4404c910188de8a57899dd6cadea50025b4bf.json deleted file mode 100644 index e5fa9a9e1a..0000000000 --- a/rust/cloud-storage/.sqlx/query-ed8fbc6860616548698e4134d1f4404c910188de8a57899dd6cadea50025b4bf.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"PdfHighlightAnchor\" (\n \"documentId\", \"owner\", \"page\", \"red\", \"green\", \"blue\", \"alpha\", \n \"type\", \"text\", \"pageViewportWidth\", \"pageViewportHeight\", \n \"threadId\", \"createdAt\", \"updatedAt\"\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14)\n RETURNING uuid\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "uuid", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Int4", - "Int4", - "Int4", - "Int4", - "Float8", - "Int4", - "Text", - "Float8", - "Float8", - "Int8", - "Timestamp", - "Timestamp" - ] - }, - "nullable": [ - false - ] - }, - "hash": "ed8fbc6860616548698e4134d1f4404c910188de8a57899dd6cadea50025b4bf" -} diff --git a/rust/cloud-storage/.sqlx/query-eda8f3dae4d58225307ad036c6a19e0d6bef4a3d9ea2791d75799c93b4f2350f.json b/rust/cloud-storage/.sqlx/query-eda8f3dae4d58225307ad036c6a19e0d6bef4a3d9ea2791d75799c93b4f2350f.json deleted file mode 100644 index bb45b730c4..0000000000 --- a/rust/cloud-storage/.sqlx/query-eda8f3dae4d58225307ad036c6a19e0d6bef4a3d9ea2791d75799c93b4f2350f.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.channel_id AS \"channel_id: uuid::Uuid\",\n c.name AS \"channel_name?\", -- Option\n m.id AS \"message_id: uuid::Uuid\",\n m.thread_id AS \"thread_id?: uuid::Uuid\",\n m.sender_id AS \"sender_id!\", -- String\n m.content AS \"message_content!\", -- String\n m.created_at AS \"message_created_at!: chrono::DateTime\",\n em.created_at AS \"attachment_created_at!: chrono::DateTime\"\n FROM comms_entity_mentions em\n JOIN comms_messages m ON (em.source_entity_id = m.id::text AND em.source_entity_type = 'message')\n JOIN comms_channels c ON m.channel_id = c.id\n JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE em.entity_type = $1\n AND em.entity_id = $2\n AND cp.user_id = $3\n AND cp.left_at IS NULL\n AND m.deleted_at IS NULL\n ORDER BY em.created_at DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "channel_id: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_name?", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "message_id: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "thread_id?: uuid::Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "sender_id!", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "message_content!", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "message_created_at!: chrono::DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "attachment_created_at!: chrono::DateTime", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Text" - ] - }, - "nullable": [ - false, - true, - false, - true, - false, - false, - false, - false - ] - }, - "hash": "eda8f3dae4d58225307ad036c6a19e0d6bef4a3d9ea2791d75799c93b4f2350f" -} diff --git a/rust/cloud-storage/.sqlx/query-edbec9f2fb09a6f4d6c51f137639b7ce0b5c5fdf66aba0a6efc62530ec611766.json b/rust/cloud-storage/.sqlx/query-edbec9f2fb09a6f4d6c51f137639b7ce0b5c5fdf66aba0a6efc62530ec611766.json deleted file mode 100644 index 20ff5c1ef8..0000000000 --- a/rust/cloud-storage/.sqlx/query-edbec9f2fb09a6f4d6c51f137639b7ce0b5c5fdf66aba0a6efc62530ec611766.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id as \"db_id\", sfs_id\n FROM email_attachments_sfs\n WHERE\n attachment_id IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "db_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "sfs_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - false - ] - }, - "hash": "edbec9f2fb09a6f4d6c51f137639b7ce0b5c5fdf66aba0a6efc62530ec611766" -} diff --git a/rust/cloud-storage/.sqlx/query-edce1ca1979c9bd7c42f7e89d80a8d25037d25951b1f406dddb8d62cc13f74f0.json b/rust/cloud-storage/.sqlx/query-edce1ca1979c9bd7c42f7e89d80a8d25037d25951b1f406dddb8d62cc13f74f0.json deleted file mode 100644 index 13653d45bf..0000000000 --- a/rust/cloud-storage/.sqlx/query-edce1ca1979c9bd7c42f7e89d80a8d25037d25951b1f406dddb8d62cc13f74f0.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\nSELECT\n ep.id as entity_property_id,\n ep.entity_id,\n ep.entity_type as \"entity_type: EntityType\",\n ep.property_definition_id,\n ep.values as \"values: sqlx::types::JsonValue\",\n ep.created_at as entity_property_created_at,\n ep.updated_at as entity_property_updated_at,\n pd.organization_id as definition_organization_id,\n pd.user_id as definition_user_id,\n pd.display_name,\n pd.data_type as \"data_type: DataType\",\n pd.is_multi_select,\n pd.specific_entity_type as \"specific_entity_type: Option\",\n pd.created_at as definition_created_at,\n pd.updated_at as definition_updated_at,\n pd.is_system as definition_is_system\nFROM entity_properties ep\nINNER JOIN property_definitions pd ON ep.property_definition_id = pd.id\nWHERE (ep.entity_id, ep.entity_type) IN (\n SELECT * FROM UNNEST($1::TEXT[], $2::property_entity_type[])\n)\nAND pd.id = ANY($3::UUID[])\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_property_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "entity_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "entity_type: EntityType", - "type_info": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - }, - { - "ordinal": 3, - "name": "property_definition_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "values: sqlx::types::JsonValue", - "type_info": "Jsonb" - }, - { - "ordinal": 5, - "name": "entity_property_created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "entity_property_updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "definition_organization_id", - "type_info": "Int4" - }, - { - "ordinal": 8, - "name": "definition_user_id", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "display_name", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "data_type: DataType", - "type_info": { - "Custom": { - "name": "property_data_type", - "kind": { - "Enum": [ - "BOOLEAN", - "DATE", - "NUMBER", - "STRING", - "SELECT_NUMBER", - "SELECT_STRING", - "ENTITY", - "LINK" - ] - } - } - } - }, - { - "ordinal": 11, - "name": "is_multi_select", - "type_info": "Bool" - }, - { - "ordinal": 12, - "name": "specific_entity_type: Option", - "type_info": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - }, - { - "ordinal": 13, - "name": "definition_created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 14, - "name": "definition_updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "definition_is_system", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "TextArray", - { - "Custom": { - "name": "property_entity_type[]", - "kind": { - "Array": { - "Custom": { - "name": "property_entity_type", - "kind": { - "Enum": [ - "CHANNEL", - "CHAT", - "DOCUMENT", - "PROJECT", - "THREAD", - "USER", - "COMPANY", - "TASK" - ] - } - } - } - } - } - }, - "UuidArray" - ] - }, - "nullable": [ - false, - false, - false, - false, - true, - false, - false, - true, - true, - false, - false, - false, - true, - false, - false, - false - ] - }, - "hash": "edce1ca1979c9bd7c42f7e89d80a8d25037d25951b1f406dddb8d62cc13f74f0" -} diff --git a/rust/cloud-storage/.sqlx/query-edd4b100c5da632fdd5b89c67b8a478e593d8236cf4efcebaa15ab4046917cc3.json b/rust/cloud-storage/.sqlx/query-edd4b100c5da632fdd5b89c67b8a478e593d8236cf4efcebaa15ab4046917cc3.json deleted file mode 100644 index 46c54c63f4..0000000000 --- a/rust/cloud-storage/.sqlx/query-edd4b100c5da632fdd5b89c67b8a478e593d8236cf4efcebaa15ab4046917cc3.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n rp.\"permissionId\" AS id,\n p.\"description\" AS description\n FROM\n \"User\" u\n INNER JOIN\n \"RolesOnUsers\" ru ON u.id = ru.\"userId\"\n INNER JOIN\n \"RolesOnPermissions\" rp ON ru.\"roleId\" = rp.\"roleId\"\n INNER JOIN\n \"Permission\" p ON rp.\"permissionId\" = p.id\n WHERE\n u.id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "description", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "edd4b100c5da632fdd5b89c67b8a478e593d8236cf4efcebaa15ab4046917cc3" -} diff --git a/rust/cloud-storage/.sqlx/query-ee0142b21993b387a2279768973366203093e40f519275702f3bcfa711812321.json b/rust/cloud-storage/.sqlx/query-ee0142b21993b387a2279768973366203093e40f519275702f3bcfa711812321.json deleted file mode 100644 index efc90ee86b..0000000000 --- a/rust/cloud-storage/.sqlx/query-ee0142b21993b387a2279768973366203093e40f519275702f3bcfa711812321.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE team\n SET subscription_id = $2\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "ee0142b21993b387a2279768973366203093e40f519275702f3bcfa711812321" -} diff --git a/rust/cloud-storage/.sqlx/query-ee374b0fcc0e59609fbc6368541c65cc9e27d786fd2648040cc9f2c6a3295d8e.json b/rust/cloud-storage/.sqlx/query-ee374b0fcc0e59609fbc6368541c65cc9e27d786fd2648040cc9f2c6a3295d8e.json deleted file mode 100644 index 32f9a9bade..0000000000 --- a/rust/cloud-storage/.sqlx/query-ee374b0fcc0e59609fbc6368541c65cc9e27d786fd2648040cc9f2c6a3295d8e.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH participant_ids AS (\n SELECT user_id\n FROM call_record_participants\n WHERE call_record_id = $1\n ),\n participant_team_ids AS (\n SELECT DISTINCT tu.team_id\n FROM team_user tu\n JOIN participant_ids p ON p.user_id = tu.user_id\n ),\n candidate_user_ids AS (\n SELECT user_id FROM participant_ids\n UNION\n SELECT tu.user_id\n FROM team_user tu\n JOIN participant_team_ids t ON t.team_id = tu.team_id\n )\n SELECT DISTINCT user_id AS \"user_id!\"\n FROM candidate_user_ids\n ORDER BY user_id ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "ee374b0fcc0e59609fbc6368541c65cc9e27d786fd2648040cc9f2c6a3295d8e" -} diff --git a/rust/cloud-storage/.sqlx/query-eec442b23af1030f7f161a304469b00fa7c2c474980361fbc5d98839dc40773f.json b/rust/cloud-storage/.sqlx/query-eec442b23af1030f7f161a304469b00fa7c2c474980361fbc5d98839dc40773f.json deleted file mode 100644 index 27c368ad1f..0000000000 --- a/rust/cloud-storage/.sqlx/query-eec442b23af1030f7f161a304469b00fa7c2c474980361fbc5d98839dc40773f.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Chat\" \n WHERE id = ANY($1)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "eec442b23af1030f7f161a304469b00fa7c2c474980361fbc5d98839dc40773f" -} diff --git a/rust/cloud-storage/.sqlx/query-eed44d491b8b8bce4f111b92565b371093099209a80349d311f45a0aa4b9cca9.json b/rust/cloud-storage/.sqlx/query-eed44d491b8b8bce4f111b92565b371093099209a80349d311f45a0aa4b9cca9.json deleted file mode 100644 index 37b4e188f4..0000000000 --- a/rust/cloud-storage/.sqlx/query-eed44d491b8b8bce4f111b92565b371093099209a80349d311f45a0aa4b9cca9.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n kind,\n owner_user_id,\n team_id,\n name,\n handle,\n description,\n avatar_url,\n created_by,\n created_at,\n updated_at,\n deleted_at\n FROM bots\n WHERE kind = 'owned'\n AND deleted_at IS NULL\n AND (\n owner_user_id = $1\n OR team_id IN (\n SELECT team_id FROM team_user WHERE user_id = $1\n )\n )\n ORDER BY created_at ASC, id ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "kind", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "owner_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "team_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "handle", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "description", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "avatar_url", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "created_by", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "deleted_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - true, - true, - false, - false, - true, - true, - true, - false, - false, - true - ] - }, - "hash": "eed44d491b8b8bce4f111b92565b371093099209a80349d311f45a0aa4b9cca9" -} diff --git a/rust/cloud-storage/.sqlx/query-ef427e34315b97ade2b38516eb477af19b53c578df995fbbcef546aaba55176d.json b/rust/cloud-storage/.sqlx/query-ef427e34315b97ade2b38516eb477af19b53c578df995fbbcef546aaba55176d.json deleted file mode 100644 index 7044065d55..0000000000 --- a/rust/cloud-storage/.sqlx/query-ef427e34315b97ade2b38516eb477af19b53c578df995fbbcef546aaba55176d.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id FROM \"Project\" WHERE \"userId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "ef427e34315b97ade2b38516eb477af19b53c578df995fbbcef546aaba55176d" -} diff --git a/rust/cloud-storage/.sqlx/query-ef656114c7f86aa883e6360df927ea16b18efcff635cbb4d8146ff4f3ba67416.json b/rust/cloud-storage/.sqlx/query-ef656114c7f86aa883e6360df927ea16b18efcff635cbb4d8146ff4f3ba67416.json deleted file mode 100644 index 82ec51214d..0000000000 --- a/rust/cloud-storage/.sqlx/query-ef656114c7f86aa883e6360df927ea16b18efcff635cbb4d8146ff4f3ba67416.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS (\n SELECT 1 FROM crm_thread\n WHERE id = $1\n AND deleted_at IS NULL\n AND (company_id = $2 OR contact_id = $3)\n ) AS \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "ef656114c7f86aa883e6360df927ea16b18efcff635cbb4d8146ff4f3ba67416" -} diff --git a/rust/cloud-storage/.sqlx/query-efc06b0244fc40aa8fbf3721d76886d7b8909f3150f779b64a56a456027c0d26.json b/rust/cloud-storage/.sqlx/query-efc06b0244fc40aa8fbf3721d76886d7b8909f3150f779b64a56a456027c0d26.json deleted file mode 100644 index 848a23ff17..0000000000 --- a/rust/cloud-storage/.sqlx/query-efc06b0244fc40aa8fbf3721d76886d7b8909f3150f779b64a56a456027c0d26.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"UserDocumentViewLocation\"\n WHERE user_id = $1 AND document_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "efc06b0244fc40aa8fbf3721d76886d7b8909f3150f779b64a56a456027c0d26" -} diff --git a/rust/cloud-storage/.sqlx/query-efc740cd935fb67ef5c2a75b3c37cf16bf09d6e52e5f6e5c5b107ef8244a141d.json b/rust/cloud-storage/.sqlx/query-efc740cd935fb67ef5c2a75b3c37cf16bf09d6e52e5f6e5c5b107ef8244a141d.json deleted file mode 100644 index 1cbb49a96b..0000000000 --- a/rust/cloud-storage/.sqlx/query-efc740cd935fb67ef5c2a75b3c37cf16bf09d6e52e5f6e5c5b107ef8244a141d.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO user_notification (notification_id, user_id)\n SELECT $1, user_id\n FROM UNNEST($2::text[]) as user_id\n RETURNING created_at::timestamptz as \"created_at!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "created_at!", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [ - null - ] - }, - "hash": "efc740cd935fb67ef5c2a75b3c37cf16bf09d6e52e5f6e5c5b107ef8244a141d" -} diff --git a/rust/cloud-storage/.sqlx/query-f02b1d7d15a7657f2f5132db649f9a4097ff7320d336de3ea25fe1899a7826f3.json b/rust/cloud-storage/.sqlx/query-f02b1d7d15a7657f2f5132db649f9a4097ff7320d336de3ea25fe1899a7826f3.json deleted file mode 100644 index 02caa915ac..0000000000 --- a/rust/cloud-storage/.sqlx/query-f02b1d7d15a7657f2f5132db649f9a4097ff7320d336de3ea25fe1899a7826f3.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_backfill_jobs\n SET status = $1::email_backfill_job_status, updated_at = now()\n WHERE id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - { - "Custom": { - "name": "email_backfill_job_status", - "kind": { - "Enum": [ - "Init", - "InProgress", - "Complete", - "Cancelled", - "Failed" - ] - } - } - }, - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "f02b1d7d15a7657f2f5132db649f9a4097ff7320d336de3ea25fe1899a7826f3" -} diff --git a/rust/cloud-storage/.sqlx/query-f04a97eb13684a35daf6c5ff52890da499864d7f8e97a390a11b384d6429fa13.json b/rust/cloud-storage/.sqlx/query-f04a97eb13684a35daf6c5ff52890da499864d7f8e97a390a11b384d6429fa13.json deleted file mode 100644 index 5b722afbd3..0000000000 --- a/rust/cloud-storage/.sqlx/query-f04a97eb13684a35daf6c5ff52890da499864d7f8e97a390a11b384d6429fa13.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM comms_channels\n WHERE id = $1\n AND EXISTS (\n SELECT 1\n FROM comms_channel_participants\n WHERE channel_id = $1\n AND user_id = $2\n AND role = 'owner'::comms_participant_role\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "f04a97eb13684a35daf6c5ff52890da499864d7f8e97a390a11b384d6429fa13" -} diff --git a/rust/cloud-storage/.sqlx/query-f04af5974db6b600e88a7c1fd3f39a09a5f4d3185af10d1a7a32e8035b2c5ec1.json b/rust/cloud-storage/.sqlx/query-f04af5974db6b600e88a7c1fd3f39a09a5f4d3185af10d1a7a32e8035b2c5ec1.json deleted file mode 100644 index d5989a39ec..0000000000 --- a/rust/cloud-storage/.sqlx/query-f04af5974db6b600e88a7c1fd3f39a09a5f4d3185af10d1a7a32e8035b2c5ec1.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE team\n SET paying = $2\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Bool" - ] - }, - "nullable": [] - }, - "hash": "f04af5974db6b600e88a7c1fd3f39a09a5f4d3185af10d1a7a32e8035b2c5ec1" -} diff --git a/rust/cloud-storage/.sqlx/query-f0c307220a9a497860462656f53da3e5786501c7b07a41983acb8459df610b8b.json b/rust/cloud-storage/.sqlx/query-f0c307220a9a497860462656f53da3e5786501c7b07a41983acb8459df610b8b.json deleted file mode 100644 index 87007e2972..0000000000 --- a/rust/cloud-storage/.sqlx/query-f0c307220a9a497860462656f53da3e5786501c7b07a41983acb8459df610b8b.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id,\n channel_id,\n thread_id,\n sender_id,\n content,\n created_at,\n updated_at,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages\n WHERE channel_id = $1\n AND (created_at, id) < ($2, $3)\n ORDER BY created_at DESC, id DESC\n LIMIT $4\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "edited_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 8, - "name": "deleted_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Timestamptz", - "Uuid", - "Int8" - ] - }, - "nullable": [ - false, - false, - true, - false, - false, - false, - false, - null, - null - ] - }, - "hash": "f0c307220a9a497860462656f53da3e5786501c7b07a41983acb8459df610b8b" -} diff --git a/rust/cloud-storage/.sqlx/query-f1346adcde7c4a86859ebc936ac4c8ae492febce05ce35df78bced81c1070f01.json b/rust/cloud-storage/.sqlx/query-f1346adcde7c4a86859ebc936ac4c8ae492febce05ce35df78bced81c1070f01.json deleted file mode 100644 index 2a382f9975..0000000000 --- a/rust/cloud-storage/.sqlx/query-f1346adcde7c4a86859ebc936ac4c8ae492febce05ce35df78bced81c1070f01.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM macro_user\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "f1346adcde7c4a86859ebc936ac4c8ae492febce05ce35df78bced81c1070f01" -} diff --git a/rust/cloud-storage/.sqlx/query-f1afe1bb26ffc5e97fe3a5db39ca0fe594d449939c99f3dd8e338aff9d26753b.json b/rust/cloud-storage/.sqlx/query-f1afe1bb26ffc5e97fe3a5db39ca0fe594d449939c99f3dd8e338aff9d26753b.json deleted file mode 100644 index cbe9dea652..0000000000 --- a/rust/cloud-storage/.sqlx/query-f1afe1bb26ffc5e97fe3a5db39ca0fe594d449939c99f3dd8e338aff9d26753b.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM comms_entity_mentions\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "f1afe1bb26ffc5e97fe3a5db39ca0fe594d449939c99f3dd8e338aff9d26753b" -} diff --git a/rust/cloud-storage/.sqlx/query-f249e23685d626a0e63015828655a4dc7053d1e1d6425b9de339986d41c8e180.json b/rust/cloud-storage/.sqlx/query-f249e23685d626a0e63015828655a4dc7053d1e1d6425b9de339986d41c8e180.json deleted file mode 100644 index 4153fa8d99..0000000000 --- a/rust/cloud-storage/.sqlx/query-f249e23685d626a0e63015828655a4dc7053d1e1d6425b9de339986d41c8e180.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Document\" (id, owner, name, \"fileType\", \"projectId\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, $5, $6, $6)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Text", - "Text", - "Timestamp" - ] - }, - "nullable": [] - }, - "hash": "f249e23685d626a0e63015828655a4dc7053d1e1d6425b9de339986d41c8e180" -} diff --git a/rust/cloud-storage/.sqlx/query-f2a71de44d62190ec6ccad44b2e3a5b00bf57e5f0b948b2d882d2d036375d913.json b/rust/cloud-storage/.sqlx/query-f2a71de44d62190ec6ccad44b2e3a5b00bf57e5f0b948b2d882d2d036375d913.json deleted file mode 100644 index c793fa1d88..0000000000 --- a/rust/cloud-storage/.sqlx/query-f2a71de44d62190ec6ccad44b2e3a5b00bf57e5f0b948b2d882d2d036375d913.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO comms_channel_participants (channel_id, role, user_id)\n VALUES ($1, $2, $3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - { - "Custom": { - "name": "comms_participant_role", - "kind": { - "Enum": [ - "owner", - "admin", - "member" - ] - } - } - }, - "Text" - ] - }, - "nullable": [] - }, - "hash": "f2a71de44d62190ec6ccad44b2e3a5b00bf57e5f0b948b2d882d2d036375d913" -} diff --git a/rust/cloud-storage/.sqlx/query-f2b90d413f8882f0d1da810aeca51a503118d0dddd8759495f607c65158605d7.json b/rust/cloud-storage/.sqlx/query-f2b90d413f8882f0d1da810aeca51a503118d0dddd8759495f607c65158605d7.json deleted file mode 100644 index 13b75b74c6..0000000000 --- a/rust/cloud-storage/.sqlx/query-f2b90d413f8882f0d1da810aeca51a503118d0dddd8759495f607c65158605d7.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, channel_id, room_name, created_by, created_at, egress_id\n FROM calls\n WHERE room_name = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "room_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "created_by", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "egress_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - true - ] - }, - "hash": "f2b90d413f8882f0d1da810aeca51a503118d0dddd8759495f607c65158605d7" -} diff --git a/rust/cloud-storage/.sqlx/query-f2c563a84ecf4b347e19eed2770c9593db5cf4bba24c234e9179f741a920d4d5.json b/rust/cloud-storage/.sqlx/query-f2c563a84ecf4b347e19eed2770c9593db5cf4bba24c234e9179f741a920d4d5.json deleted file mode 100644 index b9194ba12f..0000000000 --- a/rust/cloud-storage/.sqlx/query-f2c563a84ecf4b347e19eed2770c9593db5cf4bba24c234e9179f741a920d4d5.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"macro_user_id\" as \"macro_user_id!\", \"id\"\n FROM \"User\"\n WHERE \"email\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id!", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "f2c563a84ecf4b347e19eed2770c9593db5cf4bba24c234e9179f741a920d4d5" -} diff --git a/rust/cloud-storage/.sqlx/query-f2d5d7aea9918978cd69c14f8afe24156c2fa387e001ee8eaf57e4a70a106069.json b/rust/cloud-storage/.sqlx/query-f2d5d7aea9918978cd69c14f8afe24156c2fa387e001ee8eaf57e4a70a106069.json deleted file mode 100644 index 182e0858ba..0000000000 --- a/rust/cloud-storage/.sqlx/query-f2d5d7aea9918978cd69c14f8afe24156c2fa387e001ee8eaf57e4a70a106069.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO entity_properties (id, entity_id, entity_type, property_definition_id, values)\n SELECT \n u.id,\n u.entity_id,\n u.entity_type::property_entity_type,\n u.property_definition_id,\n u.values\n FROM UNNEST(\n $1::UUID[],\n $2::TEXT[],\n $3::TEXT[],\n $4::UUID[],\n $5::JSONB[]\n ) AS u(id, entity_id, entity_type, property_definition_id, values)\n ON CONFLICT (entity_id, entity_type, property_definition_id)\n DO UPDATE SET \n values = EXCLUDED.values,\n updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "TextArray", - "TextArray", - "UuidArray", - "JsonbArray" - ] - }, - "nullable": [] - }, - "hash": "f2d5d7aea9918978cd69c14f8afe24156c2fa387e001ee8eaf57e4a70a106069" -} diff --git a/rust/cloud-storage/.sqlx/query-f360ad52de6c2f6b0c60902cbcb7ebad2671fe50f6425314bf3c007d01f53884.json b/rust/cloud-storage/.sqlx/query-f360ad52de6c2f6b0c60902cbcb7ebad2671fe50f6425314bf3c007d01f53884.json deleted file mode 100644 index 70f8666277..0000000000 --- a/rust/cloud-storage/.sqlx/query-f360ad52de6c2f6b0c60902cbcb7ebad2671fe50f6425314bf3c007d01f53884.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"comms_channel_participants\"\n WHERE channel_id = $1 AND user_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "f360ad52de6c2f6b0c60902cbcb7ebad2671fe50f6425314bf3c007d01f53884" -} diff --git a/rust/cloud-storage/.sqlx/query-f3c74398e522602a72523704c37edbd92ada98d1c5b00dd4052db371fd191598.json b/rust/cloud-storage/.sqlx/query-f3c74398e522602a72523704c37edbd92ada98d1c5b00dd4052db371fd191598.json deleted file mode 100644 index 4142c2a694..0000000000 --- a/rust/cloud-storage/.sqlx/query-f3c74398e522602a72523704c37edbd92ada98d1c5b00dd4052db371fd191598.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE \"User\"\n SET macro_user_id = $2\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "f3c74398e522602a72523704c37edbd92ada98d1c5b00dd4052db371fd191598" -} diff --git a/rust/cloud-storage/.sqlx/query-f3e53dd531be738b881df199783a2beded3bd378038cbd6f012080ac77c5291b.json b/rust/cloud-storage/.sqlx/query-f3e53dd531be738b881df199783a2beded3bd378038cbd6f012080ac77c5291b.json deleted file mode 100644 index 39180b3b0f..0000000000 --- a/rust/cloud-storage/.sqlx/query-f3e53dd531be738b881df199783a2beded3bd378038cbd6f012080ac77c5291b.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE user_notification\n SET deleted_at = NOW()\n WHERE user_id = $1 AND notification_id = ANY($2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "UuidArray" - ] - }, - "nullable": [] - }, - "hash": "f3e53dd531be738b881df199783a2beded3bd378038cbd6f012080ac77c5291b" -} diff --git a/rust/cloud-storage/.sqlx/query-f3e6e462f1b3d364bbcb2e556f68dced036c605ba52ff484b30130cf837b9408.json b/rust/cloud-storage/.sqlx/query-f3e6e462f1b3d364bbcb2e556f68dced036c605ba52ff484b30130cf837b9408.json deleted file mode 100644 index 185e41a820..0000000000 --- a/rust/cloud-storage/.sqlx/query-f3e6e462f1b3d364bbcb2e556f68dced036c605ba52ff484b30130cf837b9408.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM user_mute_notification WHERE user_id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "f3e6e462f1b3d364bbcb2e556f68dced036c605ba52ff484b30130cf837b9408" -} diff --git a/rust/cloud-storage/.sqlx/query-f3fe8a220414038b0f4ebd8fbf0a6842bf271ef6cb2e4de41b820113295ca18d.json b/rust/cloud-storage/.sqlx/query-f3fe8a220414038b0f4ebd8fbf0a6842bf271ef6cb2e4de41b820113295ca18d.json deleted file mode 100644 index a902d75da9..0000000000 --- a/rust/cloud-storage/.sqlx/query-f3fe8a220414038b0f4ebd8fbf0a6842bf271ef6cb2e4de41b820113295ca18d.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO macro_user (id, username, email, stripe_customer_id)\n VALUES ($1, $2, $3, $4)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "f3fe8a220414038b0f4ebd8fbf0a6842bf271ef6cb2e4de41b820113295ca18d" -} diff --git a/rust/cloud-storage/.sqlx/query-f419ff9b35e559aedd0c8623986307a3d445a6a5643262d3efda804e3d04ccc6.json b/rust/cloud-storage/.sqlx/query-f419ff9b35e559aedd0c8623986307a3d445a6a5643262d3efda804e3d04ccc6.json deleted file mode 100644 index 23b9253715..0000000000 --- a/rust/cloud-storage/.sqlx/query-f419ff9b35e559aedd0c8623986307a3d445a6a5643262d3efda804e3d04ccc6.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS(\n SELECT 1 FROM crm_contacts WHERE company_id = $1 LIMIT 1\n ) AS \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "f419ff9b35e559aedd0c8623986307a3d445a6a5643262d3efda804e3d04ccc6" -} diff --git a/rust/cloud-storage/.sqlx/query-f4dd3bd30a64a7fd82d9a254a0fb0ea36e8607ebd4c272509afba882a3e0b572.json b/rust/cloud-storage/.sqlx/query-f4dd3bd30a64a7fd82d9a254a0fb0ea36e8607ebd4c272509afba882a3e0b572.json deleted file mode 100644 index 3cdb5b9433..0000000000 --- a/rust/cloud-storage/.sqlx/query-f4dd3bd30a64a7fd82d9a254a0fb0ea36e8607ebd4c272509afba882a3e0b572.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, macro_id, fusionauth_user_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at\n FROM email_links\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "macro_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "fusionauth_user_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": "Varchar" - }, - { - "ordinal": 4, - "name": "provider: _", - "type_info": { - "Custom": { - "name": "email_user_provider_enum", - "kind": { - "Enum": [ - "GMAIL" - ] - } - } - } - }, - { - "ordinal": 5, - "name": "is_sync_active", - "type_info": "Bool" - }, - { - "ordinal": 6, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "f4dd3bd30a64a7fd82d9a254a0fb0ea36e8607ebd4c272509afba882a3e0b572" -} diff --git a/rust/cloud-storage/.sqlx/query-f4e290fa3d4abc3cc6c28f3e88b35cb2d29a67a4c437234f0ac7d1e6baa34669.json b/rust/cloud-storage/.sqlx/query-f4e290fa3d4abc3cc6c28f3e88b35cb2d29a67a4c437234f0ac7d1e6baa34669.json deleted file mode 100644 index 28c3067d28..0000000000 --- a/rust/cloud-storage/.sqlx/query-f4e290fa3d4abc3cc6c28f3e88b35cb2d29a67a4c437234f0ac7d1e6baa34669.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM github_links\n WHERE id = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "f4e290fa3d4abc3cc6c28f3e88b35cb2d29a67a4c437234f0ac7d1e6baa34669" -} diff --git a/rust/cloud-storage/.sqlx/query-f53db7386c5bcacad71c665b79d14921d77330e127ed9083235078bc0d8ee970.json b/rust/cloud-storage/.sqlx/query-f53db7386c5bcacad71c665b79d14921d77330e127ed9083235078bc0d8ee970.json deleted file mode 100644 index 2dcc350139..0000000000 --- a/rust/cloud-storage/.sqlx/query-f53db7386c5bcacad71c665b79d14921d77330e127ed9083235078bc0d8ee970.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT EXISTS (\n SELECT 1 FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'document'\n AND source_id = $2\n AND source_type = 'team'\n ) as \"exists!\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "exists!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "f53db7386c5bcacad71c665b79d14921d77330e127ed9083235078bc0d8ee970" -} diff --git a/rust/cloud-storage/.sqlx/query-f5fff13701e91118a77c814a3c1b31f3c3202031f51868b9af724e701248079f.json b/rust/cloud-storage/.sqlx/query-f5fff13701e91118a77c814a3c1b31f3c3202031f51868b9af724e701248079f.json deleted file mode 100644 index 6e3ae4d785..0000000000 --- a/rust/cloud-storage/.sqlx/query-f5fff13701e91118a77c814a3c1b31f3c3202031f51868b9af724e701248079f.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT user_id AS \"user_id!\"\n FROM call_record_participants\n WHERE call_record_id = $1\n ORDER BY joined_at ASC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "f5fff13701e91118a77c814a3c1b31f3c3202031f51868b9af724e701248079f" -} diff --git a/rust/cloud-storage/.sqlx/query-f61e5ffbf5f10d3989640c3f1b70bbe79c9e1b2e6d2e6925bdf89df1a07ead5d.json b/rust/cloud-storage/.sqlx/query-f61e5ffbf5f10d3989640c3f1b70bbe79c9e1b2e6d2e6925bdf89df1a07ead5d.json deleted file mode 100644 index b75c335b28..0000000000 --- a/rust/cloud-storage/.sqlx/query-f61e5ffbf5f10d3989640c3f1b70bbe79c9e1b2e6d2e6925bdf89df1a07ead5d.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM email_attachments_fwd eaf\n USING email_messages m\n WHERE eaf.message_id = m.id\n AND eaf.message_id = $1 AND eaf.attachment_id = $2 AND m.link_id = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "f61e5ffbf5f10d3989640c3f1b70bbe79c9e1b2e6d2e6925bdf89df1a07ead5d" -} diff --git a/rust/cloud-storage/.sqlx/query-f61fae90a53682f217091f1ecbdaa60d2eb5b7b0ff90863b0d0dc288779a5f7f.json b/rust/cloud-storage/.sqlx/query-f61fae90a53682f217091f1ecbdaa60d2eb5b7b0ff90863b0d0dc288779a5f7f.json deleted file mode 100644 index 2333f15f8b..0000000000 --- a/rust/cloud-storage/.sqlx/query-f61fae90a53682f217091f1ecbdaa60d2eb5b7b0ff90863b0d0dc288779a5f7f.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n c.\"id\" as \"item_id!\",\n c.\"owner\" as \"owner\",\n c.\"fileType\" as \"file_type\",\n c.\"name\" as \"file_name\",\n c.\"createdAt\" as \"created_at!\",\n c.\"updatedAt\" as \"updated_at!\",\n c.\"deletedAt\" as \"deleted_at?\",\n uh.\"updatedAt\" as \"viewed_at?\",\n c.\"projectId\" as \"project_id?\",\n dt.sub_type as \"sub_type?: DocumentSubType\"\n FROM\n \"Document\" c\n LEFT JOIN document_sub_type dt ON dt.document_id = c.id\n LEFT JOIN\n \"UserHistory\" uh ON uh.\"itemId\" = c.\"id\"\n AND uh.\"userId\" = $1\n AND uh.\"itemType\" = 'document'\n WHERE\n c.\"id\" = ANY($2)\n ORDER BY\n c.\"updatedAt\" DESC\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "item_id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "file_name", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at!", - "type_info": "Timestamp" - }, - { - "ordinal": 5, - "name": "updated_at!", - "type_info": "Timestamp" - }, - { - "ordinal": 6, - "name": "deleted_at?", - "type_info": "Timestamp" - }, - { - "ordinal": 7, - "name": "viewed_at?", - "type_info": "Timestamp" - }, - { - "ordinal": 8, - "name": "project_id?", - "type_info": "Text" - }, - { - "ordinal": 9, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Text", - "TextArray" - ] - }, - "nullable": [ - false, - false, - true, - false, - false, - false, - true, - false, - true, - false - ] - }, - "hash": "f61fae90a53682f217091f1ecbdaa60d2eb5b7b0ff90863b0d0dc288779a5f7f" -} diff --git a/rust/cloud-storage/.sqlx/query-f6226ec842f894cdf49b4a8d0d1f363e31040405915cffa7da18a3ed337e298a.json b/rust/cloud-storage/.sqlx/query-f6226ec842f894cdf49b4a8d0d1f363e31040405915cffa7da18a3ed337e298a.json deleted file mode 100644 index c69a93a03c..0000000000 --- a/rust/cloud-storage/.sqlx/query-f6226ec842f894cdf49b4a8d0d1f363e31040405915cffa7da18a3ed337e298a.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COUNT(*) as \"count!\"\n FROM call_participants\n WHERE call_id = $1 AND left_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "count!", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - null - ] - }, - "hash": "f6226ec842f894cdf49b4a8d0d1f363e31040405915cffa7da18a3ed337e298a" -} diff --git a/rust/cloud-storage/.sqlx/query-f62b5eb569c1751fe1b85a81c1b50811245e71af919de567277e505bb59d62e5.json b/rust/cloud-storage/.sqlx/query-f62b5eb569c1751fe1b85a81c1b50811245e71af919de567277e505bb59d62e5.json deleted file mode 100644 index a5c0451b89..0000000000 --- a/rust/cloud-storage/.sqlx/query-f62b5eb569c1751fe1b85a81c1b50811245e71af919de567277e505bb59d62e5.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT task_id, duplicate_task_id\n FROM task_duplicate_match\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "task_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "duplicate_task_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "f62b5eb569c1751fe1b85a81c1b50811245e71af919de567277e505bb59d62e5" -} diff --git a/rust/cloud-storage/.sqlx/query-f6600a8a539ce77dbd8b5332ea8994e58da416d649dc4963c510b3f6906db5fd.json b/rust/cloud-storage/.sqlx/query-f6600a8a539ce77dbd8b5332ea8994e58da416d649dc4963c510b3f6906db5fd.json deleted file mode 100644 index 0257874645..0000000000 --- a/rust/cloud-storage/.sqlx/query-f6600a8a539ce77dbd8b5332ea8994e58da416d649dc4963c510b3f6906db5fd.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n 'item' as unsubscribe_type,\n unsubscribe_item.item_id as \"item_id!\",\n unsubscribe_item.item_type as \"item_type!\"\n FROM\n user_notification_item_unsubscribe unsubscribe_item\n WHERE\n unsubscribe_item.user_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "unsubscribe_type", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "item_id!", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "item_type!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null, - false, - false - ] - }, - "hash": "f6600a8a539ce77dbd8b5332ea8994e58da416d649dc4963c510b3f6906db5fd" -} diff --git a/rust/cloud-storage/.sqlx/query-f6a7499d3079d346afe5d866734ffc5d4ac3f9f1a8c2a5714ef130e53d11145f.json b/rust/cloud-storage/.sqlx/query-f6a7499d3079d346afe5d866734ffc5d4ac3f9f1a8c2a5714ef130e53d11145f.json deleted file mode 100644 index c718076a09..0000000000 --- a/rust/cloud-storage/.sqlx/query-f6a7499d3079d346afe5d866734ffc5d4ac3f9f1a8c2a5714ef130e53d11145f.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH RECURSIVE child_projects AS (\n SELECT id FROM \"Project\" WHERE id = $1\n\n UNION ALL\n\n SELECT p.id FROM \"Project\" p\n INNER JOIN child_projects cp ON p.\"parentId\" = cp.id\n )\n SELECT id as \"entity_id!\", 'project' as \"entity_type!\" FROM child_projects\n\n UNION ALL\n\n SELECT d.id as \"entity_id!\", 'document' as \"entity_type!\" FROM \"Document\" d\n WHERE d.\"projectId\" IN (SELECT id FROM child_projects)\n\n UNION ALL\n\n SELECT c.id as \"entity_id!\", 'chat' as \"entity_type!\" FROM \"Chat\" c\n WHERE c.\"projectId\" IN (SELECT id FROM child_projects)\n\n UNION ALL\n\n SELECT et.id::text as \"entity_id!\", 'email_thread' as \"entity_type!\" FROM email_threads et\n WHERE et.project_id IN (SELECT id FROM child_projects)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_id!", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "entity_type!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null, - null - ] - }, - "hash": "f6a7499d3079d346afe5d866734ffc5d4ac3f9f1a8c2a5714ef130e53d11145f" -} diff --git a/rust/cloud-storage/.sqlx/query-f6bc8c7f62c44aa50928badd81140cddf46a772f8a638259541b05f006bd4c1c.json b/rust/cloud-storage/.sqlx/query-f6bc8c7f62c44aa50928badd81140cddf46a772f8a638259541b05f006bd4c1c.json deleted file mode 100644 index 92d4487785..0000000000 --- a/rust/cloud-storage/.sqlx/query-f6bc8c7f62c44aa50928badd81140cddf46a772f8a638259541b05f006bd4c1c.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT id, name\n FROM \"Document\"\n WHERE id = ANY($1)\n AND \"deletedAt\" IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "f6bc8c7f62c44aa50928badd81140cddf46a772f8a638259541b05f006bd4c1c" -} diff --git a/rust/cloud-storage/.sqlx/query-f6c0addc618fb161405a1a989f2cacd0718c070eb2ee345d524abe7ba8b5b35e.json b/rust/cloud-storage/.sqlx/query-f6c0addc618fb161405a1a989f2cacd0718c070eb2ee345d524abe7ba8b5b35e.json deleted file mode 100644 index 0d013147f7..0000000000 --- a/rust/cloud-storage/.sqlx/query-f6c0addc618fb161405a1a989f2cacd0718c070eb2ee345d524abe7ba8b5b35e.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n sp.id as id,\n sp.\"isPublic\" as is_public,\n sp.\"publicAccessLevel\" as \"public_access_level?\",\n p.\"userId\" as owner,\n COALESCE(\n json_agg(json_build_object(\n 'channel_id', csp.\"channel_id\",\n 'access_level', csp.\"access_level\"\n )) FILTER (WHERE csp.\"channel_id\" IS NOT NULL),\n '[]'\n ) as \"channel_share_permissions?\"\n FROM\n \"ProjectPermission\" pp\n JOIN \"SharePermission\" sp ON pp.\"sharePermissionId\" = sp.id\n JOIN \"Project\" p ON pp.\"projectId\" = p.id\n LEFT JOIN \"ChannelSharePermission\" csp ON csp.\"share_permission_id\" = sp.id\n WHERE\n pp.\"projectId\" = $1\n GROUP BY\n sp.id, p.\"userId\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "is_public", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "public_access_level?", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "channel_share_permissions?", - "type_info": "Json" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false, - false, - true, - false, - null - ] - }, - "hash": "f6c0addc618fb161405a1a989f2cacd0718c070eb2ee345d524abe7ba8b5b35e" -} diff --git a/rust/cloud-storage/.sqlx/query-f7350272860b713193c09bbd784418605ec3f0f9f090344882fcac7d251bfdba.json b/rust/cloud-storage/.sqlx/query-f7350272860b713193c09bbd784418605ec3f0f9f090344882fcac7d251bfdba.json deleted file mode 100644 index ba4b6efa55..0000000000 --- a/rust/cloud-storage/.sqlx/query-f7350272860b713193c09bbd784418605ec3f0f9f090344882fcac7d251bfdba.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "INSERT INTO referral_tracking (id, referrer_id, referred_id, status, created_at) VALUES ($1, $2, $3, 'incomplete', NOW())", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "f7350272860b713193c09bbd784418605ec3f0f9f090344882fcac7d251bfdba" -} diff --git a/rust/cloud-storage/.sqlx/query-f740b3f09ab349c876e1c7d8e42ad59600be3ea7f6f3db61fcc3045330a20f39.json b/rust/cloud-storage/.sqlx/query-f740b3f09ab349c876e1c7d8e42ad59600be3ea7f6f3db61fcc3045330a20f39.json deleted file mode 100644 index 182393ae7b..0000000000 --- a/rust/cloud-storage/.sqlx/query-f740b3f09ab349c876e1c7d8e42ad59600be3ea7f6f3db61fcc3045330a20f39.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE call_records\n SET recording_started_at = $1\n WHERE id = $2\n AND (\n recording_started_at IS NULL\n OR recording_started_at = date_trunc('second', recording_started_at)\n OR $1 < recording_started_at\n )\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Timestamptz", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "f740b3f09ab349c876e1c7d8e42ad59600be3ea7f6f3db61fcc3045330a20f39" -} diff --git a/rust/cloud-storage/.sqlx/query-f77a2e12f69d9ca98e0ddf9bc9c10b9c54cb028c0f723b18c05231eafe5722af.json b/rust/cloud-storage/.sqlx/query-f77a2e12f69d9ca98e0ddf9bc9c10b9c54cb028c0f723b18c05231eafe5722af.json deleted file mode 100644 index 6cdb842426..0000000000 --- a/rust/cloud-storage/.sqlx/query-f77a2e12f69d9ca98e0ddf9bc9c10b9c54cb028c0f723b18c05231eafe5722af.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"ChatPermission\"\n WHERE \"sharePermissionId\" = $1\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "f77a2e12f69d9ca98e0ddf9bc9c10b9c54cb028c0f723b18c05231eafe5722af" -} diff --git a/rust/cloud-storage/.sqlx/query-f8e7be63fb307e8882da2ef41dfb8ebb75a89ecd397f5a266032c2c8a1f9c561.json b/rust/cloud-storage/.sqlx/query-f8e7be63fb307e8882da2ef41dfb8ebb75a89ecd397f5a266032c2c8a1f9c561.json deleted file mode 100644 index 99ffe52fc0..0000000000 --- a/rust/cloud-storage/.sqlx/query-f8e7be63fb307e8882da2ef41dfb8ebb75a89ecd397f5a266032c2c8a1f9c561.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE email_threads\n SET\n is_read = $1,\n updated_at = NOW()\n WHERE\n id = $2 AND\n link_id = $3\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Bool", - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "f8e7be63fb307e8882da2ef41dfb8ebb75a89ecd397f5a266032c2c8a1f9c561" -} diff --git a/rust/cloud-storage/.sqlx/query-f8ea2beac8e9feddd9f8ebd4e3d67032505a085b4c9c5e787f3194414758601b.json b/rust/cloud-storage/.sqlx/query-f8ea2beac8e9feddd9f8ebd4e3d67032505a085b4c9c5e787f3194414758601b.json deleted file mode 100644 index 0bd8267545..0000000000 --- a/rust/cloud-storage/.sqlx/query-f8ea2beac8e9feddd9f8ebd4e3d67032505a085b4c9c5e787f3194414758601b.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE bot_tokens\n SET revoked_at = now()\n WHERE id = $1\n AND bot_id = $2\n AND revoked_at IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "f8ea2beac8e9feddd9f8ebd4e3d67032505a085b4c9c5e787f3194414758601b" -} diff --git a/rust/cloud-storage/.sqlx/query-f95b295c9ffa7b96a7907c43c0557d60af3f02fc72c3f541bc94c903034a6748.json b/rust/cloud-storage/.sqlx/query-f95b295c9ffa7b96a7907c43c0557d60af3f02fc72c3f541bc94c903034a6748.json deleted file mode 100644 index 8f396b9fba..0000000000 --- a/rust/cloud-storage/.sqlx/query-f95b295c9ffa7b96a7907c43c0557d60af3f02fc72c3f541bc94c903034a6748.json +++ /dev/null @@ -1,162 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id, provider_id, thread_id, provider_thread_id, replying_to_id,\n global_id, link_id, provider_history_id, internal_date_ts, snippet,\n size_estimate, subject, sent_at, has_attachments, is_read, is_starred,\n is_sent, is_draft, body_text, body_html_sanitized, body_macro,\n headers_jsonb, created_at, updated_at\n FROM email_messages\n WHERE thread_id = $1\n ORDER BY internal_date_ts DESC\n LIMIT $2 OFFSET $3\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 3, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 7, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 13, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 14, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 15, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 19, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 20, - "name": "body_macro", - "type_info": "Text" - }, - { - "ordinal": 21, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 22, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 23, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - true, - false, - true, - true, - true, - false, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - true, - true, - true, - true, - false, - false - ] - }, - "hash": "f95b295c9ffa7b96a7907c43c0557d60af3f02fc72c3f541bc94c903034a6748" -} diff --git a/rust/cloud-storage/.sqlx/query-f97467addd6684e98f641dabde769092e981121feea08d55de4cd41762f1fa1e.json b/rust/cloud-storage/.sqlx/query-f97467addd6684e98f641dabde769092e981121feea08d55de4cd41762f1fa1e.json deleted file mode 100644 index 31c8f80def..0000000000 --- a/rust/cloud-storage/.sqlx/query-f97467addd6684e98f641dabde769092e981121feea08d55de4cd41762f1fa1e.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"Thread\" (\"owner\", \"documentId\", \"createdAt\", \"updatedAt\", \"resolved\")\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text", - "Text", - "Timestamp", - "Timestamp", - "Bool" - ] - }, - "nullable": [ - false - ] - }, - "hash": "f97467addd6684e98f641dabde769092e981121feea08d55de4cd41762f1fa1e" -} diff --git a/rust/cloud-storage/.sqlx/query-f97ea400ea881b9116d2deb19f1cb9c8f850746382a3c7049303286f2868a851.json b/rust/cloud-storage/.sqlx/query-f97ea400ea881b9116d2deb19f1cb9c8f850746382a3c7049303286f2868a851.json deleted file mode 100644 index 48e611fc43..0000000000 --- a/rust/cloud-storage/.sqlx/query-f97ea400ea881b9116d2deb19f1cb9c8f850746382a3c7049303286f2868a851.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT owner_id\n FROM team\n WHERE id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "owner_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "f97ea400ea881b9116d2deb19f1cb9c8f850746382a3c7049303286f2868a851" -} diff --git a/rust/cloud-storage/.sqlx/query-f9dd839c0eeb6b25a432136def701390348a6d4e33feefb4c3d33974e15fcf83.json b/rust/cloud-storage/.sqlx/query-f9dd839c0eeb6b25a432136def701390348a6d4e33feefb4c3d33974e15fcf83.json deleted file mode 100644 index ac492d99f7..0000000000 --- a/rust/cloud-storage/.sqlx/query-f9dd839c0eeb6b25a432136def701390348a6d4e33feefb4c3d33974e15fcf83.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id,\n m.channel_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.edited_at::timestamptz AS \"edited_at?\",\n m.deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages m\n WHERE m.channel_id = $1\n AND m.thread_id IS NULL\n AND (m.deleted_at IS NULL OR EXISTS (\n SELECT 1 FROM comms_messages r\n WHERE r.thread_id = m.id AND r.deleted_at IS NULL\n ))\n AND (m.created_at, m.id) < ($2, $3)\n ORDER BY m.created_at DESC, m.id DESC\n LIMIT $4\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "channel_id", - "type_info": "Uuid" - }, - { - "ordinal": 2, - "name": "sender_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "content", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 5, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "edited_at?", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "deleted_at?", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Timestamptz", - "Uuid", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - null, - null - ] - }, - "hash": "f9dd839c0eeb6b25a432136def701390348a6d4e33feefb4c3d33974e15fcf83" -} diff --git a/rust/cloud-storage/.sqlx/query-f9e1032b35c2a8134372f0188b76dc5ca777fdfccf87f1760b3ff0f03d4515b2.json b/rust/cloud-storage/.sqlx/query-f9e1032b35c2a8134372f0188b76dc5ca777fdfccf87f1760b3ff0f03d4515b2.json deleted file mode 100644 index 60443a4422..0000000000 --- a/rust/cloud-storage/.sqlx/query-f9e1032b35c2a8134372f0188b76dc5ca777fdfccf87f1760b3ff0f03d4515b2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT github_user_id\n FROM github_links\n WHERE macro_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "github_user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "f9e1032b35c2a8134372f0188b76dc5ca777fdfccf87f1760b3ff0f03d4515b2" -} diff --git a/rust/cloud-storage/.sqlx/query-f9f132f209b5a22522df5c6b9ae936efa63645abc9b36965f9e8daead43b7adc.json b/rust/cloud-storage/.sqlx/query-f9f132f209b5a22522df5c6b9ae936efa63645abc9b36965f9e8daead43b7adc.json deleted file mode 100644 index dd2fb46466..0000000000 --- a/rust/cloud-storage/.sqlx/query-f9f132f209b5a22522df5c6b9ae936efa63645abc9b36965f9e8daead43b7adc.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT DISTINCT\n ea.entity_id,\n ea.entity_type\n FROM entity_access ea\n WHERE ea.source_id = ANY($1)\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "entity_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "entity_type", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "f9f132f209b5a22522df5c6b9ae936efa63645abc9b36965f9e8daead43b7adc" -} diff --git a/rust/cloud-storage/.sqlx/query-f9f7a7f7bf87cffd10d68d891874a0a270de769b42747942090f55ac86c78574.json b/rust/cloud-storage/.sqlx/query-f9f7a7f7bf87cffd10d68d891874a0a270de769b42747942090f55ac86c78574.json deleted file mode 100644 index 75e27686b5..0000000000 --- a/rust/cloud-storage/.sqlx/query-f9f7a7f7bf87cffd10d68d891874a0a270de769b42747942090f55ac86c78574.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n \"messageId\" as \"message_id\",\n \"url\",\n \"title\",\n \"description\",\n \"favicon_url\",\n \"image_url\"\n FROM \"WebAnnotations\" wa\n INNER JOIN \"ChatMessage\" cm ON cm.id = wa.\"messageId\"\n WHERE cm.\"chatId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "message_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "url", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "title", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "description", - "type_info": "Text" - }, - { - "ordinal": 4, - "name": "favicon_url", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "image_url", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true, - false, - false, - true, - true, - true - ] - }, - "hash": "f9f7a7f7bf87cffd10d68d891874a0a270de769b42747942090f55ac86c78574" -} diff --git a/rust/cloud-storage/.sqlx/query-fa0410f4a8b799f01b4a582582d0baafac16a1058e7017d63813abf87b340e4a.json b/rust/cloud-storage/.sqlx/query-fa0410f4a8b799f01b4a582582d0baafac16a1058e7017d63813abf87b340e4a.json deleted file mode 100644 index 1913a02577..0000000000 --- a/rust/cloud-storage/.sqlx/query-fa0410f4a8b799f01b4a582582d0baafac16a1058e7017d63813abf87b340e4a.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO crm_domain_directory (\n domain, name, description, icon_url,\n apollo_organization_id, website_url, linkedin_url, twitter_url,\n facebook_url, industry, keywords, technologies,\n estimated_num_employees, annual_revenue, annual_revenue_printed,\n total_funding, total_funding_printed, latest_funding_stage,\n latest_funding_round_date, founded_year, publicly_traded_symbol,\n publicly_traded_exchange, phone, raw_address, street_address,\n city, state, postal_code, country, raw, enriched_at\n )\n VALUES (\n $1, $2, $3, $4,\n $5, $6, $7, $8,\n $9, $10, $11, $12,\n $13, $14, $15,\n $16, $17, $18,\n $19, $20, $21,\n $22, $23, $24, $25,\n $26, $27, $28, $29, $30, now()\n )\n ON CONFLICT (LOWER(domain)) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text", - "Text", - "Text", - "Text", - "Text", - "Text", - "Text", - "Text", - "Text", - "TextArray", - "TextArray", - "Int4", - "Int8", - "Text", - "Int8", - "Text", - "Text", - "Timestamptz", - "Int4", - "Text", - "Text", - "Text", - "Text", - "Text", - "Text", - "Text", - "Text", - "Text", - "Jsonb" - ] - }, - "nullable": [] - }, - "hash": "fa0410f4a8b799f01b4a582582d0baafac16a1058e7017d63813abf87b340e4a" -} diff --git a/rust/cloud-storage/.sqlx/query-fa0c2815727b1e1d81f6fc75f7b1b0bd250c9b56ab63138ac60b52e9174c48b1.json b/rust/cloud-storage/.sqlx/query-fa0c2815727b1e1d81f6fc75f7b1b0bd250c9b56ab63138ac60b52e9174c48b1.json deleted file mode 100644 index e79acf2cbe..0000000000 --- a/rust/cloud-storage/.sqlx/query-fa0c2815727b1e1d81f6fc75f7b1b0bd250c9b56ab63138ac60b52e9174c48b1.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT macro_user_id FROM macro_user_voice WHERE voice_id = $1 LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false - ] - }, - "hash": "fa0c2815727b1e1d81f6fc75f7b1b0bd250c9b56ab63138ac60b52e9174c48b1" -} diff --git a/rust/cloud-storage/.sqlx/query-fa1bd94a6aca08ddbb856f2c42327e8397a42089600571a38981bfa11b7796d4.json b/rust/cloud-storage/.sqlx/query-fa1bd94a6aca08ddbb856f2c42327e8397a42089600571a38981bfa11b7796d4.json deleted file mode 100644 index b22ba93a90..0000000000 --- a/rust/cloud-storage/.sqlx/query-fa1bd94a6aca08ddbb856f2c42327e8397a42089600571a38981bfa11b7796d4.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"OrganizationEmailMatches\" (\"organizationId\", \"email\")\n VALUES ($1, $2)\n ON CONFLICT (\"email\") DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int4", - "Varchar" - ] - }, - "nullable": [] - }, - "hash": "fa1bd94a6aca08ddbb856f2c42327e8397a42089600571a38981bfa11b7796d4" -} diff --git a/rust/cloud-storage/.sqlx/query-fa24799c4889a98bfb62a1987d1fe93975169bfeb0cdbecb04dac3f31288570f.json b/rust/cloud-storage/.sqlx/query-fa24799c4889a98bfb62a1987d1fe93975169bfeb0cdbecb04dac3f31288570f.json deleted file mode 100644 index afb3979b4f..0000000000 --- a/rust/cloud-storage/.sqlx/query-fa24799c4889a98bfb62a1987d1fe93975169bfeb0cdbecb04dac3f31288570f.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM \"DocumentInstance\" WHERE id = $2 and \"documentId\" = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Int8" - ] - }, - "nullable": [] - }, - "hash": "fa24799c4889a98bfb62a1987d1fe93975169bfeb0cdbecb04dac3f31288570f" -} diff --git a/rust/cloud-storage/.sqlx/query-fa75cf5f948fd99ec052e6bc48a9fc3f7df9188479defc6072394d8d06f4b3c1.json b/rust/cloud-storage/.sqlx/query-fa75cf5f948fd99ec052e6bc48a9fc3f7df9188479defc6072394d8d06f4b3c1.json deleted file mode 100644 index 333e6ee5ef..0000000000 --- a/rust/cloud-storage/.sqlx/query-fa75cf5f948fd99ec052e6bc48a9fc3f7df9188479defc6072394d8d06f4b3c1.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO email_gmail_histories (link_id, history_id, updated_at)\n VALUES ($1, $2, NOW())\n ON CONFLICT (link_id)\n DO UPDATE SET\n history_id = EXCLUDED.history_id,\n updated_at = NOW()\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [] - }, - "hash": "fa75cf5f948fd99ec052e6bc48a9fc3f7df9188479defc6072394d8d06f4b3c1" -} diff --git a/rust/cloud-storage/.sqlx/query-fab6b92c5781874261b3c3ca673d0bf0ad8155e25cf77aa57dafdcb133f30509.json b/rust/cloud-storage/.sqlx/query-fab6b92c5781874261b3c3ca673d0bf0ad8155e25cf77aa57dafdcb133f30509.json deleted file mode 100644 index bbff4acae2..0000000000 --- a/rust/cloud-storage/.sqlx/query-fab6b92c5781874261b3c3ca673d0bf0ad8155e25cf77aa57dafdcb133f30509.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT sub_type as \"sub_type: DocumentSubType\" FROM document_sub_type WHERE document_id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sub_type: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "fab6b92c5781874261b3c3ca673d0bf0ad8155e25cf77aa57dafdcb133f30509" -} diff --git a/rust/cloud-storage/.sqlx/query-faf5532927a794d4e40350f17e0633ba54b8185f1e6aeac32a8d1bfca35a43d3.json b/rust/cloud-storage/.sqlx/query-faf5532927a794d4e40350f17e0633ba54b8185f1e6aeac32a8d1bfca35a43d3.json deleted file mode 100644 index 9ec28469b0..0000000000 --- a/rust/cloud-storage/.sqlx/query-faf5532927a794d4e40350f17e0633ba54b8185f1e6aeac32a8d1bfca35a43d3.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT name FROM \"Document\" WHERE id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "faf5532927a794d4e40350f17e0633ba54b8185f1e6aeac32a8d1bfca35a43d3" -} diff --git a/rust/cloud-storage/.sqlx/query-fafa84eb636a2855f683f73eba494f9ce25445a642ef58e1f8a59788a7f374b8.json b/rust/cloud-storage/.sqlx/query-fafa84eb636a2855f683f73eba494f9ce25445a642ef58e1f8a59788a7f374b8.json deleted file mode 100644 index 9c9523edbb..0000000000 --- a/rust/cloud-storage/.sqlx/query-fafa84eb636a2855f683f73eba494f9ce25445a642ef58e1f8a59788a7f374b8.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n macro_user_id,\n linked_email\n FROM\n in_progress_user_link\n WHERE\n id = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "linked_email", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - true - ] - }, - "hash": "fafa84eb636a2855f683f73eba494f9ce25445a642ef58e1f8a59788a7f374b8" -} diff --git a/rust/cloud-storage/.sqlx/query-fb28d507d6c6e160fdf0e56d5fc7a70bfbf8709ea5473b3ec59e8f547cbeaed9.json b/rust/cloud-storage/.sqlx/query-fb28d507d6c6e160fdf0e56d5fc7a70bfbf8709ea5473b3ec59e8f547cbeaed9.json deleted file mode 100644 index e89466fcd6..0000000000 --- a/rust/cloud-storage/.sqlx/query-fb28d507d6c6e160fdf0e56d5fc7a70bfbf8709ea5473b3ec59e8f547cbeaed9.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH target AS (SELECT embedding FROM voice WHERE id = $1)\n SELECT muv.macro_user_id\n FROM voice v\n JOIN macro_user_voice muv ON muv.voice_id = v.id\n WHERE (v.embedding <=> (SELECT embedding FROM target)) <= $2\n ORDER BY v.embedding <=> (SELECT embedding FROM target) ASC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "macro_user_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Float8" - ] - }, - "nullable": [ - false - ] - }, - "hash": "fb28d507d6c6e160fdf0e56d5fc7a70bfbf8709ea5473b3ec59e8f547cbeaed9" -} diff --git a/rust/cloud-storage/.sqlx/query-fb8a9157d4c7546ced9440b417c693bcaa3226934fedb2a4348a24ca9568c4ed.json b/rust/cloud-storage/.sqlx/query-fb8a9157d4c7546ced9440b417c693bcaa3226934fedb2a4348a24ca9568c4ed.json deleted file mode 100644 index 9bee89e00f..0000000000 --- a/rust/cloud-storage/.sqlx/query-fb8a9157d4c7546ced9440b417c693bcaa3226934fedb2a4348a24ca9568c4ed.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"UserHistory\" WHERE \"itemId\" = $1 AND \"itemType\" = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "fb8a9157d4c7546ced9440b417c693bcaa3226934fedb2a4348a24ca9568c4ed" -} diff --git a/rust/cloud-storage/.sqlx/query-fc0744ebeb842c69501102f111cb569a6f2b0c2fc0e62e5243a5857e054e61c7.json b/rust/cloud-storage/.sqlx/query-fc0744ebeb842c69501102f111cb569a6f2b0c2fc0e62e5243a5857e054e61c7.json deleted file mode 100644 index d9a73c770f..0000000000 --- a/rust/cloud-storage/.sqlx/query-fc0744ebeb842c69501102f111cb569a6f2b0c2fc0e62e5243a5857e054e61c7.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT team_id\n FROM team_user\n WHERE user_id = $1\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "team_id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "fc0744ebeb842c69501102f111cb569a6f2b0c2fc0e62e5243a5857e054e61c7" -} diff --git a/rust/cloud-storage/.sqlx/query-fc0a71fe3ce6804e5f2b80e78c108aba496434dc78909951f7c1bd86f9c56ec0.json b/rust/cloud-storage/.sqlx/query-fc0a71fe3ce6804e5f2b80e78c108aba496434dc78909951f7c1bd86f9c56ec0.json deleted file mode 100644 index fcef9aca61..0000000000 --- a/rust/cloud-storage/.sqlx/query-fc0a71fe3ce6804e5f2b80e78c108aba496434dc78909951f7c1bd86f9c56ec0.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"SharePermission\" sp\n USING \"ProjectPermission\" pp \n WHERE pp.\"sharePermissionId\" = sp.id\n AND pp.\"projectId\" = ANY($1)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "fc0a71fe3ce6804e5f2b80e78c108aba496434dc78909951f7c1bd86f9c56ec0" -} diff --git a/rust/cloud-storage/.sqlx/query-fc6df4dc3c0f82de02b70975338d7455df93799b12af38d50bb85d81391861c3.json b/rust/cloud-storage/.sqlx/query-fc6df4dc3c0f82de02b70975338d7455df93799b12af38d50bb85d81391861c3.json deleted file mode 100644 index ca1b2f5d86..0000000000 --- a/rust/cloud-storage/.sqlx/query-fc6df4dc3c0f82de02b70975338d7455df93799b12af38d50bb85d81391861c3.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n id, is_draft, is_sent, is_read, provider_id,\n internal_date_ts, updated_at\n FROM email_messages\n WHERE thread_id = $1\n ORDER BY internal_date_ts DESC NULLS LAST\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 2, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 3, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 4, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 6, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [ - false, - false, - false, - false, - true, - true, - false - ] - }, - "hash": "fc6df4dc3c0f82de02b70975338d7455df93799b12af38d50bb85d81391861c3" -} diff --git a/rust/cloud-storage/.sqlx/query-fc8a4a51536361c5b5c0a742ba268fff2908654b8bb53923320e7fabe244b467.json b/rust/cloud-storage/.sqlx/query-fc8a4a51536361c5b5c0a742ba268fff2908654b8bb53923320e7fabe244b467.json deleted file mode 100644 index decc4d20e9..0000000000 --- a/rust/cloud-storage/.sqlx/query-fc8a4a51536361c5b5c0a742ba268fff2908654b8bb53923320e7fabe244b467.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n (SELECT COUNT(*) FROM \"DocumentInstance\" WHERE \"documentId\" = $1) +\n (SELECT COUNT(*) FROM \"DocumentBom\" WHERE \"documentId\" = $1) AS total_count\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "total_count", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - null - ] - }, - "hash": "fc8a4a51536361c5b5c0a742ba268fff2908654b8bb53923320e7fabe244b467" -} diff --git a/rust/cloud-storage/.sqlx/query-fc9cc90bb37368b293d46d43efd16c178a9865c5926e4195249eb22e2a4a91b3.json b/rust/cloud-storage/.sqlx/query-fc9cc90bb37368b293d46d43efd16c178a9865c5926e4195249eb22e2a4a91b3.json deleted file mode 100644 index fbcc874a9d..0000000000 --- a/rust/cloud-storage/.sqlx/query-fc9cc90bb37368b293d46d43efd16c178a9865c5926e4195249eb22e2a4a91b3.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \"id\", \"userId\" as user_id FROM \"Chat\" WHERE \"projectId\" = ANY($1) AND \"deletedAt\" IS NOT NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "user_id", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "TextArray" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "fc9cc90bb37368b293d46d43efd16c178a9865c5926e4195249eb22e2a4a91b3" -} diff --git a/rust/cloud-storage/.sqlx/query-fcd4b67db8a3a8de51b0bb55880c5934f900adbadcc5549165e709cb1cd345b5.json b/rust/cloud-storage/.sqlx/query-fcd4b67db8a3a8de51b0bb55880c5934f900adbadcc5549165e709cb1cd345b5.json deleted file mode 100644 index 671a73cb36..0000000000 --- a/rust/cloud-storage/.sqlx/query-fcd4b67db8a3a8de51b0bb55880c5934f900adbadcc5549165e709cb1cd345b5.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n d.id as document_id,\n d.owner as owner,\n d.name as document_name,\n COALESCE(db.id, di.id) as \"document_version_id!\",\n d.\"branchedFromId\" as \"branched_from_id?\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id?\",\n d.\"documentFamilyId\" as \"document_family_id?\",\n d.\"fileType\" as file_type,\n d.\"createdAt\"::timestamptz as created_at,\n d.\"updatedAt\"::timestamptz as updated_at,\n d.\"deletedAt\"::timestamptz as deleted_at,\n db.bom_parts as \"document_bom?\",\n di.modification_data as \"modification_data?\",\n d.\"projectId\" as \"project_id?\",\n p.name as \"project_name?\",\n di.sha as \"sha?\",\n dt.sub_type as \"sub_type?: DocumentSubType\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN LATERAL (\n SELECT\n b.id,\n (\n SELECT\n json_agg(\n json_build_object(\n 'id', bp.id,\n 'sha', bp.sha,\n 'path', bp.path\n )\n )\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = b.id\n ) as bom_parts\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.\"documentId\",\n i.\"sha\",\n i.\"createdAt\",\n (\n SELECT\n imod.\"modificationData\"\n FROM\n \"DocumentInstanceModificationData\" imod\n WHERE\n imod.\"documentInstanceId\" = i.id\n ) as modification_data,\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON d.\"fileType\" IS DISTINCT FROM 'docx'\n LEFT JOIN \"Project\" p ON p.id = d.\"projectId\"\n WHERE\n d.\"deletedAt\" IS NULL\n ORDER BY d.\"createdAt\" DESC\n LIMIT $1 OFFSET $2\n\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "document_id", - "type_info": "Text" - }, - { - "ordinal": 1, - "name": "owner", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "document_name", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "document_version_id!", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "branched_from_id?", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "branched_from_version_id?", - "type_info": "Int8" - }, - { - "ordinal": 6, - "name": "document_family_id?", - "type_info": "Int8" - }, - { - "ordinal": 7, - "name": "file_type", - "type_info": "Text" - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "updated_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 10, - "name": "deleted_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 11, - "name": "document_bom?", - "type_info": "Json" - }, - { - "ordinal": 12, - "name": "modification_data?", - "type_info": "Jsonb" - }, - { - "ordinal": 13, - "name": "project_id?", - "type_info": "Text" - }, - { - "ordinal": 14, - "name": "project_name?", - "type_info": "Text" - }, - { - "ordinal": 15, - "name": "sha?", - "type_info": "Text" - }, - { - "ordinal": 16, - "name": "sub_type?: DocumentSubType", - "type_info": { - "Custom": { - "name": "document_sub_type_value", - "kind": { - "Enum": [ - "task", - "snippet" - ] - } - } - } - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - null, - true, - true, - true, - true, - null, - null, - null, - null, - null, - true, - false, - false, - false - ] - }, - "hash": "fcd4b67db8a3a8de51b0bb55880c5934f900adbadcc5549165e709cb1cd345b5" -} diff --git a/rust/cloud-storage/.sqlx/query-fd2b153cf0275acd708641fc7908abfce69d431447fcbf846e60aa60febb1433.json b/rust/cloud-storage/.sqlx/query-fd2b153cf0275acd708641fc7908abfce69d431447fcbf846e60aa60febb1433.json deleted file mode 100644 index 50aff8134c..0000000000 --- a/rust/cloud-storage/.sqlx/query-fd2b153cf0275acd708641fc7908abfce69d431447fcbf846e60aa60febb1433.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO foreign_entity (\n id,\n foreign_entity_id,\n foreign_entity_source,\n metadata,\n stored_for_id,\n stored_for_auth_entity\n )\n VALUES ($1, $2, $3, $4, $5, $6)\n RETURNING\n id as \"id!: Uuid\",\n foreign_entity_id as \"foreign_entity_id!: String\",\n foreign_entity_source as \"foreign_entity_source!: String\",\n metadata as \"metadata!: serde_json::Value\",\n stored_for_id as \"stored_for_id!: String\",\n stored_for_auth_entity as \"stored_for_auth_entity!: String\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id!: Uuid", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "foreign_entity_id!: String", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "foreign_entity_source!: String", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "metadata!: serde_json::Value", - "type_info": "Jsonb" - }, - { - "ordinal": 4, - "name": "stored_for_id!: String", - "type_info": "Text" - }, - { - "ordinal": 5, - "name": "stored_for_auth_entity!: String", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "created_at!: DateTime", - "type_info": "Timestamptz" - }, - { - "ordinal": 7, - "name": "updated_at!: DateTime", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text", - "Text", - "Jsonb", - "Text", - "Text" - ] - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false - ] - }, - "hash": "fd2b153cf0275acd708641fc7908abfce69d431447fcbf846e60aa60febb1433" -} diff --git a/rust/cloud-storage/.sqlx/query-fd65e80e68a17871a3a3ef4bd1bab20faaf6ba24f55172486a74aaec3da480f4.json b/rust/cloud-storage/.sqlx/query-fd65e80e68a17871a3a3ef4bd1bab20faaf6ba24f55172486a74aaec3da480f4.json deleted file mode 100644 index 6819822606..0000000000 --- a/rust/cloud-storage/.sqlx/query-fd65e80e68a17871a3a3ef4bd1bab20faaf6ba24f55172486a74aaec3da480f4.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"entity_access\"\n WHERE (entity_id = ANY($1) AND entity_type = $2)\n OR granted_from_project_id = ANY($3)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "UuidArray", - "Text", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "fd65e80e68a17871a3a3ef4bd1bab20faaf6ba24f55172486a74aaec3da480f4" -} diff --git a/rust/cloud-storage/.sqlx/query-fd9545dca362a8cdf1b3189af6277d724c16d6068b7ab828c2eb604617227113.json b/rust/cloud-storage/.sqlx/query-fd9545dca362a8cdf1b3189af6277d724c16d6068b7ab828c2eb604617227113.json deleted file mode 100644 index a9456acc75..0000000000 --- a/rust/cloud-storage/.sqlx/query-fd9545dca362a8cdf1b3189af6277d724c16d6068b7ab828c2eb604617227113.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM comms_entity_mentions\n WHERE entity_id = ANY($1) AND source_entity_id = $2\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "TextArray", - "Text" - ] - }, - "nullable": [] - }, - "hash": "fd9545dca362a8cdf1b3189af6277d724c16d6068b7ab828c2eb604617227113" -} diff --git a/rust/cloud-storage/.sqlx/query-fe93b3b50a3a64b8b354903858cfef2cdff408625fa1a592977996a81e8b3f3c.json b/rust/cloud-storage/.sqlx/query-fe93b3b50a3a64b8b354903858cfef2cdff408625fa1a592977996a81e8b3f3c.json deleted file mode 100644 index caa1a7dfef..0000000000 --- a/rust/cloud-storage/.sqlx/query-fe93b3b50a3a64b8b354903858cfef2cdff408625fa1a592977996a81e8b3f3c.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"MacroPromptPermission\" (\"macro_prompt_id\", \"share_permission_id\")\n VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text", - "Text" - ] - }, - "nullable": [] - }, - "hash": "fe93b3b50a3a64b8b354903858cfef2cdff408625fa1a592977996a81e8b3f3c" -} diff --git a/rust/cloud-storage/.sqlx/query-ff0ad36a3e9b991dfd04335db13c6bec2f121b2afb9c5c1fa39c2d804cb71286.json b/rust/cloud-storage/.sqlx/query-ff0ad36a3e9b991dfd04335db13c6bec2f121b2afb9c5c1fa39c2d804cb71286.json deleted file mode 100644 index ce97215e6a..0000000000 --- a/rust/cloud-storage/.sqlx/query-ff0ad36a3e9b991dfd04335db13c6bec2f121b2afb9c5c1fa39c2d804cb71286.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.provider_history_id,\n m.replying_to_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n NULL::TEXT as body_text,\n NULL::TEXT as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n WHERE m.link_id = $1\n AND m.is_draft = true\n AND jsonb_path_exists(\n m.headers_jsonb,\n '$[*] ? (@.\"Macro-In-Reply-To\" == $macro_uuid)'::jsonpath,\n jsonb_build_object('macro_uuid', $2::text)\n )\n ORDER BY m.created_at DESC\n LIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "provider_id", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "global_id", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "link_id", - "type_info": "Uuid" - }, - { - "ordinal": 4, - "name": "thread_id", - "type_info": "Uuid" - }, - { - "ordinal": 5, - "name": "provider_thread_id", - "type_info": "Text" - }, - { - "ordinal": 6, - "name": "provider_history_id", - "type_info": "Text" - }, - { - "ordinal": 7, - "name": "replying_to_id", - "type_info": "Uuid" - }, - { - "ordinal": 8, - "name": "internal_date_ts", - "type_info": "Timestamptz" - }, - { - "ordinal": 9, - "name": "snippet", - "type_info": "Text" - }, - { - "ordinal": 10, - "name": "size_estimate", - "type_info": "Int8" - }, - { - "ordinal": 11, - "name": "subject", - "type_info": "Text" - }, - { - "ordinal": 12, - "name": "from_name", - "type_info": "Varchar" - }, - { - "ordinal": 13, - "name": "from_contact_id", - "type_info": "Uuid" - }, - { - "ordinal": 14, - "name": "sent_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 15, - "name": "has_attachments", - "type_info": "Bool" - }, - { - "ordinal": 16, - "name": "is_read", - "type_info": "Bool" - }, - { - "ordinal": 17, - "name": "is_starred", - "type_info": "Bool" - }, - { - "ordinal": 18, - "name": "is_sent", - "type_info": "Bool" - }, - { - "ordinal": 19, - "name": "is_draft", - "type_info": "Bool" - }, - { - "ordinal": 20, - "name": "body_text", - "type_info": "Text" - }, - { - "ordinal": 21, - "name": "body_html_sanitized", - "type_info": "Text" - }, - { - "ordinal": 22, - "name": "body_macro", - "type_info": "Text" - }, - { - "ordinal": 23, - "name": "headers_jsonb", - "type_info": "Jsonb" - }, - { - "ordinal": 24, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 25, - "name": "updated_at", - "type_info": "Timestamptz" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Text" - ] - }, - "nullable": [ - false, - true, - true, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - null, - null, - null, - true, - false, - false - ] - }, - "hash": "ff0ad36a3e9b991dfd04335db13c6bec2f121b2afb9c5c1fa39c2d804cb71286" -} diff --git a/rust/cloud-storage/.sqlx/query-ff3cfaae68201d92e5a587defc0b23eddb2d7a5a8a1572ef33f3040f8e0d671b.json b/rust/cloud-storage/.sqlx/query-ff3cfaae68201d92e5a587defc0b23eddb2d7a5a8a1572ef33f3040f8e0d671b.json deleted file mode 100644 index b0ce9f3ac1..0000000000 --- a/rust/cloud-storage/.sqlx/query-ff3cfaae68201d92e5a587defc0b23eddb2d7a5a8a1572ef33f3040f8e0d671b.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT dp.\"sharePermissionId\" as \"share_permission_id!\"\n FROM \"DocumentPermission\" dp\n WHERE dp.\"documentId\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "share_permission_id!", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "ff3cfaae68201d92e5a587defc0b23eddb2d7a5a8a1572ef33f3040f8e0d671b" -} diff --git a/rust/cloud-storage/.sqlx/query-ff54b7462bad2c7811807786e3b57f3b77a2108138b267fd97144edad023be1c.json b/rust/cloud-storage/.sqlx/query-ff54b7462bad2c7811807786e3b57f3b77a2108138b267fd97144edad023be1c.json deleted file mode 100644 index 688074a36f..0000000000 --- a/rust/cloud-storage/.sqlx/query-ff54b7462bad2c7811807786e3b57f3b77a2108138b267fd97144edad023be1c.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM crm_companies WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "ff54b7462bad2c7811807786e3b57f3b77a2108138b267fd97144edad023be1c" -} diff --git a/rust/cloud-storage/.sqlx/query-ff7d21bb92d1ed078738e8190acee79c3e0b64c8c4a507719aa78405325cad76.json b/rust/cloud-storage/.sqlx/query-ff7d21bb92d1ed078738e8190acee79c3e0b64c8c4a507719aa78405325cad76.json deleted file mode 100644 index 6c75d8252a..0000000000 --- a/rust/cloud-storage/.sqlx/query-ff7d21bb92d1ed078738e8190acee79c3e0b64c8c4a507719aa78405325cad76.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT \n d.name \n FROM \"Document\" d\n WHERE d.\"id\" = $1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "name", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "ff7d21bb92d1ed078738e8190acee79c3e0b64c8c4a507719aa78405325cad76" -} diff --git a/rust/cloud-storage/.sqlx/query-ff9a8fc2c134909f51787e9bbc3e541dddf035820810dbf1b1a6feacfeb0e431.json b/rust/cloud-storage/.sqlx/query-ff9a8fc2c134909f51787e9bbc3e541dddf035820810dbf1b1a6feacfeb0e431.json deleted file mode 100644 index 81fd455c63..0000000000 --- a/rust/cloud-storage/.sqlx/query-ff9a8fc2c134909f51787e9bbc3e541dddf035820810dbf1b1a6feacfeb0e431.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE user_notification\n SET sent = true\n WHERE notification_id = $1 AND user_id = ANY($2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "TextArray" - ] - }, - "nullable": [] - }, - "hash": "ff9a8fc2c134909f51787e9bbc3e541dddf035820810dbf1b1a6feacfeb0e431" -} diff --git a/rust/cloud-storage/.sqlx/query-ffb324854a460dd540e7c0849f87741bc7947c8473dba0fb39c61ee8be80950c.json b/rust/cloud-storage/.sqlx/query-ffb324854a460dd540e7c0849f87741bc7947c8473dba0fb39c61ee8be80950c.json deleted file mode 100644 index cc13e43e45..0000000000 --- a/rust/cloud-storage/.sqlx/query-ffb324854a460dd540e7c0849f87741bc7947c8473dba0fb39c61ee8be80950c.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n DELETE FROM \"Thread\" WHERE \"documentId\" = $1;\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "ffb324854a460dd540e7c0849f87741bc7947c8473dba0fb39c61ee8be80950c" -} diff --git a/rust/cloud-storage/document_cognition_service/src/api/context/test.rs b/rust/cloud-storage/document_cognition_service/src/api/context/test.rs index a18b7449a0..d7bf8ee706 100644 --- a/rust/cloud-storage/document_cognition_service/src/api/context/test.rs +++ b/rust/cloud-storage/document_cognition_service/src/api/context/test.rs @@ -342,7 +342,8 @@ pub async fn test_api_context(pool: sqlx::Pool) -> std::sync::Ar all_tools, )); - let team_memory_repo = memory::outbound::pg_team_memory_repo::PgTeamMemoryRepo::new(pool.clone()); + let team_memory_repo = + memory::outbound::pg_team_memory_repo::PgTeamMemoryRepo::new(pool.clone()); let team_memory_service = Arc::new(memory::domain::team_service::TeamMemoryServiceImpl::new( pool.clone(), team_memory_repo, diff --git a/rust/cloud-storage/memory/src/domain/team_service/test.rs b/rust/cloud-storage/memory/src/domain/team_service/test.rs index 2fe7ca8ec2..402ba836bd 100644 --- a/rust/cloud-storage/memory/src/domain/team_service/test.rs +++ b/rust/cloud-storage/memory/src/domain/team_service/test.rs @@ -31,7 +31,9 @@ fn team_generation_system_prompt_includes_team_context() { assert!(prompt.contains("macro|memory-test@example.com")); assert!(prompt.contains(&format!("{team_id}"))); assert!(prompt.contains("Acme Engineering")); - assert!(prompt.contains("macro|alice@acme.com, macro|bob@acme.com")); + assert!( + prompt.contains("macro|alice@acme.com, macro|bob@acme.com") + ); assert!(prompt.contains("Mon, 08 Jun 2026 12:00:00 +0000")); } @@ -48,7 +50,9 @@ fn team_generation_system_prompt_includes_previous_memory_when_present() { ); assert!( - prompt.contains("\nprevious durable team facts\n") + prompt.contains( + "\nprevious durable team facts\n" + ) ); } diff --git a/rust/cloud-storage/memory/src/inbound/axum_router.rs b/rust/cloud-storage/memory/src/inbound/axum_router.rs index 44747d1553..fe17a0779f 100644 --- a/rust/cloud-storage/memory/src/inbound/axum_router.rs +++ b/rust/cloud-storage/memory/src/inbound/axum_router.rs @@ -101,7 +101,10 @@ pub async fn get_team_memory_handler( State(service): State>, user: MacroUserExtractor, ) -> Response { - match service.get_or_generate_team_memory(user.macro_user_id).await { + match service + .get_or_generate_team_memory(user.macro_user_id) + .await + { Ok(Some(memory)) => Json(MemoryResponse { memory }).into_response(), Ok(None) => StatusCode::NOT_FOUND.into_response(), Err(e) => { diff --git a/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo/test.rs b/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo/test.rs index d4cbf5b7ef..8249432502 100644 --- a/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo/test.rs +++ b/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo/test.rs @@ -5,7 +5,35 @@ use macro_user_id::user_id::MacroUserIdStr; use macro_uuid::Uuid; use sqlx::{Pool, Postgres}; +/// Insert the `macro_user` + `"User"` rows a `macro|` user id depends on. +async fn create_user(pool: &Pool, user_id: &str) { + let macro_user_id = macro_uuid::generate_uuid_v7(); + let email = user_id.strip_prefix("macro|").unwrap_or(user_id); + sqlx::query!( + "INSERT INTO macro_user (id, username, email, stripe_customer_id) VALUES ($1, $2, $3, $4) + ON CONFLICT DO NOTHING", + macro_user_id, + email, + email, + format!("cus_{email}"), + ) + .execute(pool) + .await + .unwrap(); + sqlx::query!( + r#"INSERT INTO "User" (id, email, macro_user_id) VALUES ($1, $2, $3) + ON CONFLICT DO NOTHING"#, + user_id, + email, + macro_user_id, + ) + .execute(pool) + .await + .unwrap(); +} + async fn create_team(pool: &Pool, name: &str, owner_id: &str) -> Uuid { + create_user(pool, owner_id).await; let team_id = macro_uuid::generate_uuid_v7(); sqlx::query!( "INSERT INTO team (id, name, owner_id) VALUES ($1, $2, $3)", @@ -20,6 +48,7 @@ async fn create_team(pool: &Pool, name: &str, owner_id: &str) -> Uuid } async fn add_member(pool: &Pool, team_id: Uuid, user_id: &str, role: &str) { + create_user(pool, user_id).await; sqlx::query!( "INSERT INTO team_user (user_id, team_id, team_role) VALUES ($1, $2, ($3::text)::team_role)", user_id, From 7a44b1908a465febc4d35f4ea5e550a4c0ddc990 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 10 Jun 2026 21:48:49 +0000 Subject: [PATCH 3/5] chore(sqlx): regenerate query cache with team memory queries Restores the .sqlx entries accidentally deleted in the previous commit (cargo sqlx prepare clears the directory while it runs) and adds the new team_memory query metadata. https://claude.ai/code/session_01CyfX47q3gqFp49pLrcco8b --- ...e262d6e096bc1a8547f5da22596dbc56e0ddc.json | 28 +++ ...023bec273d62d6c2f233c3236ffebbfaf5810.json | 66 ++++++ ...62bbdbf3d29b375b73ca25f7720941929f10b.json | 46 +++++ ...8324d50ac472be760c0efe10b5060b0878c75.json | 22 ++ ...fe4534c4caa33640876469811d19d64a9b7d0.json | 22 ++ ...85af4ce10f5f6ae5e3578637b66655ea6d67e.json | 42 ++++ ...38dde11698cc4164819d48cb8f99c1ec3aae3.json | 15 ++ ...e75b0085f5817ee4c3360f7cea76917fa5740.json | 16 ++ ...e5d27371757cc6e9019589182150af22b5e36.json | 15 ++ ...03de9196482e24765f4b2c93d2da50273d69c.json | 59 ++++++ ...fc2ec9d8f3ebfdcd4947b1349494bc13618aa.json | 14 ++ ...fc3dcd6d71b2c0029f7f7fa3ef3285e12a8f5.json | 14 ++ ...e5bcd98c0df2596f1d098c08cd4308583f307.json | 28 +++ ...a3bc08f9153d9fb263062a46a80cec5c151f0.json | 15 ++ ...57eed63182d21b432b58fd25b7524d1dc0092.json | 88 ++++++++ ...e734700b1978cdf1a62bcefcb3a9bad3b6eb5.json | 17 ++ ...ecc5418ff770838a4acfbd28bec8b78e16874.json | 41 ++++ ...a4477aeafb381e532657ccb7b11ad05b9038e.json | 23 +++ ...f115e771ceae4526e0a13928152e2bb1bb9b3.json | 107 ++++++++++ ...9cb208449ea7048e319ea8475752fe96d650b.json | 16 ++ ...147d0d4f2c1e409bf1aa2263b84c88e2deda9.json | 74 +++++++ ...3bb086ba5a39c1dc656aec25f2dd2a4eb249e.json | 23 +++ ...4f7eb4ee08f375c95d9e40bd879d1439a8342.json | 62 ++++++ ...6bd4d5a2baf8313799b21496ce399d3612b1b.json | 15 ++ ...0ab3ab9a686e9617ce4aea0e768cdc3c78f86.json | 58 ++++++ ...d95dc07b98f4a64effa9b76d58089fb0728b1.json | 46 +++++ ...c4e04e513e99855ca9dab076768d43e189a80.json | 28 +++ ...f52f8cc0083e99d30810753539a5df539d94d.json | 26 +++ ...6309607f9375d2ba7b151e9dc1a8493f88e44.json | 14 ++ ...fc012f06f1c298d1b287eebd7be0b89766702.json | 15 ++ ...f388ce48e6b8c596f420af1c837cf9572dcdb.json | 22 ++ ...52eb15603cfb48029d43dc507b9012088517b.json | 22 ++ ...7e07c1a4f41d65b619f6f949f18344b78469e.json | 22 ++ ...dd36cfd36e05ad43cfa0cea3654dd0d5ca08a.json | 14 ++ ...b7d15d9f0a638566899c59aae12491ed5b490.json | 28 +++ ...c356af9e557d3b3d67a1a9cf2f07d292883c2.json | 15 ++ ...ffe28cdc4f8cc83542bf69b8c502b4892a6da.json | 173 ++++++++++++++++ ...3e43456fefad97ac0ba38daf2e5e6880bb51b.json | 15 ++ ...53cbe0e8500e8f47233914c020d23d5a1b1b6.json | 34 ++++ ...27ee0f730dd38e1d82bd2a049d38cb7abb275.json | 58 ++++++ ...27bb363d4c1d98a2b589c260b9c77fcb94492.json | 15 ++ ...b1d4e83711bdb0670ea238e72097750435056.json | 22 ++ ...47c2a92639fec6e728a49b1f2a41906adb633.json | 26 +++ ...1f35280fefe178bfc01701fc09b8962def475.json | 22 ++ ...389dfd3ad004eb3572fb7d724b407bdb2c2e3.json | 23 +++ ...af0a38305c090cdb791212b5968c24ae5d5f4.json | 15 ++ ...7e6d7edfba61d784244a01f9d233d9b753dcb.json | 22 ++ ...f16140eb27339ca118ef7a6f063e113d78361.json | 15 ++ ...98858f2ba5ed410765ffca1b03abb05c7b098.json | 14 ++ ...5298215a79e06fd983ac9a13f52836719e8fc.json | 15 ++ ...2a9b987f96526f5865fcc9c43f6179567a891.json | 72 +++++++ ...470a4e91ef06ee2baf734cacc500df5f9cd19.json | 28 +++ ...4c7fb8a88979a966df92c698b295b8e3e28e0.json | 40 ++++ ...ffab02e9aee53b37e07531426a068007403ec.json | 22 ++ ...54fef2bdc00de80faccc661bc89ffbabc7eb4.json | 172 ++++++++++++++++ ...dc2d43865571925e95582689df12c3b02322a.json | 83 ++++++++ ...7ead8ceb0d4f0d05e22c9e36113b4cba6e5c3.json | 14 ++ ...ed534f7cf96c18081846fcbfbefa0a515f40b.json | 22 ++ ...f0da52521889a32fce2449d9d7f659835b845.json | 15 ++ ...1f653900045b70bc059b5126905e3cca668fe.json | 14 ++ ...4cb81f5065482c471fffa2bf248f73782a87c.json | 28 +++ ...eaf4fe7ffe5734a57567dfdfea1a78cfbb3ee.json | 65 ++++++ ...d3da039a7e63dfb1a4bab8895c6f18c1b819f.json | 22 ++ ...c2353c6a1dca9e1dc13cc21b3a23d9cd81e92.json | 15 ++ ...9889efcf4b3c2fbaec05c395de5e728b0fdbb.json | 46 +++++ ...0e3334aed9e8d1cb1efc3df8698e024d0aef9.json | 132 ++++++++++++ ...17b933697934a2b3d52e931bcb2f1dc64ac87.json | 64 ++++++ ...838e3b6b8cf4bd6775d083867c733982545dd.json | 15 ++ ...0926ee07c36bf29ff0031813a2fdbe1fd061d.json | 46 +++++ ...a6d1246298aa1fc06aba34a9282318841a112.json | 28 +++ ...35e76750719785a26e4c56e969fd48c5970b3.json | 28 +++ ...310950db972cfe6afdf164f822a6b0a6042b8.json | 34 ++++ ...170bd25959079efaf0bb0c916acae2234f90d.json | 24 +++ ...5025e8bf0dd3532b21cc1e2a939c0c26c7927.json | 22 ++ ...1ac905f34c70bd295694a120e8dd7891e3853.json | 15 ++ ...1270a0b93e88f5b7f7f7fc36276b3718b8297.json | 25 +++ ...405260eb8fd223e65f4c6da337a8fbe2acc82.json | 27 +++ ...537c13a9a4e4c313c115a83b0bc98c846db0f.json | 15 ++ ...2390a0e9214d8219a3d79f65ea5c66d55121e.json | 16 ++ ...d2e692c9a1bec3ec96cd3b2fba1176e075119.json | 22 ++ ...c7372d1de26ee74b39b5e9602534174f1f8c5.json | 29 +++ ...d522daaa36ef9bb9e1eed4ccca12de09f44f0.json | 15 ++ ...f30be2d8bb5808322565b29ce0a8db2bf3c14.json | 20 ++ ...c2369429e7fdc40a531ac5296b5442fa4f5aa.json | 35 ++++ ...a17b7345b658528783903597574827fd61dd0.json | 28 +++ ...5f04b372963a63e81918d061a0c0ffab89060.json | 64 ++++++ ...b5aeca5fd398adc48ed9f755490fa25e7f3f9.json | 31 +++ ...bf04a5ff4827980d61db77cf7645ed9bf551b.json | 22 ++ ...f6526dfa6bf93465f9c6708dc95e8237c1f51.json | 22 ++ ...01b8999a0cec4a928d253fb4fa49f78a8626e.json | 15 ++ ...a290ad6e8bbce98fe53cd4079791734567928.json | 22 ++ ...9df5c3364e8d3dfc0484cda469086991a64fd.json | 23 +++ ...db4bdbfedbde691ebb4aec849a07f6b54d0fc.json | 58 ++++++ ...2bccc39501f39821f5a5fac209930e6afd338.json | 70 +++++++ ...0bddccfdff4da1d53fe8e16c26e825dbc1b14.json | 16 ++ ...ef509d980650a4c5d0fca7053cba0c2543155.json | 29 +++ ...a69bc36b7eeee011d09a63b4b44b81f7663df.json | 14 ++ ...6bea2be0329fccb27362d4e3a5a37601e0ba0.json | 40 ++++ ...64eb026124d2a66d2735b95ef387433cecd03.json | 22 ++ ...90dd279939a1323b5805eaae071cc500f54dc.json | 15 ++ ...f0a657d995d9292dd6cffc385e2f92ec07276.json | 24 +++ ...fee888a6e18170f84df631df81e3e84158348.json | 34 ++++ ...7f64a5b303859b36186f4106144a2c5cc23ac.json | 46 +++++ ...b44b0a333958a67d89dfcb1db9dd523a1b837.json | 22 ++ ...ca35a4b9b6c1d70fb86dde1ec83a2314350d2.json | 22 ++ ...41e2410cce10dc0c7a196e5104e6fa2ae0875.json | 14 ++ ...f4ebf664cffc44082996f6b60a60373c28f75.json | 17 ++ ...89c36283225f47a6b37c197bc543f3fa18703.json | 34 ++++ ...00b516be3f85d42ddeaf9cd9d0563e1303201.json | 34 ++++ ...1ee30fef91724dadb7b7c1e461d8286235f60.json | 44 ++++ ...d30f55a71271945c03e98665acc3cc9d4ea4b.json | 22 ++ ...65da8af863d2fd1ebf848a1a6e64db75a9ef2.json | 22 ++ ...de9b4f09cf2a0480dbca99952cf0d8b78b177.json | 14 ++ ...87b855ec6f10241b3e74499f22aeef7f762bc.json | 22 ++ ...231154b7f03ae0ebb073103df8b0554d416af.json | 15 ++ ...267a6cf83c9efdc10ba23981f7b85847881c3.json | 73 +++++++ ...d13fb82179f90fbdd99b632a244c24f1ff5d2.json | 42 ++++ ...2a66944f723c32d9066d1d8b671b177986aa4.json | 22 ++ ...851f992232834de508dac16ff58d9da1cbc2a.json | 21 ++ ...135d288553a7fdc41589e2211da4c32cead9a.json | 22 ++ ...56da725bccb87d92dc3a2c4195a7b4c436a29.json | 22 ++ ...6c9ebeea62fe8b80747ddcf9c5fdeee1a6c7e.json | 16 ++ ...2bc32d23c2d62e36a11e3875a8b84e8f1e062.json | 19 ++ ...6ad4b8560ff21943acef9383cb92c46195d8e.json | 22 ++ ...21b9a3611ea3ae3bf5edccebda195b52bead2.json | 40 ++++ ...19581607988c79c9d2f4ead58811d60d5bec7.json | 14 ++ ...577540398e8ce459156d6f83fcb8193fc2800.json | 23 +++ ...3aa7b24dd0a456f3cd4863725b3089f7bbe27.json | 52 +++++ ...d6b55a4c527fd3105bfa9cf83dbc70516011c.json | 86 ++++++++ ...27a752597dae52b891be1e12526b02fdb2e6c.json | 14 ++ ...dc601bf0d997ad5b6974ef5866dd6262b8618.json | 31 +++ ...cb6344b42556f949b59a0f8f77a01ec8572c4.json | 64 ++++++ ...dbee5117d4a35ec182b62db7d4ea0507ee73c.json | 17 ++ ...f00790bde81c4e7a515e6cadbf341466b9fa8.json | 22 ++ ...a5fef86b1058e0b9ad16614fc06d02f4cf86f.json | 24 +++ ...5e81dd143cd4a51873e92050a0beedbbb86cb.json | 46 +++++ ...5632c78c630fddf249f0d53261e601969889b.json | 14 ++ ...7bd8c5254c63292c67e87ac3c3f45c20b7284.json | 127 ++++++++++++ ...c725bbda911931e97ccb22a5868b5a7655709.json | 22 ++ ...4369eb50ac8efbea1fd554bdca3d7545d61e0.json | 25 +++ ...e81a2f964defcb7b190460f2b16ac67078766.json | 34 ++++ ...e57fe675a43d9dd2d6198d1039565131d52f1.json | 22 ++ ...45df205acdf018d65ada384f0b059425e9ab0.json | 14 ++ ...1e243db4c43ec8630b32ea48b1c7e31724264.json | 138 +++++++++++++ ...7ee202fb2b3b011422dc27f351a2c3d10813c.json | 184 +++++++++++++++++ ...fe490653e4c1065cd55e9c39722b988c54a02.json | 15 ++ ...4b84fa6af6f7caa8353d52ed22e48b3899327.json | 15 ++ ...f27b45f853652a757123e3508017861b5c7c6.json | 22 ++ ...5f447e26ff2b83fc6c6e6a0e2726aba761a51.json | 22 ++ ...1d8b010408005f7e12db26e1c3fc5b6d23c29.json | 101 ++++++++++ ...ddd8eb29bedd31dd21719114646449ab1333f.json | 22 ++ ...1995677a162dd11af0b9d77df947b657cd651.json | 15 ++ ...863ec370be7dc1b87c38d1c53d898bfa6a235.json | 35 ++++ ...c821898f04952a5a597c9796e152fa4c65bb1.json | 28 +++ ...a1e722ca09640bdae70dad37a017fafd16206.json | 22 ++ ...3cd5280f4596a359328c00b1b3e2ce74c0234.json | 23 +++ ...ecc9949bb5adff895d426acbcdbef50a87e96.json | 14 ++ ...bbf45b0bbe751d89e8b841068d86b855f44ae.json | 22 ++ ...cc34060d1c9dd6f964f3d6444b55830af299a.json | 72 +++++++ ...4326d84465827ee265f1111cd30e6d936f714.json | 22 ++ ...d883668d0b8073143094ed67d34285f9cc92b.json | 17 ++ ...94e3aa7d6e5d9a2660ed6668eaec3d0b39745.json | 15 ++ ...5ce22f1e4fbd6770c390a252cd6c790ee2d6e.json | 14 ++ ...42c4c399bae6774014cf03704024bd4293821.json | 28 +++ ...a7d8e7db9a7fb97d8af9ca3219a9e13215742.json | 15 ++ ...09ffc9721b22d7e9d8ea5d80d285dcf65e152.json | 46 +++++ ...6506c341547cd49c76e365129d91650474605.json | 15 ++ ...7931dc2e7ddcbc393c0dc068cfcd1a752e6e0.json | 29 +++ ...aa96922a8f97e7a10d91ec7970c0cbf824281.json | 88 ++++++++ ...b2e3e3e1143e8ab3dae3a85e9e756cdf9bdc0.json | 22 ++ ...0091aebd9369c066fde6ccfe090bc97271e71.json | 30 +++ ...e7244ab1debf1731781813995f3be3075d9f1.json | 18 ++ ...a0a39d1e5a6fadc9170a2d863fee8fbfb0939.json | 34 ++++ ...df6fde6d25c6187e9b03a75640a771aa8899a.json | 28 +++ ...fce4a37f75e0b9796a77bb45d0ebb3264928a.json | 52 +++++ ...a25dd6084c0d64e4dc99d3f0d802f0ae61136.json | 15 ++ ...cd0f680dab8845b5789b83eee8966bbb85937.json | 14 ++ ...d502b89f9151a884b24f316c6196f62158659.json | 64 ++++++ ...5bdf9c83dfc84f0b5a8e8075a7153d7f41818.json | 95 +++++++++ ...f3f7a506003afe498d487699c0cb4b78c7899.json | 22 ++ ...956f0c3c8287e3863893eb7e8761af066a46f.json | 14 ++ ...7064a5a22071296f2603d6f86a7bc1816dd0f.json | 16 ++ ...b9ccc7072aac9d5dd7c17a15c6be812fb3d4f.json | 15 ++ ...86be825ff271d9a18921835dfd1864a78ebfb.json | 20 ++ ...2c9224a44d046cecb5cce585afbb2e8aeaf49.json | 46 +++++ ...677174bdfc3048719f1be818c11b6dd7ada01.json | 26 +++ ...9928f6e922ecf302228837e4d0686866ac515.json | 16 ++ ...61f1049c87b024003d7a6781ed24d82f095e8.json | 22 ++ ...145f8a813091547e4f47a9f1fed4b8959e4bf.json | 34 ++++ ...bcc6cbe5e22bd559419180a6c2f2855ff607e.json | 73 +++++++ ...87ca672780591c4b7b2ff5429121d5b4594bf.json | 70 +++++++ ...ccd9818906c386468c40410d1e96f1aeb4e27.json | 23 +++ ...a7251ed3737e3aa63d2213520a9f9b83a281c.json | 34 ++++ ...522346fb8bc6aa9bf669219c300cc398a1108.json | 25 +++ ...0b0a8701621b42e4c57e74d2da40062d577d4.json | 130 ++++++++++++ ...48f056a532178864f1f62ce55d107d1702f7f.json | 28 +++ ...aa202a0a8119036d4be0975aaac1ce6d96cd2.json | 22 ++ ...6cb0f6177d685bddedb06f1892d0014af6f01.json | 34 ++++ ...e1d3307bf0627fe420be6bc0509072bae1565.json | 22 ++ ...b5bf5fff4d5bc979ed1555df61f4666e1121e.json | 14 ++ ...aa303d315804838e6d3847718eecd239864ee.json | 15 ++ ...0be69a87c2a9c380a8fc2c64afa9fb509e9d8.json | 64 ++++++ ...c6376849461c5df6a9cb1037d1eee6e30cfab.json | 28 +++ ...c60160ef8399af5cfa11393a2e1e8d9762d65.json | 15 ++ ...a7a0891ce7e5f9d3ff36e6598d5f51650416c.json | 60 ++++++ ...8b2158fe2072af6b7baacd30b3f0095cb7e0c.json | 46 +++++ ...176766a0cd023d6730538b6e5c936ae7bdb48.json | 32 +++ ...f6f384a4763514d278b5444341390f58a8281.json | 14 ++ ...d45539b62c00cb222b029e501cd7a40e83ccd.json | 22 ++ ...f1591934bb55a9f2fed8e47dd4406085fa6b2.json | 86 ++++++++ ...f96b7c27c4d7457aeeb615789f1ebd5468337.json | 14 ++ ...525136fcd17a1d3e680142e5d0f9e253af578.json | 28 +++ ...abe9d4e5f57b4b08a18673276967b456d8bb5.json | 15 ++ ...79d065235f02119bbb2cc2b881f6fa8f82274.json | 34 ++++ ...f0e50e65f9f7dade0f8e1239cc32404e2b135.json | 29 +++ ...195b87a928d18ff10c5d5dbec9bba0dc9eca1.json | 22 ++ ...a03ec10c34ab1f8a6ecc6a9ecac5b964669a2.json | 71 +++++++ ...d5f7db7aed774cb8d6fd74645f5e09b2215c6.json | 15 ++ ...8eda21c8f93ee647274cbd0f7f8b8cfad02bf.json | 15 ++ ...a05523a4b1f4be0798ae362a325c172b19a43.json | 32 +++ ...d7a703234207c5747da7f76bf210966819fb8.json | 23 +++ ...8ed60ba013aa7ee53742b7f1f677e7082ce2f.json | 96 +++++++++ ...a72ee6558c2ea8bb9b58237370e3cb80d309c.json | 70 +++++++ ...c763f4d0b5e28370570971935d29237a0211a.json | 74 +++++++ ...7f581aba22df15410900b9f598daf699b60de.json | 22 ++ ...0861ebc4fc1a28d0a6e14ee1aed1d472ff87a.json | 22 ++ ...c2563d7f90f17e00e6c4e18d25bc0a7b1355b.json | 106 ++++++++++ ...cf0daaab7ccca3618ff516bdbf2efda3077e5.json | 23 +++ ...389f7abdcc74544558d60d817f56ff0c14524.json | 56 ++++++ ...97cee6ec3a0e3eefc8711308ef3c6b3f7f30c.json | 15 ++ ...13941732afc0ed4d180fdd982f50cdf39b08b.json | 24 +++ ...9b37a1ece02e7c4189d0619ea741f74f05bdf.json | 24 +++ ...862e24a45c9278ff5671e190b594d0972946f.json | 22 ++ ...7743862bb918f45f0a21481e044ff99427976.json | 15 ++ ...f9bf94f8980710a99f36274ab20bd75514a52.json | 28 +++ ...3f895f7b7c4f8458df987c7bed9054fbc3450.json | 22 ++ ...c7c86aeba3b076e8684a85696045ed3a4636e.json | 15 ++ ...ea6c51ce2ca2d05b985a30debdb97f9d7d78a.json | 124 ++++++++++++ ...4d904d563e57443cc3f65432e1db986f016dc.json | 22 ++ ...75eea5921057be13e25a9609410d6ac5b17ba.json | 26 +++ ...3ec5ce5f48079d5b040724b62f1964e49c932.json | 25 +++ ...cde73657c5fc5e53fd86a8a2eb14ad063af2c.json | 30 +++ ...6d2076f0654d89c89495858fec18432df7074.json | 128 ++++++++++++ ...8a316ee83b8e0b87a504a40ab4eb6f91c9bf6.json | 18 ++ ...aa320b6d72a5851a596cec6dc37b6ef5f80e6.json | 22 ++ ...55e9c81997db622339c1f414e36e873cb476e.json | 32 +++ ...31e02e1d6a1a5aa81499903ec6ca86f678219.json | 14 ++ ...f923cb9e2d47d3cb0adbe628f18f753995d90.json | 70 +++++++ ...da0a7c112bb86527c7200c38326cd920f94e8.json | 24 +++ ...5a7a2e43c2231040cc399488418eab9f6023a.json | 25 +++ ...fb47c8b8ba0618e2833475801815dff29d42b.json | 40 ++++ ...50033052a9fb05c14a92e0d2b89b3b47330a2.json | 22 ++ ...017303907af0da309f50568bda9f6fa74c22f.json | 23 +++ ...b5210b6068fa4a23b88e2b2d922f04e7129d8.json | 76 +++++++ ...668e0ab16c64bd9dfc905213681e6021474fa.json | 23 +++ ...441b2a8bfe4d2d7cc242195f298437d95e7c3.json | 15 ++ ...9c7347151ce6a8bed1faa103c27a490a110d6.json | 64 ++++++ ...abc47b8a9fe63263b050379d73cc14ce38fd7.json | 22 ++ ...df8ca99355322514ac541a95c0ef65491505d.json | 23 +++ ...6064359b93f5cadb52da18c5e12a50cf50ae1.json | 45 +++++ ...17aef97239bcdd408c928caffed0d69c21613.json | 15 ++ ...40734b03ec692b637f99fb61b25f9b7c54583.json | 22 ++ ...9ac2c7ff263b9340003c319475fcafdf0356b.json | 15 ++ ...0748ca056ffa883a4cdba1652b7b8500ba179.json | 15 ++ ...0ab6388547e69762533e204f39af71d0e68ee.json | 15 ++ ...5156432c57f20036d3e05eb8a72f09d88e10f.json | 15 ++ ...c4176352fa9b44242cdd5abe8b4ee18a62f8e.json | 23 +++ ...5f76ad39c5aca7b6503ae8e43ebd1cc5d733f.json | 31 +++ ...c2034a348d30889a11f28b98a9e4a0daf4525.json | 177 ++++++++++++++++ ...0207caec56d853493823994679a4b081a1c38.json | 100 +++++++++ ...dfb7c5904a23c2d859d838f607d1bd296777d.json | 23 +++ ...005f8da9e6128de27e65a9bb69e780615bf4c.json | 16 ++ ...8372d7c83b2ffe1f393c77ceae79ba7a24199.json | 51 +++++ ...e6784c946f05120c7c228ff258389ceba97a1.json | 15 ++ ...b23ec03e343c026d2e13ba7c4337fab85cd05.json | 28 +++ ...0eadfdbec930e33a0666707593e20ae4f67f5.json | 118 +++++++++++ ...a36d070bce17512b9ab348d0cb40ebe4d1b08.json | 22 ++ ...34d2095a2b2dbfc9d3a64e595f9725bbb0b8c.json | 25 +++ ...f64cfaf2c5620a534753cc358602d626693c1.json | 34 ++++ ...d92d078cbce9ef2e968480ea475623ec76f63.json | 40 ++++ ...44193d3c769a6d43078570accc708e6a749b3.json | 15 ++ ...2291e713cf20f121e10997bcf944f3363efb8.json | 34 ++++ ...07209446a4893f7f44b1d5c19cfa9fd387695.json | 23 +++ ...c97f9eff09db1237092b37fc80ece52ff410f.json | 15 ++ ...c48267215a33e4c8d135319959aed14edbe63.json | 42 ++++ ...4a35a85f1671b808c2f2b71781114bbc1d134.json | 22 ++ ...43296615904f9af24c4e18dda50992b47d5af.json | 16 ++ ...2ea545e65d41bd61891ed3aad8eda3c4d90dd.json | 33 +++ ...9bb51833195bf60052e04a1c754df22f57220.json | 15 ++ ...d8c9786d6202db2a9fc41186d53c430d8f155.json | 24 +++ ...03d923622666779a97429afb926c64b517e1b.json | 15 ++ ...7a491c8ccb46f90738f8ebbf25afea699876a.json | 24 +++ ...00c4882b1c7fb6c56e822cc4dfb8d4191dce4.json | 28 +++ ...f42d96b19eda98a61750b4405c0a0c55e50b2.json | 15 ++ ...176e5b20c478d2e5c4cba230e5fa3f57d38d6.json | 58 ++++++ ...251aaeac0e320a02b2504b1bc74402ad894cd.json | 79 ++++++++ ...b50de4413626a5dd460c83ad9e997fb8e09ae.json | 14 ++ ...bed0d042a4133b63124b1894da135d0a9449b.json | 20 ++ ...00d649e4aa06841adb1645d4f17507cf15694.json | 25 +++ ...6423fa95a0c127fbeba0a59d7096b0177c072.json | 52 +++++ ...05709ccaeca68b0ff0906e2f6be307963b49f.json | 23 +++ ...25b205e0b6f330e4f3eb9690375e992ce2194.json | 22 ++ ...7a72f6dddf521d5df201bb11207e89be08747.json | 34 ++++ ...60356850135fd8b7bc79ef54d6548c40dbbb0.json | 23 +++ ...1d991bb8fa6a687207164d713487c524d87a6.json | 14 ++ ...c72d10d42e25aa07353aa47ebd3f1ad4f56a7.json | 22 ++ ...20f8f305d08873a4c857c118f166d6c16b6af.json | 60 ++++++ ...38ed2f91343adfb13af0c7573dd6c29f8ac9a.json | 16 ++ ...a89baff99dae621e7cbd7a10017beec9485c8.json | 50 +++++ ...50a316694bb9210e88c664c4f998fd5759fb3.json | 14 ++ ...6f12e812b89f46a7a40cb0d4b0ff8397b1b2f.json | 24 +++ ...344b931487b41c9b146538d6d1769033c3046.json | 65 ++++++ ...5300efe7b0bcbd74ae96f3d65aeb8edd064f7.json | 58 ++++++ ...2c3c3897c0c17a0f53ce67c915b20e07b3545.json | 58 ++++++ ...83daebe532ed4f8935d06815c24289d3c91c2.json | 172 ++++++++++++++++ ...c76ed21031ab2497aa0c137a5644f7e7e6e7c.json | 28 +++ ...be80494d59ba5242b073b9dbefbf8752a39f6.json | 26 +++ ...3fb37a8a26d78f4e275d9bca1ebaa7e558f6b.json | 14 ++ ...83c72877347fafb9fbcde0935ac10290b7cb0.json | 22 ++ ...423b210d7bcf2202ca38480fd7ce026977166.json | 28 +++ ...825873d729e28915a0fd36335b36494a93c53.json | 15 ++ ...cb27fd4220b15126fd010acbf4b954a9afb68.json | 23 +++ ...c287e3755f19187f07ec05d4ce0c60a5df751.json | 52 +++++ ...ab5fe676b45c9942ec0c99486c03e52733a47.json | 38 ++++ ...d9bd9c5890cf1c144f0f8905664cd72c7f132.json | 41 ++++ ...8ee8094c2cb84ed3f4dab9e890d441611722b.json | 146 ++++++++++++++ ...1d39329574a7a99ae1d295fcd43afa5963408.json | 28 +++ ...54b0fd109b0089bbb4951379ea045012ad6f6.json | 22 ++ ...88821246cd0b2d459d8dc667be1e6c8de1c98.json | 22 ++ ...3f685b084283f4fb1cc683330b7c7875ca312.json | 15 ++ ...3ebe3c3191c212f37631feda29343104f9548.json | 18 ++ ...060cafd143f63c7548ffdb8ae19461d0f0c76.json | 95 +++++++++ ...2c48cb828e3c0ed342d0c2b090c2a69c62a2f.json | 15 ++ ...4efa3ae9c2697363d56278789de68b2295366.json | 24 +++ ...8142bbc2bc0256ff84a6ba9ab2f98fd9fb0c1.json | 15 ++ ...b0543e406adc48edfd2a72ed715164c4a093b.json | 41 ++++ ...de844abb56d9cb3a88034db7b285fcff7e9b7.json | 22 ++ ...8e5e4c70fce8558763d56a3f57e99474a9aeb.json | 38 ++++ ...b7b0e02ced66e66f2d985f3da2d3eb7ad8c60.json | 28 +++ ...7270307a3e4f36625e76d489d4bc39b66e759.json | 22 ++ ...c83ffd5ac9b4ce85a5d08d0fc5095efa73505.json | 22 ++ ...d1e7dc2d0cea3efa5b87c16cb2416b43fc098.json | 41 ++++ ...2e8b441f1e9e067086b05617437b6f43bc329.json | 22 ++ ...a9efbefbd111110b9f0fab5cf029e70208c1e.json | 82 ++++++++ ...8c1a7fd6ded6c7e73a7a2dea50fd492d5e88b.json | 15 ++ ...4d86540a99362db746fa2a04a2369bac18095.json | 22 ++ ...17d6cfbed8fc192939cc0e5e43b86905a4ca2.json | 14 ++ ...fd4059933d25cca50775c74f1ef5a0224493c.json | 52 +++++ ...8586ff1dd139822d3cbde8e125add5575194a.json | 40 ++++ ...c1d14a38ad27be4af19f4558d1439e5e1108b.json | 23 +++ ...bac9d3c4b8b107dd02fd35ec991e848919eed.json | 83 ++++++++ ...4f95a0dc0ae92127693240ce9dc0acc3b7467.json | 28 +++ ...31128b89c8047812362331ded6b6e0a12e1ac.json | 69 +++++++ ...d1fa944740f01ce65798b18269b099a65a283.json | 22 ++ ...89e50037adc4b72c364bdb4282ab0c8cf1237.json | 16 ++ ...b146a3631e9fb26323cae0e49e9d25d7d0767.json | 41 ++++ ...a69cad83d20908c700d750a4047ce5bee30f4.json | 16 ++ ...18a5303e9f456e3db0ac35840627b086d3995.json | 74 +++++++ ...de283865e6bbf5776a9f482a5d21568c14d3e.json | 15 ++ ...1229d7042950891759db010a27c5a18ed2909.json | 22 ++ ...69e6ad7a517fd29a3d2a7634cc655bf7f2bfb.json | 15 ++ ...5255d70d2b790baa1bfb5397913d2a4b1dd8f.json | 15 ++ ...68d4463413d22894b6c6b72965f90d8ef0436.json | 16 ++ ...00c114cdf9ed7f203553020cf032732892e80.json | 27 +++ ...bca7bf107ae20dbadbf64a7799ab162b2feb4.json | 95 +++++++++ ...25be135e66c8215c051a56c7aa032b2abbd02.json | 26 +++ ...ee9ff97875c9e2335b46fe13b2bbdee721186.json | 52 +++++ ...c923e43d1d9abcfa5ad3fd714ce35c3c0e3f0.json | 22 ++ ...e1ec8ed06a16fc14ae6d4046eb75bc427fb69.json | 58 ++++++ ...c0b1a97e277c5c50d9f14dd86c121164b486b.json | 15 ++ ...6ad45483ad784af4908660342b1c57f045095.json | 64 ++++++ ...8d2b4c354daa345b9c838adc1fadbc6a1cbb5.json | 23 +++ ...e170efcab0fcd922e2c5a79772256c1e51baa.json | 16 ++ ...e4dc054b233dea57f9c78a4f2ba5b19284f62.json | 22 ++ ...6ceff6eead17cf856cf45a6a49896626b6bdf.json | 15 ++ ...6ad7e4dbcb5e7f6b0560316ca474878971e63.json | 84 ++++++++ ...de88693c45f2184b1d9553a9baa36cbef6380.json | 34 ++++ ...96f3fc28bd7c823b9eb181eb0c9fba7635c37.json | 34 ++++ ...82762a83c3dbeec3eacfeaadae1ca8aff376c.json | 34 ++++ ...0b27c51a57253d0d82c55793eb5b0852d476f.json | 15 ++ ...e4e0761b29a596122af48beb1a062bd157844.json | 29 +++ ...502b405bd0e971be8425d4573846beadb6bf3.json | 61 ++++++ ...f100a55cf2bb037ec171c3bcc8650edd73548.json | 25 +++ ...dcb90b605b55480a604c4e047c450b5ab433f.json | 20 ++ ...08d4fdf58135dc3e99ed73381a29f94b8a270.json | 22 ++ ...4e41c9e9d93550acd5c691de63e313a5c9b54.json | 40 ++++ ...02daa92a5a01f2ad46d8124e0568ce8b17073.json | 20 ++ ...fd9fcb0d4778c5dc308720710e8f5e9995911.json | 57 ++++++ ...8653289e7abb1719b58fd0a4d7e8f6cedb423.json | 22 ++ ...f3e6bec03dc90a97d3082614d72ad35e6f5d7.json | 26 +++ ...b2fc4fc9f5d61726741284b1301af69517705.json | 15 ++ ...cb6ab0ea074976d13639ccc6d6932f79fae13.json | 24 +++ ...eab7815948fcad38c5ce05925ebc4a5ebea69.json | 47 +++++ ...a7b3f36ef0e70c887db31f5cc5a8eb8ee1844.json | 14 ++ ...177abfe97c6ce6291ba8f83148ba02eaead73.json | 45 +++++ ...da4e6e89dae702e5b50269db6e17265d14643.json | 66 ++++++ ...8dd69f6539902e580bdeaeaabdbf4d72793ef.json | 14 ++ ...3315c56e84c969498cb55c34bd93d937dd924.json | 14 ++ ...9f4e18f2b4f992d73ad2b608b77869a7856a9.json | 46 +++++ ...9ad7cdfe99f883f0e27a402545ce0b3557ed1.json | 173 ++++++++++++++++ ...d4c322073f31bf3123cf8504bac3ac225191b.json | 173 ++++++++++++++++ ...f1ebd8a471c3b0e6e4016de97a8fbfd1288b7.json | 15 ++ ...1835385045e45c20aaba40ed940cf3f25a07a.json | 40 ++++ ...37f7074464d19fc6646401072914709be353e.json | 172 ++++++++++++++++ ...277b5298c45ed798719e792e722bd30615a95.json | 73 +++++++ ...5fbab6644ddd99a4913bc05ffd713f0c4ad5b.json | 15 ++ ...f001b1da7b88bcd175929f42b88146d4707f8.json | 66 ++++++ ...2991b831dc11f9ab91d92b368340fa0aa8f8f.json | 14 ++ ...a2ea768622c3b189ffa6664c15669f7d78b90.json | 77 +++++++ ...bb5f5d73338d8cb9ec96c67fd8d6ea4746970.json | 34 ++++ ...2cfa426a24d03d78ddea8c6c837143bb1d6bf.json | 14 ++ ...eb291f29d3fe5dca1bfa5ae426aad4a086ccd.json | 28 +++ ...cae43516d969d93066adf3bea59f64fcce246.json | 29 +++ ...15e99eac0492d7e855375a0389e246c400049.json | 128 ++++++++++++ ...fb21edf79cf3409c9d1fbcb71c4564b6b453d.json | 76 +++++++ ...cb505e07534de33d0275ed860aea9f6614fc7.json | 145 +++++++++++++ ...c0d10a911eecd17e12d2c3937dae20ae71bef.json | 22 ++ ...1031cd3fcee89685f44afc0d0305ec6231093.json | 28 +++ ...5cd58ff2db92684a0c685bad7e8f133521563.json | 38 ++++ ...229df9ec397fa2035c305d00133abeea39358.json | 28 +++ ...f3e2a1bf3af9a8fb1487fd32fb3f833641046.json | 22 ++ ...80bca194989d88fd991abe2efd2c66d5a5e8e.json | 24 +++ ...b2dc247030b9e6eb3a750e30cdd770bf92fa9.json | 39 ++++ ...5795696c6d02cbabc4619d6c384bfb5bff330.json | 15 ++ ...4b3d940d114ee09eaa06916c48da29b8ce62e.json | 77 +++++++ ...b5d7c6f8264109d57c825e903233bb7ea22ff.json | 15 ++ ...10ebf8de2788f357c3af3932a6516c235271e.json | 14 ++ ...686ac9efbb516589692adcb97ffd1ace56ac9.json | 21 ++ ...aa3a88303c3508b7218179e27812e3cad7ec2.json | 83 ++++++++ ...be6a894f1c511b957f6988b966d730d47bc59.json | 15 ++ ...28c093cc117a1ff6a8628f3bea4ea860c2dfd.json | 94 +++++++++ ...61a56fe28b866c4e6684d4208f97a21a7c5d8.json | 15 ++ ...585d16912c6fd506196d2058ee41c09e71433.json | 16 ++ ...f724d132c32f4971d533f7dbe0a42e283ebce.json | 23 +++ ...aa7edfb6bc776504942fd6f5ab4302a49a857.json | 15 ++ ...38c649fa27b433650b735c685e60ad9435a4b.json | 22 ++ ...e3d2e68f8539e835552e8c8ca0d562adbbefe.json | 22 ++ ...f9a57924573692cf0529ad021b6eef00ce99e.json | 28 +++ ...43a94d927a08a81b8687714a96bd52a94cfcf.json | 76 +++++++ ...54182467bb638a6d399b3ea8212d1a026d4fd.json | 14 ++ ...1bef7da249de88d145a2925832425785250f8.json | 22 ++ ...098a0efa439c0ccefa93c46971a0f2fe7efcf.json | 35 ++++ ...3696b517ecdd60243bf27c9564c7b969f1143.json | 74 +++++++ ...98ac55b426b0493e769ea607618db7e246a71.json | 17 ++ ...0ace37f77dd6806bf7f26211b3faa0fa84422.json | 22 ++ ...676169f0bc6f606b04b1e8e3080fe95717b41.json | 22 ++ ...21530de25c237c7e369b43a60ed7c28958fb8.json | 22 ++ ...0e0cb5153d368eceb75d03b4cf1adfd1f58bf.json | 22 ++ ...ac1d7893590a8513c5d2019793598704f64fb.json | 52 +++++ ...3968dd31da940638917a96ab12dfc5a98bfa4.json | 58 ++++++ ...0de19c2d6e90cb030f64dccf965a0515b467e.json | 106 ++++++++++ ...904a62689388c0b28b77a02946952e6aa8b36.json | 16 ++ ...a516b7122cb0462db7ecc569b2e55a6e5057f.json | 41 ++++ ...3a7f7f3c37e866d38c2ab99cfeb2fe940b2c8.json | 23 +++ ...37d0febf04a956ff09e0a57665211118e876a.json | 19 ++ ...05be4abae89c4eb3c5532a96b91f3d07e232f.json | 46 +++++ ...af993e24bfe90d3a3553f6851b3e92c8540eb.json | 63 ++++++ ...624fa3af4166de80e72dbcae524f63af9ae2e.json | 69 +++++++ ...200ba0582eaece5a30939ed5527bc05970795.json | 76 +++++++ ...470fdaf0bbd407265fabd04e1201cd3754809.json | 28 +++ ...ec7f96170613378e2fc37f78f2585a26f91f0.json | 30 +++ ...7064c46d9799c3d1282237646ec295890b2f7.json | 15 ++ ...823a3b0caf86fa2ff09ea307703a57ed72c68.json | 16 ++ ...9c5bd7f594804d634f2d805ef47f997b270df.json | 14 ++ ...a8c39369e808fdcb9ae39bb8e31ef99bbf3e8.json | 66 ++++++ ...a101f26817ebd80c68dbeffe7c3226ab67a41.json | 15 ++ ...61448366cff0f2db4b3bade0294bf0e4a9bf0.json | 22 ++ ...1500b574a43db370a9c995599ae8aaca20f23.json | 71 +++++++ ...ab9213313858eceaea2015c5e6d584d2f168d.json | 15 ++ ...be7b95b9ceab66d44b0a0158ae65aedd79d02.json | 95 +++++++++ ...41ba63241b13c30a3413e83f0206497a5591a.json | 22 ++ ...97f5cbc314f1462ba6368aa297ff3758f5e61.json | 14 ++ ...8113cdb5f9a4526c72be1fcce6b3bb2e88d2a.json | 15 ++ ...39b2a7a87880e5a9c6aa565ac85e0efdde85d.json | 23 +++ ...ce27e9f8c6a5ba43888d9e357b10d95e0f6f2.json | 23 +++ ...4d9f77f55d10e070be80de74d22e18ba8a7d4.json | 22 ++ ...d0252976b275c608a3eb96e3043a1a02d452f.json | 47 +++++ ...66ba931aeb9036344782bd4a5e277df2c7ce2.json | 22 ++ ...eccb8ea77088f535970dbcf5f80d57a9a4c5b.json | 110 ++++++++++ ...330f4678e3d3d44f1369bdd0b31f21600fdb1.json | 128 ++++++++++++ ...607566b99dbd819d7bca5a88e62fac00098d4.json | 41 ++++ ...d5056b6e87465a3e8c7bcde2db81b75ba2f57.json | 14 ++ ...fee699c6de82cfa14ba2a403486731366d664.json | 35 ++++ ...76b882f5be1d44a2a06a71783418fc5ef381b.json | 29 +++ ...d67a55ae4e7f2cf8bdde6ad1c834196934cf4.json | 14 ++ ...05954c5f749b5a76592d8ba8bd78d3ed410cc.json | 47 +++++ ...56380bda195f4769b6420e601ed147a9439f9.json | 71 +++++++ ...601338c1d98e45b630d1a3e1622fb16ad58b6.json | 59 ++++++ ...a5bfa78673bf04979c01365b9e9a35398125f.json | 22 ++ ...82666220cf9bf24918ba7c7b9fce1fcd5783e.json | 28 +++ ...6d201ca5190bdbca1c90001a98c46b789771f.json | 28 +++ ...baa584754659223dc45b3adbf30959b7f739e.json | 14 ++ ...f4fe9c1da7b19594f1b7dc59f2ed0a613dec1.json | 74 +++++++ ...06ae249491210d011843f13d67214f65565c3.json | 29 +++ ...4f933169f5ee39129b4bd6fa372311cdc15bb.json | 15 ++ ...67e2d99c3981222a87e823892706e4b9354ac.json | 17 ++ ...dc3bd8e945b75380f112bb1118491b3d03f96.json | 50 +++++ ...3c1053c050c7529496a73e3cf74d728f5b6ff.json | 15 ++ ...87a1638589d539c60d9dc5c2ab0865ff062d6.json | 22 ++ ...7811ad04313b1aa31f4b51abe5fd3bf569674.json | 15 ++ ...7655784e36ba1b3285b607ff59d9d88829f7a.json | 14 ++ ...929f7aac2269af2ec0830f98558045826576f.json | 23 +++ ...f52f37d2f54bd8243265c6561f4423af8617c.json | 16 ++ ...17b43793526453437ac01d9d20df52ff87ced.json | 29 +++ ...a880b859bc61f745087e067f6b05e6878cc04.json | 22 ++ ...6bc6cd3a96d84e15909c85c8e6ec4a8b69e42.json | 14 ++ ...14ef73e9c8ebffb19a40ed7e059004d9bdb9a.json | 15 ++ ...b657ca7671e1ab9d1a4691372693a9f9a4ff8.json | 22 ++ ...14cd04b67b741bac7bac67471bcfe21205d80.json | 58 ++++++ ...5d33e0f3cdd3a3bab22f0fd1eb5e71c46a935.json | 20 ++ ...68f1cd36c04d98b98016eaed27a98622c05c4.json | 59 ++++++ ...7cdc1a007500afdc7c8e232a59a8b60824962.json | 57 ++++++ ...0657cfa6d5e400247cbf304a3d28cde13c39d.json | 23 +++ ...d250abab1fda9e01dfd44d7e02e53f107816f.json | 89 ++++++++ ...0d6178a8fbdfe21983501c6baf4ce30cbe5d2.json | 14 ++ ...22a86ce4333805799488d1c37df47d928ddc2.json | 35 ++++ ...4f0abbb105b8fb03e44c12f7241fc52b022d4.json | 46 +++++ ...02b9b2036019140bb0da9d2f033cdba2289f3.json | 36 ++++ ...f98f24d1991cacd53b806e81746c16144cc83.json | 15 ++ ...d27fbb4ac3a6b655e5dc2c11ea4c802587214.json | 23 +++ ...8cea15b4124517eeed1d24ab006dd33e409e1.json | 15 ++ ...8efde2c37d0ddcb6fa557b800cb442f7ba10e.json | 14 ++ ...75cb62de647cebc07d42b93e58f35fb34e7bd.json | 70 +++++++ ...0ab2977e09a30aa82b70b78e51c4a0877f229.json | 70 +++++++ ...f7640171d9adbb9f95962db83d979d02cc2d5.json | 34 ++++ ...772673560741961c20f5c401b59b5c5f6027d.json | 22 ++ ...b18f0867a279705c7f5a91775754f3cfbe83c.json | 71 +++++++ ...a037263a6ef8f1daf5eb8ee95ee50ad97f3c0.json | 15 ++ ...52425ff06f3bdc9bf008414db8301161d1f4f.json | 28 +++ ...11d0e6c269464a8506f0ec29db94b7841a038.json | 88 ++++++++ ...3b1052fe8c636b986fb6f59f67fcfd08fce38.json | 15 ++ ...7314630cfd377b004a8c1dfedbf5764137ebd.json | 54 +++++ ...bb866cacda011d43947e9dd29e0ec60f42d2b.json | 28 +++ ...ab0010e207e54ef3453edc0df2180a5e402ba.json | 15 ++ ...a304b0d9676ba2fb8cd7ac3e9c9906e5726d7.json | 14 ++ ...9257bc04def00c6417bee80f7816d1a085578.json | 52 +++++ ...efe90a96a9ba79d142abbcd4846b3400dfa57.json | 15 ++ ...fbe0b72aafdd053092bbbd4b1f918d3e194e2.json | 15 ++ ...b156ec4433cb228a034aed09e059ef005e92e.json | 16 ++ ...9f9d5c22ca624f08f29bed7fe9e265288eba9.json | 16 ++ ...1efe33721073350ae49882e066ac544bbb995.json | 15 ++ ...b7996d92d842e88d386cb0b65fb11468cdc57.json | 14 ++ ...d80da7dfa7251e2333f8981e2a76f40e623c2.json | 32 +++ ...c22d2c1075924eb4c5089bd81b1f3b72e0455.json | 15 ++ ...0984ee4911e974d0bcc78248c022d44fa20f1.json | 22 ++ ...c995ead4fd6f968ef17176a770ffa46b44f64.json | 23 +++ ...e7156eebd31e6d39dd4b9f6bbb397bd8a5f56.json | 57 ++++++ ...453738aa66c36c46313ca18c7570b406553f6.json | 20 ++ ...6c36ad70078feb62d295e33506f317fe07bb1.json | 14 ++ ...01a65dc6bad54ef3c3462f7bf5727f9ab3a42.json | 47 +++++ ...a596369e6a42d1371b871c7739e2dc0ff0b11.json | 15 ++ ...0cb0d1dde7ec2707d52d5d2211d5569d0a949.json | 32 +++ ...9ca5ab3dffaa6794fe78612b94389ee90e3b4.json | 23 +++ ...6fe432ac1128af2df592077c848e75009509d.json | 14 ++ ...55489e99232e1dbd25cbb3f31746b4b9614ab.json | 15 ++ ...b9f9e666235381e20631e0ed08d095a29507e.json | 22 ++ ...45071efd36c3088dab4feada6254bc1aa41f2.json | 23 +++ ...8c51813d41f72f734271c538bd3e5377e2a4c.json | 53 +++++ ...41346b3432771aa29162272624e4bed3e54e5.json | 22 ++ ...0f07f517dca38e8a70bad08b4b655cb1cd550.json | 16 ++ ...b46168b4bf9848d252242a06569301144a4f6.json | 56 ++++++ ...b78c285f0440e2c5157d1ef2ee614cc2105f3.json | 23 +++ ...2ca5c95970ef6ad421ec0f5fbe89bea212ff5.json | 23 +++ ...f4149fe8829da208e8689ccd7e2154e8d7136.json | 76 +++++++ ...32edf0d811d09c54b66522e38366cdefd98a6.json | 16 ++ ...866c7a6ba7f2a405b174a238623f5e496886c.json | 14 ++ ...8400d28bde0e2c3af5211a83a01165f751029.json | 16 ++ ...5f5f7c6116cd761471bd5e03f528bf32effa5.json | 22 ++ ...a429f9420fe1403f56b6c472640efd43451ce.json | 24 +++ ...f8671f0af53a90629efe34f6f4e13ba227e91.json | 34 ++++ ...9d46e5747660807a30564921bc371ddd1338d.json | 16 ++ ...114987bb800ba14658efaac7cafd0c16672c8.json | 39 ++++ ...ee2054d9f2cf9789f913e0f9cd65b9a93de79.json | 60 ++++++ ...ff6f2ff306ed1c8b69388a0f7fbdff9d9bc74.json | 24 +++ ...750328437c7732e147e15818a269bb63be183.json | 14 ++ ...7184e2e6623e487afc52358f77f57d236a255.json | 14 ++ ...6dfa3dd1f0ddb2c37493ed1235fe488073d89.json | 108 ++++++++++ ...cc1d34d10eda3212c0dcbd92db0ed61e86ec4.json | 15 ++ ...ba45d608cf5aa1d39c692c93fe06a5593f312.json | 46 +++++ ...c10673c7756fda2cce9fe8619d68d92219a88.json | 22 ++ ...f9cca114fa5fe46b7bb0de469135f54dcd710.json | 23 +++ ...a7da3261d0a04e24cc16f96ec9f2dea3b2e98.json | 22 ++ ...506a77077406116f58821f9c1b38b855fb995.json | 22 ++ ...40d81ccd384ffc21881d7c162895cb7d11647.json | 29 +++ ...c90f9a796ec770c53cbee32660ed867c138a4.json | 23 +++ ...62d6fdb092bffc720d929de5e7b50ecef5139.json | 28 +++ ...d3506f32146eb21d6714d60136850e9d849bf.json | 15 ++ ...a8803972c7b3e2b6a2b95c27f15068bed2ca5.json | 22 ++ ...8b05005afb77be95bc434a924e53c17cd6033.json | 22 ++ ...e43648c19b5a092049b7cb0a6382e931371a1.json | 12 ++ ...f683ccf76c634d71337d35d1a8b7004f31c35.json | 41 ++++ ...b4f783e345db19b32a815bbf68652121da947.json | 14 ++ ...e6b230a21fe9935e099d1310d244248ca253a.json | 23 +++ ...8bf48968cebebc7316b87b192d649e096cd67.json | 23 +++ ...e0c1625c2e66de29cdf080f66832e62e07e76.json | 15 ++ ...941a9293a5eeeb1de3900c3c39386d5dc57c0.json | 34 ++++ ...624be4d81662c6f82f6aa16ba2e752dcabd94.json | 22 ++ ...856a320bd22a3962cf1ccec2c930a56ed6a26.json | 22 ++ ...573beda79b93bfd874acc1b2059cbe041d8a3.json | 16 ++ ...c21c7843eea381e396a3c688b390ced89620a.json | 76 +++++++ ...ebde1405e003a2d84d25542e8a11c7895be18.json | 29 +++ ...80aae302752bce224b1e69dcb3f2a9c1cef5b.json | 15 ++ ...e1913f1fa8606bdb384b8e697cb5c723cf40b.json | 24 +++ ...00127619bcfe56c969e69c03c98e7b2d975f9.json | 23 +++ ...90b7a1e1eee80d0b7388c2ad68e8ce5a996c7.json | 22 ++ ...34398757d8e7959cd237df7e4947fb75aa56f.json | 28 +++ ...de53c3002b45bbe4e800fd2edf3c09f7625cc.json | 22 ++ ...3b773d4b7c9b508388987155815d8c7e1db3b.json | 58 ++++++ ...680c75ad890e4fdf4b9c0b9d88ff07abc23a4.json | 173 ++++++++++++++++ ...d70f665ebe35943b7246ff5e6e3f801183cef.json | 15 ++ ...c014cab9de72bd88605ff47a316baa2c7acc2.json | 22 ++ ...262c2f639f313f14fd56da967a74d91aa1c88.json | 20 ++ ...940bf0d6d2c4280e69b09b4f7c8839b5ad658.json | 76 +++++++ ...eca0703771ea550311dfe651cc4cc063d34db.json | 23 +++ ...0a09730630660ae75e8f6e5cfd8f5ba0ceb4e.json | 35 ++++ ...b3f8eb316ff51e1099e40611ba77f5c048828.json | 119 +++++++++++ ...db80173119aacbab82f50a4a1ae468aaada65.json | 71 +++++++ ...46cf0339ffbcece51c12635989df120793dfb.json | 77 +++++++ ...d3e9dcab6dcebcb601bfb1ed190dbda0ff37f.json | 34 ++++ ...6562ccabe8d554bb4013b3970ddd3f10fc364.json | 34 ++++ ...e039b37662cf51a607ad905f758c508aa5049.json | 22 ++ ...9bc1ac1a63e950ae4446a7c748ac067b7c8cc.json | 24 +++ ...d472b901c087890909de9a068d6bc1ba0eb7a.json | 22 ++ ...83d86a7214baaa710e8a527e1dd77ab8274b6.json | 14 ++ ...a69efaab69905bb6b97d5d57ad591ff8c2006.json | 14 ++ ...30f6400385b295a50b48776985089d6ae3c84.json | 73 +++++++ ...a8f976e86c6251e12517a2b1e14d525e09198.json | 28 +++ ...aad059a55440c2de73c818ef28d6cf08acf80.json | 19 ++ ...eb4148255b83e18fad15349d06c54040fd6cc.json | 21 ++ ...827d0aee69ec593e923e41d2545b75d1def37.json | 15 ++ ...77e939dd85a9090b3d89d71bb495b2ba7cca9.json | 14 ++ ...68c86028ac0ecb586a78fe55438f5e13b9106.json | 15 ++ ...4138f065c6c9b2a92c0de4d048dc72fdfe369.json | 17 ++ ...b42476455160ba50f8e599a47acca06484cd7.json | 40 ++++ ...aef3148e80824e023ddee78473fbae17720de.json | 71 +++++++ ...e4a2a56f301223b62413247ac15bd5fef29c5.json | 15 ++ ...c02e8c4a0d136a40149829b96dff878897108.json | 14 ++ ...8ecca7428b1054d451fb2f8973cf9c11caf45.json | 118 +++++++++++ ...8139fbab4c5bf559090a45d79384bcef71a43.json | 14 ++ ...f7c6599dd2dd0de63c92a772d6638bec6ef77.json | 172 ++++++++++++++++ ...4ba5f2cfd3a341111c1fc757ae75f50134d7f.json | 28 +++ ...b5956f4d84fb449358a83393d0491d712f44f.json | 40 ++++ ...b80eafcff34b2d5d13621a688883acc3db154.json | 129 ++++++++++++ ...3b547ad7f8880f4e695bc037ccc7ca8493f82.json | 23 +++ ...11c6419a2e25f66201dfefc8a87a586150d26.json | 23 +++ ...34534f93906716e415c54b6e3b30834973bc7.json | 28 +++ ...c62991540fc188b1c70f3c40a8a12f4908071.json | 22 ++ ...662f7a68651a2375e36b9923a6bf7fec71426.json | 22 ++ ...251d28c15592d8b50959c331bbc2ba45ceaea.json | 22 ++ ...01c5782128a4cb9a020e22ab83a24a6c2b4f5.json | 110 ++++++++++ ...d760a9d51f927e073bd9b2f07c690882fac03.json | 34 ++++ ...b8338692087d259f3c0dc0975b6b2053a7b45.json | 41 ++++ ...5cd78bb02fa8505c3ba8111d1c9e17ffd93d8.json | 76 +++++++ ...9afd4b4971b517b12e578ec2f534038609572.json | 29 +++ ...fb3ea45d1766256ee45b0c5967618301b2ea6.json | 83 ++++++++ ...1919d486794aef06d9296b91c7f13ad846d1c.json | 128 ++++++++++++ ...710814de9a258724b40796328784a5239ea5f.json | 60 ++++++ ...0c6f4090dbdbbb9f5f609edbad91becbc1bb4.json | 22 ++ ...2abb2b0d392b7f098fdedac066a67d4dfd7d9.json | 22 ++ ...ecb7a7493b1a1df0b372b460170154a49a509.json | 66 ++++++ ...0199ded6efb032bc7e2daaca06013bb130e9b.json | 34 ++++ ...6b8c05f43739f31587aa63e57dbfd0093ab1d.json | 22 ++ ...b096a1aedea8c4bb63029e0024bce1e5029f9.json | 45 +++++ ...614c820d21950e32ab2f6092c78dfb5e77aae.json | 15 ++ ...037f0121d673203126052c384ccca95d472db.json | 22 ++ ...b4adb80d18fdc595352afa30159ac3eb864bc.json | 15 ++ ...a1c1307846848b1b1bd40ee02438ada43052f.json | 16 ++ ...aa59144a5b3269120df892f161c74b5fe7436.json | 15 ++ ...90b3e0b6f09bc06968eb94e36d0c55c6b0822.json | 14 ++ ...74b9734ecd81e4e1e1d0f7a1fc3a7d2c2c053.json | 22 ++ ...80e664655853aab4646cc5e889f48c5511aa1.json | 16 ++ ...8a1917acb27181343384b86c0a9cc750013bc.json | 15 ++ ...2df35b86bb10ef4bb518fb4594fe81d282606.json | 22 ++ ...60bd057a7efe02fe027f9514cc8fbdba2159b.json | 40 ++++ ...b2bf5e342b790423e98d6c62ba29a1a434d85.json | 22 ++ ...89a38a749efb40b4e033f4525fcf03755c2de.json | 14 ++ ...733ab98724d4b89d409fa770209d4d7627654.json | 35 ++++ ...a7dc2d2ca72f9fc3d55a412460a0d8231555e.json | 22 ++ ...cb7e8e2f73c4f87ca77a32c64d99ac28a4b12.json | 34 ++++ ...d82dc4fb489cccaf5ca647c5a9403fa760ce9.json | 22 ++ ...1a29eb711f46fa9f28cf211136eb4361b87bc.json | 14 ++ ...55dc8b17c5a105492901ad72da89438ec6601.json | 36 ++++ ...870258288ab2b3125c4f31dec62d916f0b64a.json | 28 +++ ...13d0327649d0b807a60928142de0d6a2ce5e8.json | 23 +++ ...916be18a81bc149bfb4cc170586f707de7cc3.json | 15 ++ ...ea7da6a544800e931142ac88d413aaed73653.json | 20 ++ ...f2bf9211061274491815b8af4c634e62cee06.json | 14 ++ ...54c02f0776d151ed57da06713a6a0d7185392.json | 14 ++ ...7a956514fd084748105272d9915b515d0ebd2.json | 64 ++++++ ...eb8f707e99f0a207a9b34f27848ab362a7bff.json | 83 ++++++++ ...218e2e69f540f69d0ab223170a52ac92af43c.json | 20 ++ ...2fe1ce97205a1574fcedd7e87596c63d6dab0.json | 62 ++++++ ...36d64a890e17f75447b5b7bc743347d16a91b.json | 16 ++ ...c01f32d29696d130e0e1f46599273575bcb02.json | 95 +++++++++ ...04d8c58ec09f88682ed2e5ec0ea26605cba2b.json | 77 +++++++ ...879fc666056bef965cfce73149d446b4c71bd.json | 24 +++ ...500362b483bcea23aec896bfaf9e67fd6dc95.json | 22 ++ ...918bf6497d8ec2339d9173904a7532b2b0052.json | 14 ++ ...78a1879039b7230aa83df18f583106c97a18f.json | 130 ++++++++++++ ...8fe3569d973d3d2a3f723c70414c04cc574ef.json | 16 ++ ...301467f257fbc1bde2a018fe9efb1e6728cd3.json | 16 ++ ...cf2858a32311a07bca8ea0bb9f54ea507f8e3.json | 22 ++ ...48a7e8ad714623a8a2fe32c785ddb27937eae.json | 22 ++ ...70b154ad229bcf9280c54e5975914d1c6fc78.json | 22 ++ ...9c658fdacea4d0d0c7070aded12cccd373911.json | 16 ++ ...ee17e311301f88b1550dbff4eb41b6e12db13.json | 76 +++++++ ...9aa2089b8ab3ea0cf3fbe3b35d6f17be9b355.json | 35 ++++ ...4bcbee35802a575387ef081a09031b42f7de9.json | 85 ++++++++ ...51aee78b249f6d66133c572c39a7ca8e11024.json | 15 ++ ...c86a1aa898bcf344fe913db7ee5c47dfde47c.json | 22 ++ ...fcc0f253c96269afb634301ed6d207c206107.json | 15 ++ ...82e453c82b6a4c279973b2f7c0c631ffeff12.json | 28 +++ ...08a172b5a030ede2b8528a103397a6dc4a42e.json | 35 ++++ ...c57f4af547d21eb2f6c78c9e2335f4fcd64c2.json | 63 ++++++ ...c035d54880fcc3d80b41bd5d255245e94263e.json | 82 ++++++++ ...947769f26aafbebb3a1b0c759f5246fcca507.json | 23 +++ ...fe39d6ad21150fc2f1049548c724516b9210b.json | 15 ++ ...635362915023e2457fe6bb676c05c5d6f9ee2.json | 23 +++ ...ce2253c39d7532a38bcda72c8a6da965310f9.json | 22 ++ ...11f765a6c10025c1b519f4a5d76ccfd64fb75.json | 28 +++ ...31b621173c04bfda9678021360817c3f25103.json | 95 +++++++++ ...b65ae3b712a0b659b63e366e5f485b8630951.json | 16 ++ ...5e6c8e8d204599eb1ee4d576b9a913aca0b41.json | 14 ++ ...92913cced9a2c8a5eac4f07a4f56e621512ee.json | 14 ++ ...127970920fb761ec08d3303bffc94402b984e.json | 53 +++++ ...520046ac0e7e882d9c5ec76a3578ae4bc7d50.json | 28 +++ ...ab9ae6a9269c950b45897a5e64c14cd00e117.json | 22 ++ ...0eb521625862f180e9bc75096de5573436928.json | 22 ++ ...59081daf7cd5fb66aa4d8299f39c96e402d80.json | 28 +++ ...c8ae86c6f090cbfd28f22cd952756950a94db.json | 74 +++++++ ...e6c4f4b39b7ae7b8b4dd248f54714d842a08e.json | 58 ++++++ ...4932e4d2123e0721a86c2b2fb691a32b92054.json | 15 ++ ...3db9ae11c6625c948798e19ca19da4a30f3c1.json | 41 ++++ ...1a4abb11652671a95454969369a0484ed9239.json | 16 ++ ...2baa9efd886c9ed75aabbf05e9cc43636d319.json | 14 ++ ...5621e7690af924a1af7bb4748dc704ed8897d.json | 59 ++++++ ...d4311ca4e2ed8e7ff939912a65e045a49c939.json | 28 +++ ...78ee6d16600fb11697445001c661e49bf48f4.json | 15 ++ ...4ee795af7afc2cf14a910b0baf5838c4284e6.json | 34 ++++ ...812694d0f7408053c49c3e58ecca561d67c64.json | 46 +++++ ...5d567f40a1b54a6186e0aa064be0f18212c98.json | 95 +++++++++ ...7dcf0a962feb7832aab9fc4bd50613f742b59.json | 22 ++ ...7c0a3a97e5594c29f11fa893238656e161ff1.json | 15 ++ ...cec40eaa0faddb4490ad14ae9cc6c4d922256.json | 40 ++++ ...38eddd466c0ec2ec9f96ae2be185ef9ff1547.json | 73 +++++++ ...6809895c255a103ca296451cbfe6c99833e8f.json | 15 ++ ...7b81c8ff478ddd1d7116a626d9a7d4bdc0297.json | 173 ++++++++++++++++ ...c742deb835c1e2c5a23390501ef95bc0f12cd.json | 118 +++++++++++ ...8dcc47089bf02ae5dbf0f15eb0be64395d09f.json | 36 ++++ ...3fc086f4518149772d661222d54592df920d3.json | 25 +++ ...1bd176b609bdab2f96a13e2d035510a72eebb.json | 28 +++ ...c4d2d8e8113701d39452faa3147bb18974926.json | 24 +++ ...93577a02892254df31144b5df44bdc5b58381.json | 46 +++++ ...0b4b5ee7ee34505f206d0a6861cec41ef589a.json | 58 ++++++ ...1fdeb1b2ff97c69fe26b5a09c82d393ce4010.json | 22 ++ ...4b3d4a434de5c66f3cbcadedc4c6f20769ade.json | 14 ++ ...a11600e5f84094b73f3ce359c48e60b6921be.json | 24 +++ ...380459c4400902f4c3c86e3e2650613321a70.json | 16 ++ ...0887af626bf74de28e395ab8a1875bc9fe9ac.json | 65 ++++++ ...a41a916397efdb2620e338a211f97751c0d89.json | 22 ++ ...a66231fc7b960744db3830385a13a45a3ce8f.json | 15 ++ ...f9fd70cd817602df9ad6d355b26e13b47553a.json | 15 ++ ...70af1692f03a0df09f0ee78a589158e8f51ee.json | 14 ++ ...2eb45a7f04dcc2fbdceed41497048a2410ce5.json | 46 +++++ ...93f60b6731fa2c553f3fda711cf72f1574fae.json | 22 ++ ...cdf23a4a1c1d900d9a0267b1b38a054c49dc3.json | 128 ++++++++++++ ...9e0547ed654489c726b44faf23524f148ec86.json | 28 +++ ...cb223cda097f8b2d35d22f446f873960480c0.json | 15 ++ ...64c5ff57853c93ff00f768b49bf79f198590b.json | 58 ++++++ ...8ba67be32356a3b2b62660982ca8932a0d2f7.json | 12 ++ ...ebf87a5152702bb5b9ffb2b817ad93c0635ea.json | 15 ++ ...e61c04906fa841a9d21c29127d03797e98186.json | 15 ++ ...683f34a3f5684edaa965cbdb1b09e422cab8b.json | 16 ++ ...5abe2ad4c2f28d0f4cea773ef7b4267eb0e81.json | 15 ++ ...3dc157a2a327ce9aea06a1a772c1741abcf9a.json | 36 ++++ ...d1a363cada017252a6f653c2272608189bcc4.json | 28 +++ ...d81031064da7fa08afec7364df40546b1ac0c.json | 16 ++ ...2222f49274e9e72dbd25cf9c197b4f97654a5.json | 28 +++ ...d3495c14fbf4095333a1f5632f836b365065f.json | 23 +++ ...99d19192e10139d6ea089be4a3a4a7923361c.json | 18 ++ ...e3494eae0e23c6dbbbccfb139da68193690c7.json | 69 +++++++ ...086235243eae535cc42bb0908210b54b916d8.json | 22 ++ ...e2b8e4a6cc69374b90600457a32b14a91ae61.json | 22 ++ ...7931a2cbc77192ce513473a4f5e3498b8533c.json | 101 ++++++++++ ...479f1ba89549f1930f571bf278fcfe259cfd1.json | 45 +++++ ...756629b2a2571db10a385a0d3559f64481f59.json | 16 ++ ...b3209dfe7e2e60fa1396cfb3efff85e9d8c4d.json | 28 +++ ...b9fcc32c2a19dd97678335c04dab4739024d4.json | 14 ++ ...8c8a87045ca5aa3d85cefbba8111c65892870.json | 24 +++ ...e786b27205399c3295d82c636d07d7308bcf0.json | 28 +++ ...f91510017a27cd442f5693c5777ddc64d1c9b.json | 28 +++ ...402ddd6d9b5adcde3a8b55c19c649ac3d5a18.json | 15 ++ ...4bb36b63fabbaf3e826459537e089ed3c19a7.json | 22 ++ ...d4fdcdb3aaeb946ea3e5ca94dc58050ca7d97.json | 15 ++ ...c115cd53ef8d352740fbcaff2f3e53a630295.json | 14 ++ ...0c373e29c8ff79ed52417fdeeb4de8fe00782.json | 16 ++ ...f929750755818869e48118cc0f91187049afe.json | 22 ++ ...affdf67114b90d5d398d16dec2f801aabdda8.json | 59 ++++++ ...461a1b8aa81a865bf1af5434d5469efa44f76.json | 37 ++++ ...789a544d3b7e5710bbc19254fdff129624b87.json | 28 +++ ...76803fa1c00827bcb8f51c7d000c0a9adfa94.json | 16 ++ ...bdb20d4e37ebf037dceeb2673f6a3d64738de.json | 15 ++ ...27efead8bb987ad26e89f2e12f875ff38e0be.json | 46 +++++ ...693dd3ab1eb8b4f310528a43e630e233446cb.json | 24 +++ ...e39345a04dee3de88fd4cbc8fc6ab8f34da60.json | 22 ++ ...a856e70e71c0a070f0a1a005ba5e2aa7eabac.json | 15 ++ ...697936821511404ffb49c7ca4b8134e9c9147.json | 46 +++++ ...4a945a8d67e1d18153d4f0128108ce65212f4.json | 16 ++ ...a7bf0f464619f047b5d967914f7b476722db5.json | 14 ++ ...ca6fc4fcfc26228c3d3f8f055702598616a64.json | 22 ++ ...1935265af572afbbf60702a4521e4c19b8468.json | 46 +++++ ...7a6533d6f7c8d051ca997a7e0db53314d5f80.json | 27 +++ ...758d171081c5aa35c785b178150aa9d8d3635.json | 31 +++ ...9b2268827d7ce92ca55d21b38ba2a7a8b3c1c.json | 14 ++ ...0bcfad130247e99f31c127c6dabcbe1b3790d.json | 15 ++ ...f44fb02848a8f4200a900679efb26e1d0cb70.json | 26 +++ ...02554c21e5b44768f5761c1d19d019f7208c4.json | 23 +++ ...647888af5486e729bb5475dfabd21b01b4bf6.json | 15 ++ ...a4016db81bdbebd7ea0add856bc3eca7a7ba6.json | 65 ++++++ ...2579b6ba0f419f72b68d08cc2183e9d0d6341.json | 20 ++ ...3fab241312305c74f1bcdb32b96e924030b1d.json | 28 +++ ...a3cd79e1a80bc3f46cd063d0ff94d9b76f252.json | 57 ++++++ ...909f73796aef0302323f7930fe4d17ccfe6af.json | 74 +++++++ ...c54b2e1681ebbcbd9bb030768983d6ce966b6.json | 35 ++++ ...78e9b0e2f2228c5d6a7453122eb59fa90f64a.json | 22 ++ ...518c828b88bc4ca913019d9d4802395e7a22a.json | 14 ++ ...85d8cf8a255b6805fecec787953461a09d78b.json | 40 ++++ ...423e760ba3632bfae3aef9da1f146b7a9c638.json | 86 ++++++++ ...06bb48c977202f069d12143bece9f24bdb6ab.json | 22 ++ ...252d9726565fbef858cf484ca86ab0625c6ec.json | 70 +++++++ ...6b3a51049dd104e2306c4596f1ff99ec329c3.json | 22 ++ ...f3cf60de7edc46f5bd7d943873cf2809ade77.json | 22 ++ ...bde46c44d19face725f848d1d53c364a73909.json | 23 +++ ...12cfabedfb8164af00cdb4a52c9d1f98229af.json | 14 ++ ...35fdfe36277075384044c8f7f3e8ce810c236.json | 15 ++ ...c9ef5dc894f2a86012e54c8bd5e085458a89d.json | 14 ++ ...b75dfc995ac18e421ca940dd0828aa32b47a6.json | 65 ++++++ ...49dfa6bc98f42ecb46ee9d3c20ca2daf43e44.json | 34 ++++ ...1191a9b0ee849745041e1fecc7e4ba9b4fc5d.json | 15 ++ ...d7149fa0e81809511939a420fe17f93ae7d6e.json | 17 ++ ...a95f778b5cc841f3a08c8d406752da8d25be3.json | 84 ++++++++ ...21138cea6141d03301b03f7c7e0d509663dc4.json | 70 +++++++ ...a1195b845609b557d278290359a0e6170c10d.json | 15 ++ ...b77bede612a071cd8b18bb8d68965c1414204.json | 174 ++++++++++++++++ ...4f7d08731aa1543d9d2d6f6d105be9e7a0530.json | 190 ++++++++++++++++++ ...12b4c9bb92fe9450fa0950e91bcebfcb1adeb.json | 29 +++ ...c21c001e01d1691861d8b9df950b03bdb2f4b.json | 22 ++ ...e39aac513e2b7ae7c7aabaa9ac59f270dbffc.json | 14 ++ ...a04d156d39f39abea24050e63caf56267898a.json | 52 +++++ ...6ab8dc226dd06869786792add6fe5535da1e7.json | 34 ++++ ...940ba795df321fe73b299eac464a0ef6a3081.json | 46 +++++ ...e3b21c571b2c5a97baa04d68a2f6da500bd79.json | 87 ++++++++ ...2776fd1abde1cea7f0f5057fede45c2312223.json | 23 +++ ...4441ac2b9c20b0697d52467e0a12c17f8e473.json | 28 +++ ...7e8f32d4045c3e2baa01c7100ba834dcf80e4.json | 28 +++ ...437d1fa4498176f5e8deebcfc86f87cb20f54.json | 15 ++ ...ce7e3d89db508f08afe5c547e981a875e9801.json | 22 ++ ...a219f542dd6c24ecf785b30ef8749c0443373.json | 16 ++ ...8f60be7749e48143ad40a164b236e977157f3.json | 16 ++ ...094ac7f53c161f7054083964f472fa01dd83d.json | 29 +++ ...0187c3178efdf6853a22ee319c0163b1f6013.json | 58 ++++++ ...0dde4e9e2e39f7cb20c716fbbcc1ffe320cd1.json | 16 ++ ...cbfc71039effb4d2869606534765bce7b17fc.json | 24 +++ ...77a78ca0d7a1e7efff35864c58ba34028f2e6.json | 14 ++ ...364f1a7feee942c2a3785bf39c6f110aa70ba.json | 59 ++++++ ...9a4c78af368aa2134b235f8e1f046daa197bc.json | 76 +++++++ ...a14cae3fdde155d4f8c94418186d5a37f0686.json | 15 ++ ...fd996ffa1262e0a6ba8a8e1c58414759a1fec.json | 14 ++ ...2f01c886031d866616effed3c6a61a99d2413.json | 16 ++ ...90743da8653dc50e3d388697e429308afeafa.json | 23 +++ ...ab55518d34313519a62edf4174269606b1b1c.json | 15 ++ ...c7a530010c3a00b2f2d67403bc036af6c8fb5.json | 53 +++++ ...d81200e213e4f28cc7d2940a93aabe83877b0.json | 22 ++ ...9944da36cdeb0c7d3d9e778dd91ff8a470b51.json | 15 ++ ...ff42b906dcc72b2fb4bcd783b8cb7c06ceab4.json | 14 ++ ...a3d89543ceaefae74f8962e4504196d0b76c2.json | 22 ++ ...1d5e70039c2d64a25a54ef42b25889e75b653.json | 24 +++ ...43b70c598adf488d805325475770ae3b7c51e.json | 29 +++ ...abdce0882403268c35f6a4acf62c1212183fb.json | 14 ++ ...d7bbf32e70d3d173a748a07eacdb4e42841eb.json | 29 +++ ...99df3d949da660e009f35c480ba9fb19c9e07.json | 65 ++++++ ...c3a54ffc28abf61e66e354667d26ef3c40739.json | 15 ++ ...ce262e9ab44f10825969072c01a8fe3022a23.json | 15 ++ ...03ef53cc87fab0b12cff50d2e3474ff997bd6.json | 65 ++++++ ...0bedbf26640fdfad218b4dca813bdcee08a5a.json | 22 ++ ...c67300c2f673a0f7a7f6497690bb3adc8f06c.json | 24 +++ ...518b06d6247bf27821c9bea2f04c1eb999768.json | 146 ++++++++++++++ ...6b79eb80caf8e2677fcf4e7127151060a50ea.json | 23 +++ ...ebf12413a8a0bf8fee05fa130afb72c55ee41.json | 52 +++++ ...7e1256c960fed355a37cba8c9c1eeb630a5b6.json | 15 ++ ...7390b5d1e56dbaa6b8e59bc35e2a2e4937c34.json | 128 ++++++++++++ ...cffed018d15459e101dc907bd1fafb2158979.json | 172 ++++++++++++++++ ...1f9c9496412cf76d6fb5158fdc5510f59464d.json | 23 +++ ...09a42de5ded7acd840a8f9a3e065bcf7bcc0c.json | 52 +++++ ...11de74d311cc1a6096e49372e6cc18581b523.json | 15 ++ ...7716a24694cfd98741fc0508d607684b1c8a9.json | 28 +++ ...47f85169af66827f2b09287099c14a1a6e0db.json | 22 ++ ...657db1f0c4e2420a9f428d8d75defda053444.json | 16 ++ ...68c6230d9cf7f96e816a3f98a01b62e4a0a6c.json | 34 ++++ ...503cea1c346685d29795e26caab50e3654d22.json | 14 ++ ...a59763b17693c09564a0190ed377dd09342cf.json | 96 +++++++++ ...1e3986bdcced6e86a9c9869e38ff3e6d91c2d.json | 28 +++ ...b204219a94105e0ba590db0a97f2c384a4192.json | 16 ++ ...a51a2d068b5253bcd3a9d16b43527ae4e8f1a.json | 23 +++ ...33eab3722a94e49bf01605f69c78919d8bff7.json | 14 ++ ...9aef347e35bb2b023a820d85a2e85caaf7b61.json | 64 ++++++ ...7cf6555ee13b3de24bbe50bbc801a2730e446.json | 47 +++++ ...c25b4d5733d4bc21770570cdc8412d47ffe65.json | 22 ++ ...9693b568ab6d4620ad1b2f5c63d3938e212e6.json | 15 ++ ...bb851ba19858a47a17b0ffcbe4f15cd177cb4.json | 22 ++ ...d6093127a4ed57fa5ec3c2b43540ddf1fd598.json | 72 +++++++ ...8c7d897251a93c7d56b310a2fc6f026fdbea9.json | 34 ++++ ...db7f703b0994d6d519fbab0fdb67ea2df5877.json | 28 +++ ...fbd13c579e22b433553ba01719644a56ab816.json | 22 ++ ...92a5e92973cf114526f80dbe7ab714493090b.json | 146 ++++++++++++++ ...d9feca7891cdf00ad560cc522121ee8d6b4ec.json | 22 ++ ...f6579456c3d49bea87fccdcb9962565543002.json | 15 ++ ...9d392b5780cc548f331263a581d1b011eb970.json | 29 +++ ...55fe673e71f02106e9792cc4cac40f69b9176.json | 14 ++ ...68131fa26405dbacb0b1afe9a6f52e50fa57e.json | 27 +++ ...80174e549103ee63f03d30fe76857c8803b6a.json | 28 +++ ...e357dc50be7a4d634f45990b772eb0824a35d.json | 14 ++ ...3482fce25612d56dfdf78872d74019d8b5429.json | 42 ++++ ...66b08133a54fbde183a5df7a9b99dd7381ca5.json | 28 +++ ...37992ac2805137ee19f9385894688e6b8a62c.json | 22 ++ ...5792183e42f6c00ae95aa0f4fe869292408f0.json | 46 +++++ ...45f4088406bfee6ccb2ef6577643708a5132c.json | 14 ++ ...a5c409a5a54b41a9dd9e3db2267c9ee17d9fd.json | 22 ++ ...7204bcffd809e425e9236b897b5efa9c7eebc.json | 22 ++ ...95d91a96794ebdbc864ce0d6d8d455996914f.json | 17 ++ ...f91d523c596874f216a10180a377bbaf7a1eb.json | 15 ++ ...09e2d0f92546933588bad33bc3520d2ad2d10.json | 17 ++ ...5defd6cbcf8e801c4c4d43d5e0d1338e1ab04.json | 39 ++++ ...2aaa89d56232566edc15d9e9b819b9b02aea9.json | 22 ++ ...cbb794195e1e69ffcbf722c0a2e523f196c2f.json | 22 ++ ...945cfd0ea2fffa26b5324ef641dfe3e304682.json | 22 ++ ...29610352e02441283f12a67b0da0c44771522.json | 76 +++++++ ...b4f81dad7d0c3ec2cef1eda3afa66897081e7.json | 22 ++ ...2aea80ce9a658dfe055f146a38ed9e64effaf.json | 14 ++ ...3f38c805d6f49150d66c8a7325c524bebc854.json | 15 ++ ...681321d099febed2ed002dac6d706bf4ec173.json | 76 +++++++ ...a4077390d22923bff328a9d8a24275832a57d.json | 16 ++ ...0666d9fc7e79b8fa8619ba43bd1315c506e0b.json | 14 ++ ...ae985dfb1a3fc738532eca74c6b098c6772c0.json | 33 +++ ...2a0b25cce4d43b63f05fd04b52860c482ffa3.json | 15 ++ ...e09f925536086394de104bc823ad946851b0f.json | 30 +++ ...2c750743ed9c04ca6ea8a5fd1a6d3a5fe2d17.json | 26 +++ ...cdeab60aed26e9025fde7ea45b89c4d2cb4ed.json | 24 +++ ...ebe9d876c2e251f04f0aa9b1c0942d73a4e0d.json | 58 ++++++ ...d4ea8bacc6cdb063fd8f18894c6b70b9cbd3c.json | 22 ++ ...aee0d8c1c9cf7cb28867dbdd96b7004a5d259.json | 22 ++ ...68ee8a07030cb234bc0a10bc014c493b8e9c2.json | 31 +++ ...14dea634830b06660aef9661b820760a30768.json | 174 ++++++++++++++++ ...35684cd0163b2f71460d838be8eb16a25b7b6.json | 34 ++++ ...0302bcd20260c4d2d82e49167e5c7c7e77958.json | 22 ++ ...1cb8d7b9859dfe4272a92cbb29a4b64a1d695.json | 28 +++ ...6e15d8be6d62ead3408dc6641866a9230935d.json | 22 ++ ...9d19523156de3b771696a069389e5a38cd51d.json | 14 ++ ...08e3bf1c954b1773fcd2ecab33c2ba518ba34.json | 22 ++ ...5b91e1b413978e8262f7db56a6a27fa5ceaf0.json | 22 ++ ...0f66fad4698c52efa69d3b4a03324c09b87a7.json | 65 ++++++ ...517c98cfa67d86663cd13575bec99ee24c785.json | 76 +++++++ ...939087fbd3b34b296b546a34cdfc3e7c9eee0.json | 14 ++ ...ca6dd9e6af7a364499871944691b3dfee5a09.json | 15 ++ ...b0f550620554bab6862d4ec9731236c227cfc.json | 35 ++++ ...319ac0035e078be790795eed823a95095c7cc.json | 29 +++ ...a7b5a952ef5031c2737d084da33a24af2c8ad.json | 82 ++++++++ ...23fa1d2ed8c301776a9778c4947a9d84590e1.json | 79 ++++++++ ...2e12e2aaff653c37f79cd3feb22ea4b849ea6.json | 46 +++++ ...5cacfb7f0a441c630528d2cde076211ff63f9.json | 54 +++++ ...0b637539f28a5e8644f0467eca7efdb06e387.json | 22 ++ ...c23db0321cc59a5abd6f7f714b0333ca87613.json | 22 ++ ...42120d6333b8c605f6da5b748951d9561c1f9.json | 15 ++ ...1f08e02d42d09810994f84a250e2f43cc5acf.json | 34 ++++ ...41f5a5dd574ae4492f2adebd98021dbaab771.json | 46 +++++ ...c29318b92959b2ddab117bfd98273a45d1838.json | 28 +++ ...f3cc9e4d74a48075918e24327172256a5ad15.json | 17 ++ ...044463339682b132e007d56eae675e4795169.json | 15 ++ ...7c57d66ad08be04685ac40956a2d7d7b396af.json | 22 ++ ...eeca109ccd45ecae97f97cb61bd9fdd7c470a.json | 22 ++ ...48ab072c216515c897a4a1e10f310cc63b4c4.json | 16 ++ ...ff8b048d735cfcc23716612f2ee66a8c7151c.json | 14 ++ ...ea9b62060b16ba2e7714d5690cc8311a5e201.json | 22 ++ ...39fd871328de140968ba50c3db3a30cd3f520.json | 22 ++ ...578d085a7aec81551a38aa0c14b8e20491e3e.json | 22 ++ ...c8fa8858a6c5470f1c921ab0265cf7d1c9b2a.json | 24 +++ ...fa4809abee07e9fd473a5e9ae00ad8625a108.json | 15 ++ ...eba7b17a7ee70d1ff44892c747061478cee89.json | 22 ++ ...44150503f955a91339be026f8b68f65092adb.json | 84 ++++++++ ...78b203596330442305a6f3925edf67a8b52a3.json | 84 ++++++++ ...a582d76bd73ae439d3d3e6f1cf4e482b9ff55.json | 112 +++++++++++ ...7f7e3c28fa0e94f2563e99d82f306cf6530e5.json | 14 ++ ...49b0c1f6ec3da1b9beb4d212ddd5bc640948e.json | 58 ++++++ ...8b8341b10cfee0b725409138cfdde038712aa.json | 22 ++ ...85fe45f4dc1e66d4b5a846c734b308c74fa70.json | 129 ++++++++++++ ...6a5c116b68362ec45ffea5e2b25d86cfccf01.json | 14 ++ ...1708be47a56582c2f0323716f206ab905a580.json | 22 ++ ...ab6544c02094129fc9c7e921dd5280d78047a.json | 23 +++ ...034ed73a87e8599f27986495b62ce42e86384.json | 23 +++ ...17d2dcf7238a82ac9779e4887536003556e60.json | 77 +++++++ ...81d8767260559ccb0198eb8b7178448673810.json | 15 ++ ...fffa9af9eabd558af03fd0e2a250d29a4a64d.json | 40 ++++ ...b6c25ac9159ac952804c94f8061d811e1e7c3.json | 64 ++++++ ...8f082189e1588601b714f52d11fc273afb01e.json | 173 ++++++++++++++++ ...e2ca71b6832b6c46a075b432cfc5266c05115.json | 77 +++++++ ...38a0d4a1716f4d311683cc07f488d33fecad7.json | 16 ++ ...733a8e5a01c9584765a61536f0835ae46bca8.json | 28 +++ ...1e454df554d615c9ceeff5af763029972af30.json | 28 +++ ...aefb065d608c3866d2707edfec8e907c460c1.json | 14 ++ ...0d0a6c08112e41f085f59abcc855ef35d5bd2.json | 16 ++ ...cd2d4687d41e8fd09e04edf0f4861d48a3e62.json | 14 ++ ...4379c7fdaca83a33355842cf8b0b29d25a517.json | 128 ++++++++++++ ...c14253589d794894668f4eaf078ec8a5d4ca8.json | 40 ++++ ...cf71139a34878ece29560f7a1c48a73c974d8.json | 22 ++ ...96f4ea4bd008a19afc916a1147fca76b6d5b4.json | 42 ++++ ...b26999ba3ac23f89c8882c144d4c9a657e235.json | 35 ++++ ...15e303d2c5bed1c53a5c1cf255a172defa46c.json | 16 ++ ...6787d34173da3b114c61b2cddc69b7d197819.json | 22 ++ ...9301e0c36f4d600917c7573137e15688b1f68.json | 26 +++ ...0a9f05967d0adb106e93608b3b5a64adae02a.json | 22 ++ ...e916da208d1525bf04497687e941d329513c6.json | 23 +++ ...44c58e68634e942d43ed59582b7bf0786893f.json | 15 ++ ...5feaf304a4d50bbabe9151bb0bbaef7bcef16.json | 28 +++ ...b57a8d30a1d2a7c03150526322a2aa8175c71.json | 15 ++ ...f047e9638cfa5d7e07d9885af0592142e5304.json | 35 ++++ ...fcab2a26f543e5a6ca992e38bdb662dc7c2f4.json | 46 +++++ ...a97a325f4081b69a3b8a7d1a481ed69f86bf0.json | 78 +++++++ ...392c7e93978451b4ae208a23ab27c3b10c1b7.json | 15 ++ ...edc6cfa7e0f8b9f8b3c3a698991d37860c76f.json | 28 +++ ...8cad0a5e18597f640111861f469e273e56e88.json | 28 +++ ...fb66ce5dbb225c7ca91b3d71dcfe398c8f95a.json | 14 ++ ...2bdafe162fb8c8fd217a8fcaf613e39525b0f.json | 70 +++++++ ...84c110d780e5be92b5e160c64189355f5f31f.json | 52 +++++ ...c3277a1ced2c563a2e2bc98a742ef71da40fc.json | 22 ++ ...79003a1f0f549e4e1585f641c86d0f2336c64.json | 23 +++ ...61b859efa9b55a2b085a1f564b42024be3e92.json | 64 ++++++ ...19ae33bff5dc510075ca8f0f24db8a9e1ead6.json | 35 ++++ ...d8ebee5614196a92bcbc250b9702a8194c329.json | 56 ++++++ ...d295c602e8ea01dc164bd95c7ed30a7726a54.json | 22 ++ ...5bfc9d190e4154c906fae3e67846c308332dd.json | 38 ++++ ...aa5cf85994ae8af80af65ade5f879f837cc6a.json | 22 ++ ...6633e40c9a0d9f8e87262e31fa218400752a7.json | 27 +++ ...383631011b1c3cbd5d36e137dbd0c5442f456.json | 14 ++ ...099b08f372bf4606405d18d8c465d241b5781.json | 17 ++ ...cd324c875cdc9e74287873ec41a9fd495e696.json | 15 ++ ...6e5e12937814433dc5499b0dfdbe882c76192.json | 45 +++++ ...c1a67edb6dd76a80889a538b6c1aceb837e45.json | 84 ++++++++ ...04617613bb21df0e7728150e74b4125d28a59.json | 28 +++ ...43c48e9ad8b934613ece6777e4948e18572bc.json | 52 +++++ ...52f811f014cd6ef1d0b3f9bea3074a478f785.json | 22 ++ ...fd2c9e95591835b82393ecb2492f8966883bb.json | 22 ++ ...ab3afced6278d25e630969724dd5837182f0c.json | 23 +++ ...00c24fd26d50d612a66edf0738c62d15680ba.json | 64 ++++++ ...921a23d5de6a44ed9e4af285f49f4e44d174f.json | 46 +++++ ...ea12db11f18e4a89a76c87b4c8ddda431cbdb.json | 101 ++++++++++ ...df3044ca299f2a677c812b11592fc9b2fe6cd.json | 22 ++ ...3df49df49acf6ec6d56955022e81ae92a2278.json | 40 ++++ ...2d44bfd717c8761fcb3c8561cd6c292b1eea4.json | 15 ++ ...0734a33e800cd3fd990498c76c991b48931a8.json | 29 +++ ...ac9c4d0b723c7a7abfa0fd92ae362ea32b88f.json | 22 ++ ...93fdc9b145bcea0d50bfb62acabba93d5818c.json | 17 ++ ...79b6d56ccda8789dd737a8cb2d89eb6858b03.json | 27 +++ ...85ba2c222905943458d205112e1e064a0bcc9.json | 40 ++++ ...182fb33d0dcc2df012cdc4eed91e8994ca2b7.json | 129 ++++++++++++ ...58dd54f85dc6082f369fbecb2afa873fda66b.json | 24 +++ ...10e6acda592d3e27ecac39f93370bacccd7a7.json | 22 ++ ...a3b22e871c61feff6dbc1fe793cedd2cf403c.json | 67 ++++++ ...17f6cd611c9845f2830ab6ded46a4d640d362.json | 22 ++ ...eb6a80bb82c9640845a835c6d32eea7e6dcad.json | 15 ++ ...9126ad17975d9f7490e8a5d521e2c1eb752c5.json | 29 +++ ...990834ea8846624132386f2fcd92d0d9b9905.json | 15 ++ ...c645a882c4f965226e71fc300d84a081ad30d.json | 128 ++++++++++++ ...31d4e00fbc7854d8f315b87f70dfdc44cb901.json | 17 ++ ...dc47ed61f608db54b649cc3daba87817c680a.json | 15 ++ ...b00c04c18f94145346063a2b012c1104afa53.json | 22 ++ ...c433d0dd69045b66f7cf5952f1126115dec84.json | 17 ++ ...33f2bbf35c99b29e7482f198d592ff435cf28.json | 82 ++++++++ ...1d5ab7728a12ca7245876c3ede0c3adc69647.json | 22 ++ ...3b46ac7899be8421cdd83e5dd46f5b8211fd2.json | 76 +++++++ ...8d20ea15ba8756bc54a8d518ea82a39a27ec4.json | 58 ++++++ ...921f7887f3bf828b5be3c7a599fade54a0dc1.json | 46 +++++ ...4a0a281601cb56674d2b5ea331e02ae8bbf60.json | 14 ++ ...05dec57b4fb5d0b4ea2def2c8c4978c1d9c36.json | 23 +++ ...840cee4f1db25c7b9b4f5a1157ef655fe1575.json | 15 ++ ...3354c7b4bd005b9e5657a702bd39846ff0917.json | 25 +++ ...f3ae64ea91023d356c47232736672cd1ba5ec.json | 14 ++ ...c38d76dfd087a2a8032ff6ebce392d7892764.json | 19 ++ ...1813bbe4cde5e5b7bec42e424c72db0e27e73.json | 23 +++ ...a976b443a4280c01b09fdc5f673ad66f06c28.json | 14 ++ ...c60d684f1a422d5cd1de162b6f657c8ddfa98.json | 34 ++++ ...5fe1745738d475322e937d4553623a8294dc6.json | 15 ++ ...2cb1aca7d6b8c20e636adff6fb3977577e62a.json | 52 +++++ ...724d755c0a3353480bcbe573a3f867cf24091.json | 69 +++++++ ...dbb294e66474310e66c28a0a8510c64fca149.json | 22 ++ ...269928b43c4a9e523b84383bf9c7dc636c1fd.json | 88 ++++++++ ...6347612e9d197979f9d4a4df40314f22559f8.json | 146 ++++++++++++++ ...7f351cd450b0fe95a4c6015573da664c5c27d.json | 14 ++ ...08a933c8e7ac6f811305b607046ae6021be79.json | 23 +++ ...ca4185ce3ebe294d432408c876b8a0b0a6b63.json | 14 ++ ...594572d9da9387c41873beacfb4a615e964cb.json | 22 ++ ...8cab5a5d5423325a7834515c9c6a327f25f50.json | 22 ++ ...c6838a4054a719ac6b54f6f7acb53a9353a3a.json | 22 ++ ...9a4c474f1e7d5c0071bdb1261df0c1d8b2373.json | 22 ++ ...58a23c2407f742e67e7c06553929f4405478e.json | 22 ++ ...9e7ad85d35c823d233e6d9b53534c5aaf94b0.json | 28 +++ ...79e0ec39a507de612ff7887172062237f29ce.json | 14 ++ ...ead04d9990d5f6613bd7668dd7cba38ebe3a5.json | 149 ++++++++++++++ ...2e4c29fe260e81d13c017b8bc4fae2b94703f.json | 22 ++ ...9a2b9574f45847919251446878f32b9febbc2.json | 22 ++ ...33b0d2d39d64dcc88a0f0c5cd310303e7dc92.json | 140 +++++++++++++ ...33fb4c48b673d594fcaf198ee927949796957.json | 70 +++++++ ...18ee7fb04db4955d5dca83ca1c6c9e0eaa884.json | 14 ++ ...9426932aba9ae4a09ab96ebfa32c46e8b6fcf.json | 87 ++++++++ ...8ec23de215edc1de1d020d418e2e89b17424e.json | 14 ++ ...3e4f4ba653a16b53f9ffb7b99566d202dbd68.json | 71 +++++++ ...4c542292d06b39c744f2055038ac46c41bbdc.json | 58 ++++++ ...b414792f6d87963138b7969b6a8f179e508a1.json | 40 ++++ ...753897d59e28cedd21e439c20ff09268a831a.json | 92 +++++++++ ...c477b8ae7e89dde630c125c1364ee211c454b.json | 26 +++ ...fd1a2058e31c5692d66a0107d9a45c9d83f7b.json | 15 ++ ...658670ee906d1814f037f1c20e3569ecfd270.json | 15 ++ ...74df5312e5fae38f374945f807ce68d0314a8.json | 22 ++ ...5c01e2e6e9dee46a74504fde48b78587934b6.json | 27 +++ ...3638798761653ca72db90aa2ce7417976ef61.json | 47 +++++ ...0717756b395ffb54f82d50691520065eb6036.json | 14 ++ ...b0785d06317da255894345de287a654f24fc3.json | 14 ++ ...cb3baf21cd37b638190889fb5383180a8e437.json | 22 ++ ...d181f2bb79b25ac3c2300e2eab17c912697af.json | 95 +++++++++ ...967a55f7b5355b7ff835eed0f93b4b8458ceb.json | 23 +++ ...463fd3df8488cbce6001cad1bfe990b347b63.json | 19 ++ ...0e64bad441f07222bfe922c9da81c7d2c3a47.json | 23 +++ ...3811f1d4c96c7049794890f30b1e831381010.json | 34 ++++ ...36ae5c11cd902c373ed20d8119ba050c7dfbd.json | 95 +++++++++ ...0a771eb3bd08aab63d2be4a1338fbde315f62.json | 66 ++++++ ...37c0b8aaf00c3eae94c06f069591f72445e14.json | 71 +++++++ ...370666bf2efa34290ee8f1a6c89330b29522e.json | 15 ++ ...ea28d255c30f360759bf57b7d0b31294c785f.json | 18 ++ ...23136039849d1c3c5ff81463691e0ae271f74.json | 23 +++ ...04fcd25df705766b08c6fd8d39d10cacfb33e.json | 48 +++++ ...d201e0b71608319da53a9551cf3c83fbf1487.json | 23 +++ ...a3573d0cb043fee8aeb7c46a61bcd534357e3.json | 40 ++++ ...340e40f13453f1bec6cf41cb202930c44e84a.json | 41 ++++ ...82ea99a8eda29d45570028deda4075173cfe6.json | 28 +++ ...559c6e59e236c9650211a52fdc90602318cc3.json | 15 ++ ...9f6f1a860c05be610f8b620fe2426d59b2e62.json | 22 ++ ...57b1429cb22745012c396910f2fa549aedf79.json | 22 ++ ...f83e4ce9af436279fc24b7aafe8f0d41aab04.json | 22 ++ ...57a5dbce790572f2420457e24b0fd498c2024.json | 29 +++ ...e93d392fdcf0fbebc9935f263f3f4fd1d8c34.json | 128 ++++++++++++ ...5dfabb45e608cfd9a0a5a463fc6e1792393f2.json | 119 +++++++++++ ...a34dbde810b6b60c8d8a0854ee49ac57a7c02.json | 14 ++ ...a1fa3c65711050239ca5d7bcd59b04f920894.json | 14 ++ ...5c7af4b6e8db0ea192d08aa971b20ebe69eb4.json | 14 ++ ...79a830b0e0a98c92967f15c2a89b96871bbd4.json | 52 +++++ ...e3cb74f7ddc5bacda3caf78db4b8672a8cf72.json | 162 +++++++++++++++ ...b5dbe6ce6bfec8f307f22aa7b2bab42a5a13a.json | 22 ++ ...a38e7cfbcff3def9db49e5d9bad83207a3a48.json | 22 ++ ...387db892d3902606258ac7c1e87652eba76e7.json | 16 ++ ...6372002b31d070e2cbfe2d58ae763bc04b7c6.json | 86 ++++++++ ...e82418e3a012a628f1b5cd3be1f490eeec9f1.json | 22 ++ ...b6ab84c37acac7de5fdd06fefbec94abfe956.json | 22 ++ ...502fd1ef001d1247a155814df5c4510170aaa.json | 22 ++ ...98bbc2e5d6c3c3063be43655ed32a3baf028f.json | 15 ++ ...51dd7c57b312cf54b2c47ba87c7ee99f0d9c1.json | 15 ++ ...39e0fd0419594e068b4d43eaaddca5e46f6b0.json | 28 +++ ...6660c82f616f8f3456a6137b872043404d282.json | 29 +++ ...02abb947fea3cb939dadaa76b6e53bf896390.json | 15 ++ ...f14ab6cdd2fe57c9d76e430cfef7234e92168.json | 20 ++ ...7016f366e31f1ac3a8cf8696ed61434472afb.json | 76 +++++++ ...8afa6d87a4f32cb7c852318de504fa6d20b2f.json | 14 ++ ...705b6f12c716417f4d337aa68f73fb05a6dd1.json | 39 ++++ ...46370580a768c26a4c9f6b1fe9d8244abdb36.json | 86 ++++++++ ...1af7ccf5264e6ac8b7ce80fa9d68be5aed976.json | 16 ++ ...ee3364dbb75bdc22047789492b8f73b3e2491.json | 72 +++++++ ...e47e00e2aa671b9d235abffa4ad8bfe126c12.json | 22 ++ ...ba0a0dd46cc9b31980dba5a76dfb4540d6cd3.json | 28 +++ ...4404c910188de8a57899dd6cadea50025b4bf.json | 35 ++++ ...19e0d6bef4a3d9ea2791d75799c93b4f2350f.json | 66 ++++++ ...9b7ce0b5c5fdf66aba0a6efc62530ec611766.json | 26 +++ ...a8d25037d25951b1f406dddb8d62cc13f74f0.json | 185 +++++++++++++++++ ...a478e593d8236cf4efcebaa15ab4046917cc3.json | 28 +++ ...366203093e40f519275702f3bcfa711812321.json | 15 ++ ...c65cc9e27d786fd2648040cc9f2c6a3295d8e.json | 22 ++ ...9b00fa7c2c474980361fbc5d98839dc40773f.json | 14 ++ ...b371093099209a80349d311f45a0aa4b9cca9.json | 88 ++++++++ ...77af19b53c578df995fbbcef546aaba55176d.json | 22 ++ ...7ea16b18efcff635cbb4d8146ff4f3ba67416.json | 24 +++ ...886d7b8909f3150f779b64a56a456027c0d26.json | 15 ++ ...7cf16bf09d6e52e5f6e5c5b107ef8244a141d.json | 23 +++ ...f9a4097ff7320d336de3ea25fe1899a7826f3.json | 28 +++ ...90da499864d7f8e97a390a11b384d6429fa13.json | 15 ++ ...39a09a5f4d3185af10d1a7a32e8035b2c5ec1.json | 15 ++ ...da3e5786501c7b07a41983acb8459df610b8b.json | 73 +++++++ ...4c8ae492febce05ce35df78bced81c1070f01.json | 14 ++ ...a0fe594d449939c99f3dd8e338aff9d26753b.json | 14 ++ ...5a4dc7053d1e1d6425b9de339986d41c8e180.json | 19 ++ ...3a5b00bf57e5f0b948b2d882d2d036375d913.json | 27 +++ ...51a503118d0dddd8759495f607c65158605d7.json | 52 +++++ ...c9593db5cf4bba24c234e9179f741a920d4d5.json | 28 +++ ...e24156c2fa387e001ee8eaf57e4a70a106069.json | 18 ++ ...7ebad2671fe50f6425314bf3c007d01f53884.json | 15 ++ ...edbd92ada98d1c5b00dd4052db371fd191598.json | 15 ++ ...a2beded3bd378038cbd6f012080ac77c5291b.json | 15 ++ ...8dced036c605ba52ff484b30130cf837b9408.json | 14 ++ ...a6842bf271ef6cb2e4de41b820113295ca18d.json | 17 ++ ...307a3d445a6a5643262d3efda804e3d04ccc6.json | 22 ++ ...b0ea36e8607ebd4c272509afba882a3e0b572.json | 73 +++++++ ...35cb2d29a67a4c437234f0ac7d1e6baa34669.json | 14 ++ ...14921d77330e127ed9083235078bc0d8ee970.json | 23 +++ ...b31f3c3202031f51868b9af724e701248079f.json | 22 ++ ...0bbe79c9e1b2e6d2e6925bdf89df1a07ead5d.json | 16 ++ ...aa60d2eb5b7b0ff90863b0d0dc288779a5f7f.json | 87 ++++++++ ...f363e31040405915cffa7da18a3ed337e298a.json | 22 ++ ...50811245e71af919de567277e505bb59d62e5.json | 28 +++ ...994e58da416d649dc4963c510b3f6906db5fd.json | 34 ++++ ...ffc5d4ac3f9f1a8c2a5714ef130e53d11145f.json | 28 +++ ...40cddf46a772f8a638259541b05f006bd4c1c.json | 28 +++ ...cacd0718c070eb2ee345d524abe7ba8b5b35e.json | 46 +++++ ...418605ec3f0f9f090344882fcac7d251bfdba.json | 16 ++ ...ad59600be3ea7f6f3db61fcc3045330a20f39.json | 15 ++ ...10b9c54cb028c0f723b18c05231eafe5722af.json | 14 ++ ...b8ebb75a89ecd397f5a266032c2c8a1f9c561.json | 16 ++ ...67032505a085b4c9c5e787f3194414758601b.json | 15 ++ ...57d60af3f02fc72c3f541bc94c903034a6748.json | 162 +++++++++++++++ ...69092e981121feea08d55de4cd41762f1fa1e.json | 26 +++ ...cb9c8f850746382a3c7049303286f2868a851.json | 22 ++ ...01390348a6d4e33feefb4c3d33974e15fcf83.json | 67 ++++++ ...6dc5ca777fdfccf87f1760b3ff0f03d4515b2.json | 22 ++ ...936efa63645abc9b36965f9e8daead43b7adc.json | 28 +++ ...4a0a270de769b42747942090f55ac86c78574.json | 52 +++++ ...0baafac16a1058e7017d63813abf87b340e4a.json | 43 ++++ ...1b0bd250c9b56ab63138ac60b52e9174c48b1.json | 22 ++ ...27e8397a42089600571a38981bfa11b7796d4.json | 15 ++ ...fe93975169bfeb0cdbecb04dac3f31288570f.json | 15 ++ ...9fc3f7df9188479defc6072394d8d06f4b3c1.json | 15 ++ ...d0bf0ad8155e25cf77aa57dafdcb133f30509.json | 32 +++ ...633ba54b8185f1e6aeac32a8d1bfca35a43d3.json | 22 ++ ...94f9ce25445a642ef58e1f8a59788a7f374b8.json | 28 +++ ...7a70bfbf8709ea5473b3ec59e8f547cbeaed9.json | 23 +++ ...693bcaa3226934fedb2a4348a24ca9568c4ed.json | 15 ++ ...b569a6f2b0c2fc0e62e5243a5857e054e61c7.json | 22 ++ ...08aba496434dc78909951f7c1bd86f9c56ec0.json | 14 ++ ...d7455df93799b12af38d50bb85d81391861c3.json | 58 ++++++ ...68fff2908654b8bb53923320e7fabe244b467.json | 22 ++ ...16c178a9865c5926e4195249eb22e2a4a91b3.json | 28 +++ ...c5934f900adbadcc5549165e709cb1cd345b5.json | 129 ++++++++++++ ...8abfce69d431447fcbf846e60aa60febb1433.json | 69 +++++++ ...ab20faaf6ba24f55172486a74aaec3da480f4.json | 16 ++ ...77d724c16d6068b7ab828c2eb604617227113.json | 15 ++ ...fef2cdff408625fa1a592977996a81e8b3f3c.json | 15 ++ ...c6bec2f121b2afb9c5c1fa39c2d804cb71286.json | 173 ++++++++++++++++ ...b23eddb2d7a5a8a1572ef33f3040f8e0d671b.json | 22 ++ ...57f3b77a2108138b267fd97144edad023be1c.json | 14 ++ ...ee79c3e0b64c8c4a507719aa78405325cad76.json | 22 ++ ...e541dddf035820810dbf1b1a6feacfeb0e431.json | 15 ++ ...7741bc7947c8473dba0fb39c61ee8be80950c.json | 14 ++ 1256 files changed, 45423 insertions(+) create mode 100644 rust/cloud-storage/.sqlx/query-000c1235f8bd55c9dd179d10421e262d6e096bc1a8547f5da22596dbc56e0ddc.json create mode 100644 rust/cloud-storage/.sqlx/query-000dcd3c4befc3975adf3bee932023bec273d62d6c2f233c3236ffebbfaf5810.json create mode 100644 rust/cloud-storage/.sqlx/query-00b50429eacf802503b639b2dc362bbdbf3d29b375b73ca25f7720941929f10b.json create mode 100644 rust/cloud-storage/.sqlx/query-012063ce1220cd6f1b04eeefa088324d50ac472be760c0efe10b5060b0878c75.json create mode 100644 rust/cloud-storage/.sqlx/query-014d3b9b1509bfcd1b11c8c0ef8fe4534c4caa33640876469811d19d64a9b7d0.json create mode 100644 rust/cloud-storage/.sqlx/query-015a45b5c16b4bcc135372478d585af4ce10f5f6ae5e3578637b66655ea6d67e.json create mode 100644 rust/cloud-storage/.sqlx/query-0173a66e06d23847e48967c6fbf38dde11698cc4164819d48cb8f99c1ec3aae3.json create mode 100644 rust/cloud-storage/.sqlx/query-01cb0b4b2fbbd64d2be9373d1e9e75b0085f5817ee4c3360f7cea76917fa5740.json create mode 100644 rust/cloud-storage/.sqlx/query-01ee4e5a80a158998dadbbb6b8fe5d27371757cc6e9019589182150af22b5e36.json create mode 100644 rust/cloud-storage/.sqlx/query-020ad49dd342e529563c91a7d2403de9196482e24765f4b2c93d2da50273d69c.json create mode 100644 rust/cloud-storage/.sqlx/query-02e665cc90a63f1a040b4e5c8acfc2ec9d8f3ebfdcd4947b1349494bc13618aa.json create mode 100644 rust/cloud-storage/.sqlx/query-030974957f30c1fc16d1a6bed0ffc3dcd6d71b2c0029f7f7fa3ef3285e12a8f5.json create mode 100644 rust/cloud-storage/.sqlx/query-03126b7a70835aac508c3f236c9e5bcd98c0df2596f1d098c08cd4308583f307.json create mode 100644 rust/cloud-storage/.sqlx/query-0322d49329ea2e6d6bd515f2013a3bc08f9153d9fb263062a46a80cec5c151f0.json create mode 100644 rust/cloud-storage/.sqlx/query-033759a1748c41359a8cf5204f457eed63182d21b432b58fd25b7524d1dc0092.json create mode 100644 rust/cloud-storage/.sqlx/query-036fca567f0d90c18fe528869a2e734700b1978cdf1a62bcefcb3a9bad3b6eb5.json create mode 100644 rust/cloud-storage/.sqlx/query-038bbad2a1388db2e9d3da5f107ecc5418ff770838a4acfbd28bec8b78e16874.json create mode 100644 rust/cloud-storage/.sqlx/query-0392a509a0896bd3acc01964a39a4477aeafb381e532657ccb7b11ad05b9038e.json create mode 100644 rust/cloud-storage/.sqlx/query-039dd65419a635365c37d46699bf115e771ceae4526e0a13928152e2bb1bb9b3.json create mode 100644 rust/cloud-storage/.sqlx/query-03a70946dc66c884a7bd84ae9439cb208449ea7048e319ea8475752fe96d650b.json create mode 100644 rust/cloud-storage/.sqlx/query-046aa54b375545002a615891a34147d0d4f2c1e409bf1aa2263b84c88e2deda9.json create mode 100644 rust/cloud-storage/.sqlx/query-04d60026064c2948d7a528352bb3bb086ba5a39c1dc656aec25f2dd2a4eb249e.json create mode 100644 rust/cloud-storage/.sqlx/query-056dbddac4957596098ed8444564f7eb4ee08f375c95d9e40bd879d1439a8342.json create mode 100644 rust/cloud-storage/.sqlx/query-05c2cf10e578df97df70d5b372d6bd4d5a2baf8313799b21496ce399d3612b1b.json create mode 100644 rust/cloud-storage/.sqlx/query-06072374ba47adb6156d2a4d0160ab3ab9a686e9617ce4aea0e768cdc3c78f86.json create mode 100644 rust/cloud-storage/.sqlx/query-060ac46a89df4da317917f28ca8d95dc07b98f4a64effa9b76d58089fb0728b1.json create mode 100644 rust/cloud-storage/.sqlx/query-062a45b8e7d65006120b1369981c4e04e513e99855ca9dab076768d43e189a80.json create mode 100644 rust/cloud-storage/.sqlx/query-064772b7d3d47e82f044f6efd03f52f8cc0083e99d30810753539a5df539d94d.json create mode 100644 rust/cloud-storage/.sqlx/query-06a72bfcfbcc5f5bbed6cd093436309607f9375d2ba7b151e9dc1a8493f88e44.json create mode 100644 rust/cloud-storage/.sqlx/query-0710b66e8a6608c340848ad6295fc012f06f1c298d1b287eebd7be0b89766702.json create mode 100644 rust/cloud-storage/.sqlx/query-07436aee1f392392f500a116348f388ce48e6b8c596f420af1c837cf9572dcdb.json create mode 100644 rust/cloud-storage/.sqlx/query-0744566104aa67d5e88c96c3f1e52eb15603cfb48029d43dc507b9012088517b.json create mode 100644 rust/cloud-storage/.sqlx/query-077c58347457c72a7f69ff716d27e07c1a4f41d65b619f6f949f18344b78469e.json create mode 100644 rust/cloud-storage/.sqlx/query-07831ac2c19539d4422c940e56add36cfd36e05ad43cfa0cea3654dd0d5ca08a.json create mode 100644 rust/cloud-storage/.sqlx/query-07c340da8c4771fa651aee608e8b7d15d9f0a638566899c59aae12491ed5b490.json create mode 100644 rust/cloud-storage/.sqlx/query-07feb08ae2f8494b1a9043b878ac356af9e557d3b3d67a1a9cf2f07d292883c2.json create mode 100644 rust/cloud-storage/.sqlx/query-081e71f5dae75d12f512d95febfffe28cdc4f8cc83542bf69b8c502b4892a6da.json create mode 100644 rust/cloud-storage/.sqlx/query-0876e7623feb7c8f77b58716cbe3e43456fefad97ac0ba38daf2e5e6880bb51b.json create mode 100644 rust/cloud-storage/.sqlx/query-08896a23d1261be751853b5cf7553cbe0e8500e8f47233914c020d23d5a1b1b6.json create mode 100644 rust/cloud-storage/.sqlx/query-0893292d05dc339bc516ddc4e2e27ee0f730dd38e1d82bd2a049d38cb7abb275.json create mode 100644 rust/cloud-storage/.sqlx/query-08ff113e378c34c5c4cd00bd47227bb363d4c1d98a2b589c260b9c77fcb94492.json create mode 100644 rust/cloud-storage/.sqlx/query-0905fbb6644dc89da3bbb8f5119b1d4e83711bdb0670ea238e72097750435056.json create mode 100644 rust/cloud-storage/.sqlx/query-0953e38705bd80cf1f053c5287847c2a92639fec6e728a49b1f2a41906adb633.json create mode 100644 rust/cloud-storage/.sqlx/query-096cff82c1f50ae5f4a5699ba9e1f35280fefe178bfc01701fc09b8962def475.json create mode 100644 rust/cloud-storage/.sqlx/query-099d255a2a214f5c4ed3ee9d5d8389dfd3ad004eb3572fb7d724b407bdb2c2e3.json create mode 100644 rust/cloud-storage/.sqlx/query-099d5a355490ebd8fe221bc0526af0a38305c090cdb791212b5968c24ae5d5f4.json create mode 100644 rust/cloud-storage/.sqlx/query-09dd0c12a8b30ba045caacad3927e6d7edfba61d784244a01f9d233d9b753dcb.json create mode 100644 rust/cloud-storage/.sqlx/query-09f6737b4e22a31ee50c69992a0f16140eb27339ca118ef7a6f063e113d78361.json create mode 100644 rust/cloud-storage/.sqlx/query-0a1f3835d8dd57e120b0378134d98858f2ba5ed410765ffca1b03abb05c7b098.json create mode 100644 rust/cloud-storage/.sqlx/query-0a4d1f2c9890cc537fde22835fc5298215a79e06fd983ac9a13f52836719e8fc.json create mode 100644 rust/cloud-storage/.sqlx/query-0a4ef2f94648e1a6de6dad96e942a9b987f96526f5865fcc9c43f6179567a891.json create mode 100644 rust/cloud-storage/.sqlx/query-0a5d8edd85634f5ecdc0a97f86e470a4e91ef06ee2baf734cacc500df5f9cd19.json create mode 100644 rust/cloud-storage/.sqlx/query-0a98076ae0ee8aa572e7a73b97a4c7fb8a88979a966df92c698b295b8e3e28e0.json create mode 100644 rust/cloud-storage/.sqlx/query-0af2bfac1a41e4dbd3c7956d306ffab02e9aee53b37e07531426a068007403ec.json create mode 100644 rust/cloud-storage/.sqlx/query-0b0ee8515cb079ef1cedbb5d8f254fef2bdc00de80faccc661bc89ffbabc7eb4.json create mode 100644 rust/cloud-storage/.sqlx/query-0b25861527e4ecd715a759799e7dc2d43865571925e95582689df12c3b02322a.json create mode 100644 rust/cloud-storage/.sqlx/query-0b3832a8e650ed74622bbe8ceeb7ead8ceb0d4f0d05e22c9e36113b4cba6e5c3.json create mode 100644 rust/cloud-storage/.sqlx/query-0be9d386d51f355d6c5ab947fe7ed534f7cf96c18081846fcbfbefa0a515f40b.json create mode 100644 rust/cloud-storage/.sqlx/query-0be9fe66d98f68b1d1c3c8f32aef0da52521889a32fce2449d9d7f659835b845.json create mode 100644 rust/cloud-storage/.sqlx/query-0c129eab69121fd65994c0b50a11f653900045b70bc059b5126905e3cca668fe.json create mode 100644 rust/cloud-storage/.sqlx/query-0c36658e4c00abbd672fd1fa7934cb81f5065482c471fffa2bf248f73782a87c.json create mode 100644 rust/cloud-storage/.sqlx/query-0c3bf4ab99e5ef1c2100c82611aeaf4fe7ffe5734a57567dfdfea1a78cfbb3ee.json create mode 100644 rust/cloud-storage/.sqlx/query-0c430068640f24611873989a569d3da039a7e63dfb1a4bab8895c6f18c1b819f.json create mode 100644 rust/cloud-storage/.sqlx/query-0ca155b0063dd021a80db6b2a9dc2353c6a1dca9e1dc13cc21b3a23d9cd81e92.json create mode 100644 rust/cloud-storage/.sqlx/query-0d38256b23e9ce70797726f76b49889efcf4b3c2fbaec05c395de5e728b0fdbb.json create mode 100644 rust/cloud-storage/.sqlx/query-0d49ab1fcffce934d215d7d34b80e3334aed9e8d1cb1efc3df8698e024d0aef9.json create mode 100644 rust/cloud-storage/.sqlx/query-0d9d272f0886376c4a756a4296517b933697934a2b3d52e931bcb2f1dc64ac87.json create mode 100644 rust/cloud-storage/.sqlx/query-0da786be8ae29e36cd110a8875d838e3b6b8cf4bd6775d083867c733982545dd.json create mode 100644 rust/cloud-storage/.sqlx/query-0db3bbe78101fc309c3358271240926ee07c36bf29ff0031813a2fdbe1fd061d.json create mode 100644 rust/cloud-storage/.sqlx/query-0dcbb3a5c0829e285170d8e43e6a6d1246298aa1fc06aba34a9282318841a112.json create mode 100644 rust/cloud-storage/.sqlx/query-0dd403bdd3475dfb010d5a725be35e76750719785a26e4c56e969fd48c5970b3.json create mode 100644 rust/cloud-storage/.sqlx/query-0dde9799979e5ae1b4e351a2b8c310950db972cfe6afdf164f822a6b0a6042b8.json create mode 100644 rust/cloud-storage/.sqlx/query-0df754458a7a7e50fd7cdc9a66f170bd25959079efaf0bb0c916acae2234f90d.json create mode 100644 rust/cloud-storage/.sqlx/query-0e03c9e174ceafd652563ce587e5025e8bf0dd3532b21cc1e2a939c0c26c7927.json create mode 100644 rust/cloud-storage/.sqlx/query-0e0422c73b3bdb5c60680cec7581ac905f34c70bd295694a120e8dd7891e3853.json create mode 100644 rust/cloud-storage/.sqlx/query-0e241930c0e8b940ac3f513f8081270a0b93e88f5b7f7f7fc36276b3718b8297.json create mode 100644 rust/cloud-storage/.sqlx/query-0e38fa7c2ebae20feb864567132405260eb8fd223e65f4c6da337a8fbe2acc82.json create mode 100644 rust/cloud-storage/.sqlx/query-0ea8abcb6adfa2a93579879f4bc537c13a9a4e4c313c115a83b0bc98c846db0f.json create mode 100644 rust/cloud-storage/.sqlx/query-0eb23959e5def969cff31c097382390a0e9214d8219a3d79f65ea5c66d55121e.json create mode 100644 rust/cloud-storage/.sqlx/query-0f06d44ac8984b12498f8b41e70d2e692c9a1bec3ec96cd3b2fba1176e075119.json create mode 100644 rust/cloud-storage/.sqlx/query-0f180165e0d5d8661d2d9a37550c7372d1de26ee74b39b5e9602534174f1f8c5.json create mode 100644 rust/cloud-storage/.sqlx/query-0f43991b34ee9e8bb85f7a8c87ed522daaa36ef9bb9e1eed4ccca12de09f44f0.json create mode 100644 rust/cloud-storage/.sqlx/query-0f48cffd910141d7b0d12f55311f30be2d8bb5808322565b29ce0a8db2bf3c14.json create mode 100644 rust/cloud-storage/.sqlx/query-0fa9fb46a9895ff170c9bbf339ec2369429e7fdc40a531ac5296b5442fa4f5aa.json create mode 100644 rust/cloud-storage/.sqlx/query-0fb8a1f0bcfee684fa393fa7465a17b7345b658528783903597574827fd61dd0.json create mode 100644 rust/cloud-storage/.sqlx/query-100d56e0bac5061aa9f43b50e065f04b372963a63e81918d061a0c0ffab89060.json create mode 100644 rust/cloud-storage/.sqlx/query-10843b4044bca618301e755b0b6b5aeca5fd398adc48ed9f755490fa25e7f3f9.json create mode 100644 rust/cloud-storage/.sqlx/query-10bf501670966259cfcb441f519bf04a5ff4827980d61db77cf7645ed9bf551b.json create mode 100644 rust/cloud-storage/.sqlx/query-11a723b710519837eb7643af73af6526dfa6bf93465f9c6708dc95e8237c1f51.json create mode 100644 rust/cloud-storage/.sqlx/query-11ac63a8975bc8587b4c3b8f64201b8999a0cec4a928d253fb4fa49f78a8626e.json create mode 100644 rust/cloud-storage/.sqlx/query-11cffac7d14e962aa00fd0a9a0ca290ad6e8bbce98fe53cd4079791734567928.json create mode 100644 rust/cloud-storage/.sqlx/query-11ddfba613626f54d684c1399279df5c3364e8d3dfc0484cda469086991a64fd.json create mode 100644 rust/cloud-storage/.sqlx/query-11f1046dbd6f8f510a196fe1feedb4bdbfedbde691ebb4aec849a07f6b54d0fc.json create mode 100644 rust/cloud-storage/.sqlx/query-1220fdf68c54c2bbb630bc32b642bccc39501f39821f5a5fac209930e6afd338.json create mode 100644 rust/cloud-storage/.sqlx/query-12332b2ea487399f281dbdc5f7c0bddccfdff4da1d53fe8e16c26e825dbc1b14.json create mode 100644 rust/cloud-storage/.sqlx/query-124901aaedcea50030b2b8039c8ef509d980650a4c5d0fca7053cba0c2543155.json create mode 100644 rust/cloud-storage/.sqlx/query-126bf3c6fc9b29a885703ecfab9a69bc36b7eeee011d09a63b4b44b81f7663df.json create mode 100644 rust/cloud-storage/.sqlx/query-127b4b2d2391121a41b63f3ad116bea2be0329fccb27362d4e3a5a37601e0ba0.json create mode 100644 rust/cloud-storage/.sqlx/query-12bbf364a130b8f3af7e7bc7f8c64eb026124d2a66d2735b95ef387433cecd03.json create mode 100644 rust/cloud-storage/.sqlx/query-131fdac5ab0aba8955d6900eb7390dd279939a1323b5805eaae071cc500f54dc.json create mode 100644 rust/cloud-storage/.sqlx/query-13739c28aac5015e3bb881dbf24f0a657d995d9292dd6cffc385e2f92ec07276.json create mode 100644 rust/cloud-storage/.sqlx/query-137986b2287f8a7e8d9023d6f9bfee888a6e18170f84df631df81e3e84158348.json create mode 100644 rust/cloud-storage/.sqlx/query-13a6d39ef2b895cae2162fcf65f7f64a5b303859b36186f4106144a2c5cc23ac.json create mode 100644 rust/cloud-storage/.sqlx/query-13ef9a0dd33e56d64232964dc11b44b0a333958a67d89dfcb1db9dd523a1b837.json create mode 100644 rust/cloud-storage/.sqlx/query-1400e6024ad92e90369be284cd0ca35a4b9b6c1d70fb86dde1ec83a2314350d2.json create mode 100644 rust/cloud-storage/.sqlx/query-1411c7b041f6313844a7f5a78c741e2410cce10dc0c7a196e5104e6fa2ae0875.json create mode 100644 rust/cloud-storage/.sqlx/query-1435acbba365796ddcb6ddbef86f4ebf664cffc44082996f6b60a60373c28f75.json create mode 100644 rust/cloud-storage/.sqlx/query-14398843140a148be3189f593e689c36283225f47a6b37c197bc543f3fa18703.json create mode 100644 rust/cloud-storage/.sqlx/query-146fdea46a07193ea84051c9d3300b516be3f85d42ddeaf9cd9d0563e1303201.json create mode 100644 rust/cloud-storage/.sqlx/query-1490ec3dcbefe6dff27992f93481ee30fef91724dadb7b7c1e461d8286235f60.json create mode 100644 rust/cloud-storage/.sqlx/query-14acfc516e4790908d6e9378281d30f55a71271945c03e98665acc3cc9d4ea4b.json create mode 100644 rust/cloud-storage/.sqlx/query-14cb6f59ddb400c9539d83f42f665da8af863d2fd1ebf848a1a6e64db75a9ef2.json create mode 100644 rust/cloud-storage/.sqlx/query-14f0507004b3076a625e1a10ab8de9b4f09cf2a0480dbca99952cf0d8b78b177.json create mode 100644 rust/cloud-storage/.sqlx/query-1511f43c28d30141885fec9cfbc87b855ec6f10241b3e74499f22aeef7f762bc.json create mode 100644 rust/cloud-storage/.sqlx/query-152c4be0db7c3ecd7cf7ca77049231154b7f03ae0ebb073103df8b0554d416af.json create mode 100644 rust/cloud-storage/.sqlx/query-15b00cf9b57c2c077f7e55bd25c267a6cf83c9efdc10ba23981f7b85847881c3.json create mode 100644 rust/cloud-storage/.sqlx/query-15f433450a25ed0fb63fa44a1e4d13fb82179f90fbdd99b632a244c24f1ff5d2.json create mode 100644 rust/cloud-storage/.sqlx/query-166a1874072c2882aaca16d26b22a66944f723c32d9066d1d8b671b177986aa4.json create mode 100644 rust/cloud-storage/.sqlx/query-16975c8ff9585b8da53ace00a26851f992232834de508dac16ff58d9da1cbc2a.json create mode 100644 rust/cloud-storage/.sqlx/query-169914b00c5e4ced19940e170f8135d288553a7fdc41589e2211da4c32cead9a.json create mode 100644 rust/cloud-storage/.sqlx/query-16da7cf038f35f49f83fc3a869f56da725bccb87d92dc3a2c4195a7b4c436a29.json create mode 100644 rust/cloud-storage/.sqlx/query-16fe6d8422135f9b01d5acb48576c9ebeea62fe8b80747ddcf9c5fdeee1a6c7e.json create mode 100644 rust/cloud-storage/.sqlx/query-170411ea24963c7605046d59dbf2bc32d23c2d62e36a11e3875a8b84e8f1e062.json create mode 100644 rust/cloud-storage/.sqlx/query-1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e.json create mode 100644 rust/cloud-storage/.sqlx/query-1780a52d3024ae99105fd28c74121b9a3611ea3ae3bf5edccebda195b52bead2.json create mode 100644 rust/cloud-storage/.sqlx/query-1787312f37ce2a63f3a448f70e719581607988c79c9d2f4ead58811d60d5bec7.json create mode 100644 rust/cloud-storage/.sqlx/query-1787f623620cbe61083403a7e51577540398e8ce459156d6f83fcb8193fc2800.json create mode 100644 rust/cloud-storage/.sqlx/query-178aa765b997de754dd7405fc233aa7b24dd0a456f3cd4863725b3089f7bbe27.json create mode 100644 rust/cloud-storage/.sqlx/query-17b1a9529bc693aeb668fd0c432d6b55a4c527fd3105bfa9cf83dbc70516011c.json create mode 100644 rust/cloud-storage/.sqlx/query-17eb78883f203e76c823566fa1127a752597dae52b891be1e12526b02fdb2e6c.json create mode 100644 rust/cloud-storage/.sqlx/query-18134bc97487fbf6b88e8afdb94dc601bf0d997ad5b6974ef5866dd6262b8618.json create mode 100644 rust/cloud-storage/.sqlx/query-183fbda8d590393f7f3faa763c2cb6344b42556f949b59a0f8f77a01ec8572c4.json create mode 100644 rust/cloud-storage/.sqlx/query-184633e8b40af8c1077847e8b20dbee5117d4a35ec182b62db7d4ea0507ee73c.json create mode 100644 rust/cloud-storage/.sqlx/query-18aac439d006f5d15299582df56f00790bde81c4e7a515e6cadbf341466b9fa8.json create mode 100644 rust/cloud-storage/.sqlx/query-18ce46c3571cde47b087eae1c4aa5fef86b1058e0b9ad16614fc06d02f4cf86f.json create mode 100644 rust/cloud-storage/.sqlx/query-18d2885f4c7a6ffd835a5d661ec5e81dd143cd4a51873e92050a0beedbbb86cb.json create mode 100644 rust/cloud-storage/.sqlx/query-18f484857d5b6d140bfe2e78fce5632c78c630fddf249f0d53261e601969889b.json create mode 100644 rust/cloud-storage/.sqlx/query-18fc1de07e3dc64355b0baf69f67bd8c5254c63292c67e87ac3c3f45c20b7284.json create mode 100644 rust/cloud-storage/.sqlx/query-190452da4bb37a289c415dfbb4ec725bbda911931e97ccb22a5868b5a7655709.json create mode 100644 rust/cloud-storage/.sqlx/query-19ad643d2447743fb58441e39654369eb50ac8efbea1fd554bdca3d7545d61e0.json create mode 100644 rust/cloud-storage/.sqlx/query-19c878ce5817c5643e48a6159fce81a2f964defcb7b190460f2b16ac67078766.json create mode 100644 rust/cloud-storage/.sqlx/query-1a5d33c55a52c7076f78b54e915e57fe675a43d9dd2d6198d1039565131d52f1.json create mode 100644 rust/cloud-storage/.sqlx/query-1ad1d46ce50de26cb5f1441e73845df205acdf018d65ada384f0b059425e9ab0.json create mode 100644 rust/cloud-storage/.sqlx/query-1b30e7bb6b67b93826781122a191e243db4c43ec8630b32ea48b1c7e31724264.json create mode 100644 rust/cloud-storage/.sqlx/query-1b324f7419bf6620c5eae611b237ee202fb2b3b011422dc27f351a2c3d10813c.json create mode 100644 rust/cloud-storage/.sqlx/query-1b40eda58263b088d61f65897fdfe490653e4c1065cd55e9c39722b988c54a02.json create mode 100644 rust/cloud-storage/.sqlx/query-1b50363c934ae7e01406a2cbb674b84fa6af6f7caa8353d52ed22e48b3899327.json create mode 100644 rust/cloud-storage/.sqlx/query-1b7983a9a8a54322fd63d2bf169f27b45f853652a757123e3508017861b5c7c6.json create mode 100644 rust/cloud-storage/.sqlx/query-1b8266e388b4e120d27c47d891f5f447e26ff2b83fc6c6e6a0e2726aba761a51.json create mode 100644 rust/cloud-storage/.sqlx/query-1b8be86d6e9c1637d47b9ec156a1d8b010408005f7e12db26e1c3fc5b6d23c29.json create mode 100644 rust/cloud-storage/.sqlx/query-1b9256d39a08d605aba08de1c5bddd8eb29bedd31dd21719114646449ab1333f.json create mode 100644 rust/cloud-storage/.sqlx/query-1bf9b2bf67d4780b41454d87c4a1995677a162dd11af0b9d77df947b657cd651.json create mode 100644 rust/cloud-storage/.sqlx/query-1c03d1e837124187c0f4b940ee6863ec370be7dc1b87c38d1c53d898bfa6a235.json create mode 100644 rust/cloud-storage/.sqlx/query-1c5f9c90a5ee11ffedc5c98b589c821898f04952a5a597c9796e152fa4c65bb1.json create mode 100644 rust/cloud-storage/.sqlx/query-1c651bb11edabc6aceff14663b7a1e722ca09640bdae70dad37a017fafd16206.json create mode 100644 rust/cloud-storage/.sqlx/query-1c6ee06fa02288f263d5b51c30d3cd5280f4596a359328c00b1b3e2ce74c0234.json create mode 100644 rust/cloud-storage/.sqlx/query-1d935a7fdb8ef926a5b7613fcb7ecc9949bb5adff895d426acbcdbef50a87e96.json create mode 100644 rust/cloud-storage/.sqlx/query-1dba8f7824a404cbe6b276df601bbf45b0bbe751d89e8b841068d86b855f44ae.json create mode 100644 rust/cloud-storage/.sqlx/query-1df49f5d478dcee269a9bded7fdcc34060d1c9dd6f964f3d6444b55830af299a.json create mode 100644 rust/cloud-storage/.sqlx/query-1dfe7b9de91625d4dafc473dd014326d84465827ee265f1111cd30e6d936f714.json create mode 100644 rust/cloud-storage/.sqlx/query-1e14d3e8348556865af942ec6e3d883668d0b8073143094ed67d34285f9cc92b.json create mode 100644 rust/cloud-storage/.sqlx/query-1e45a7245820860fa347be763bb94e3aa7d6e5d9a2660ed6668eaec3d0b39745.json create mode 100644 rust/cloud-storage/.sqlx/query-1e96a9f033805dc354b5b3f06575ce22f1e4fbd6770c390a252cd6c790ee2d6e.json create mode 100644 rust/cloud-storage/.sqlx/query-1ea0c7996fa301f1b842d74bc2c42c4c399bae6774014cf03704024bd4293821.json create mode 100644 rust/cloud-storage/.sqlx/query-1ec5c2ad3ac95f2b35d28c6298da7d8e7db9a7fb97d8af9ca3219a9e13215742.json create mode 100644 rust/cloud-storage/.sqlx/query-1ed8b097d0371b977eab7215aba09ffc9721b22d7e9d8ea5d80d285dcf65e152.json create mode 100644 rust/cloud-storage/.sqlx/query-1ee4ffd924167f7e5cda2be1ac66506c341547cd49c76e365129d91650474605.json create mode 100644 rust/cloud-storage/.sqlx/query-1ef37a5e008e95d1d123d815c287931dc2e7ddcbc393c0dc068cfcd1a752e6e0.json create mode 100644 rust/cloud-storage/.sqlx/query-1f007b302205e5fb56f1d90b145aa96922a8f97e7a10d91ec7970c0cbf824281.json create mode 100644 rust/cloud-storage/.sqlx/query-1f0770cc758a37117b875b129eeb2e3e3e1143e8ab3dae3a85e9e756cdf9bdc0.json create mode 100644 rust/cloud-storage/.sqlx/query-1fa9e2989967fe9d44ee4e7c7db0091aebd9369c066fde6ccfe090bc97271e71.json create mode 100644 rust/cloud-storage/.sqlx/query-1fc6d4133d6252a01a56005faa3e7244ab1debf1731781813995f3be3075d9f1.json create mode 100644 rust/cloud-storage/.sqlx/query-1ffb3c556caf3fe25d6f69bbeeca0a39d1e5a6fadc9170a2d863fee8fbfb0939.json create mode 100644 rust/cloud-storage/.sqlx/query-2032b8706e7c7928243b8185349df6fde6d25c6187e9b03a75640a771aa8899a.json create mode 100644 rust/cloud-storage/.sqlx/query-205c24d0647adde8fd03d37aa37fce4a37f75e0b9796a77bb45d0ebb3264928a.json create mode 100644 rust/cloud-storage/.sqlx/query-20a52bc26743ce11459bb7c7cfda25dd6084c0d64e4dc99d3f0d802f0ae61136.json create mode 100644 rust/cloud-storage/.sqlx/query-20a6a1d55831d2f428a4439ff09cd0f680dab8845b5789b83eee8966bbb85937.json create mode 100644 rust/cloud-storage/.sqlx/query-20a883359476f1460ce1ecb7c96d502b89f9151a884b24f316c6196f62158659.json create mode 100644 rust/cloud-storage/.sqlx/query-21ac8784f90a5e311b658fe88195bdf9c83dfc84f0b5a8e8075a7153d7f41818.json create mode 100644 rust/cloud-storage/.sqlx/query-21cce4388c4839d33ceac5f09a2f3f7a506003afe498d487699c0cb4b78c7899.json create mode 100644 rust/cloud-storage/.sqlx/query-2247a3c9b543df2bdf1150a7148956f0c3c8287e3863893eb7e8761af066a46f.json create mode 100644 rust/cloud-storage/.sqlx/query-22c535eec28118577d247aed68b7064a5a22071296f2603d6f86a7bc1816dd0f.json create mode 100644 rust/cloud-storage/.sqlx/query-22cfead49cd3d400a1752f2c232b9ccc7072aac9d5dd7c17a15c6be812fb3d4f.json create mode 100644 rust/cloud-storage/.sqlx/query-2323566d1f90b640bf6cbd83beb86be825ff271d9a18921835dfd1864a78ebfb.json create mode 100644 rust/cloud-storage/.sqlx/query-233648d4502d3b4c6190603e4692c9224a44d046cecb5cce585afbb2e8aeaf49.json create mode 100644 rust/cloud-storage/.sqlx/query-2386c156456dbaea33ec5071907677174bdfc3048719f1be818c11b6dd7ada01.json create mode 100644 rust/cloud-storage/.sqlx/query-2434f8a0e387b85009c8857ab719928f6e922ecf302228837e4d0686866ac515.json create mode 100644 rust/cloud-storage/.sqlx/query-2443fe54c4008a741bf932783b861f1049c87b024003d7a6781ed24d82f095e8.json create mode 100644 rust/cloud-storage/.sqlx/query-2448b50af4a227c3a7d638e1377145f8a813091547e4f47a9f1fed4b8959e4bf.json create mode 100644 rust/cloud-storage/.sqlx/query-244c5d4b6165e48a376b1a33583bcc6cbe5e22bd559419180a6c2f2855ff607e.json create mode 100644 rust/cloud-storage/.sqlx/query-2500e65cc47f0cfb5cf99c7b4aa87ca672780591c4b7b2ff5429121d5b4594bf.json create mode 100644 rust/cloud-storage/.sqlx/query-2524aba87b62046462d33a88cd3ccd9818906c386468c40410d1e96f1aeb4e27.json create mode 100644 rust/cloud-storage/.sqlx/query-2576862c3cfe8c3efaf56031067a7251ed3737e3aa63d2213520a9f9b83a281c.json create mode 100644 rust/cloud-storage/.sqlx/query-25ecb2c575d0ba90bea0d500ac8522346fb8bc6aa9bf669219c300cc398a1108.json create mode 100644 rust/cloud-storage/.sqlx/query-2611958405cf94c91ef85a09da00b0a8701621b42e4c57e74d2da40062d577d4.json create mode 100644 rust/cloud-storage/.sqlx/query-26ab5fa9630526b99a3937baff648f056a532178864f1f62ce55d107d1702f7f.json create mode 100644 rust/cloud-storage/.sqlx/query-26c357f323179bc7c5c64492521aa202a0a8119036d4be0975aaac1ce6d96cd2.json create mode 100644 rust/cloud-storage/.sqlx/query-270cd8ae6b47508cb7e4e920bd76cb0f6177d685bddedb06f1892d0014af6f01.json create mode 100644 rust/cloud-storage/.sqlx/query-270e056bb1d522c9f46b8f8f0fde1d3307bf0627fe420be6bc0509072bae1565.json create mode 100644 rust/cloud-storage/.sqlx/query-273231d502cf7d6ac6e29d3007fb5bf5fff4d5bc979ed1555df61f4666e1121e.json create mode 100644 rust/cloud-storage/.sqlx/query-275669451834ace05bb416ced2daa303d315804838e6d3847718eecd239864ee.json create mode 100644 rust/cloud-storage/.sqlx/query-2765a1391d0f36121f7b42445e00be69a87c2a9c380a8fc2c64afa9fb509e9d8.json create mode 100644 rust/cloud-storage/.sqlx/query-278876b19e66f90a52e4a982f6dc6376849461c5df6a9cb1037d1eee6e30cfab.json create mode 100644 rust/cloud-storage/.sqlx/query-279926d74db34fd618a6b507e2ec60160ef8399af5cfa11393a2e1e8d9762d65.json create mode 100644 rust/cloud-storage/.sqlx/query-27af0e4ef3bfa65509108039027a7a0891ce7e5f9d3ff36e6598d5f51650416c.json create mode 100644 rust/cloud-storage/.sqlx/query-27cffe57cded3d1b63df02e8dca8b2158fe2072af6b7baacd30b3f0095cb7e0c.json create mode 100644 rust/cloud-storage/.sqlx/query-28baf072b97758fba3e18900b97176766a0cd023d6730538b6e5c936ae7bdb48.json create mode 100644 rust/cloud-storage/.sqlx/query-28c518d844cd4d843c097af1551f6f384a4763514d278b5444341390f58a8281.json create mode 100644 rust/cloud-storage/.sqlx/query-28df117b319120af2c7f9b3dbfdd45539b62c00cb222b029e501cd7a40e83ccd.json create mode 100644 rust/cloud-storage/.sqlx/query-2930435da61e2e75a6ec3a127f3f1591934bb55a9f2fed8e47dd4406085fa6b2.json create mode 100644 rust/cloud-storage/.sqlx/query-293ae45a8798edad6555057aa63f96b7c27c4d7457aeeb615789f1ebd5468337.json create mode 100644 rust/cloud-storage/.sqlx/query-29496c090bdffe2b771ad704687525136fcd17a1d3e680142e5d0f9e253af578.json create mode 100644 rust/cloud-storage/.sqlx/query-29f40fc78b59a74c6b0df0c8cb0abe9d4e5f57b4b08a18673276967b456d8bb5.json create mode 100644 rust/cloud-storage/.sqlx/query-2a75819c2697a91f55f1161c1dd79d065235f02119bbb2cc2b881f6fa8f82274.json create mode 100644 rust/cloud-storage/.sqlx/query-2a7d96d4ad9f58533ca637112bdf0e50e65f9f7dade0f8e1239cc32404e2b135.json create mode 100644 rust/cloud-storage/.sqlx/query-2ac4359cf8918df8770a8f89b43195b87a928d18ff10c5d5dbec9bba0dc9eca1.json create mode 100644 rust/cloud-storage/.sqlx/query-2b2674801d90fb7b89f286300e8a03ec10c34ab1f8a6ecc6a9ecac5b964669a2.json create mode 100644 rust/cloud-storage/.sqlx/query-2b51093ef799db343575cce3aead5f7db7aed774cb8d6fd74645f5e09b2215c6.json create mode 100644 rust/cloud-storage/.sqlx/query-2b56d4020e5e9882bf82e2909868eda21c8f93ee647274cbd0f7f8b8cfad02bf.json create mode 100644 rust/cloud-storage/.sqlx/query-2ba42e1b8b6e432c5cbe966076ca05523a4b1f4be0798ae362a325c172b19a43.json create mode 100644 rust/cloud-storage/.sqlx/query-2bd69fc8396fe1765b4d3e2c229d7a703234207c5747da7f76bf210966819fb8.json create mode 100644 rust/cloud-storage/.sqlx/query-2c16c9daa8fd2542c90ea2fcd848ed60ba013aa7ee53742b7f1f677e7082ce2f.json create mode 100644 rust/cloud-storage/.sqlx/query-2c1ca56683bc4ff97f5b9768e6da72ee6558c2ea8bb9b58237370e3cb80d309c.json create mode 100644 rust/cloud-storage/.sqlx/query-2c1df8ba2035cc1f63f9d566e8ac763f4d0b5e28370570971935d29237a0211a.json create mode 100644 rust/cloud-storage/.sqlx/query-2c2e1fbbc52b300640cab8add807f581aba22df15410900b9f598daf699b60de.json create mode 100644 rust/cloud-storage/.sqlx/query-2c523a7a5cc018de790645eef920861ebc4fc1a28d0a6e14ee1aed1d472ff87a.json create mode 100644 rust/cloud-storage/.sqlx/query-2c8623569ad039d0ee10321ab06c2563d7f90f17e00e6c4e18d25bc0a7b1355b.json create mode 100644 rust/cloud-storage/.sqlx/query-2cbc42ba5738de1d3d5c0f16306cf0daaab7ccca3618ff516bdbf2efda3077e5.json create mode 100644 rust/cloud-storage/.sqlx/query-2d1112d21440f0dfdf8fcbec264389f7abdcc74544558d60d817f56ff0c14524.json create mode 100644 rust/cloud-storage/.sqlx/query-2d17144ac0fad7ccde292b6da4197cee6ec3a0e3eefc8711308ef3c6b3f7f30c.json create mode 100644 rust/cloud-storage/.sqlx/query-2d57c3a99a46bf686884ad509c913941732afc0ed4d180fdd982f50cdf39b08b.json create mode 100644 rust/cloud-storage/.sqlx/query-2d689689caf98fbfbb437fe34129b37a1ece02e7c4189d0619ea741f74f05bdf.json create mode 100644 rust/cloud-storage/.sqlx/query-2db06a8049c3fa54997e62b47e3862e24a45c9278ff5671e190b594d0972946f.json create mode 100644 rust/cloud-storage/.sqlx/query-2e069f7c63dac759abe54f685567743862bb918f45f0a21481e044ff99427976.json create mode 100644 rust/cloud-storage/.sqlx/query-2e0d56c9e8fecdbbd5ca1853876f9bf94f8980710a99f36274ab20bd75514a52.json create mode 100644 rust/cloud-storage/.sqlx/query-2e318ed8eff90b0e145afae548e3f895f7b7c4f8458df987c7bed9054fbc3450.json create mode 100644 rust/cloud-storage/.sqlx/query-2e5e76597cf6fe734978fef0762c7c86aeba3b076e8684a85696045ed3a4636e.json create mode 100644 rust/cloud-storage/.sqlx/query-2e86cba5f8e5a4358520e11e33cea6c51ce2ca2d05b985a30debdb97f9d7d78a.json create mode 100644 rust/cloud-storage/.sqlx/query-2e94210011a9636d994437cbe074d904d563e57443cc3f65432e1db986f016dc.json create mode 100644 rust/cloud-storage/.sqlx/query-2f1f54eaf23c0c277b0685c35ae75eea5921057be13e25a9609410d6ac5b17ba.json create mode 100644 rust/cloud-storage/.sqlx/query-2f25b7a9ef03d53404c384af4763ec5ce5f48079d5b040724b62f1964e49c932.json create mode 100644 rust/cloud-storage/.sqlx/query-2f26d3b3e0337d1b7b7c31345c0cde73657c5fc5e53fd86a8a2eb14ad063af2c.json create mode 100644 rust/cloud-storage/.sqlx/query-2f51ce444a7d59339909afba8296d2076f0654d89c89495858fec18432df7074.json create mode 100644 rust/cloud-storage/.sqlx/query-2f57ef816b974c70f46ed469ff98a316ee83b8e0b87a504a40ab4eb6f91c9bf6.json create mode 100644 rust/cloud-storage/.sqlx/query-304363603c60b5894a3e692b394aa320b6d72a5851a596cec6dc37b6ef5f80e6.json create mode 100644 rust/cloud-storage/.sqlx/query-30cb91911aecb757da05dab343255e9c81997db622339c1f414e36e873cb476e.json create mode 100644 rust/cloud-storage/.sqlx/query-3152bd385bf8a62ac1258308acc31e02e1d6a1a5aa81499903ec6ca86f678219.json create mode 100644 rust/cloud-storage/.sqlx/query-317f5f566558b0a1c27174de398f923cb9e2d47d3cb0adbe628f18f753995d90.json create mode 100644 rust/cloud-storage/.sqlx/query-31d2504654072ca22b3fc69edcfda0a7c112bb86527c7200c38326cd920f94e8.json create mode 100644 rust/cloud-storage/.sqlx/query-31dbb9af47386234da706e7c3175a7a2e43c2231040cc399488418eab9f6023a.json create mode 100644 rust/cloud-storage/.sqlx/query-322b3420ee6b76c4b85d1953e2bfb47c8b8ba0618e2833475801815dff29d42b.json create mode 100644 rust/cloud-storage/.sqlx/query-32900d38a985678b10e8b72c3a250033052a9fb05c14a92e0d2b89b3b47330a2.json create mode 100644 rust/cloud-storage/.sqlx/query-32bc3d9fd93e31e31e94a11d286017303907af0da309f50568bda9f6fa74c22f.json create mode 100644 rust/cloud-storage/.sqlx/query-32d4e521979a071490ce529b37db5210b6068fa4a23b88e2b2d922f04e7129d8.json create mode 100644 rust/cloud-storage/.sqlx/query-3357165799ff1f7bf1de3891174668e0ab16c64bd9dfc905213681e6021474fa.json create mode 100644 rust/cloud-storage/.sqlx/query-337c5b8167734371400bf99235e441b2a8bfe4d2d7cc242195f298437d95e7c3.json create mode 100644 rust/cloud-storage/.sqlx/query-33d640ec17b5f3daff76c169a999c7347151ce6a8bed1faa103c27a490a110d6.json create mode 100644 rust/cloud-storage/.sqlx/query-33e0a69e797d9274f49771113b4abc47b8a9fe63263b050379d73cc14ce38fd7.json create mode 100644 rust/cloud-storage/.sqlx/query-341489a2c91e2bf15545e01ab49df8ca99355322514ac541a95c0ef65491505d.json create mode 100644 rust/cloud-storage/.sqlx/query-345333b49aa634cf527c0d5c10f6064359b93f5cadb52da18c5e12a50cf50ae1.json create mode 100644 rust/cloud-storage/.sqlx/query-3463e587c615fd82082c41897c917aef97239bcdd408c928caffed0d69c21613.json create mode 100644 rust/cloud-storage/.sqlx/query-3480a69060f20430ed75c05cf9e40734b03ec692b637f99fb61b25f9b7c54583.json create mode 100644 rust/cloud-storage/.sqlx/query-34a70ab661c087eb2c6b97d57099ac2c7ff263b9340003c319475fcafdf0356b.json create mode 100644 rust/cloud-storage/.sqlx/query-34cf0289f36241df424661c22080748ca056ffa883a4cdba1652b7b8500ba179.json create mode 100644 rust/cloud-storage/.sqlx/query-34e06c7ad5a9ddb12ac9bdfb86a0ab6388547e69762533e204f39af71d0e68ee.json create mode 100644 rust/cloud-storage/.sqlx/query-350800132ce9026847f44354b415156432c57f20036d3e05eb8a72f09d88e10f.json create mode 100644 rust/cloud-storage/.sqlx/query-357682d4dddfaa980129c516f38c4176352fa9b44242cdd5abe8b4ee18a62f8e.json create mode 100644 rust/cloud-storage/.sqlx/query-359a16ea19cd02675cf7f6ffb815f76ad39c5aca7b6503ae8e43ebd1cc5d733f.json create mode 100644 rust/cloud-storage/.sqlx/query-35aa1ada3371fd09902d19b1218c2034a348d30889a11f28b98a9e4a0daf4525.json create mode 100644 rust/cloud-storage/.sqlx/query-35d32d2785c724360d20f94c8f10207caec56d853493823994679a4b081a1c38.json create mode 100644 rust/cloud-storage/.sqlx/query-35e9ea6799e4075ef4573116cc4dfb7c5904a23c2d859d838f607d1bd296777d.json create mode 100644 rust/cloud-storage/.sqlx/query-361c3d6e5a9549af7dd9042a088005f8da9e6128de27e65a9bb69e780615bf4c.json create mode 100644 rust/cloud-storage/.sqlx/query-36a0d1e85cdabcc03083ebedd508372d7c83b2ffe1f393c77ceae79ba7a24199.json create mode 100644 rust/cloud-storage/.sqlx/query-36dfcf982834f117d97d1ba332be6784c946f05120c7c228ff258389ceba97a1.json create mode 100644 rust/cloud-storage/.sqlx/query-370a87eb4e8c69c5430716f06c0b23ec03e343c026d2e13ba7c4337fab85cd05.json create mode 100644 rust/cloud-storage/.sqlx/query-376d485681b329e1febf28f35020eadfdbec930e33a0666707593e20ae4f67f5.json create mode 100644 rust/cloud-storage/.sqlx/query-377f7c130cc3d834870fa692f5ba36d070bce17512b9ab348d0cb40ebe4d1b08.json create mode 100644 rust/cloud-storage/.sqlx/query-37c8b721c4a8e35b8cbecf02ca434d2095a2b2dbfc9d3a64e595f9725bbb0b8c.json create mode 100644 rust/cloud-storage/.sqlx/query-38d8954ab4b43aa67742a32d78af64cfaf2c5620a534753cc358602d626693c1.json create mode 100644 rust/cloud-storage/.sqlx/query-3907578083a1a10d49eab63c85fd92d078cbce9ef2e968480ea475623ec76f63.json create mode 100644 rust/cloud-storage/.sqlx/query-391f9e418d24bb793ff8e4408dd44193d3c769a6d43078570accc708e6a749b3.json create mode 100644 rust/cloud-storage/.sqlx/query-39257a88a1d0bda4726e269ce262291e713cf20f121e10997bcf944f3363efb8.json create mode 100644 rust/cloud-storage/.sqlx/query-392aaf2a2b9c1d3b0a30fdaed7107209446a4893f7f44b1d5c19cfa9fd387695.json create mode 100644 rust/cloud-storage/.sqlx/query-399d9c2a1c07919059e7d5a7c58c97f9eff09db1237092b37fc80ece52ff410f.json create mode 100644 rust/cloud-storage/.sqlx/query-3a4acf38ce09e3278ff2020de09c48267215a33e4c8d135319959aed14edbe63.json create mode 100644 rust/cloud-storage/.sqlx/query-3ad109bc298d98b88d0afac7d254a35a85f1671b808c2f2b71781114bbc1d134.json create mode 100644 rust/cloud-storage/.sqlx/query-3ada2f8355f9c5ecd4072938c3243296615904f9af24c4e18dda50992b47d5af.json create mode 100644 rust/cloud-storage/.sqlx/query-3b147b8bcb7d08a87729fc68c562ea545e65d41bd61891ed3aad8eda3c4d90dd.json create mode 100644 rust/cloud-storage/.sqlx/query-3b570b222c479d824a07d83d5af9bb51833195bf60052e04a1c754df22f57220.json create mode 100644 rust/cloud-storage/.sqlx/query-3bb80109f339257e2fa01b7ea05d8c9786d6202db2a9fc41186d53c430d8f155.json create mode 100644 rust/cloud-storage/.sqlx/query-3bd649e798f834ea3e0fc9d6c3b03d923622666779a97429afb926c64b517e1b.json create mode 100644 rust/cloud-storage/.sqlx/query-3c082e8dc2056f62233bb2d68147a491c8ccb46f90738f8ebbf25afea699876a.json create mode 100644 rust/cloud-storage/.sqlx/query-3c570d90cccdcc4d4546ecd377500c4882b1c7fb6c56e822cc4dfb8d4191dce4.json create mode 100644 rust/cloud-storage/.sqlx/query-3cc12a354bd0b48195a8f6b7b1df42d96b19eda98a61750b4405c0a0c55e50b2.json create mode 100644 rust/cloud-storage/.sqlx/query-3d0cc500bd9cee7fe4179b9ebc8176e5b20c478d2e5c4cba230e5fa3f57d38d6.json create mode 100644 rust/cloud-storage/.sqlx/query-3dd2c8152498a2183ff2a944699251aaeac0e320a02b2504b1bc74402ad894cd.json create mode 100644 rust/cloud-storage/.sqlx/query-3ddef23b2904342f1b84795fd71b50de4413626a5dd460c83ad9e997fb8e09ae.json create mode 100644 rust/cloud-storage/.sqlx/query-3de786ce00b9b7a2cf935b39ed0bed0d042a4133b63124b1894da135d0a9449b.json create mode 100644 rust/cloud-storage/.sqlx/query-3e161b7906ba15490634a5375e300d649e4aa06841adb1645d4f17507cf15694.json create mode 100644 rust/cloud-storage/.sqlx/query-3e259ea5cbdcfae4334cb0125de6423fa95a0c127fbeba0a59d7096b0177c072.json create mode 100644 rust/cloud-storage/.sqlx/query-3e333cb74dc40b2af8d6f9ed74105709ccaeca68b0ff0906e2f6be307963b49f.json create mode 100644 rust/cloud-storage/.sqlx/query-3e3b2b04a9eb28ea82f8f97a2b725b205e0b6f330e4f3eb9690375e992ce2194.json create mode 100644 rust/cloud-storage/.sqlx/query-3e5924421ddbfb3eef5e5d949677a72f6dddf521d5df201bb11207e89be08747.json create mode 100644 rust/cloud-storage/.sqlx/query-3e75b16310cd04a141ddede2b9360356850135fd8b7bc79ef54d6548c40dbbb0.json create mode 100644 rust/cloud-storage/.sqlx/query-3e8d3378b4651a45d6e1cfee02d1d991bb8fa6a687207164d713487c524d87a6.json create mode 100644 rust/cloud-storage/.sqlx/query-3ebdc4ec5d9a7b08d21f6e249d5c72d10d42e25aa07353aa47ebd3f1ad4f56a7.json create mode 100644 rust/cloud-storage/.sqlx/query-3eebc9f54cadfffef67a78b403320f8f305d08873a4c857c118f166d6c16b6af.json create mode 100644 rust/cloud-storage/.sqlx/query-3eefc691aa14c4c3da377bf741138ed2f91343adfb13af0c7573dd6c29f8ac9a.json create mode 100644 rust/cloud-storage/.sqlx/query-3f3b5a5d8734e3748d4e29d64cfa89baff99dae621e7cbd7a10017beec9485c8.json create mode 100644 rust/cloud-storage/.sqlx/query-3f518302c857be0e5aa9180c4cb50a316694bb9210e88c664c4f998fd5759fb3.json create mode 100644 rust/cloud-storage/.sqlx/query-3f5df39d7ee978e92a94f3e9c1d6f12e812b89f46a7a40cb0d4b0ff8397b1b2f.json create mode 100644 rust/cloud-storage/.sqlx/query-3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046.json create mode 100644 rust/cloud-storage/.sqlx/query-3ff726c2ff64c69e2af5dca67815300efe7b0bcbd74ae96f3d65aeb8edd064f7.json create mode 100644 rust/cloud-storage/.sqlx/query-402db336b46141f0ff5f728de492c3c3897c0c17a0f53ce67c915b20e07b3545.json create mode 100644 rust/cloud-storage/.sqlx/query-40791e0cf94fdc888849594849e83daebe532ed4f8935d06815c24289d3c91c2.json create mode 100644 rust/cloud-storage/.sqlx/query-40955b135c91071078ae79b3be1c76ed21031ab2497aa0c137a5644f7e7e6e7c.json create mode 100644 rust/cloud-storage/.sqlx/query-4095df49b0672e4a41dee5acbe6be80494d59ba5242b073b9dbefbf8752a39f6.json create mode 100644 rust/cloud-storage/.sqlx/query-40980d3ade1b42b14019fa0add93fb37a8a26d78f4e275d9bca1ebaa7e558f6b.json create mode 100644 rust/cloud-storage/.sqlx/query-40bfe125ad0bde96466e2a8ed9083c72877347fafb9fbcde0935ac10290b7cb0.json create mode 100644 rust/cloud-storage/.sqlx/query-4103298cf62438b69d534ac4092423b210d7bcf2202ca38480fd7ce026977166.json create mode 100644 rust/cloud-storage/.sqlx/query-411177d8b75b7150971074b41fd825873d729e28915a0fd36335b36494a93c53.json create mode 100644 rust/cloud-storage/.sqlx/query-4123b0f2a6fa02a9191a87f2484cb27fd4220b15126fd010acbf4b954a9afb68.json create mode 100644 rust/cloud-storage/.sqlx/query-414c3ac70d95caaaf4c7fdb0556c287e3755f19187f07ec05d4ce0c60a5df751.json create mode 100644 rust/cloud-storage/.sqlx/query-41682a8f6e1e2fb8836f76ca3ceab5fe676b45c9942ec0c99486c03e52733a47.json create mode 100644 rust/cloud-storage/.sqlx/query-41de07226ced9b95c7419c9e6d5d9bd9c5890cf1c144f0f8905664cd72c7f132.json create mode 100644 rust/cloud-storage/.sqlx/query-41ef28446ebbd766c0778fd56fb8ee8094c2cb84ed3f4dab9e890d441611722b.json create mode 100644 rust/cloud-storage/.sqlx/query-41f77dad73c881816d91df173411d39329574a7a99ae1d295fcd43afa5963408.json create mode 100644 rust/cloud-storage/.sqlx/query-42175eb671a66713c2bb172aed854b0fd109b0089bbb4951379ea045012ad6f6.json create mode 100644 rust/cloud-storage/.sqlx/query-42546a42d5b23be78e06b0bdf3188821246cd0b2d459d8dc667be1e6c8de1c98.json create mode 100644 rust/cloud-storage/.sqlx/query-4264fcdaec0d80ff28c8ff6e2443f685b084283f4fb1cc683330b7c7875ca312.json create mode 100644 rust/cloud-storage/.sqlx/query-428083ae29c00ef5dfae2fadc0d3ebe3c3191c212f37631feda29343104f9548.json create mode 100644 rust/cloud-storage/.sqlx/query-429ca8e2c629499903d69292063060cafd143f63c7548ffdb8ae19461d0f0c76.json create mode 100644 rust/cloud-storage/.sqlx/query-42a7d2fb1eb1c98ae10f8375a262c48cb828e3c0ed342d0c2b090c2a69c62a2f.json create mode 100644 rust/cloud-storage/.sqlx/query-42e46f8f1c2cbf80383f65dd19d4efa3ae9c2697363d56278789de68b2295366.json create mode 100644 rust/cloud-storage/.sqlx/query-42f09cdfac72096bac4124c84318142bbc2bc0256ff84a6ba9ab2f98fd9fb0c1.json create mode 100644 rust/cloud-storage/.sqlx/query-435f8b35060d08ba47b4676c968b0543e406adc48edfd2a72ed715164c4a093b.json create mode 100644 rust/cloud-storage/.sqlx/query-444840cacdf181727100b5ee338de844abb56d9cb3a88034db7b285fcff7e9b7.json create mode 100644 rust/cloud-storage/.sqlx/query-4465cdde5f953cd550e7190572d8e5e4c70fce8558763d56a3f57e99474a9aeb.json create mode 100644 rust/cloud-storage/.sqlx/query-44682e65711eb45a1dbec725646b7b0e02ced66e66f2d985f3da2d3eb7ad8c60.json create mode 100644 rust/cloud-storage/.sqlx/query-44a05989da2597deae3eaded94e7270307a3e4f36625e76d489d4bc39b66e759.json create mode 100644 rust/cloud-storage/.sqlx/query-44aa0fedb485db7f86d0dd21c5ac83ffd5ac9b4ce85a5d08d0fc5095efa73505.json create mode 100644 rust/cloud-storage/.sqlx/query-44cc40d5175302af5445a34d4add1e7dc2d0cea3efa5b87c16cb2416b43fc098.json create mode 100644 rust/cloud-storage/.sqlx/query-45063eedc20b7eb86019e69545c2e8b441f1e9e067086b05617437b6f43bc329.json create mode 100644 rust/cloud-storage/.sqlx/query-45064c055927af781bc06e3a602a9efbefbd111110b9f0fab5cf029e70208c1e.json create mode 100644 rust/cloud-storage/.sqlx/query-4511579c08d1a9b52afd1279a058c1a7fd6ded6c7e73a7a2dea50fd492d5e88b.json create mode 100644 rust/cloud-storage/.sqlx/query-45267fb7a6016603a87fca1f2314d86540a99362db746fa2a04a2369bac18095.json create mode 100644 rust/cloud-storage/.sqlx/query-454e1202630627f0f8c9f876f1917d6cfbed8fc192939cc0e5e43b86905a4ca2.json create mode 100644 rust/cloud-storage/.sqlx/query-45a55e0ea2f0cc2d7583ede119ffd4059933d25cca50775c74f1ef5a0224493c.json create mode 100644 rust/cloud-storage/.sqlx/query-45ac2a692bf3676d053ca1905fe8586ff1dd139822d3cbde8e125add5575194a.json create mode 100644 rust/cloud-storage/.sqlx/query-45e8619173ce143a2908e7874cac1d14a38ad27be4af19f4558d1439e5e1108b.json create mode 100644 rust/cloud-storage/.sqlx/query-460e4c3dcd4adba352eb7c00381bac9d3c4b8b107dd02fd35ec991e848919eed.json create mode 100644 rust/cloud-storage/.sqlx/query-46529d3ed1fd86a194a7e99458b4f95a0dc0ae92127693240ce9dc0acc3b7467.json create mode 100644 rust/cloud-storage/.sqlx/query-4656631949bab512d00e10664be31128b89c8047812362331ded6b6e0a12e1ac.json create mode 100644 rust/cloud-storage/.sqlx/query-467fc7bd79aaa296588af3527f1d1fa944740f01ce65798b18269b099a65a283.json create mode 100644 rust/cloud-storage/.sqlx/query-46ffaa1a906d49a47c765c9c03d89e50037adc4b72c364bdb4282ab0c8cf1237.json create mode 100644 rust/cloud-storage/.sqlx/query-472e132fc9b3df044b4f267507ab146a3631e9fb26323cae0e49e9d25d7d0767.json create mode 100644 rust/cloud-storage/.sqlx/query-473db34286d4aeefece0b6a97cea69cad83d20908c700d750a4047ce5bee30f4.json create mode 100644 rust/cloud-storage/.sqlx/query-47527ceedb84aa81cf48fd3529718a5303e9f456e3db0ac35840627b086d3995.json create mode 100644 rust/cloud-storage/.sqlx/query-47f0213791a57c90d28af2015b1de283865e6bbf5776a9f482a5d21568c14d3e.json create mode 100644 rust/cloud-storage/.sqlx/query-47fb0faaa3568c45ff7abcc6b1b1229d7042950891759db010a27c5a18ed2909.json create mode 100644 rust/cloud-storage/.sqlx/query-4825133a0ea4f2d839f5976681269e6ad7a517fd29a3d2a7634cc655bf7f2bfb.json create mode 100644 rust/cloud-storage/.sqlx/query-48293aa40f783e58d4f49e2d0495255d70d2b790baa1bfb5397913d2a4b1dd8f.json create mode 100644 rust/cloud-storage/.sqlx/query-483f8f8ef068fb6394d5af8d06068d4463413d22894b6c6b72965f90d8ef0436.json create mode 100644 rust/cloud-storage/.sqlx/query-4857541516ce135939f34754fde00c114cdf9ed7f203553020cf032732892e80.json create mode 100644 rust/cloud-storage/.sqlx/query-48697f17a7121986cc770d6698fbca7bf107ae20dbadbf64a7799ab162b2feb4.json create mode 100644 rust/cloud-storage/.sqlx/query-48b369655e2258f40d38ab1352825be135e66c8215c051a56c7aa032b2abbd02.json create mode 100644 rust/cloud-storage/.sqlx/query-48df79c41ba4ec7fa2454ac962aee9ff97875c9e2335b46fe13b2bbdee721186.json create mode 100644 rust/cloud-storage/.sqlx/query-49044852c3fc5c0183d7253e27ec923e43d1d9abcfa5ad3fd714ce35c3c0e3f0.json create mode 100644 rust/cloud-storage/.sqlx/query-4942eda5f2d8832fc43c02a17aae1ec8ed06a16fc14ae6d4046eb75bc427fb69.json create mode 100644 rust/cloud-storage/.sqlx/query-4948508d8a7862e5986502d9373c0b1a97e277c5c50d9f14dd86c121164b486b.json create mode 100644 rust/cloud-storage/.sqlx/query-4962707d2bc90c036ab1540db476ad45483ad784af4908660342b1c57f045095.json create mode 100644 rust/cloud-storage/.sqlx/query-49b6375ff01eeccbeecacee87258d2b4c354daa345b9c838adc1fadbc6a1cbb5.json create mode 100644 rust/cloud-storage/.sqlx/query-49cbada51408e2501723f7a1de4e170efcab0fcd922e2c5a79772256c1e51baa.json create mode 100644 rust/cloud-storage/.sqlx/query-4a02aab26f16872fc4f19617011e4dc054b233dea57f9c78a4f2ba5b19284f62.json create mode 100644 rust/cloud-storage/.sqlx/query-4a158c278c77c87d5394e9cf1166ceff6eead17cf856cf45a6a49896626b6bdf.json create mode 100644 rust/cloud-storage/.sqlx/query-4a8b04d2fa922cd2f007241f83d6ad7e4dbcb5e7f6b0560316ca474878971e63.json create mode 100644 rust/cloud-storage/.sqlx/query-4aeb58db6713bcb7ba53c394a0cde88693c45f2184b1d9553a9baa36cbef6380.json create mode 100644 rust/cloud-storage/.sqlx/query-4aff42ef43f7b7ef454cc331d2e96f3fc28bd7c823b9eb181eb0c9fba7635c37.json create mode 100644 rust/cloud-storage/.sqlx/query-4b483617cc20e22761392cb54e682762a83c3dbeec3eacfeaadae1ca8aff376c.json create mode 100644 rust/cloud-storage/.sqlx/query-4b75a017d1bfeb600d0b75c58220b27c51a57253d0d82c55793eb5b0852d476f.json create mode 100644 rust/cloud-storage/.sqlx/query-4bce30abb40ab058dd6e4681f28e4e0761b29a596122af48beb1a062bd157844.json create mode 100644 rust/cloud-storage/.sqlx/query-4be607458d6cc823fa5a692842b502b405bd0e971be8425d4573846beadb6bf3.json create mode 100644 rust/cloud-storage/.sqlx/query-4beff28bd0fc4ab7fbe74078b14f100a55cf2bb037ec171c3bcc8650edd73548.json create mode 100644 rust/cloud-storage/.sqlx/query-4c11c2c42479bad0cd549ab31c1dcb90b605b55480a604c4e047c450b5ab433f.json create mode 100644 rust/cloud-storage/.sqlx/query-4c8f1c99fe7ca583e05b4ef8aba08d4fdf58135dc3e99ed73381a29f94b8a270.json create mode 100644 rust/cloud-storage/.sqlx/query-4c9cd8085118a9ee2076c12a09f4e41c9e9d93550acd5c691de63e313a5c9b54.json create mode 100644 rust/cloud-storage/.sqlx/query-4ca8409d9a2c8bf1634c3b1543e02daa92a5a01f2ad46d8124e0568ce8b17073.json create mode 100644 rust/cloud-storage/.sqlx/query-4cc88f2a38cb0722282ef262adefd9fcb0d4778c5dc308720710e8f5e9995911.json create mode 100644 rust/cloud-storage/.sqlx/query-4d0f38e351a6a9b4a559ae4df808653289e7abb1719b58fd0a4d7e8f6cedb423.json create mode 100644 rust/cloud-storage/.sqlx/query-4d4c2b67879a26c0ad31c817024f3e6bec03dc90a97d3082614d72ad35e6f5d7.json create mode 100644 rust/cloud-storage/.sqlx/query-4d82dec72e255478981441dc566b2fc4fc9f5d61726741284b1301af69517705.json create mode 100644 rust/cloud-storage/.sqlx/query-4dcee20753a8996e6dfab48fc0dcb6ab0ea074976d13639ccc6d6932f79fae13.json create mode 100644 rust/cloud-storage/.sqlx/query-4dd84a2e543e14d4ed1655a0895eab7815948fcad38c5ce05925ebc4a5ebea69.json create mode 100644 rust/cloud-storage/.sqlx/query-4e096eb7d3c507e3647685073fba7b3f36ef0e70c887db31f5cc5a8eb8ee1844.json create mode 100644 rust/cloud-storage/.sqlx/query-4e188b522b313eaf51caac616fe177abfe97c6ce6291ba8f83148ba02eaead73.json create mode 100644 rust/cloud-storage/.sqlx/query-4e6737a5a777280784037e88ccdda4e6e89dae702e5b50269db6e17265d14643.json create mode 100644 rust/cloud-storage/.sqlx/query-4e9e26869da9b5473f0876a70c68dd69f6539902e580bdeaeaabdbf4d72793ef.json create mode 100644 rust/cloud-storage/.sqlx/query-4eb050dbd9d68aa914696bdf5c03315c56e84c969498cb55c34bd93d937dd924.json create mode 100644 rust/cloud-storage/.sqlx/query-4eef29ad204776f70531f685f709f4e18f2b4f992d73ad2b608b77869a7856a9.json create mode 100644 rust/cloud-storage/.sqlx/query-4fba8b3d9705b745d4e20a4da319ad7cdfe99f883f0e27a402545ce0b3557ed1.json create mode 100644 rust/cloud-storage/.sqlx/query-4fd61bd738465d867065c6cf22fd4c322073f31bf3123cf8504bac3ac225191b.json create mode 100644 rust/cloud-storage/.sqlx/query-4febc8d1902ceb02cc22d1bf9d9f1ebd8a471c3b0e6e4016de97a8fbfd1288b7.json create mode 100644 rust/cloud-storage/.sqlx/query-500452d6337cfbc2d9a919268021835385045e45c20aaba40ed940cf3f25a07a.json create mode 100644 rust/cloud-storage/.sqlx/query-500f0b56eb070f7bb2a4ea9a95337f7074464d19fc6646401072914709be353e.json create mode 100644 rust/cloud-storage/.sqlx/query-50318d6d13fb931307f2115b33d277b5298c45ed798719e792e722bd30615a95.json create mode 100644 rust/cloud-storage/.sqlx/query-504e516996c2c65d7b2d7c47bdc5fbab6644ddd99a4913bc05ffd713f0c4ad5b.json create mode 100644 rust/cloud-storage/.sqlx/query-506f7fbc61e5c2b0caedcc8ca1af001b1da7b88bcd175929f42b88146d4707f8.json create mode 100644 rust/cloud-storage/.sqlx/query-514af45f8facfb915211cc9b0a92991b831dc11f9ab91d92b368340fa0aa8f8f.json create mode 100644 rust/cloud-storage/.sqlx/query-5183d95583de1d3aa5cb183c528a2ea768622c3b189ffa6664c15669f7d78b90.json create mode 100644 rust/cloud-storage/.sqlx/query-51873bdb08381231f01403f4e58bb5f5d73338d8cb9ec96c67fd8d6ea4746970.json create mode 100644 rust/cloud-storage/.sqlx/query-518eb6a40898a1d2037db11af3e2cfa426a24d03d78ddea8c6c837143bb1d6bf.json create mode 100644 rust/cloud-storage/.sqlx/query-51c9b178186c513e2359c6ae0d9eb291f29d3fe5dca1bfa5ae426aad4a086ccd.json create mode 100644 rust/cloud-storage/.sqlx/query-52274fa0bcbaf995cd7ccf4025dcae43516d969d93066adf3bea59f64fcce246.json create mode 100644 rust/cloud-storage/.sqlx/query-523326bd4435e4f15ca5e0cc7f015e99eac0492d7e855375a0389e246c400049.json create mode 100644 rust/cloud-storage/.sqlx/query-525b9b86055a3dc112adcb8973efb21edf79cf3409c9d1fbcb71c4564b6b453d.json create mode 100644 rust/cloud-storage/.sqlx/query-5293063d6203fdce622e3265581cb505e07534de33d0275ed860aea9f6614fc7.json create mode 100644 rust/cloud-storage/.sqlx/query-52bd1907e946a5c7b45c1954491c0d10a911eecd17e12d2c3937dae20ae71bef.json create mode 100644 rust/cloud-storage/.sqlx/query-530dbf9753f99470bd1928f17721031cd3fcee89685f44afc0d0305ec6231093.json create mode 100644 rust/cloud-storage/.sqlx/query-532bde51c937e59bf4b6bd5ad735cd58ff2db92684a0c685bad7e8f133521563.json create mode 100644 rust/cloud-storage/.sqlx/query-53803816cc7149ffc49cd92a665229df9ec397fa2035c305d00133abeea39358.json create mode 100644 rust/cloud-storage/.sqlx/query-54155d1cfe6997b0dfe33cf72d9f3e2a1bf3af9a8fb1487fd32fb3f833641046.json create mode 100644 rust/cloud-storage/.sqlx/query-541d038f1693e63ee6d4626f58580bca194989d88fd991abe2efd2c66d5a5e8e.json create mode 100644 rust/cloud-storage/.sqlx/query-5429a0ff80ba0e9394eb205bddbb2dc247030b9e6eb3a750e30cdd770bf92fa9.json create mode 100644 rust/cloud-storage/.sqlx/query-547e3772bb1def3090b8647fcec5795696c6d02cbabc4619d6c384bfb5bff330.json create mode 100644 rust/cloud-storage/.sqlx/query-54880d69ab1555eb66227f63e0e4b3d940d114ee09eaa06916c48da29b8ce62e.json create mode 100644 rust/cloud-storage/.sqlx/query-54eb040ca9944d83dd7a79c3a6bb5d7c6f8264109d57c825e903233bb7ea22ff.json create mode 100644 rust/cloud-storage/.sqlx/query-5553458fc15f58a3a981b54210e10ebf8de2788f357c3af3932a6516c235271e.json create mode 100644 rust/cloud-storage/.sqlx/query-55776d3a26b7c89897de6d58d17686ac9efbb516589692adcb97ffd1ace56ac9.json create mode 100644 rust/cloud-storage/.sqlx/query-56187151cc2545db5e5b43235d9aa3a88303c3508b7218179e27812e3cad7ec2.json create mode 100644 rust/cloud-storage/.sqlx/query-56322decea30dff649d294afbf0be6a894f1c511b957f6988b966d730d47bc59.json create mode 100644 rust/cloud-storage/.sqlx/query-569440328317c8738d56baf89e528c093cc117a1ff6a8628f3bea4ea860c2dfd.json create mode 100644 rust/cloud-storage/.sqlx/query-56bc98d55555a5605ffe1fb098c61a56fe28b866c4e6684d4208f97a21a7c5d8.json create mode 100644 rust/cloud-storage/.sqlx/query-56bd1e06751e63ed197d0d29b48585d16912c6fd506196d2058ee41c09e71433.json create mode 100644 rust/cloud-storage/.sqlx/query-56f380911d1ece3f1a04ad73ffdf724d132c32f4971d533f7dbe0a42e283ebce.json create mode 100644 rust/cloud-storage/.sqlx/query-573a66f6ce27f28db10933bb330aa7edfb6bc776504942fd6f5ab4302a49a857.json create mode 100644 rust/cloud-storage/.sqlx/query-575a01f5f6907c1586c226426b338c649fa27b433650b735c685e60ad9435a4b.json create mode 100644 rust/cloud-storage/.sqlx/query-5766ebb8dbd1ad5d06624c7e715e3d2e68f8539e835552e8c8ca0d562adbbefe.json create mode 100644 rust/cloud-storage/.sqlx/query-57fc603adf83fd7c07968425c98f9a57924573692cf0529ad021b6eef00ce99e.json create mode 100644 rust/cloud-storage/.sqlx/query-582f4f2d5a5e9c72835d0a043f743a94d927a08a81b8687714a96bd52a94cfcf.json create mode 100644 rust/cloud-storage/.sqlx/query-58443a6571e2b390002d7a3ba3954182467bb638a6d399b3ea8212d1a026d4fd.json create mode 100644 rust/cloud-storage/.sqlx/query-584a3f488f9149430d13e21a9bf1bef7da249de88d145a2925832425785250f8.json create mode 100644 rust/cloud-storage/.sqlx/query-587ab2cbf540d6f98236ca8cc3c098a0efa439c0ccefa93c46971a0f2fe7efcf.json create mode 100644 rust/cloud-storage/.sqlx/query-58a665360907b8fc412e9f8dcb73696b517ecdd60243bf27c9564c7b969f1143.json create mode 100644 rust/cloud-storage/.sqlx/query-58b8b566779518776b13cabdb3498ac55b426b0493e769ea607618db7e246a71.json create mode 100644 rust/cloud-storage/.sqlx/query-58bcc36d5e748a63f9f35516f0c0ace37f77dd6806bf7f26211b3faa0fa84422.json create mode 100644 rust/cloud-storage/.sqlx/query-58bf14acad4a08a6fa2da18e244676169f0bc6f606b04b1e8e3080fe95717b41.json create mode 100644 rust/cloud-storage/.sqlx/query-5904887b6e8f4db0d2bd73b6e2921530de25c237c7e369b43a60ed7c28958fb8.json create mode 100644 rust/cloud-storage/.sqlx/query-5915728325fe5163ae5f18a99350e0cb5153d368eceb75d03b4cf1adfd1f58bf.json create mode 100644 rust/cloud-storage/.sqlx/query-5929a15919ba9b705c47c77ccc0ac1d7893590a8513c5d2019793598704f64fb.json create mode 100644 rust/cloud-storage/.sqlx/query-594849eb57f03099052b5415a963968dd31da940638917a96ab12dfc5a98bfa4.json create mode 100644 rust/cloud-storage/.sqlx/query-5959ff0d2410e3f2599a53bc1bf0de19c2d6e90cb030f64dccf965a0515b467e.json create mode 100644 rust/cloud-storage/.sqlx/query-59eb39577b1b566ef0a95f74f75904a62689388c0b28b77a02946952e6aa8b36.json create mode 100644 rust/cloud-storage/.sqlx/query-59ed63c0cb97189af71b12a68e7a516b7122cb0462db7ecc569b2e55a6e5057f.json create mode 100644 rust/cloud-storage/.sqlx/query-5a1016dee1c30860cc21fed65aa3a7f7f3c37e866d38c2ab99cfeb2fe940b2c8.json create mode 100644 rust/cloud-storage/.sqlx/query-5a175ba3589c494d31510ec831a37d0febf04a956ff09e0a57665211118e876a.json create mode 100644 rust/cloud-storage/.sqlx/query-5a45cbeeb6fa756b256688f6c4e05be4abae89c4eb3c5532a96b91f3d07e232f.json create mode 100644 rust/cloud-storage/.sqlx/query-5b17a30f841372cce9989af409baf993e24bfe90d3a3553f6851b3e92c8540eb.json create mode 100644 rust/cloud-storage/.sqlx/query-5b5a3e0954cb8130b507b73e771624fa3af4166de80e72dbcae524f63af9ae2e.json create mode 100644 rust/cloud-storage/.sqlx/query-5b8af25b1f47229f74c98541bbd200ba0582eaece5a30939ed5527bc05970795.json create mode 100644 rust/cloud-storage/.sqlx/query-5bb9c628efd6afd6b7858e11b0f470fdaf0bbd407265fabd04e1201cd3754809.json create mode 100644 rust/cloud-storage/.sqlx/query-5c110b698a00004a548556064f3ec7f96170613378e2fc37f78f2585a26f91f0.json create mode 100644 rust/cloud-storage/.sqlx/query-5c138b3279b9ec08049316d52887064c46d9799c3d1282237646ec295890b2f7.json create mode 100644 rust/cloud-storage/.sqlx/query-5c7aee79058a9904924fdd338d6823a3b0caf86fa2ff09ea307703a57ed72c68.json create mode 100644 rust/cloud-storage/.sqlx/query-5ca006bf302d626774ecb05adde9c5bd7f594804d634f2d805ef47f997b270df.json create mode 100644 rust/cloud-storage/.sqlx/query-5cf744cd176688700ea98da0351a8c39369e808fdcb9ae39bb8e31ef99bbf3e8.json create mode 100644 rust/cloud-storage/.sqlx/query-5d7c176f88f6883ffdd41a43969a101f26817ebd80c68dbeffe7c3226ab67a41.json create mode 100644 rust/cloud-storage/.sqlx/query-5d922b5d0478e241a8b0bb3062a61448366cff0f2db4b3bade0294bf0e4a9bf0.json create mode 100644 rust/cloud-storage/.sqlx/query-5dc0e1bcbf170bd9bbf24c739411500b574a43db370a9c995599ae8aaca20f23.json create mode 100644 rust/cloud-storage/.sqlx/query-5df7eb0451abdb0810c1329807dab9213313858eceaea2015c5e6d584d2f168d.json create mode 100644 rust/cloud-storage/.sqlx/query-5e4e9cc4a9c2a48dcd4e3988d5dbe7b95b9ceab66d44b0a0158ae65aedd79d02.json create mode 100644 rust/cloud-storage/.sqlx/query-5e5f447067de6cef4513c80eae341ba63241b13c30a3413e83f0206497a5591a.json create mode 100644 rust/cloud-storage/.sqlx/query-5eabbc475e918d8ff312b3c8a4197f5cbc314f1462ba6368aa297ff3758f5e61.json create mode 100644 rust/cloud-storage/.sqlx/query-5ec52bf99ec6fbfa8759ae070b48113cdb5f9a4526c72be1fcce6b3bb2e88d2a.json create mode 100644 rust/cloud-storage/.sqlx/query-5ee7a600e71709918f23db0066f39b2a7a87880e5a9c6aa565ac85e0efdde85d.json create mode 100644 rust/cloud-storage/.sqlx/query-5f05ad6ca76854ac7e9257b63a5ce27e9f8c6a5ba43888d9e357b10d95e0f6f2.json create mode 100644 rust/cloud-storage/.sqlx/query-5f8bb3fa254adef0d6b582d2d964d9f77f55d10e070be80de74d22e18ba8a7d4.json create mode 100644 rust/cloud-storage/.sqlx/query-5f8f702012590c04c79b43fdb82d0252976b275c608a3eb96e3043a1a02d452f.json create mode 100644 rust/cloud-storage/.sqlx/query-5f9f23e45c696db3baa3b172efb66ba931aeb9036344782bd4a5e277df2c7ce2.json create mode 100644 rust/cloud-storage/.sqlx/query-5fabf029c6dd06505963dab2b60eccb8ea77088f535970dbcf5f80d57a9a4c5b.json create mode 100644 rust/cloud-storage/.sqlx/query-5fc28ed3d53550bec9f1d5fdd1c330f4678e3d3d44f1369bdd0b31f21600fdb1.json create mode 100644 rust/cloud-storage/.sqlx/query-5fd1abfdae31c22ce5c71a9c3e9607566b99dbd819d7bca5a88e62fac00098d4.json create mode 100644 rust/cloud-storage/.sqlx/query-5fd401a3c1bd6de73881967420cd5056b6e87465a3e8c7bcde2db81b75ba2f57.json create mode 100644 rust/cloud-storage/.sqlx/query-5ff5a0e3731dc62354f69e26961fee699c6de82cfa14ba2a403486731366d664.json create mode 100644 rust/cloud-storage/.sqlx/query-5ffee439386fd24fee2bfa20caa76b882f5be1d44a2a06a71783418fc5ef381b.json create mode 100644 rust/cloud-storage/.sqlx/query-601165c041981d75e53661a10ffd67a55ae4e7f2cf8bdde6ad1c834196934cf4.json create mode 100644 rust/cloud-storage/.sqlx/query-60160128531d4bd143edb6e3af105954c5f749b5a76592d8ba8bd78d3ed410cc.json create mode 100644 rust/cloud-storage/.sqlx/query-6038d459d2d8e60479180f5b8a756380bda195f4769b6420e601ed147a9439f9.json create mode 100644 rust/cloud-storage/.sqlx/query-60707c986f365c7b49d1938285b601338c1d98e45b630d1a3e1622fb16ad58b6.json create mode 100644 rust/cloud-storage/.sqlx/query-607eecc4c046c7bae3bdcdc4e20a5bfa78673bf04979c01365b9e9a35398125f.json create mode 100644 rust/cloud-storage/.sqlx/query-609f0f7ffb41618435bfabd82f782666220cf9bf24918ba7c7b9fce1fcd5783e.json create mode 100644 rust/cloud-storage/.sqlx/query-60d9e2a257fd628f345cb615e9d6d201ca5190bdbca1c90001a98c46b789771f.json create mode 100644 rust/cloud-storage/.sqlx/query-6107da3c9e3018aed3dce2c0a29baa584754659223dc45b3adbf30959b7f739e.json create mode 100644 rust/cloud-storage/.sqlx/query-61246005cb69889a67ac46d2032f4fe9c1da7b19594f1b7dc59f2ed0a613dec1.json create mode 100644 rust/cloud-storage/.sqlx/query-614ef7fa61ce3e4521e8923ebe706ae249491210d011843f13d67214f65565c3.json create mode 100644 rust/cloud-storage/.sqlx/query-6177b5abe20800c5fbfb07f78f44f933169f5ee39129b4bd6fa372311cdc15bb.json create mode 100644 rust/cloud-storage/.sqlx/query-61d663d08e05ea919df584b273c67e2d99c3981222a87e823892706e4b9354ac.json create mode 100644 rust/cloud-storage/.sqlx/query-61e82a1be0d1352b8a1147bbff2dc3bd8e945b75380f112bb1118491b3d03f96.json create mode 100644 rust/cloud-storage/.sqlx/query-6206a64301c4a62de624c6cb0db3c1053c050c7529496a73e3cf74d728f5b6ff.json create mode 100644 rust/cloud-storage/.sqlx/query-621186dcec072b603a5f3d7b9e987a1638589d539c60d9dc5c2ab0865ff062d6.json create mode 100644 rust/cloud-storage/.sqlx/query-625ee33d48768e369ee1fe3abe27811ad04313b1aa31f4b51abe5fd3bf569674.json create mode 100644 rust/cloud-storage/.sqlx/query-62e6fee27bdd5c6fb4d7d7037977655784e36ba1b3285b607ff59d9d88829f7a.json create mode 100644 rust/cloud-storage/.sqlx/query-6343ce39e05b97056a1e0f7d24f929f7aac2269af2ec0830f98558045826576f.json create mode 100644 rust/cloud-storage/.sqlx/query-63492b018803ce26db5891964a0f52f37d2f54bd8243265c6561f4423af8617c.json create mode 100644 rust/cloud-storage/.sqlx/query-638409c05db350cedd85b28991817b43793526453437ac01d9d20df52ff87ced.json create mode 100644 rust/cloud-storage/.sqlx/query-63a478f0ae0ec6d9e9cb4c3de55a880b859bc61f745087e067f6b05e6878cc04.json create mode 100644 rust/cloud-storage/.sqlx/query-63a5819e9b22bf76402a3afcdfb6bc6cd3a96d84e15909c85c8e6ec4a8b69e42.json create mode 100644 rust/cloud-storage/.sqlx/query-63b8a0bc87e00d95ca046f0602a14ef73e9c8ebffb19a40ed7e059004d9bdb9a.json create mode 100644 rust/cloud-storage/.sqlx/query-63ca13cc79c27b5267ebbf53491b657ca7671e1ab9d1a4691372693a9f9a4ff8.json create mode 100644 rust/cloud-storage/.sqlx/query-63eecd3605682482786210e65ac14cd04b67b741bac7bac67471bcfe21205d80.json create mode 100644 rust/cloud-storage/.sqlx/query-6405181c054f5b865e4dafb1a665d33e0f3cdd3a3bab22f0fd1eb5e71c46a935.json create mode 100644 rust/cloud-storage/.sqlx/query-64335bf8a0c673f907b40511dc568f1cd36c04d98b98016eaed27a98622c05c4.json create mode 100644 rust/cloud-storage/.sqlx/query-643b149e8a3c616d39850f156f37cdc1a007500afdc7c8e232a59a8b60824962.json create mode 100644 rust/cloud-storage/.sqlx/query-64407ed474bb1ea2930c431fad30657cfa6d5e400247cbf304a3d28cde13c39d.json create mode 100644 rust/cloud-storage/.sqlx/query-6450fb466802ad93f651d24054fd250abab1fda9e01dfd44d7e02e53f107816f.json create mode 100644 rust/cloud-storage/.sqlx/query-64d3a59468f973251be473a78180d6178a8fbdfe21983501c6baf4ce30cbe5d2.json create mode 100644 rust/cloud-storage/.sqlx/query-650ab172f8fa2dd93e941fc49ce22a86ce4333805799488d1c37df47d928ddc2.json create mode 100644 rust/cloud-storage/.sqlx/query-65312be3e9b6d4bb6debf39d7fe4f0abbb105b8fb03e44c12f7241fc52b022d4.json create mode 100644 rust/cloud-storage/.sqlx/query-654e58c390f6a8935cd310d596202b9b2036019140bb0da9d2f033cdba2289f3.json create mode 100644 rust/cloud-storage/.sqlx/query-65818d5e257f9e76534f4ac3414f98f24d1991cacd53b806e81746c16144cc83.json create mode 100644 rust/cloud-storage/.sqlx/query-65af936c2ba7200bb57024fb52cd27fbb4ac3a6b655e5dc2c11ea4c802587214.json create mode 100644 rust/cloud-storage/.sqlx/query-65d1dc0e96a4a41d52387f43fe08cea15b4124517eeed1d24ab006dd33e409e1.json create mode 100644 rust/cloud-storage/.sqlx/query-65d9a861790a256c2ce832e94358efde2c37d0ddcb6fa557b800cb442f7ba10e.json create mode 100644 rust/cloud-storage/.sqlx/query-65fbbdc4a8b2ac4be0283f4297875cb62de647cebc07d42b93e58f35fb34e7bd.json create mode 100644 rust/cloud-storage/.sqlx/query-660327b68f707d334f921f00cca0ab2977e09a30aa82b70b78e51c4a0877f229.json create mode 100644 rust/cloud-storage/.sqlx/query-66106766fa34cf3660615011a75f7640171d9adbb9f95962db83d979d02cc2d5.json create mode 100644 rust/cloud-storage/.sqlx/query-663a12ade5ccf4613703c0ad368772673560741961c20f5c401b59b5c5f6027d.json create mode 100644 rust/cloud-storage/.sqlx/query-6656045ae486ab93f763edc9734b18f0867a279705c7f5a91775754f3cfbe83c.json create mode 100644 rust/cloud-storage/.sqlx/query-666ad2a732546aa9a48262eeaeba037263a6ef8f1daf5eb8ee95ee50ad97f3c0.json create mode 100644 rust/cloud-storage/.sqlx/query-66db94821f8946fd3494e1ae5df52425ff06f3bdc9bf008414db8301161d1f4f.json create mode 100644 rust/cloud-storage/.sqlx/query-67255839adc83c0e1dfba11289811d0e6c269464a8506f0ec29db94b7841a038.json create mode 100644 rust/cloud-storage/.sqlx/query-679af359cf0fccd5b687fe58ece3b1052fe8c636b986fb6f59f67fcfd08fce38.json create mode 100644 rust/cloud-storage/.sqlx/query-679d0dd86957b91b759135cf9fc7314630cfd377b004a8c1dfedbf5764137ebd.json create mode 100644 rust/cloud-storage/.sqlx/query-67d6061e983a68f7c75c0272885bb866cacda011d43947e9dd29e0ec60f42d2b.json create mode 100644 rust/cloud-storage/.sqlx/query-68374c56646f19df2212ced86e1ab0010e207e54ef3453edc0df2180a5e402ba.json create mode 100644 rust/cloud-storage/.sqlx/query-68ab26135b27913a38d7670c8c1a304b0d9676ba2fb8cd7ac3e9c9906e5726d7.json create mode 100644 rust/cloud-storage/.sqlx/query-68ad8e75246fed44a1e258483299257bc04def00c6417bee80f7816d1a085578.json create mode 100644 rust/cloud-storage/.sqlx/query-691f6d6cfbd8bd9e7bd3e141231efe90a96a9ba79d142abbcd4846b3400dfa57.json create mode 100644 rust/cloud-storage/.sqlx/query-6925ae890683c9b94bc1f89f1d8fbe0b72aafdd053092bbbd4b1f918d3e194e2.json create mode 100644 rust/cloud-storage/.sqlx/query-69de5e91294da24e3c0c22ff7cbb156ec4433cb228a034aed09e059ef005e92e.json create mode 100644 rust/cloud-storage/.sqlx/query-6a9de1564f16007df9f5758baad9f9d5c22ca624f08f29bed7fe9e265288eba9.json create mode 100644 rust/cloud-storage/.sqlx/query-6aa68cd66ced924e43b012c317e1efe33721073350ae49882e066ac544bbb995.json create mode 100644 rust/cloud-storage/.sqlx/query-6ac0f229f06980ddbc62f5f5056b7996d92d842e88d386cb0b65fb11468cdc57.json create mode 100644 rust/cloud-storage/.sqlx/query-6b5a41c0c33c20537ef484ad312d80da7dfa7251e2333f8981e2a76f40e623c2.json create mode 100644 rust/cloud-storage/.sqlx/query-6b5d1c6cd2318d630632681a46fc22d2c1075924eb4c5089bd81b1f3b72e0455.json create mode 100644 rust/cloud-storage/.sqlx/query-6b7094e2eaf150972507f937e120984ee4911e974d0bcc78248c022d44fa20f1.json create mode 100644 rust/cloud-storage/.sqlx/query-6b9cf167af68aad294c96f81d6bc995ead4fd6f968ef17176a770ffa46b44f64.json create mode 100644 rust/cloud-storage/.sqlx/query-6bb0523c1a1fec5d2d8600d1d18e7156eebd31e6d39dd4b9f6bbb397bd8a5f56.json create mode 100644 rust/cloud-storage/.sqlx/query-6c022c7b1e5e5faf6f388528436453738aa66c36c46313ca18c7570b406553f6.json create mode 100644 rust/cloud-storage/.sqlx/query-6c7eb689e2b36b5f9d73ebb66746c36ad70078feb62d295e33506f317fe07bb1.json create mode 100644 rust/cloud-storage/.sqlx/query-6c8ac695bf54550d865d143ee7a01a65dc6bad54ef3c3462f7bf5727f9ab3a42.json create mode 100644 rust/cloud-storage/.sqlx/query-6ca4be786e151f81e8e7d6b13ada596369e6a42d1371b871c7739e2dc0ff0b11.json create mode 100644 rust/cloud-storage/.sqlx/query-6cde7e3ff4993fc1a8ed1ae8b9d0cb0d1dde7ec2707d52d5d2211d5569d0a949.json create mode 100644 rust/cloud-storage/.sqlx/query-6ce3b9755eb7d0e6eff85dfb08d9ca5ab3dffaa6794fe78612b94389ee90e3b4.json create mode 100644 rust/cloud-storage/.sqlx/query-6ce4faf9e5f20226d7e2fad64816fe432ac1128af2df592077c848e75009509d.json create mode 100644 rust/cloud-storage/.sqlx/query-6d419ad1a1c53be5ee3edf5667c55489e99232e1dbd25cbb3f31746b4b9614ab.json create mode 100644 rust/cloud-storage/.sqlx/query-6dd441191ae20b764a7b3e66633b9f9e666235381e20631e0ed08d095a29507e.json create mode 100644 rust/cloud-storage/.sqlx/query-6dde3a5ced431932d021e43180e45071efd36c3088dab4feada6254bc1aa41f2.json create mode 100644 rust/cloud-storage/.sqlx/query-6ddfc76d4a95ab81c18c930d8c08c51813d41f72f734271c538bd3e5377e2a4c.json create mode 100644 rust/cloud-storage/.sqlx/query-6e755ab9205277781336779cc7c41346b3432771aa29162272624e4bed3e54e5.json create mode 100644 rust/cloud-storage/.sqlx/query-6e98cffdfa6200686281b3c2c540f07f517dca38e8a70bad08b4b655cb1cd550.json create mode 100644 rust/cloud-storage/.sqlx/query-6ea5fe0c08693b233361460d1a1b46168b4bf9848d252242a06569301144a4f6.json create mode 100644 rust/cloud-storage/.sqlx/query-6f84ce5949c02518f69930a6a30b78c285f0440e2c5157d1ef2ee614cc2105f3.json create mode 100644 rust/cloud-storage/.sqlx/query-6f9c55c52025db2dbe4b76be30d2ca5c95970ef6ad421ec0f5fbe89bea212ff5.json create mode 100644 rust/cloud-storage/.sqlx/query-6ff2b4ae4df25f6fe125338e274f4149fe8829da208e8689ccd7e2154e8d7136.json create mode 100644 rust/cloud-storage/.sqlx/query-704f8353c3a52412d8cbab60b9b32edf0d811d09c54b66522e38366cdefd98a6.json create mode 100644 rust/cloud-storage/.sqlx/query-706da2cb5edbf06f5304e87bed3866c7a6ba7f2a405b174a238623f5e496886c.json create mode 100644 rust/cloud-storage/.sqlx/query-7078d46dbcbe1c4201bcb4f63d98400d28bde0e2c3af5211a83a01165f751029.json create mode 100644 rust/cloud-storage/.sqlx/query-70f12c0591fd0f66402ffc3720a5f5f7c6116cd761471bd5e03f528bf32effa5.json create mode 100644 rust/cloud-storage/.sqlx/query-714f0e8d34476dcc43f7ee64ea1a429f9420fe1403f56b6c472640efd43451ce.json create mode 100644 rust/cloud-storage/.sqlx/query-71b68b23ef028192231dd2129f4f8671f0af53a90629efe34f6f4e13ba227e91.json create mode 100644 rust/cloud-storage/.sqlx/query-71b975abc8c63ea8116cd8944e99d46e5747660807a30564921bc371ddd1338d.json create mode 100644 rust/cloud-storage/.sqlx/query-71f0916419e122c5dba653bdc23114987bb800ba14658efaac7cafd0c16672c8.json create mode 100644 rust/cloud-storage/.sqlx/query-720246c9399231f60479aa8c51bee2054d9f2cf9789f913e0f9cd65b9a93de79.json create mode 100644 rust/cloud-storage/.sqlx/query-7245eb3c102f3a7d4ef12b37137ff6f2ff306ed1c8b69388a0f7fbdff9d9bc74.json create mode 100644 rust/cloud-storage/.sqlx/query-725db444624bc6b4df387c7f45d750328437c7732e147e15818a269bb63be183.json create mode 100644 rust/cloud-storage/.sqlx/query-72c4ec37d0b5c963e6061e040ab7184e2e6623e487afc52358f77f57d236a255.json create mode 100644 rust/cloud-storage/.sqlx/query-732141210551d42218ce027266c6dfa3dd1f0ddb2c37493ed1235fe488073d89.json create mode 100644 rust/cloud-storage/.sqlx/query-7335b4f26cdbd5ad240545c4231cc1d34d10eda3212c0dcbd92db0ed61e86ec4.json create mode 100644 rust/cloud-storage/.sqlx/query-733e693b7231777ab430290d378ba45d608cf5aa1d39c692c93fe06a5593f312.json create mode 100644 rust/cloud-storage/.sqlx/query-7346e8f6a04f0e2d0b0c3b711afc10673c7756fda2cce9fe8619d68d92219a88.json create mode 100644 rust/cloud-storage/.sqlx/query-7385a803bf786406cafdce24628f9cca114fa5fe46b7bb0de469135f54dcd710.json create mode 100644 rust/cloud-storage/.sqlx/query-73c67fbf678e1479d528adcc5bea7da3261d0a04e24cc16f96ec9f2dea3b2e98.json create mode 100644 rust/cloud-storage/.sqlx/query-73f91a13989edcfbeec5d67e465506a77077406116f58821f9c1b38b855fb995.json create mode 100644 rust/cloud-storage/.sqlx/query-74132c6b056f693ac364bd5d70a40d81ccd384ffc21881d7c162895cb7d11647.json create mode 100644 rust/cloud-storage/.sqlx/query-745780ca3e0e26284050ac92cd3c90f9a796ec770c53cbee32660ed867c138a4.json create mode 100644 rust/cloud-storage/.sqlx/query-74d33764e454fb9ab4f2775974462d6fdb092bffc720d929de5e7b50ecef5139.json create mode 100644 rust/cloud-storage/.sqlx/query-74e411c5bdc9a4ee3f96bf4b09fd3506f32146eb21d6714d60136850e9d849bf.json create mode 100644 rust/cloud-storage/.sqlx/query-751f836dc8f78c330387456dd68a8803972c7b3e2b6a2b95c27f15068bed2ca5.json create mode 100644 rust/cloud-storage/.sqlx/query-75843bf211e0811b398d636fe6c8b05005afb77be95bc434a924e53c17cd6033.json create mode 100644 rust/cloud-storage/.sqlx/query-758f208ea073a48e9be9919a0dce43648c19b5a092049b7cb0a6382e931371a1.json create mode 100644 rust/cloud-storage/.sqlx/query-75f7c645bd7640d085b759c4246f683ccf76c634d71337d35d1a8b7004f31c35.json create mode 100644 rust/cloud-storage/.sqlx/query-76096541f7696b2035acdb51754b4f783e345db19b32a815bbf68652121da947.json create mode 100644 rust/cloud-storage/.sqlx/query-7617f808df94ffe77c8195a911ee6b230a21fe9935e099d1310d244248ca253a.json create mode 100644 rust/cloud-storage/.sqlx/query-765650cab2b1a1d1abe6ca406438bf48968cebebc7316b87b192d649e096cd67.json create mode 100644 rust/cloud-storage/.sqlx/query-7671b43028d90ea50536fbcd10ee0c1625c2e66de29cdf080f66832e62e07e76.json create mode 100644 rust/cloud-storage/.sqlx/query-76caf706a1f0846ad3a7075878e941a9293a5eeeb1de3900c3c39386d5dc57c0.json create mode 100644 rust/cloud-storage/.sqlx/query-76e487efe2d8f383ac8e7688892624be4d81662c6f82f6aa16ba2e752dcabd94.json create mode 100644 rust/cloud-storage/.sqlx/query-76ebe39d39b36dc8c0d0f4d7741856a320bd22a3962cf1ccec2c930a56ed6a26.json create mode 100644 rust/cloud-storage/.sqlx/query-76f6793eaead8c4f3a2aa4b02ad573beda79b93bfd874acc1b2059cbe041d8a3.json create mode 100644 rust/cloud-storage/.sqlx/query-7704391a443f1375ebd231197c4c21c7843eea381e396a3c688b390ced89620a.json create mode 100644 rust/cloud-storage/.sqlx/query-770f2133b4f487b783e3d34bce0ebde1405e003a2d84d25542e8a11c7895be18.json create mode 100644 rust/cloud-storage/.sqlx/query-7725b1095e9fdc3e8879840bf3480aae302752bce224b1e69dcb3f2a9c1cef5b.json create mode 100644 rust/cloud-storage/.sqlx/query-775a3c1e4a6365516cc07a60cdfe1913f1fa8606bdb384b8e697cb5c723cf40b.json create mode 100644 rust/cloud-storage/.sqlx/query-77a3b4ac298457a9c06b145d60a00127619bcfe56c969e69c03c98e7b2d975f9.json create mode 100644 rust/cloud-storage/.sqlx/query-77b9642e3ce72202c80aacda76790b7a1e1eee80d0b7388c2ad68e8ce5a996c7.json create mode 100644 rust/cloud-storage/.sqlx/query-77fae7a910ecfe9c5eeaf4c37a334398757d8e7959cd237df7e4947fb75aa56f.json create mode 100644 rust/cloud-storage/.sqlx/query-77ff9385b1d74c036dde9f03404de53c3002b45bbe4e800fd2edf3c09f7625cc.json create mode 100644 rust/cloud-storage/.sqlx/query-783fb2d2833135d5bf8aa7eb5983b773d4b7c9b508388987155815d8c7e1db3b.json create mode 100644 rust/cloud-storage/.sqlx/query-784bba91ffa42d509389120cd4d680c75ad890e4fdf4b9c0b9d88ff07abc23a4.json create mode 100644 rust/cloud-storage/.sqlx/query-78d6d53824fefc526411d2a0ff9d70f665ebe35943b7246ff5e6e3f801183cef.json create mode 100644 rust/cloud-storage/.sqlx/query-78f1cf9da464937604c1a2d5115c014cab9de72bd88605ff47a316baa2c7acc2.json create mode 100644 rust/cloud-storage/.sqlx/query-799422134794f3c4b9c5867b136262c2f639f313f14fd56da967a74d91aa1c88.json create mode 100644 rust/cloud-storage/.sqlx/query-79ac6b0966afc0c5472e3d5589e940bf0d6d2c4280e69b09b4f7c8839b5ad658.json create mode 100644 rust/cloud-storage/.sqlx/query-79bc5e3d91f3713ddb29cf42590eca0703771ea550311dfe651cc4cc063d34db.json create mode 100644 rust/cloud-storage/.sqlx/query-79c6974496c155f372a458d21240a09730630660ae75e8f6e5cfd8f5ba0ceb4e.json create mode 100644 rust/cloud-storage/.sqlx/query-79edd9ca0d31434d5d7a4db78a6b3f8eb316ff51e1099e40611ba77f5c048828.json create mode 100644 rust/cloud-storage/.sqlx/query-7a04573d80958eb5b841e520136db80173119aacbab82f50a4a1ae468aaada65.json create mode 100644 rust/cloud-storage/.sqlx/query-7a97bb0e12628cc97e6e2555cf246cf0339ffbcece51c12635989df120793dfb.json create mode 100644 rust/cloud-storage/.sqlx/query-7ae5368ee01e670dcc9804096f3d3e9dcab6dcebcb601bfb1ed190dbda0ff37f.json create mode 100644 rust/cloud-storage/.sqlx/query-7aee0251787584d5ae4c7b01fc06562ccabe8d554bb4013b3970ddd3f10fc364.json create mode 100644 rust/cloud-storage/.sqlx/query-7b34f011e0ff7320e6a43825cace039b37662cf51a607ad905f758c508aa5049.json create mode 100644 rust/cloud-storage/.sqlx/query-7b3d997c28cd0c99fc7b710e47f9bc1ac1a63e950ae4446a7c748ac067b7c8cc.json create mode 100644 rust/cloud-storage/.sqlx/query-7b57355357a891761f608fc4d7ad472b901c087890909de9a068d6bc1ba0eb7a.json create mode 100644 rust/cloud-storage/.sqlx/query-7b747964b75e86cda7393af6cd483d86a7214baaa710e8a527e1dd77ab8274b6.json create mode 100644 rust/cloud-storage/.sqlx/query-7bb408bf30aecce0065dcfcf07da69efaab69905bb6b97d5d57ad591ff8c2006.json create mode 100644 rust/cloud-storage/.sqlx/query-7bdcbf27b9edb2a2efc0e30c83230f6400385b295a50b48776985089d6ae3c84.json create mode 100644 rust/cloud-storage/.sqlx/query-7c0b9d645a85e30577377e4d8c8a8f976e86c6251e12517a2b1e14d525e09198.json create mode 100644 rust/cloud-storage/.sqlx/query-7c4cd009982b182b18927dc5671aad059a55440c2de73c818ef28d6cf08acf80.json create mode 100644 rust/cloud-storage/.sqlx/query-7ccdaab5873129437c98581ac37eb4148255b83e18fad15349d06c54040fd6cc.json create mode 100644 rust/cloud-storage/.sqlx/query-7ce336a58021f98fbb7c87b42ed827d0aee69ec593e923e41d2545b75d1def37.json create mode 100644 rust/cloud-storage/.sqlx/query-7d2487e2e00482505b104e5386377e939dd85a9090b3d89d71bb495b2ba7cca9.json create mode 100644 rust/cloud-storage/.sqlx/query-7d4385b8207bd320c290edc420c68c86028ac0ecb586a78fe55438f5e13b9106.json create mode 100644 rust/cloud-storage/.sqlx/query-7d5fe2bfe9751516c5e9b4315c74138f065c6c9b2a92c0de4d048dc72fdfe369.json create mode 100644 rust/cloud-storage/.sqlx/query-7d904128ec24b17b4f1b25a2084b42476455160ba50f8e599a47acca06484cd7.json create mode 100644 rust/cloud-storage/.sqlx/query-7da22b0b109d1caac6384294fafaef3148e80824e023ddee78473fbae17720de.json create mode 100644 rust/cloud-storage/.sqlx/query-7e076694e17fe7c86e7a948ab72e4a2a56f301223b62413247ac15bd5fef29c5.json create mode 100644 rust/cloud-storage/.sqlx/query-7eaa606441665fa4dca3077c6b3c02e8c4a0d136a40149829b96dff878897108.json create mode 100644 rust/cloud-storage/.sqlx/query-7ee9ba5adfac304c7ac930943538ecca7428b1054d451fb2f8973cf9c11caf45.json create mode 100644 rust/cloud-storage/.sqlx/query-7f5d80a93c34a98c84c86f6dd678139fbab4c5bf559090a45d79384bcef71a43.json create mode 100644 rust/cloud-storage/.sqlx/query-7f8601bd8c738ab2e656f22c009f7c6599dd2dd0de63c92a772d6638bec6ef77.json create mode 100644 rust/cloud-storage/.sqlx/query-7fa9eb6f3b050e679afd93120744ba5f2cfd3a341111c1fc757ae75f50134d7f.json create mode 100644 rust/cloud-storage/.sqlx/query-7fb579182c5ebbf4516b104b3f4b5956f4d84fb449358a83393d0491d712f44f.json create mode 100644 rust/cloud-storage/.sqlx/query-7fc9da48b6c62ab0db6327e300eb80eafcff34b2d5d13621a688883acc3db154.json create mode 100644 rust/cloud-storage/.sqlx/query-8038c7f88cea547f6ed9e7d8d8e3b547ad7f8880f4e695bc037ccc7ca8493f82.json create mode 100644 rust/cloud-storage/.sqlx/query-805150c1a22fe4cee95588606be11c6419a2e25f66201dfefc8a87a586150d26.json create mode 100644 rust/cloud-storage/.sqlx/query-80d20d5b664dbbb320a52bf47f134534f93906716e415c54b6e3b30834973bc7.json create mode 100644 rust/cloud-storage/.sqlx/query-8147aab2de8747d607d38b11d39c62991540fc188b1c70f3c40a8a12f4908071.json create mode 100644 rust/cloud-storage/.sqlx/query-82329af5032380193f6774277bf662f7a68651a2375e36b9923a6bf7fec71426.json create mode 100644 rust/cloud-storage/.sqlx/query-8238816f3d6e5b374b83023a799251d28c15592d8b50959c331bbc2ba45ceaea.json create mode 100644 rust/cloud-storage/.sqlx/query-827b998f442f5f6cb6ff85dc35f01c5782128a4cb9a020e22ab83a24a6c2b4f5.json create mode 100644 rust/cloud-storage/.sqlx/query-827d839ae763a24c7faac855046d760a9d51f927e073bd9b2f07c690882fac03.json create mode 100644 rust/cloud-storage/.sqlx/query-8284a5f2fb0c00c676f11b91457b8338692087d259f3c0dc0975b6b2053a7b45.json create mode 100644 rust/cloud-storage/.sqlx/query-8334abc3fffa33d4b93704f039d5cd78bb02fa8505c3ba8111d1c9e17ffd93d8.json create mode 100644 rust/cloud-storage/.sqlx/query-833f7916c7445825f248eac09769afd4b4971b517b12e578ec2f534038609572.json create mode 100644 rust/cloud-storage/.sqlx/query-8359035e915d0949500ede9f520fb3ea45d1766256ee45b0c5967618301b2ea6.json create mode 100644 rust/cloud-storage/.sqlx/query-836ce70023dde942fb6c49c76901919d486794aef06d9296b91c7f13ad846d1c.json create mode 100644 rust/cloud-storage/.sqlx/query-83c56e766513141232e2552b51f710814de9a258724b40796328784a5239ea5f.json create mode 100644 rust/cloud-storage/.sqlx/query-83dea9ffef9207e919ec708a6570c6f4090dbdbbb9f5f609edbad91becbc1bb4.json create mode 100644 rust/cloud-storage/.sqlx/query-84bcc8595057c11bf854c4ecefc2abb2b0d392b7f098fdedac066a67d4dfd7d9.json create mode 100644 rust/cloud-storage/.sqlx/query-84e1db53f1407e16ed5e2fccf64ecb7a7493b1a1df0b372b460170154a49a509.json create mode 100644 rust/cloud-storage/.sqlx/query-850ac15de719742dcee861fed5d0199ded6efb032bc7e2daaca06013bb130e9b.json create mode 100644 rust/cloud-storage/.sqlx/query-850d9317ed6b8e21fbb7602beaf6b8c05f43739f31587aa63e57dbfd0093ab1d.json create mode 100644 rust/cloud-storage/.sqlx/query-85423841a8e715417d2e6c4c210b096a1aedea8c4bb63029e0024bce1e5029f9.json create mode 100644 rust/cloud-storage/.sqlx/query-8659923b989f123cadb88ede932614c820d21950e32ab2f6092c78dfb5e77aae.json create mode 100644 rust/cloud-storage/.sqlx/query-869087208a0e921c85a4de60ef9037f0121d673203126052c384ccca95d472db.json create mode 100644 rust/cloud-storage/.sqlx/query-869cd93b000ff26b2c872e5822ab4adb80d18fdc595352afa30159ac3eb864bc.json create mode 100644 rust/cloud-storage/.sqlx/query-86c882f1999ad9c5b87e684ae17a1c1307846848b1b1bd40ee02438ada43052f.json create mode 100644 rust/cloud-storage/.sqlx/query-86eee52e30e4168f4a7f319d1dcaa59144a5b3269120df892f161c74b5fe7436.json create mode 100644 rust/cloud-storage/.sqlx/query-8706eea9749b2b5fb7b7c9c155a90b3e0b6f09bc06968eb94e36d0c55c6b0822.json create mode 100644 rust/cloud-storage/.sqlx/query-8717ae7a285b36ee3b82b3688a274b9734ecd81e4e1e1d0f7a1fc3a7d2c2c053.json create mode 100644 rust/cloud-storage/.sqlx/query-8733fe389d5f98dd34fe87d42e680e664655853aab4646cc5e889f48c5511aa1.json create mode 100644 rust/cloud-storage/.sqlx/query-8748bb91363013514f0b55046bc8a1917acb27181343384b86c0a9cc750013bc.json create mode 100644 rust/cloud-storage/.sqlx/query-874a0c4d1f171a6b97f75dd0e0c2df35b86bb10ef4bb518fb4594fe81d282606.json create mode 100644 rust/cloud-storage/.sqlx/query-87e0c17146266f40e2f76a27c0e60bd057a7efe02fe027f9514cc8fbdba2159b.json create mode 100644 rust/cloud-storage/.sqlx/query-87eec4033f46191de7f443e2f1ab2bf5e342b790423e98d6c62ba29a1a434d85.json create mode 100644 rust/cloud-storage/.sqlx/query-888ef7d64ac87598ecb72012cfd89a38a749efb40b4e033f4525fcf03755c2de.json create mode 100644 rust/cloud-storage/.sqlx/query-88cb2c1126909dabe0cc1846ca2733ab98724d4b89d409fa770209d4d7627654.json create mode 100644 rust/cloud-storage/.sqlx/query-88e09c541b42bddb46449241492a7dc2d2ca72f9fc3d55a412460a0d8231555e.json create mode 100644 rust/cloud-storage/.sqlx/query-88eef0eafe13e4e4f3c0f9c0792cb7e8e2f73c4f87ca77a32c64d99ac28a4b12.json create mode 100644 rust/cloud-storage/.sqlx/query-89004da6bcdd66bccd56ed64402d82dc4fb489cccaf5ca647c5a9403fa760ce9.json create mode 100644 rust/cloud-storage/.sqlx/query-893d51b6860bdb3deaf125dcb831a29eb711f46fa9f28cf211136eb4361b87bc.json create mode 100644 rust/cloud-storage/.sqlx/query-8942100b50a073f4f95b37246d355dc8b17c5a105492901ad72da89438ec6601.json create mode 100644 rust/cloud-storage/.sqlx/query-894b2bdfc3046722023572c4b37870258288ab2b3125c4f31dec62d916f0b64a.json create mode 100644 rust/cloud-storage/.sqlx/query-896b6aa18d1cbdf28df4b24758813d0327649d0b807a60928142de0d6a2ce5e8.json create mode 100644 rust/cloud-storage/.sqlx/query-89a884bd52b26e8aaed865bb4f8916be18a81bc149bfb4cc170586f707de7cc3.json create mode 100644 rust/cloud-storage/.sqlx/query-89b618eb18b7ae1ab21e40391daea7da6a544800e931142ac88d413aaed73653.json create mode 100644 rust/cloud-storage/.sqlx/query-89fac636d8ad3699c72ad57a4a5f2bf9211061274491815b8af4c634e62cee06.json create mode 100644 rust/cloud-storage/.sqlx/query-8a09a252705dac4a5d37461d81354c02f0776d151ed57da06713a6a0d7185392.json create mode 100644 rust/cloud-storage/.sqlx/query-8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2.json create mode 100644 rust/cloud-storage/.sqlx/query-8a1debc8a93f83a63f33dfd12a1eb8f707e99f0a207a9b34f27848ab362a7bff.json create mode 100644 rust/cloud-storage/.sqlx/query-8a219d75e22ca3b14ed3bfc1fbf218e2e69f540f69d0ab223170a52ac92af43c.json create mode 100644 rust/cloud-storage/.sqlx/query-8a4688fb6685c28f7fc9f48487b2fe1ce97205a1574fcedd7e87596c63d6dab0.json create mode 100644 rust/cloud-storage/.sqlx/query-8ace9a37af485ba737647968d2f36d64a890e17f75447b5b7bc743347d16a91b.json create mode 100644 rust/cloud-storage/.sqlx/query-8ad8fb713125453e2416a6a4992c01f32d29696d130e0e1f46599273575bcb02.json create mode 100644 rust/cloud-storage/.sqlx/query-8ada8f1fc3affb75cda0d8c749204d8c58ec09f88682ed2e5ec0ea26605cba2b.json create mode 100644 rust/cloud-storage/.sqlx/query-8af0c4dcb1957927aef3afb489b879fc666056bef965cfce73149d446b4c71bd.json create mode 100644 rust/cloud-storage/.sqlx/query-8b7993e0c49a8c1b1fb9449770a500362b483bcea23aec896bfaf9e67fd6dc95.json create mode 100644 rust/cloud-storage/.sqlx/query-8b7c148e88c11c3a2ba484c8ada918bf6497d8ec2339d9173904a7532b2b0052.json create mode 100644 rust/cloud-storage/.sqlx/query-8b7e81c3b4f31c86100de517e1978a1879039b7230aa83df18f583106c97a18f.json create mode 100644 rust/cloud-storage/.sqlx/query-8b8194993cc2ec93b2db6104da98fe3569d973d3d2a3f723c70414c04cc574ef.json create mode 100644 rust/cloud-storage/.sqlx/query-8bca1bc084d24daf8db19d8fc04301467f257fbc1bde2a018fe9efb1e6728cd3.json create mode 100644 rust/cloud-storage/.sqlx/query-8c9bf0696a9b0a0e1cab142290ecf2858a32311a07bca8ea0bb9f54ea507f8e3.json create mode 100644 rust/cloud-storage/.sqlx/query-8cab0f54798d95a0549e022187648a7e8ad714623a8a2fe32c785ddb27937eae.json create mode 100644 rust/cloud-storage/.sqlx/query-8cc1aa2163c9650b121037b241370b154ad229bcf9280c54e5975914d1c6fc78.json create mode 100644 rust/cloud-storage/.sqlx/query-8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911.json create mode 100644 rust/cloud-storage/.sqlx/query-8d25b1711e2c00fe92b1921e1c2ee17e311301f88b1550dbff4eb41b6e12db13.json create mode 100644 rust/cloud-storage/.sqlx/query-8d3fe39f31059bd0a830f027fbb9aa2089b8ab3ea0cf3fbe3b35d6f17be9b355.json create mode 100644 rust/cloud-storage/.sqlx/query-8d5ffbdd5be9b1031c7da47bc2d4bcbee35802a575387ef081a09031b42f7de9.json create mode 100644 rust/cloud-storage/.sqlx/query-8d8e2f6bf38b4b18f2b47c282a351aee78b249f6d66133c572c39a7ca8e11024.json create mode 100644 rust/cloud-storage/.sqlx/query-8da326cb4addb18bca0e08c8728c86a1aa898bcf344fe913db7ee5c47dfde47c.json create mode 100644 rust/cloud-storage/.sqlx/query-8e239c46742a642923b5367a73cfcc0f253c96269afb634301ed6d207c206107.json create mode 100644 rust/cloud-storage/.sqlx/query-8e916c1355943f5a5d48d153bdf82e453c82b6a4c279973b2f7c0c631ffeff12.json create mode 100644 rust/cloud-storage/.sqlx/query-8ea09698a4333b2b2d97f16423008a172b5a030ede2b8528a103397a6dc4a42e.json create mode 100644 rust/cloud-storage/.sqlx/query-8ed522f5a19f1f7d136ed0fc5c4c57f4af547d21eb2f6c78c9e2335f4fcd64c2.json create mode 100644 rust/cloud-storage/.sqlx/query-8f57f79c4318149ab611e764372c035d54880fcc3d80b41bd5d255245e94263e.json create mode 100644 rust/cloud-storage/.sqlx/query-8fc112d6aeef9c2a223351d2b80947769f26aafbebb3a1b0c759f5246fcca507.json create mode 100644 rust/cloud-storage/.sqlx/query-8fdd4afe0b260c02acea8a052a6fe39d6ad21150fc2f1049548c724516b9210b.json create mode 100644 rust/cloud-storage/.sqlx/query-8feeae34466cca17ffaacbf1bbe635362915023e2457fe6bb676c05c5d6f9ee2.json create mode 100644 rust/cloud-storage/.sqlx/query-9021780763850e636cf944f6171ce2253c39d7532a38bcda72c8a6da965310f9.json create mode 100644 rust/cloud-storage/.sqlx/query-90832c95920a9b40329509f4ee611f765a6c10025c1b519f4a5d76ccfd64fb75.json create mode 100644 rust/cloud-storage/.sqlx/query-908627bdd27f344ce26c501bb7431b621173c04bfda9678021360817c3f25103.json create mode 100644 rust/cloud-storage/.sqlx/query-9096710139da4a36b9a11809a30b65ae3b712a0b659b63e366e5f485b8630951.json create mode 100644 rust/cloud-storage/.sqlx/query-90d75cee091fe17362db20b9d855e6c8e8d204599eb1ee4d576b9a913aca0b41.json create mode 100644 rust/cloud-storage/.sqlx/query-90fce55ca239e5642b63e553f9492913cced9a2c8a5eac4f07a4f56e621512ee.json create mode 100644 rust/cloud-storage/.sqlx/query-91368040542b31a69ae76bfc12b127970920fb761ec08d3303bffc94402b984e.json create mode 100644 rust/cloud-storage/.sqlx/query-915c50350c5513c6e1ba12eae31520046ac0e7e882d9c5ec76a3578ae4bc7d50.json create mode 100644 rust/cloud-storage/.sqlx/query-9173d68221d7b73f7a1e3ec0632ab9ae6a9269c950b45897a5e64c14cd00e117.json create mode 100644 rust/cloud-storage/.sqlx/query-91badd3aa8d3cc89c16ae8013b20eb521625862f180e9bc75096de5573436928.json create mode 100644 rust/cloud-storage/.sqlx/query-91bfe5ec5b5f8eadaa5a149987c59081daf7cd5fb66aa4d8299f39c96e402d80.json create mode 100644 rust/cloud-storage/.sqlx/query-91e974129e2c983925d29dabf73c8ae86c6f090cbfd28f22cd952756950a94db.json create mode 100644 rust/cloud-storage/.sqlx/query-922f058d237b9ffe46e13677ce2e6c4f4b39b7ae7b8b4dd248f54714d842a08e.json create mode 100644 rust/cloud-storage/.sqlx/query-92b33fffecd9a49fed7c74fe6994932e4d2123e0721a86c2b2fb691a32b92054.json create mode 100644 rust/cloud-storage/.sqlx/query-92e2916a16d165600f457c778ac3db9ae11c6625c948798e19ca19da4a30f3c1.json create mode 100644 rust/cloud-storage/.sqlx/query-92edc80110af7b96f7f908989461a4abb11652671a95454969369a0484ed9239.json create mode 100644 rust/cloud-storage/.sqlx/query-935031443597f0e3057ef41537c2baa9efd886c9ed75aabbf05e9cc43636d319.json create mode 100644 rust/cloud-storage/.sqlx/query-93df91392a72cc298609b453dc95621e7690af924a1af7bb4748dc704ed8897d.json create mode 100644 rust/cloud-storage/.sqlx/query-93e41cb92c91a9a26ffbff42116d4311ca4e2ed8e7ff939912a65e045a49c939.json create mode 100644 rust/cloud-storage/.sqlx/query-93edad49b012cc8119b969091ba78ee6d16600fb11697445001c661e49bf48f4.json create mode 100644 rust/cloud-storage/.sqlx/query-940e7b0eb134ebfeff080733ed64ee795af7afc2cf14a910b0baf5838c4284e6.json create mode 100644 rust/cloud-storage/.sqlx/query-9460f97a5fe2c0ddb08e81f8ded812694d0f7408053c49c3e58ecca561d67c64.json create mode 100644 rust/cloud-storage/.sqlx/query-94762871e427a2adfd8fcf6f2655d567f40a1b54a6186e0aa064be0f18212c98.json create mode 100644 rust/cloud-storage/.sqlx/query-94a1d6338c8e2da84429da7a79f7dcf0a962feb7832aab9fc4bd50613f742b59.json create mode 100644 rust/cloud-storage/.sqlx/query-94c019227741f6c4fe8411454cb7c0a3a97e5594c29f11fa893238656e161ff1.json create mode 100644 rust/cloud-storage/.sqlx/query-95a8a0117d0bbc25adf4dc08cf0cec40eaa0faddb4490ad14ae9cc6c4d922256.json create mode 100644 rust/cloud-storage/.sqlx/query-95c5d4f79e729713642efcda97838eddd466c0ec2ec9f96ae2be185ef9ff1547.json create mode 100644 rust/cloud-storage/.sqlx/query-95dda7d94d399b451c4ba4a78ed6809895c255a103ca296451cbfe6c99833e8f.json create mode 100644 rust/cloud-storage/.sqlx/query-966aa67009ff8376169045428a87b81c8ff478ddd1d7116a626d9a7d4bdc0297.json create mode 100644 rust/cloud-storage/.sqlx/query-9676374e780121fbb6724ac51d9c742deb835c1e2c5a23390501ef95bc0f12cd.json create mode 100644 rust/cloud-storage/.sqlx/query-96813c302ddd0c88c30ca845c668dcc47089bf02ae5dbf0f15eb0be64395d09f.json create mode 100644 rust/cloud-storage/.sqlx/query-96a2c0a064e56b4fd812c2768403fc086f4518149772d661222d54592df920d3.json create mode 100644 rust/cloud-storage/.sqlx/query-96b75da06aef543dc7d626c98501bd176b609bdab2f96a13e2d035510a72eebb.json create mode 100644 rust/cloud-storage/.sqlx/query-9728f991ee1e5bff78e52700ce2c4d2d8e8113701d39452faa3147bb18974926.json create mode 100644 rust/cloud-storage/.sqlx/query-973904cf0ce82830a1a4db5d5ef93577a02892254df31144b5df44bdc5b58381.json create mode 100644 rust/cloud-storage/.sqlx/query-980f95d4b95f6a981b86bdbdda30b4b5ee7ee34505f206d0a6861cec41ef589a.json create mode 100644 rust/cloud-storage/.sqlx/query-98923878d16c2d5d2594120fe481fdeb1b2ff97c69fe26b5a09c82d393ce4010.json create mode 100644 rust/cloud-storage/.sqlx/query-989e8adb9e267d1400ad5cb3e0e4b3d4a434de5c66f3cbcadedc4c6f20769ade.json create mode 100644 rust/cloud-storage/.sqlx/query-98a5db6c9f4cdfa6f855406ad26a11600e5f84094b73f3ce359c48e60b6921be.json create mode 100644 rust/cloud-storage/.sqlx/query-9921d35717a5c93783e3db8c1fd380459c4400902f4c3c86e3e2650613321a70.json create mode 100644 rust/cloud-storage/.sqlx/query-993f8bd336bc9ba45ab51edac700887af626bf74de28e395ab8a1875bc9fe9ac.json create mode 100644 rust/cloud-storage/.sqlx/query-9947668e4041d1e3297dce4942ca41a916397efdb2620e338a211f97751c0d89.json create mode 100644 rust/cloud-storage/.sqlx/query-994b928d690be53173114c3aa76a66231fc7b960744db3830385a13a45a3ce8f.json create mode 100644 rust/cloud-storage/.sqlx/query-99c26d3fcc7cc1494cd3f8387e4f9fd70cd817602df9ad6d355b26e13b47553a.json create mode 100644 rust/cloud-storage/.sqlx/query-99f5d2da898d5e7f29f1966c51370af1692f03a0df09f0ee78a589158e8f51ee.json create mode 100644 rust/cloud-storage/.sqlx/query-9a050086d79aa5be0e89a23048d2eb45a7f04dcc2fbdceed41497048a2410ce5.json create mode 100644 rust/cloud-storage/.sqlx/query-9a32d4826e372e762f828cb5aed93f60b6731fa2c553f3fda711cf72f1574fae.json create mode 100644 rust/cloud-storage/.sqlx/query-9a4d3cd17bbfd022b2097a3c661cdf23a4a1c1d900d9a0267b1b38a054c49dc3.json create mode 100644 rust/cloud-storage/.sqlx/query-9a85a116815c36f9cbde5a097e39e0547ed654489c726b44faf23524f148ec86.json create mode 100644 rust/cloud-storage/.sqlx/query-9ad1a505be647e76d4282b62012cb223cda097f8b2d35d22f446f873960480c0.json create mode 100644 rust/cloud-storage/.sqlx/query-9afc6f436aedd226ed0d6bf85de64c5ff57853c93ff00f768b49bf79f198590b.json create mode 100644 rust/cloud-storage/.sqlx/query-9b7bc338faac59d4da4d6ccdc478ba67be32356a3b2b62660982ca8932a0d2f7.json create mode 100644 rust/cloud-storage/.sqlx/query-9b83758d2e1a6855b03ceee2f0bebf87a5152702bb5b9ffb2b817ad93c0635ea.json create mode 100644 rust/cloud-storage/.sqlx/query-9bb89d78cff9b84ca91fa891dd3e61c04906fa841a9d21c29127d03797e98186.json create mode 100644 rust/cloud-storage/.sqlx/query-9c4e25c3a319934aa1bbf165f19683f34a3f5684edaa965cbdb1b09e422cab8b.json create mode 100644 rust/cloud-storage/.sqlx/query-9c81b4664d019cc6242259ff81d5abe2ad4c2f28d0f4cea773ef7b4267eb0e81.json create mode 100644 rust/cloud-storage/.sqlx/query-9cbb599d24ea1f22756926601cb3dc157a2a327ce9aea06a1a772c1741abcf9a.json create mode 100644 rust/cloud-storage/.sqlx/query-9cd40fbb1ade51e9e0d49792839d1a363cada017252a6f653c2272608189bcc4.json create mode 100644 rust/cloud-storage/.sqlx/query-9cf47f4d88c29f80e8698b91319d81031064da7fa08afec7364df40546b1ac0c.json create mode 100644 rust/cloud-storage/.sqlx/query-9d8ebf3f5901badeacb46837f0a2222f49274e9e72dbd25cf9c197b4f97654a5.json create mode 100644 rust/cloud-storage/.sqlx/query-9e0a5d81fc7d5897a95ede42af6d3495c14fbf4095333a1f5632f836b365065f.json create mode 100644 rust/cloud-storage/.sqlx/query-9e45ba072fbc5266f7edba0fecb99d19192e10139d6ea089be4a3a4a7923361c.json create mode 100644 rust/cloud-storage/.sqlx/query-9e8c46a871c582ee7016d87a3b0e3494eae0e23c6dbbbccfb139da68193690c7.json create mode 100644 rust/cloud-storage/.sqlx/query-9e998a79214f591775e9d6711c9086235243eae535cc42bb0908210b54b916d8.json create mode 100644 rust/cloud-storage/.sqlx/query-9f595d4ae9aa9111c316efa5d4be2b8e4a6cc69374b90600457a32b14a91ae61.json create mode 100644 rust/cloud-storage/.sqlx/query-9f5c0108230743e209902d457637931a2cbc77192ce513473a4f5e3498b8533c.json create mode 100644 rust/cloud-storage/.sqlx/query-a0046a263c572915a8e14a8ac70479f1ba89549f1930f571bf278fcfe259cfd1.json create mode 100644 rust/cloud-storage/.sqlx/query-a080f5686385b0b8f5b10542781756629b2a2571db10a385a0d3559f64481f59.json create mode 100644 rust/cloud-storage/.sqlx/query-a0ccb1b43344dc0501f538d62f7b3209dfe7e2e60fa1396cfb3efff85e9d8c4d.json create mode 100644 rust/cloud-storage/.sqlx/query-a0e0e46ab257c9dd4285a6494f7b9fcc32c2a19dd97678335c04dab4739024d4.json create mode 100644 rust/cloud-storage/.sqlx/query-a10bb7f95f88136b0bdf505b0338c8a87045ca5aa3d85cefbba8111c65892870.json create mode 100644 rust/cloud-storage/.sqlx/query-a119f354b9c86006d705ba3190ae786b27205399c3295d82c636d07d7308bcf0.json create mode 100644 rust/cloud-storage/.sqlx/query-a13fae598b8b785a7f516d7d4fdf91510017a27cd442f5693c5777ddc64d1c9b.json create mode 100644 rust/cloud-storage/.sqlx/query-a17f9063c77c648ab667942e9e6402ddd6d9b5adcde3a8b55c19c649ac3d5a18.json create mode 100644 rust/cloud-storage/.sqlx/query-a1936db1ca47241996be534e0e64bb36b63fabbaf3e826459537e089ed3c19a7.json create mode 100644 rust/cloud-storage/.sqlx/query-a1bf47e0cd99428ebbd99069e9ed4fdcdb3aaeb946ea3e5ca94dc58050ca7d97.json create mode 100644 rust/cloud-storage/.sqlx/query-a1f3c98d938438393223aa8bde6c115cd53ef8d352740fbcaff2f3e53a630295.json create mode 100644 rust/cloud-storage/.sqlx/query-a2079ac110ef2d83a92a7c759540c373e29c8ff79ed52417fdeeb4de8fe00782.json create mode 100644 rust/cloud-storage/.sqlx/query-a22651a2cad9617ad15c9fcd80ff929750755818869e48118cc0f91187049afe.json create mode 100644 rust/cloud-storage/.sqlx/query-a277974b231f69f2a2912fb1634affdf67114b90d5d398d16dec2f801aabdda8.json create mode 100644 rust/cloud-storage/.sqlx/query-a27ad96e62764cad74a23addabe461a1b8aa81a865bf1af5434d5469efa44f76.json create mode 100644 rust/cloud-storage/.sqlx/query-a299a66e2c0a88c6d2d9a131611789a544d3b7e5710bbc19254fdff129624b87.json create mode 100644 rust/cloud-storage/.sqlx/query-a2af7d24d1993fbdc8fc31149a376803fa1c00827bcb8f51c7d000c0a9adfa94.json create mode 100644 rust/cloud-storage/.sqlx/query-a306e4c1385aab43d5fa2510f0fbdb20d4e37ebf037dceeb2673f6a3d64738de.json create mode 100644 rust/cloud-storage/.sqlx/query-a321d44c7093eba7f5af8adf30827efead8bb987ad26e89f2e12f875ff38e0be.json create mode 100644 rust/cloud-storage/.sqlx/query-a3637a7a136eefc6bf21f28a9ae693dd3ab1eb8b4f310528a43e630e233446cb.json create mode 100644 rust/cloud-storage/.sqlx/query-a386157d6a94f85f1e1c2c0c0cfe39345a04dee3de88fd4cbc8fc6ab8f34da60.json create mode 100644 rust/cloud-storage/.sqlx/query-a3a570d4857e91eb55d5e4299f9a856e70e71c0a070f0a1a005ba5e2aa7eabac.json create mode 100644 rust/cloud-storage/.sqlx/query-a4daed99335672e203439ce74d8697936821511404ffb49c7ca4b8134e9c9147.json create mode 100644 rust/cloud-storage/.sqlx/query-a4e8e05298b394cc80ac1f866854a945a8d67e1d18153d4f0128108ce65212f4.json create mode 100644 rust/cloud-storage/.sqlx/query-a547a92f2099dbeb0b1fb2fc9dba7bf0f464619f047b5d967914f7b476722db5.json create mode 100644 rust/cloud-storage/.sqlx/query-a577fec197448ea02b8378cc0ddca6fc4fcfc26228c3d3f8f055702598616a64.json create mode 100644 rust/cloud-storage/.sqlx/query-a5801ca350ee73d531d912e4dcc1935265af572afbbf60702a4521e4c19b8468.json create mode 100644 rust/cloud-storage/.sqlx/query-a5cc2431d45e9bbd7e6c60a2bfb7a6533d6f7c8d051ca997a7e0db53314d5f80.json create mode 100644 rust/cloud-storage/.sqlx/query-a5ea0cf5ff502359e9ebc01d0f8758d171081c5aa35c785b178150aa9d8d3635.json create mode 100644 rust/cloud-storage/.sqlx/query-a63428b959703fdc38fa28667db9b2268827d7ce92ca55d21b38ba2a7a8b3c1c.json create mode 100644 rust/cloud-storage/.sqlx/query-a669145c6d8f00b9cdf41d2037c0bcfad130247e99f31c127c6dabcbe1b3790d.json create mode 100644 rust/cloud-storage/.sqlx/query-a68a6810f0b80a1ade36fc644c6f44fb02848a8f4200a900679efb26e1d0cb70.json create mode 100644 rust/cloud-storage/.sqlx/query-a6b5613f666d5c6d73c4f8a817e02554c21e5b44768f5761c1d19d019f7208c4.json create mode 100644 rust/cloud-storage/.sqlx/query-a6f46322f22f9e47daefa28ad65647888af5486e729bb5475dfabd21b01b4bf6.json create mode 100644 rust/cloud-storage/.sqlx/query-a72817a08ba25d9f09627854a16a4016db81bdbebd7ea0add856bc3eca7a7ba6.json create mode 100644 rust/cloud-storage/.sqlx/query-a7355d80810653b6b813ebd3c132579b6ba0f419f72b68d08cc2183e9d0d6341.json create mode 100644 rust/cloud-storage/.sqlx/query-a7546aa6e8594ac3e66cd708f033fab241312305c74f1bcdb32b96e924030b1d.json create mode 100644 rust/cloud-storage/.sqlx/query-a7f90096050e550d15ef11bbc56a3cd79e1a80bc3f46cd063d0ff94d9b76f252.json create mode 100644 rust/cloud-storage/.sqlx/query-a81b373188c98bdfa52a878a659909f73796aef0302323f7930fe4d17ccfe6af.json create mode 100644 rust/cloud-storage/.sqlx/query-a96916366e8c54b1ba978b2fa7cc54b2e1681ebbcbd9bb030768983d6ce966b6.json create mode 100644 rust/cloud-storage/.sqlx/query-a97451b5645b8265597f438d8fc78e9b0e2f2228c5d6a7453122eb59fa90f64a.json create mode 100644 rust/cloud-storage/.sqlx/query-a991a3a468c02f27709b7a45f27518c828b88bc4ca913019d9d4802395e7a22a.json create mode 100644 rust/cloud-storage/.sqlx/query-a9adc96aff5f25177495a9258a185d8cf8a255b6805fecec787953461a09d78b.json create mode 100644 rust/cloud-storage/.sqlx/query-a9fee4b6ef042c94f5dfc2ba668423e760ba3632bfae3aef9da1f146b7a9c638.json create mode 100644 rust/cloud-storage/.sqlx/query-aa7c645fdd129abe705595f4b8c06bb48c977202f069d12143bece9f24bdb6ab.json create mode 100644 rust/cloud-storage/.sqlx/query-aa9ca547f8128f5f2a4418b6ccf252d9726565fbef858cf484ca86ab0625c6ec.json create mode 100644 rust/cloud-storage/.sqlx/query-aab8538835af1c079c4864c1a576b3a51049dd104e2306c4596f1ff99ec329c3.json create mode 100644 rust/cloud-storage/.sqlx/query-aac44fedc7a698d155114e4b84cf3cf60de7edc46f5bd7d943873cf2809ade77.json create mode 100644 rust/cloud-storage/.sqlx/query-aacb409624ba2c9ec8838ba1653bde46c44d19face725f848d1d53c364a73909.json create mode 100644 rust/cloud-storage/.sqlx/query-aae2ef0d294ae7736898e9b32be12cfabedfb8164af00cdb4a52c9d1f98229af.json create mode 100644 rust/cloud-storage/.sqlx/query-ab1cdc9cf83712efd50e720fd9835fdfe36277075384044c8f7f3e8ce810c236.json create mode 100644 rust/cloud-storage/.sqlx/query-ab394ab1dcafaff117ba75dd454c9ef5dc894f2a86012e54c8bd5e085458a89d.json create mode 100644 rust/cloud-storage/.sqlx/query-ab3aa320a07e9885f1de7995533b75dfc995ac18e421ca940dd0828aa32b47a6.json create mode 100644 rust/cloud-storage/.sqlx/query-ab5316751a9b8b8f14e8319811749dfa6bc98f42ecb46ee9d3c20ca2daf43e44.json create mode 100644 rust/cloud-storage/.sqlx/query-ab7417eb79789bfff9a6084c7881191a9b0ee849745041e1fecc7e4ba9b4fc5d.json create mode 100644 rust/cloud-storage/.sqlx/query-abd0a7a3bc1e35bfd6b0acd25aed7149fa0e81809511939a420fe17f93ae7d6e.json create mode 100644 rust/cloud-storage/.sqlx/query-ac1221f53b3482f947f70affe1fa95f778b5cc841f3a08c8d406752da8d25be3.json create mode 100644 rust/cloud-storage/.sqlx/query-ac1973d97ddd4dcb5cacb138b9321138cea6141d03301b03f7c7e0d509663dc4.json create mode 100644 rust/cloud-storage/.sqlx/query-ac52ec341d9ff2b334df144dfcba1195b845609b557d278290359a0e6170c10d.json create mode 100644 rust/cloud-storage/.sqlx/query-ac72213b35da176efad40d8acc0b77bede612a071cd8b18bb8d68965c1414204.json create mode 100644 rust/cloud-storage/.sqlx/query-acb38333fa7958869cc39acafee4f7d08731aa1543d9d2d6f6d105be9e7a0530.json create mode 100644 rust/cloud-storage/.sqlx/query-acd29bfac7388548a2d09bd8a9a12b4c9bb92fe9450fa0950e91bcebfcb1adeb.json create mode 100644 rust/cloud-storage/.sqlx/query-ad0e23af0a67a769bf40b3ab388c21c001e01d1691861d8b9df950b03bdb2f4b.json create mode 100644 rust/cloud-storage/.sqlx/query-ade8f82fdb3feffe37acb0e67a7e39aac513e2b7ae7c7aabaa9ac59f270dbffc.json create mode 100644 rust/cloud-storage/.sqlx/query-ae1b88cef7fd6cc6ef1c302a0f3a04d156d39f39abea24050e63caf56267898a.json create mode 100644 rust/cloud-storage/.sqlx/query-ae5a21740f17c450f53a07e833b6ab8dc226dd06869786792add6fe5535da1e7.json create mode 100644 rust/cloud-storage/.sqlx/query-ae7424712141289a46985ef940f940ba795df321fe73b299eac464a0ef6a3081.json create mode 100644 rust/cloud-storage/.sqlx/query-aec91142f83fc2f19972a0ae096e3b21c571b2c5a97baa04d68a2f6da500bd79.json create mode 100644 rust/cloud-storage/.sqlx/query-af05f3b0d0796a3cb2eed49cd562776fd1abde1cea7f0f5057fede45c2312223.json create mode 100644 rust/cloud-storage/.sqlx/query-af5a4cf73fd08698bfe9a04e6bb4441ac2b9c20b0697d52467e0a12c17f8e473.json create mode 100644 rust/cloud-storage/.sqlx/query-af5bcc105de6d97d360513479747e8f32d4045c3e2baa01c7100ba834dcf80e4.json create mode 100644 rust/cloud-storage/.sqlx/query-aff64439216b670564911e5ce55437d1fa4498176f5e8deebcfc86f87cb20f54.json create mode 100644 rust/cloud-storage/.sqlx/query-afff07a12eda767f4facb034315ce7e3d89db508f08afe5c547e981a875e9801.json create mode 100644 rust/cloud-storage/.sqlx/query-b00d96876f6101270b5de19e4cfa219f542dd6c24ecf785b30ef8749c0443373.json create mode 100644 rust/cloud-storage/.sqlx/query-b08f21bc79644b7ae980ef17ea38f60be7749e48143ad40a164b236e977157f3.json create mode 100644 rust/cloud-storage/.sqlx/query-b0c4750b13bbd3de768ac09f971094ac7f53c161f7054083964f472fa01dd83d.json create mode 100644 rust/cloud-storage/.sqlx/query-b0d3b6f03c4160e443a3fe91c870187c3178efdf6853a22ee319c0163b1f6013.json create mode 100644 rust/cloud-storage/.sqlx/query-b0e8935f157a7ae307fb050b39d0dde4e9e2e39f7cb20c716fbbcc1ffe320cd1.json create mode 100644 rust/cloud-storage/.sqlx/query-b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc.json create mode 100644 rust/cloud-storage/.sqlx/query-b10ef9924835c2dce77ce8b77c877a78ca0d7a1e7efff35864c58ba34028f2e6.json create mode 100644 rust/cloud-storage/.sqlx/query-b14f90ed1d2e7f0121f95af1b0d364f1a7feee942c2a3785bf39c6f110aa70ba.json create mode 100644 rust/cloud-storage/.sqlx/query-b1512adda253fc7e653344f6a679a4c78af368aa2134b235f8e1f046daa197bc.json create mode 100644 rust/cloud-storage/.sqlx/query-b15f651be8f722d57f1c85ca4d9a14cae3fdde155d4f8c94418186d5a37f0686.json create mode 100644 rust/cloud-storage/.sqlx/query-b1766b649fb0b0307cb41db8adbfd996ffa1262e0a6ba8a8e1c58414759a1fec.json create mode 100644 rust/cloud-storage/.sqlx/query-b1c4d610f2fe772e88b8e78bc872f01c886031d866616effed3c6a61a99d2413.json create mode 100644 rust/cloud-storage/.sqlx/query-b288dfc8e7703bdfb49bc1066c290743da8653dc50e3d388697e429308afeafa.json create mode 100644 rust/cloud-storage/.sqlx/query-b29f648b6a5be28708366ba264bab55518d34313519a62edf4174269606b1b1c.json create mode 100644 rust/cloud-storage/.sqlx/query-b2a631a3c9b08b85813839c25a2c7a530010c3a00b2f2d67403bc036af6c8fb5.json create mode 100644 rust/cloud-storage/.sqlx/query-b2dc0d50f7cd7e961844c553feed81200e213e4f28cc7d2940a93aabe83877b0.json create mode 100644 rust/cloud-storage/.sqlx/query-b32146bc8bdbfa29785dca351729944da36cdeb0c7d3d9e778dd91ff8a470b51.json create mode 100644 rust/cloud-storage/.sqlx/query-b370ac2ac7ace6911ff13454d24ff42b906dcc72b2fb4bcd783b8cb7c06ceab4.json create mode 100644 rust/cloud-storage/.sqlx/query-b3bb26f4b163d8bea13a5a3fb0ea3d89543ceaefae74f8962e4504196d0b76c2.json create mode 100644 rust/cloud-storage/.sqlx/query-b3c25afc80ddf84ba0a49578a6b1d5e70039c2d64a25a54ef42b25889e75b653.json create mode 100644 rust/cloud-storage/.sqlx/query-b3d2194b79197b2d5e02ee8b7c243b70c598adf488d805325475770ae3b7c51e.json create mode 100644 rust/cloud-storage/.sqlx/query-b3d476868aa3b19eb8407112f0cabdce0882403268c35f6a4acf62c1212183fb.json create mode 100644 rust/cloud-storage/.sqlx/query-b3f9f3696438bd2ad8754650d87d7bbf32e70d3d173a748a07eacdb4e42841eb.json create mode 100644 rust/cloud-storage/.sqlx/query-b42c868de92630b2d5ee37fc64299df3d949da660e009f35c480ba9fb19c9e07.json create mode 100644 rust/cloud-storage/.sqlx/query-b43285d8bb2b9758fcc84c13979c3a54ffc28abf61e66e354667d26ef3c40739.json create mode 100644 rust/cloud-storage/.sqlx/query-b46b2b51f07ec4fc65cd158b210ce262e9ab44f10825969072c01a8fe3022a23.json create mode 100644 rust/cloud-storage/.sqlx/query-b493e6fd1c1d8c34366f756fed903ef53cc87fab0b12cff50d2e3474ff997bd6.json create mode 100644 rust/cloud-storage/.sqlx/query-b4d3994adddd1a4b1c769cf01690bedbf26640fdfad218b4dca813bdcee08a5a.json create mode 100644 rust/cloud-storage/.sqlx/query-b4dee63c4a43a3451a781ef80fcc67300c2f673a0f7a7f6497690bb3adc8f06c.json create mode 100644 rust/cloud-storage/.sqlx/query-b509140ce307b4e440349fae476518b06d6247bf27821c9bea2f04c1eb999768.json create mode 100644 rust/cloud-storage/.sqlx/query-b5578ab6da001f418fe8ff216616b79eb80caf8e2677fcf4e7127151060a50ea.json create mode 100644 rust/cloud-storage/.sqlx/query-b55c3a778e4ed824b71b4e26b20ebf12413a8a0bf8fee05fa130afb72c55ee41.json create mode 100644 rust/cloud-storage/.sqlx/query-b57aac0fecf4aa66721fe3596797e1256c960fed355a37cba8c9c1eeb630a5b6.json create mode 100644 rust/cloud-storage/.sqlx/query-b58ccd6afec0fb6636951e7cdb17390b5d1e56dbaa6b8e59bc35e2a2e4937c34.json create mode 100644 rust/cloud-storage/.sqlx/query-b5bf34fa23cec47e38d38cee18acffed018d15459e101dc907bd1fafb2158979.json create mode 100644 rust/cloud-storage/.sqlx/query-b62a8743ac8151822dcb51e80c61f9c9496412cf76d6fb5158fdc5510f59464d.json create mode 100644 rust/cloud-storage/.sqlx/query-b658079195dd801dac88ad00ecc09a42de5ded7acd840a8f9a3e065bcf7bcc0c.json create mode 100644 rust/cloud-storage/.sqlx/query-b662ef77f95aaa2a86030fbed4f11de74d311cc1a6096e49372e6cc18581b523.json create mode 100644 rust/cloud-storage/.sqlx/query-b6705d3675950d0bbbd4a0ba10f7716a24694cfd98741fc0508d607684b1c8a9.json create mode 100644 rust/cloud-storage/.sqlx/query-b69f3eab9c2048f5fe6bb31bf4c47f85169af66827f2b09287099c14a1a6e0db.json create mode 100644 rust/cloud-storage/.sqlx/query-b6a1865f89084a577115f8567ad657db1f0c4e2420a9f428d8d75defda053444.json create mode 100644 rust/cloud-storage/.sqlx/query-b6b4b9bdcbfcf72d970393d915c68c6230d9cf7f96e816a3f98a01b62e4a0a6c.json create mode 100644 rust/cloud-storage/.sqlx/query-b73077f2df6391baeaf31c0f136503cea1c346685d29795e26caab50e3654d22.json create mode 100644 rust/cloud-storage/.sqlx/query-b79ca4a7b148d78ddf48b5c57dea59763b17693c09564a0190ed377dd09342cf.json create mode 100644 rust/cloud-storage/.sqlx/query-b7e2765c4c0999ea37d38e4a7f41e3986bdcced6e86a9c9869e38ff3e6d91c2d.json create mode 100644 rust/cloud-storage/.sqlx/query-b805dc1d8b2143dbf9adc0e5478b204219a94105e0ba590db0a97f2c384a4192.json create mode 100644 rust/cloud-storage/.sqlx/query-b8176bd2c038b0cfb2b74f3c7b6a51a2d068b5253bcd3a9d16b43527ae4e8f1a.json create mode 100644 rust/cloud-storage/.sqlx/query-b8284f96e44ea8442487dd5c99733eab3722a94e49bf01605f69c78919d8bff7.json create mode 100644 rust/cloud-storage/.sqlx/query-b8342cf8ccfe95aad527ddf5cc49aef347e35bb2b023a820d85a2e85caaf7b61.json create mode 100644 rust/cloud-storage/.sqlx/query-b845e01904b9e9f8d1f322e788b7cf6555ee13b3de24bbe50bbc801a2730e446.json create mode 100644 rust/cloud-storage/.sqlx/query-b85f38b29d0f452ddb8d83e3c57c25b4d5733d4bc21770570cdc8412d47ffe65.json create mode 100644 rust/cloud-storage/.sqlx/query-b869e283051a5dfccf0f0ac4bdf9693b568ab6d4620ad1b2f5c63d3938e212e6.json create mode 100644 rust/cloud-storage/.sqlx/query-b8b631cf3afd7c73b5645635212bb851ba19858a47a17b0ffcbe4f15cd177cb4.json create mode 100644 rust/cloud-storage/.sqlx/query-b8d8d71ae0d463f8a397b03d6f6d6093127a4ed57fa5ec3c2b43540ddf1fd598.json create mode 100644 rust/cloud-storage/.sqlx/query-b8eb30360d1232b36214b17758d8c7d897251a93c7d56b310a2fc6f026fdbea9.json create mode 100644 rust/cloud-storage/.sqlx/query-b905b3cbb97bbfc8262ffb91023db7f703b0994d6d519fbab0fdb67ea2df5877.json create mode 100644 rust/cloud-storage/.sqlx/query-b9344b1ce39ffd607ab2862810afbd13c579e22b433553ba01719644a56ab816.json create mode 100644 rust/cloud-storage/.sqlx/query-b9570b07121de0df914dd0579cc92a5e92973cf114526f80dbe7ab714493090b.json create mode 100644 rust/cloud-storage/.sqlx/query-b96181ce30beea5d5067c9e8177d9feca7891cdf00ad560cc522121ee8d6b4ec.json create mode 100644 rust/cloud-storage/.sqlx/query-b99dfcbe1b18c53fa05a0c44669f6579456c3d49bea87fccdcb9962565543002.json create mode 100644 rust/cloud-storage/.sqlx/query-ba28ed6c5ce49470b0aef3fb0f59d392b5780cc548f331263a581d1b011eb970.json create mode 100644 rust/cloud-storage/.sqlx/query-ba3ab3dc338552f6b794ab5405655fe673e71f02106e9792cc4cac40f69b9176.json create mode 100644 rust/cloud-storage/.sqlx/query-ba4127d1e61f849f9429fdfedae68131fa26405dbacb0b1afe9a6f52e50fa57e.json create mode 100644 rust/cloud-storage/.sqlx/query-ba49dfcd0a3ab834f9e61f27a0a80174e549103ee63f03d30fe76857c8803b6a.json create mode 100644 rust/cloud-storage/.sqlx/query-bab2c7e9807103ec8ece1edcdc8e357dc50be7a4d634f45990b772eb0824a35d.json create mode 100644 rust/cloud-storage/.sqlx/query-baf9495b799086982dd4aac55683482fce25612d56dfdf78872d74019d8b5429.json create mode 100644 rust/cloud-storage/.sqlx/query-bb2b5a276542bf95f2600f3e60366b08133a54fbde183a5df7a9b99dd7381ca5.json create mode 100644 rust/cloud-storage/.sqlx/query-bb6de5a7f1c778acc5c27a0080037992ac2805137ee19f9385894688e6b8a62c.json create mode 100644 rust/cloud-storage/.sqlx/query-bbd2b467cf8f1e277d3278fafdc5792183e42f6c00ae95aa0f4fe869292408f0.json create mode 100644 rust/cloud-storage/.sqlx/query-bbe4822c2e7ba11594b1a4b92f945f4088406bfee6ccb2ef6577643708a5132c.json create mode 100644 rust/cloud-storage/.sqlx/query-bbeef57c72ec7a197daf71146f0a5c409a5a54b41a9dd9e3db2267c9ee17d9fd.json create mode 100644 rust/cloud-storage/.sqlx/query-bc4d60efeffa6cba398a37db8ff7204bcffd809e425e9236b897b5efa9c7eebc.json create mode 100644 rust/cloud-storage/.sqlx/query-bc5d03a110b267d3f4e4ae2937b95d91a96794ebdbc864ce0d6d8d455996914f.json create mode 100644 rust/cloud-storage/.sqlx/query-bc7ef8662eb6050c09246ebc169f91d523c596874f216a10180a377bbaf7a1eb.json create mode 100644 rust/cloud-storage/.sqlx/query-bca8bec6b99f7b9a3e8def2a53209e2d0f92546933588bad33bc3520d2ad2d10.json create mode 100644 rust/cloud-storage/.sqlx/query-bcb0dfd2aa420f102d8dd3484f65defd6cbcf8e801c4c4d43d5e0d1338e1ab04.json create mode 100644 rust/cloud-storage/.sqlx/query-bcbaaa06fffa75a82e66030d42e2aaa89d56232566edc15d9e9b819b9b02aea9.json create mode 100644 rust/cloud-storage/.sqlx/query-bd6ed4253d2bff9f78562aa09f2cbb794195e1e69ffcbf722c0a2e523f196c2f.json create mode 100644 rust/cloud-storage/.sqlx/query-bdb882d426cf81329dd6d824a5d945cfd0ea2fffa26b5324ef641dfe3e304682.json create mode 100644 rust/cloud-storage/.sqlx/query-bdc2a74951d6efbce08d469970b29610352e02441283f12a67b0da0c44771522.json create mode 100644 rust/cloud-storage/.sqlx/query-bdca4a82e47757c7c1434555612b4f81dad7d0c3ec2cef1eda3afa66897081e7.json create mode 100644 rust/cloud-storage/.sqlx/query-be483cff20705eb58c47cd4de412aea80ce9a658dfe055f146a38ed9e64effaf.json create mode 100644 rust/cloud-storage/.sqlx/query-be5dc669b45165beefffe0645813f38c805d6f49150d66c8a7325c524bebc854.json create mode 100644 rust/cloud-storage/.sqlx/query-be835e7de49553e947e0d265f8f681321d099febed2ed002dac6d706bf4ec173.json create mode 100644 rust/cloud-storage/.sqlx/query-bec08349f3e01393e7e83846f1ca4077390d22923bff328a9d8a24275832a57d.json create mode 100644 rust/cloud-storage/.sqlx/query-bf1d580e15f077862173d3efc800666d9fc7e79b8fa8619ba43bd1315c506e0b.json create mode 100644 rust/cloud-storage/.sqlx/query-bf308be1e802f2f6552a6bd0282ae985dfb1a3fc738532eca74c6b098c6772c0.json create mode 100644 rust/cloud-storage/.sqlx/query-bfd05323023ae02d10ecd01f6432a0b25cce4d43b63f05fd04b52860c482ffa3.json create mode 100644 rust/cloud-storage/.sqlx/query-c0273bbd7b7c9e2cb5c3e62268ee09f925536086394de104bc823ad946851b0f.json create mode 100644 rust/cloud-storage/.sqlx/query-c07f82d525eeaafefce4b65769b2c750743ed9c04ca6ea8a5fd1a6d3a5fe2d17.json create mode 100644 rust/cloud-storage/.sqlx/query-c08f7032873bddafca439eb4a7dcdeab60aed26e9025fde7ea45b89c4d2cb4ed.json create mode 100644 rust/cloud-storage/.sqlx/query-c0b0f58e6b2129250821f51fcb1ebe9d876c2e251f04f0aa9b1c0942d73a4e0d.json create mode 100644 rust/cloud-storage/.sqlx/query-c0fe6e2c93305ff791d9386d987d4ea8bacc6cdb063fd8f18894c6b70b9cbd3c.json create mode 100644 rust/cloud-storage/.sqlx/query-c11f23488f780d7d26380775088aee0d8c1c9cf7cb28867dbdd96b7004a5d259.json create mode 100644 rust/cloud-storage/.sqlx/query-c12b511f8fbe853ce8e5489db2468ee8a07030cb234bc0a10bc014c493b8e9c2.json create mode 100644 rust/cloud-storage/.sqlx/query-c12b8985453ee1e1e49a06e2fa814dea634830b06660aef9661b820760a30768.json create mode 100644 rust/cloud-storage/.sqlx/query-c12febd2112dc6065735c6e44d735684cd0163b2f71460d838be8eb16a25b7b6.json create mode 100644 rust/cloud-storage/.sqlx/query-c17d5fb574b826a4615cd339d550302bcd20260c4d2d82e49167e5c7c7e77958.json create mode 100644 rust/cloud-storage/.sqlx/query-c18576c18caa0b7e23198ee55981cb8d7b9859dfe4272a92cbb29a4b64a1d695.json create mode 100644 rust/cloud-storage/.sqlx/query-c1bc29d0f7278ed6a027978d51a6e15d8be6d62ead3408dc6641866a9230935d.json create mode 100644 rust/cloud-storage/.sqlx/query-c1ccd5b7d22222b5112aa06f6cb9d19523156de3b771696a069389e5a38cd51d.json create mode 100644 rust/cloud-storage/.sqlx/query-c27077a4053c8a35ca011c5edaf08e3bf1c954b1773fcd2ecab33c2ba518ba34.json create mode 100644 rust/cloud-storage/.sqlx/query-c2a48995144a813f912bbba9c9f5b91e1b413978e8262f7db56a6a27fa5ceaf0.json create mode 100644 rust/cloud-storage/.sqlx/query-c2f19d911d10a576d01505d6da90f66fad4698c52efa69d3b4a03324c09b87a7.json create mode 100644 rust/cloud-storage/.sqlx/query-c30711e82376ca92d1e4e346334517c98cfa67d86663cd13575bec99ee24c785.json create mode 100644 rust/cloud-storage/.sqlx/query-c33f85b35573916eb380c8b6069939087fbd3b34b296b546a34cdfc3e7c9eee0.json create mode 100644 rust/cloud-storage/.sqlx/query-c370c41d4e1fd496016a5689da4ca6dd9e6af7a364499871944691b3dfee5a09.json create mode 100644 rust/cloud-storage/.sqlx/query-c396a4e1c32ab75bdb9a1bb4b3bb0f550620554bab6862d4ec9731236c227cfc.json create mode 100644 rust/cloud-storage/.sqlx/query-c3f9152d242ae679d87961e306f319ac0035e078be790795eed823a95095c7cc.json create mode 100644 rust/cloud-storage/.sqlx/query-c4116c441fc76ecc39a9db7c29da7b5a952ef5031c2737d084da33a24af2c8ad.json create mode 100644 rust/cloud-storage/.sqlx/query-c415f922985187174693b51466423fa1d2ed8c301776a9778c4947a9d84590e1.json create mode 100644 rust/cloud-storage/.sqlx/query-c449c7237e08cf511f7bc2182d62e12e2aaff653c37f79cd3feb22ea4b849ea6.json create mode 100644 rust/cloud-storage/.sqlx/query-c4d2fed1a0fb95c20ef9b4049cc5cacfb7f0a441c630528d2cde076211ff63f9.json create mode 100644 rust/cloud-storage/.sqlx/query-c50d0f6d2aa615856bba86ac8460b637539f28a5e8644f0467eca7efdb06e387.json create mode 100644 rust/cloud-storage/.sqlx/query-c5196bb88afe2d67ce0a4fe7eb2c23db0321cc59a5abd6f7f714b0333ca87613.json create mode 100644 rust/cloud-storage/.sqlx/query-c59c1f638ad1ff78414fdb6733442120d6333b8c605f6da5b748951d9561c1f9.json create mode 100644 rust/cloud-storage/.sqlx/query-c5b5b22cfde385f2d03eebbf25a1f08e02d42d09810994f84a250e2f43cc5acf.json create mode 100644 rust/cloud-storage/.sqlx/query-c5d7f14d70f0de5fd07ae24e50441f5a5dd574ae4492f2adebd98021dbaab771.json create mode 100644 rust/cloud-storage/.sqlx/query-c5e833a5efdd06f446538cca125c29318b92959b2ddab117bfd98273a45d1838.json create mode 100644 rust/cloud-storage/.sqlx/query-c621293c78043e724b4e44f821ef3cc9e4d74a48075918e24327172256a5ad15.json create mode 100644 rust/cloud-storage/.sqlx/query-c631a415b25cf9edaf194dc022a044463339682b132e007d56eae675e4795169.json create mode 100644 rust/cloud-storage/.sqlx/query-c6908e8ef1c196e7785bcc4f1e07c57d66ad08be04685ac40956a2d7d7b396af.json create mode 100644 rust/cloud-storage/.sqlx/query-c6a0afdba2b194e96e3b51935deeeca109ccd45ecae97f97cb61bd9fdd7c470a.json create mode 100644 rust/cloud-storage/.sqlx/query-c6aec8f042b91f510b47cc9cf9a48ab072c216515c897a4a1e10f310cc63b4c4.json create mode 100644 rust/cloud-storage/.sqlx/query-c6f8bb6a2a9cda820cf54efb5e4ff8b048d735cfcc23716612f2ee66a8c7151c.json create mode 100644 rust/cloud-storage/.sqlx/query-c707e1d4017c4ab2983364705b6ea9b62060b16ba2e7714d5690cc8311a5e201.json create mode 100644 rust/cloud-storage/.sqlx/query-c7499a6777186567833a23df8df39fd871328de140968ba50c3db3a30cd3f520.json create mode 100644 rust/cloud-storage/.sqlx/query-c77469ffc5cc502c63d2ecb76a8578d085a7aec81551a38aa0c14b8e20491e3e.json create mode 100644 rust/cloud-storage/.sqlx/query-c777a32bdb434216895e8011885c8fa8858a6c5470f1c921ab0265cf7d1c9b2a.json create mode 100644 rust/cloud-storage/.sqlx/query-c78296b868c8a8657e5c2296049fa4809abee07e9fd473a5e9ae00ad8625a108.json create mode 100644 rust/cloud-storage/.sqlx/query-c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89.json create mode 100644 rust/cloud-storage/.sqlx/query-c7c058fd3acdc93e77a805b28b844150503f955a91339be026f8b68f65092adb.json create mode 100644 rust/cloud-storage/.sqlx/query-c8569a737734eab039a3ca9759478b203596330442305a6f3925edf67a8b52a3.json create mode 100644 rust/cloud-storage/.sqlx/query-c858541d6cbadae374ef95f2c69a582d76bd73ae439d3d3e6f1cf4e482b9ff55.json create mode 100644 rust/cloud-storage/.sqlx/query-c8dac77aedb5609a57ce5ee03d97f7e3c28fa0e94f2563e99d82f306cf6530e5.json create mode 100644 rust/cloud-storage/.sqlx/query-c8e8b950c4f8645562fb36042b549b0c1f6ec3da1b9beb4d212ddd5bc640948e.json create mode 100644 rust/cloud-storage/.sqlx/query-c922ac06eee1109006d3bf676ab8b8341b10cfee0b725409138cfdde038712aa.json create mode 100644 rust/cloud-storage/.sqlx/query-c9fce1ac31e4e4f9992809c650e85fe45f4dc1e66d4b5a846c734b308c74fa70.json create mode 100644 rust/cloud-storage/.sqlx/query-c9ff8e2deb86a25e4e0e16c9de66a5c116b68362ec45ffea5e2b25d86cfccf01.json create mode 100644 rust/cloud-storage/.sqlx/query-cac5e246875c3539f7a03cee8271708be47a56582c2f0323716f206ab905a580.json create mode 100644 rust/cloud-storage/.sqlx/query-cb37182733a71e6939495eb29d0ab6544c02094129fc9c7e921dd5280d78047a.json create mode 100644 rust/cloud-storage/.sqlx/query-cb43982dff09d09997be524b6e1034ed73a87e8599f27986495b62ce42e86384.json create mode 100644 rust/cloud-storage/.sqlx/query-cb4e7ca0b0a9c275fd8e4e2507017d2dcf7238a82ac9779e4887536003556e60.json create mode 100644 rust/cloud-storage/.sqlx/query-cb99b956db41571415b60886ba181d8767260559ccb0198eb8b7178448673810.json create mode 100644 rust/cloud-storage/.sqlx/query-cba64686023001741b1fa46b747fffa9af9eabd558af03fd0e2a250d29a4a64d.json create mode 100644 rust/cloud-storage/.sqlx/query-cbb8834b22cfc83665886957d72b6c25ac9159ac952804c94f8061d811e1e7c3.json create mode 100644 rust/cloud-storage/.sqlx/query-cbc32c96712e2169984254c7fc98f082189e1588601b714f52d11fc273afb01e.json create mode 100644 rust/cloud-storage/.sqlx/query-cbd3dc65e8a0068465b09cf9bf7e2ca71b6832b6c46a075b432cfc5266c05115.json create mode 100644 rust/cloud-storage/.sqlx/query-cbd8fd7362c56f8c1a5bb9db32538a0d4a1716f4d311683cc07f488d33fecad7.json create mode 100644 rust/cloud-storage/.sqlx/query-cbeb059dc82fad969d3f6d1ba50733a8e5a01c9584765a61536f0835ae46bca8.json create mode 100644 rust/cloud-storage/.sqlx/query-cc006af8fccc5e02930c42ce1251e454df554d615c9ceeff5af763029972af30.json create mode 100644 rust/cloud-storage/.sqlx/query-cc0889c0d1cb757fce4cbfbb58eaefb065d608c3866d2707edfec8e907c460c1.json create mode 100644 rust/cloud-storage/.sqlx/query-cc1d96c7390033014832a250d080d0a6c08112e41f085f59abcc855ef35d5bd2.json create mode 100644 rust/cloud-storage/.sqlx/query-cc388518e9c137d9c849d408300cd2d4687d41e8fd09e04edf0f4861d48a3e62.json create mode 100644 rust/cloud-storage/.sqlx/query-cc55e105bd5f6916a779d57ed7e4379c7fdaca83a33355842cf8b0b29d25a517.json create mode 100644 rust/cloud-storage/.sqlx/query-cc7926b302ce23fa4e727b6986ec14253589d794894668f4eaf078ec8a5d4ca8.json create mode 100644 rust/cloud-storage/.sqlx/query-cc9cd9c1d19f49627d619e8111ccf71139a34878ece29560f7a1c48a73c974d8.json create mode 100644 rust/cloud-storage/.sqlx/query-cd0fcad5f9177a5b57fa20cdf5996f4ea4bd008a19afc916a1147fca76b6d5b4.json create mode 100644 rust/cloud-storage/.sqlx/query-cd2334cf312dee1e9b230cce0d7b26999ba3ac23f89c8882c144d4c9a657e235.json create mode 100644 rust/cloud-storage/.sqlx/query-cd2ae30f38c8fd4467fafbf57d515e303d2c5bed1c53a5c1cf255a172defa46c.json create mode 100644 rust/cloud-storage/.sqlx/query-cd39c593bdca8f628570365a8aa6787d34173da3b114c61b2cddc69b7d197819.json create mode 100644 rust/cloud-storage/.sqlx/query-cd3ae40ade95369aeeffcd17cd99301e0c36f4d600917c7573137e15688b1f68.json create mode 100644 rust/cloud-storage/.sqlx/query-cd98a8eb1ebdeb28951774b9daf0a9f05967d0adb106e93608b3b5a64adae02a.json create mode 100644 rust/cloud-storage/.sqlx/query-cdce5c0c87367db68fee9c3107ae916da208d1525bf04497687e941d329513c6.json create mode 100644 rust/cloud-storage/.sqlx/query-ce008daea4cb34b00a1c882b25444c58e68634e942d43ed59582b7bf0786893f.json create mode 100644 rust/cloud-storage/.sqlx/query-ce218da82b99295aed3a609a21f5feaf304a4d50bbabe9151bb0bbaef7bcef16.json create mode 100644 rust/cloud-storage/.sqlx/query-ce97d5a94360438e17479379fcab57a8d30a1d2a7c03150526322a2aa8175c71.json create mode 100644 rust/cloud-storage/.sqlx/query-cea740c7d7764d20771d15ddd5cf047e9638cfa5d7e07d9885af0592142e5304.json create mode 100644 rust/cloud-storage/.sqlx/query-cebafd0d72b44d2f63bce484750fcab2a26f543e5a6ca992e38bdb662dc7c2f4.json create mode 100644 rust/cloud-storage/.sqlx/query-cef69d1963846d65ce695cbc2d5a97a325f4081b69a3b8a7d1a481ed69f86bf0.json create mode 100644 rust/cloud-storage/.sqlx/query-cf095b171e7a5b06335671a0ffe392c7e93978451b4ae208a23ab27c3b10c1b7.json create mode 100644 rust/cloud-storage/.sqlx/query-cf1161cb3ef4f573dd8e15092ebedc6cfa7e0f8b9f8b3c3a698991d37860c76f.json create mode 100644 rust/cloud-storage/.sqlx/query-cf156bbe38f634e623a39ae1d388cad0a5e18597f640111861f469e273e56e88.json create mode 100644 rust/cloud-storage/.sqlx/query-cf47cbebc8adc6834b44c503c18fb66ce5dbb225c7ca91b3d71dcfe398c8f95a.json create mode 100644 rust/cloud-storage/.sqlx/query-cfbec090ff3b62415ec0c215aa52bdafe162fb8c8fd217a8fcaf613e39525b0f.json create mode 100644 rust/cloud-storage/.sqlx/query-cfc7c8a549dffd94c8d201c665e84c110d780e5be92b5e160c64189355f5f31f.json create mode 100644 rust/cloud-storage/.sqlx/query-d0150fe28f8fe11bbc69c475a6fc3277a1ced2c563a2e2bc98a742ef71da40fc.json create mode 100644 rust/cloud-storage/.sqlx/query-d025cbcd336023d8d266d144ed579003a1f0f549e4e1585f641c86d0f2336c64.json create mode 100644 rust/cloud-storage/.sqlx/query-d0a3d7eadc0e7d5d469f5ae755561b859efa9b55a2b085a1f564b42024be3e92.json create mode 100644 rust/cloud-storage/.sqlx/query-d0c976b53ed5c8b754013dc219219ae33bff5dc510075ca8f0f24db8a9e1ead6.json create mode 100644 rust/cloud-storage/.sqlx/query-d0dcb62233091aee045f96c8f2cd8ebee5614196a92bcbc250b9702a8194c329.json create mode 100644 rust/cloud-storage/.sqlx/query-d0de0e065ad2c62601b5d401357d295c602e8ea01dc164bd95c7ed30a7726a54.json create mode 100644 rust/cloud-storage/.sqlx/query-d0e25ec078af21bc5a7771937ed5bfc9d190e4154c906fae3e67846c308332dd.json create mode 100644 rust/cloud-storage/.sqlx/query-d0e2ccb572c57cb856c6d68e739aa5cf85994ae8af80af65ade5f879f837cc6a.json create mode 100644 rust/cloud-storage/.sqlx/query-d0f5de1518cf48faa63380a71ff6633e40c9a0d9f8e87262e31fa218400752a7.json create mode 100644 rust/cloud-storage/.sqlx/query-d138759f663ddea66b623d88820383631011b1c3cbd5d36e137dbd0c5442f456.json create mode 100644 rust/cloud-storage/.sqlx/query-d13e90d3f2bda80111ac9849f14099b08f372bf4606405d18d8c465d241b5781.json create mode 100644 rust/cloud-storage/.sqlx/query-d162c039601a7fe5f829eeaedb6cd324c875cdc9e74287873ec41a9fd495e696.json create mode 100644 rust/cloud-storage/.sqlx/query-d185f3b4ca09c5a6372f6a64c4e6e5e12937814433dc5499b0dfdbe882c76192.json create mode 100644 rust/cloud-storage/.sqlx/query-d1c575aba71170e53f0d8a786d9c1a67edb6dd76a80889a538b6c1aceb837e45.json create mode 100644 rust/cloud-storage/.sqlx/query-d1d1519e0bdb30ddcbaa6d602bc04617613bb21df0e7728150e74b4125d28a59.json create mode 100644 rust/cloud-storage/.sqlx/query-d20c082d3cea0215d43fba8023c43c48e9ad8b934613ece6777e4948e18572bc.json create mode 100644 rust/cloud-storage/.sqlx/query-d31d574569460a9137ba589cfb552f811f014cd6ef1d0b3f9bea3074a478f785.json create mode 100644 rust/cloud-storage/.sqlx/query-d357cee4f06a87dd2d7fe9d64a0fd2c9e95591835b82393ecb2492f8966883bb.json create mode 100644 rust/cloud-storage/.sqlx/query-d35bd972bde3e682873d7088574ab3afced6278d25e630969724dd5837182f0c.json create mode 100644 rust/cloud-storage/.sqlx/query-d42e3270642ca0b9eff6b5807f600c24fd26d50d612a66edf0738c62d15680ba.json create mode 100644 rust/cloud-storage/.sqlx/query-d4fc8cb85acc88cc8c342220506921a23d5de6a44ed9e4af285f49f4e44d174f.json create mode 100644 rust/cloud-storage/.sqlx/query-d501983b009e4418f1753f03db0ea12db11f18e4a89a76c87b4c8ddda431cbdb.json create mode 100644 rust/cloud-storage/.sqlx/query-d504950303eab672518c9c99ee3df3044ca299f2a677c812b11592fc9b2fe6cd.json create mode 100644 rust/cloud-storage/.sqlx/query-d50b26323778ecb0ea88bb43c8a3df49df49acf6ec6d56955022e81ae92a2278.json create mode 100644 rust/cloud-storage/.sqlx/query-d5c0095efa9c8162d511f1f9b1b2d44bfd717c8761fcb3c8561cd6c292b1eea4.json create mode 100644 rust/cloud-storage/.sqlx/query-d5db55179b8f46b8788f1cc573b0734a33e800cd3fd990498c76c991b48931a8.json create mode 100644 rust/cloud-storage/.sqlx/query-d5fbd2557b6759572b20117681fac9c4d0b723c7a7abfa0fd92ae362ea32b88f.json create mode 100644 rust/cloud-storage/.sqlx/query-d61fd0eda66672d4ba0ed8d648c93fdc9b145bcea0d50bfb62acabba93d5818c.json create mode 100644 rust/cloud-storage/.sqlx/query-d672dff677cfcb21b6f90672e2d79b6d56ccda8789dd737a8cb2d89eb6858b03.json create mode 100644 rust/cloud-storage/.sqlx/query-d6e62d780e55c6597e725a12a3785ba2c222905943458d205112e1e064a0bcc9.json create mode 100644 rust/cloud-storage/.sqlx/query-d742a92f0fe0ee9d7804e59bf37182fb33d0dcc2df012cdc4eed91e8994ca2b7.json create mode 100644 rust/cloud-storage/.sqlx/query-d7689899580f3928cca462a572058dd54f85dc6082f369fbecb2afa873fda66b.json create mode 100644 rust/cloud-storage/.sqlx/query-d792ba8c4730364e650045395d110e6acda592d3e27ecac39f93370bacccd7a7.json create mode 100644 rust/cloud-storage/.sqlx/query-d7a3be325f304ca9642f1ae4f18a3b22e871c61feff6dbc1fe793cedd2cf403c.json create mode 100644 rust/cloud-storage/.sqlx/query-d7c799b9e8432474ef422195e5e17f6cd611c9845f2830ab6ded46a4d640d362.json create mode 100644 rust/cloud-storage/.sqlx/query-d81549c7156fb08cde5260f6196eb6a80bb82c9640845a835c6d32eea7e6dcad.json create mode 100644 rust/cloud-storage/.sqlx/query-d84f480cd90b929670bdbe24b839126ad17975d9f7490e8a5d521e2c1eb752c5.json create mode 100644 rust/cloud-storage/.sqlx/query-d8677557689260c205fa17b9b36990834ea8846624132386f2fcd92d0d9b9905.json create mode 100644 rust/cloud-storage/.sqlx/query-d86be6e3a5bac69df99498b43dfc645a882c4f965226e71fc300d84a081ad30d.json create mode 100644 rust/cloud-storage/.sqlx/query-d8bd24cd40bf28ba54dcc3a846931d4e00fbc7854d8f315b87f70dfdc44cb901.json create mode 100644 rust/cloud-storage/.sqlx/query-d8f3ede64d3ac515f4247672f6edc47ed61f608db54b649cc3daba87817c680a.json create mode 100644 rust/cloud-storage/.sqlx/query-d970eeb5bb4aebc43674b6ad89fb00c04c18f94145346063a2b012c1104afa53.json create mode 100644 rust/cloud-storage/.sqlx/query-d990b4285faa94bcc23b8e4ebd3c433d0dd69045b66f7cf5952f1126115dec84.json create mode 100644 rust/cloud-storage/.sqlx/query-d9956cd2e52cda4f0e7c080058d33f2bbf35c99b29e7482f198d592ff435cf28.json create mode 100644 rust/cloud-storage/.sqlx/query-d9ad977df73e6a2e5cf561edfb41d5ab7728a12ca7245876c3ede0c3adc69647.json create mode 100644 rust/cloud-storage/.sqlx/query-d9f818ade03e85f7f57ff02b2093b46ac7899be8421cdd83e5dd46f5b8211fd2.json create mode 100644 rust/cloud-storage/.sqlx/query-da0e4cfc27ca84e3cad6ed3d7b58d20ea15ba8756bc54a8d518ea82a39a27ec4.json create mode 100644 rust/cloud-storage/.sqlx/query-da11b9c3b9850e3a763035f7873921f7887f3bf828b5be3c7a599fade54a0dc1.json create mode 100644 rust/cloud-storage/.sqlx/query-da534350a843bec8ccf928f5d774a0a281601cb56674d2b5ea331e02ae8bbf60.json create mode 100644 rust/cloud-storage/.sqlx/query-da59b393b3c5c2cc664c6ac89fb05dec57b4fb5d0b4ea2def2c8c4978c1d9c36.json create mode 100644 rust/cloud-storage/.sqlx/query-da6586a61ad110e335c8b5a9c6c840cee4f1db25c7b9b4f5a1157ef655fe1575.json create mode 100644 rust/cloud-storage/.sqlx/query-da98ce3985fbf5eaed5300bb94b3354c7b4bd005b9e5657a702bd39846ff0917.json create mode 100644 rust/cloud-storage/.sqlx/query-dae0d3d0cdf09f727a8b7c3ecc9f3ae64ea91023d356c47232736672cd1ba5ec.json create mode 100644 rust/cloud-storage/.sqlx/query-daefc7270b27ce0caef8b61a651c38d76dfd087a2a8032ff6ebce392d7892764.json create mode 100644 rust/cloud-storage/.sqlx/query-db297e24e3ed1e94c27121977d81813bbe4cde5e5b7bec42e424c72db0e27e73.json create mode 100644 rust/cloud-storage/.sqlx/query-dbf934ed3c82b433deea3da7035a976b443a4280c01b09fdc5f673ad66f06c28.json create mode 100644 rust/cloud-storage/.sqlx/query-dc09f10b914618441e30f7b1e12c60d684f1a422d5cd1de162b6f657c8ddfa98.json create mode 100644 rust/cloud-storage/.sqlx/query-dc8363500c41804887b52ba9bab5fe1745738d475322e937d4553623a8294dc6.json create mode 100644 rust/cloud-storage/.sqlx/query-dc836e7dd12a3df4a05ba072af32cb1aca7d6b8c20e636adff6fb3977577e62a.json create mode 100644 rust/cloud-storage/.sqlx/query-dcf19b1a30385a18a23d0fa7d4d724d755c0a3353480bcbe573a3f867cf24091.json create mode 100644 rust/cloud-storage/.sqlx/query-dd019c8633d6089e59d0560d601dbb294e66474310e66c28a0a8510c64fca149.json create mode 100644 rust/cloud-storage/.sqlx/query-dd1e3498501c9aad2a5db8c9f55269928b43c4a9e523b84383bf9c7dc636c1fd.json create mode 100644 rust/cloud-storage/.sqlx/query-dd4f7c4b90b6340ea7f4a7d6eb16347612e9d197979f9d4a4df40314f22559f8.json create mode 100644 rust/cloud-storage/.sqlx/query-ddc49e2430354b28a22a3168b217f351cd450b0fe95a4c6015573da664c5c27d.json create mode 100644 rust/cloud-storage/.sqlx/query-ddd8755195a3cf6673045d0182a08a933c8e7ac6f811305b607046ae6021be79.json create mode 100644 rust/cloud-storage/.sqlx/query-de68d0cec65bf1c6779ac453af4ca4185ce3ebe294d432408c876b8a0b0a6b63.json create mode 100644 rust/cloud-storage/.sqlx/query-de8329eb43d809c9055c9530784594572d9da9387c41873beacfb4a615e964cb.json create mode 100644 rust/cloud-storage/.sqlx/query-de888f70b426374eb436dfab5e58cab5a5d5423325a7834515c9c6a327f25f50.json create mode 100644 rust/cloud-storage/.sqlx/query-de8dbe51fdbaeeb8ac8c8af8627c6838a4054a719ac6b54f6f7acb53a9353a3a.json create mode 100644 rust/cloud-storage/.sqlx/query-debae3edf7b8f02aefffa4464ad9a4c474f1e7d5c0071bdb1261df0c1d8b2373.json create mode 100644 rust/cloud-storage/.sqlx/query-debef3a27b832b3600037a6304558a23c2407f742e67e7c06553929f4405478e.json create mode 100644 rust/cloud-storage/.sqlx/query-dedb4996ddd1f4a5a44ce96d8ab9e7ad85d35c823d233e6d9b53534c5aaf94b0.json create mode 100644 rust/cloud-storage/.sqlx/query-df4f91b8a401ff941c7b57f910979e0ec39a507de612ff7887172062237f29ce.json create mode 100644 rust/cloud-storage/.sqlx/query-dfc54abc6dd32c35bf3d3c65288ead04d9990d5f6613bd7668dd7cba38ebe3a5.json create mode 100644 rust/cloud-storage/.sqlx/query-dfccb13f0d0abe2be31bb40067f2e4c29fe260e81d13c017b8bc4fae2b94703f.json create mode 100644 rust/cloud-storage/.sqlx/query-e08bcee71072e0e693b1b3f2df39a2b9574f45847919251446878f32b9febbc2.json create mode 100644 rust/cloud-storage/.sqlx/query-e0b90388e3a9f7dbd1e6586cb0633b0d2d39d64dcc88a0f0c5cd310303e7dc92.json create mode 100644 rust/cloud-storage/.sqlx/query-e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957.json create mode 100644 rust/cloud-storage/.sqlx/query-e0f9ac039268a99b0d65cecf7ed18ee7fb04db4955d5dca83ca1c6c9e0eaa884.json create mode 100644 rust/cloud-storage/.sqlx/query-e10378347cb7114449942c583bb9426932aba9ae4a09ab96ebfa32c46e8b6fcf.json create mode 100644 rust/cloud-storage/.sqlx/query-e11187ed1bd1944597258bbdefa8ec23de215edc1de1d020d418e2e89b17424e.json create mode 100644 rust/cloud-storage/.sqlx/query-e12622009d9e824222ae86c7b823e4f4ba653a16b53f9ffb7b99566d202dbd68.json create mode 100644 rust/cloud-storage/.sqlx/query-e17994ebc0589faabde0aa239f24c542292d06b39c744f2055038ac46c41bbdc.json create mode 100644 rust/cloud-storage/.sqlx/query-e17eb13c62a13ec9d5355a6f632b414792f6d87963138b7969b6a8f179e508a1.json create mode 100644 rust/cloud-storage/.sqlx/query-e1aae69a066a831096b61a7318b753897d59e28cedd21e439c20ff09268a831a.json create mode 100644 rust/cloud-storage/.sqlx/query-e1f9c3663588dbc2e59aa729190c477b8ae7e89dde630c125c1364ee211c454b.json create mode 100644 rust/cloud-storage/.sqlx/query-e1fc9c7524d0d20844d2cad0402fd1a2058e31c5692d66a0107d9a45c9d83f7b.json create mode 100644 rust/cloud-storage/.sqlx/query-e263f6ef753e7f2c2debc7f63c8658670ee906d1814f037f1c20e3569ecfd270.json create mode 100644 rust/cloud-storage/.sqlx/query-e28bfb9ffa642d99401e17cbbe174df5312e5fae38f374945f807ce68d0314a8.json create mode 100644 rust/cloud-storage/.sqlx/query-e2c696b916af0f7591d95a280d75c01e2e6e9dee46a74504fde48b78587934b6.json create mode 100644 rust/cloud-storage/.sqlx/query-e2cadbb29d007b092339274024c3638798761653ca72db90aa2ce7417976ef61.json create mode 100644 rust/cloud-storage/.sqlx/query-e33fa0c9cec501d3d4a9c98d1c80717756b395ffb54f82d50691520065eb6036.json create mode 100644 rust/cloud-storage/.sqlx/query-e3502d4611d734fa9d27c17c3adb0785d06317da255894345de287a654f24fc3.json create mode 100644 rust/cloud-storage/.sqlx/query-e35594f0b886c9eaba037a0b13ccb3baf21cd37b638190889fb5383180a8e437.json create mode 100644 rust/cloud-storage/.sqlx/query-e3cbccf7e62eaa5d655b12fbf32d181f2bb79b25ac3c2300e2eab17c912697af.json create mode 100644 rust/cloud-storage/.sqlx/query-e3ceebff1df78cef1b26e165cc4967a55f7b5355b7ff835eed0f93b4b8458ceb.json create mode 100644 rust/cloud-storage/.sqlx/query-e3e481b6dc2c40e088840b2f96b463fd3df8488cbce6001cad1bfe990b347b63.json create mode 100644 rust/cloud-storage/.sqlx/query-e46bb839438b0dc805a6336d9ab0e64bad441f07222bfe922c9da81c7d2c3a47.json create mode 100644 rust/cloud-storage/.sqlx/query-e4bd72019eaf76d30d907a1fb8b3811f1d4c96c7049794890f30b1e831381010.json create mode 100644 rust/cloud-storage/.sqlx/query-e4dda9b303d359c6c4e3c7b120136ae5c11cd902c373ed20d8119ba050c7dfbd.json create mode 100644 rust/cloud-storage/.sqlx/query-e4e4c79727e7a83f2dfbb1d82a00a771eb3bd08aab63d2be4a1338fbde315f62.json create mode 100644 rust/cloud-storage/.sqlx/query-e4eb2173ecfc39987f998d5075237c0b8aaf00c3eae94c06f069591f72445e14.json create mode 100644 rust/cloud-storage/.sqlx/query-e52ca994b4107db7e434502dc1f370666bf2efa34290ee8f1a6c89330b29522e.json create mode 100644 rust/cloud-storage/.sqlx/query-e54d13b2e6e397c0f1fbc83ea7dea28d255c30f360759bf57b7d0b31294c785f.json create mode 100644 rust/cloud-storage/.sqlx/query-e57d0a84a9cb67f987d4a53bfb123136039849d1c3c5ff81463691e0ae271f74.json create mode 100644 rust/cloud-storage/.sqlx/query-e63fd5c15b6e5327aecb2524ee304fcd25df705766b08c6fd8d39d10cacfb33e.json create mode 100644 rust/cloud-storage/.sqlx/query-e694a7861bbcbc4102b2335afa8d201e0b71608319da53a9551cf3c83fbf1487.json create mode 100644 rust/cloud-storage/.sqlx/query-e6a3bb4ea73a16bb6664ecb2adda3573d0cb043fee8aeb7c46a61bcd534357e3.json create mode 100644 rust/cloud-storage/.sqlx/query-e6f63b89995a909f72c7c4012ab340e40f13453f1bec6cf41cb202930c44e84a.json create mode 100644 rust/cloud-storage/.sqlx/query-e6fe90cc7c58f3bcdcd2655b11c82ea99a8eda29d45570028deda4075173cfe6.json create mode 100644 rust/cloud-storage/.sqlx/query-e70d5acce88125ae894d9d57356559c6e59e236c9650211a52fdc90602318cc3.json create mode 100644 rust/cloud-storage/.sqlx/query-e7906bd42de06eff9291279715d9f6f1a860c05be610f8b620fe2426d59b2e62.json create mode 100644 rust/cloud-storage/.sqlx/query-e792f05e8ff1bba6124255b61ae57b1429cb22745012c396910f2fa549aedf79.json create mode 100644 rust/cloud-storage/.sqlx/query-e7d8ee1a89eda56e35de8795a6bf83e4ce9af436279fc24b7aafe8f0d41aab04.json create mode 100644 rust/cloud-storage/.sqlx/query-e7e9e2db72c9bf45273b0cfe11057a5dbce790572f2420457e24b0fd498c2024.json create mode 100644 rust/cloud-storage/.sqlx/query-e802b95145183d9bec6fb5f542fe93d392fdcf0fbebc9935f263f3f4fd1d8c34.json create mode 100644 rust/cloud-storage/.sqlx/query-e82694bed350dc3b7b22de00e655dfabb45e608cfd9a0a5a463fc6e1792393f2.json create mode 100644 rust/cloud-storage/.sqlx/query-e82b920450ded09debcd219dbe7a34dbde810b6b60c8d8a0854ee49ac57a7c02.json create mode 100644 rust/cloud-storage/.sqlx/query-e84c6b52fb4748ec73c01340862a1fa3c65711050239ca5d7bcd59b04f920894.json create mode 100644 rust/cloud-storage/.sqlx/query-e8633dfaa07a4420442beb666625c7af4b6e8db0ea192d08aa971b20ebe69eb4.json create mode 100644 rust/cloud-storage/.sqlx/query-e89719852a1e6166dbcebe6190a79a830b0e0a98c92967f15c2a89b96871bbd4.json create mode 100644 rust/cloud-storage/.sqlx/query-e8bf9c53f71988ac7364aef5680e3cb74f7ddc5bacda3caf78db4b8672a8cf72.json create mode 100644 rust/cloud-storage/.sqlx/query-e951a324bc8638caa7d3d8b3793b5dbe6ce6bfec8f307f22aa7b2bab42a5a13a.json create mode 100644 rust/cloud-storage/.sqlx/query-ea3b56b003d40d52eb5fe2e247fa38e7cfbcff3def9db49e5d9bad83207a3a48.json create mode 100644 rust/cloud-storage/.sqlx/query-ea674f0a9d53a37775cee691aaa387db892d3902606258ac7c1e87652eba76e7.json create mode 100644 rust/cloud-storage/.sqlx/query-ea7622c671b053d5519e2fb2a996372002b31d070e2cbfe2d58ae763bc04b7c6.json create mode 100644 rust/cloud-storage/.sqlx/query-eab276e5a26ac65dd643a67de93e82418e3a012a628f1b5cd3be1f490eeec9f1.json create mode 100644 rust/cloud-storage/.sqlx/query-eaeb36fcd2e9915d830eb2cdcefb6ab84c37acac7de5fdd06fefbec94abfe956.json create mode 100644 rust/cloud-storage/.sqlx/query-eaef3f030f89336b4530560c11b502fd1ef001d1247a155814df5c4510170aaa.json create mode 100644 rust/cloud-storage/.sqlx/query-eb2b040d1563d048ca6a81a00fb98bbc2e5d6c3c3063be43655ed32a3baf028f.json create mode 100644 rust/cloud-storage/.sqlx/query-eb8ac8459fac8423966a6daf85b51dd7c57b312cf54b2c47ba87c7ee99f0d9c1.json create mode 100644 rust/cloud-storage/.sqlx/query-ebb5fcd2dc97d8c2f1ea17927db39e0fd0419594e068b4d43eaaddca5e46f6b0.json create mode 100644 rust/cloud-storage/.sqlx/query-ebd8690a2a7068b485816697c3d6660c82f616f8f3456a6137b872043404d282.json create mode 100644 rust/cloud-storage/.sqlx/query-ebe9fefb7d1b8505df6bd0ec41102abb947fea3cb939dadaa76b6e53bf896390.json create mode 100644 rust/cloud-storage/.sqlx/query-ec772d88365b803914f51dbe270f14ab6cdd2fe57c9d76e430cfef7234e92168.json create mode 100644 rust/cloud-storage/.sqlx/query-ec9e817e0985ec4f58c8c6bc5817016f366e31f1ac3a8cf8696ed61434472afb.json create mode 100644 rust/cloud-storage/.sqlx/query-ecccdffab47c2a500f64baee0488afa6d87a4f32cb7c852318de504fa6d20b2f.json create mode 100644 rust/cloud-storage/.sqlx/query-ecd16f9e0fd909784c5831fd73e705b6f12c716417f4d337aa68f73fb05a6dd1.json create mode 100644 rust/cloud-storage/.sqlx/query-ecd59864bf9f241755a73ed370146370580a768c26a4c9f6b1fe9d8244abdb36.json create mode 100644 rust/cloud-storage/.sqlx/query-ecfb0370e15c5d6e326a8580ada1af7ccf5264e6ac8b7ce80fa9d68be5aed976.json create mode 100644 rust/cloud-storage/.sqlx/query-ed2f2e964af409b89eceb93c1b4ee3364dbb75bdc22047789492b8f73b3e2491.json create mode 100644 rust/cloud-storage/.sqlx/query-ed43958d3b45528df34f3216299e47e00e2aa671b9d235abffa4ad8bfe126c12.json create mode 100644 rust/cloud-storage/.sqlx/query-ed817d80e4f40fc10b32eb79e9fba0a0dd46cc9b31980dba5a76dfb4540d6cd3.json create mode 100644 rust/cloud-storage/.sqlx/query-ed8fbc6860616548698e4134d1f4404c910188de8a57899dd6cadea50025b4bf.json create mode 100644 rust/cloud-storage/.sqlx/query-eda8f3dae4d58225307ad036c6a19e0d6bef4a3d9ea2791d75799c93b4f2350f.json create mode 100644 rust/cloud-storage/.sqlx/query-edbec9f2fb09a6f4d6c51f137639b7ce0b5c5fdf66aba0a6efc62530ec611766.json create mode 100644 rust/cloud-storage/.sqlx/query-edce1ca1979c9bd7c42f7e89d80a8d25037d25951b1f406dddb8d62cc13f74f0.json create mode 100644 rust/cloud-storage/.sqlx/query-edd4b100c5da632fdd5b89c67b8a478e593d8236cf4efcebaa15ab4046917cc3.json create mode 100644 rust/cloud-storage/.sqlx/query-ee0142b21993b387a2279768973366203093e40f519275702f3bcfa711812321.json create mode 100644 rust/cloud-storage/.sqlx/query-ee374b0fcc0e59609fbc6368541c65cc9e27d786fd2648040cc9f2c6a3295d8e.json create mode 100644 rust/cloud-storage/.sqlx/query-eec442b23af1030f7f161a304469b00fa7c2c474980361fbc5d98839dc40773f.json create mode 100644 rust/cloud-storage/.sqlx/query-eed44d491b8b8bce4f111b92565b371093099209a80349d311f45a0aa4b9cca9.json create mode 100644 rust/cloud-storage/.sqlx/query-ef427e34315b97ade2b38516eb477af19b53c578df995fbbcef546aaba55176d.json create mode 100644 rust/cloud-storage/.sqlx/query-ef656114c7f86aa883e6360df927ea16b18efcff635cbb4d8146ff4f3ba67416.json create mode 100644 rust/cloud-storage/.sqlx/query-efc06b0244fc40aa8fbf3721d76886d7b8909f3150f779b64a56a456027c0d26.json create mode 100644 rust/cloud-storage/.sqlx/query-efc740cd935fb67ef5c2a75b3c37cf16bf09d6e52e5f6e5c5b107ef8244a141d.json create mode 100644 rust/cloud-storage/.sqlx/query-f02b1d7d15a7657f2f5132db649f9a4097ff7320d336de3ea25fe1899a7826f3.json create mode 100644 rust/cloud-storage/.sqlx/query-f04a97eb13684a35daf6c5ff52890da499864d7f8e97a390a11b384d6429fa13.json create mode 100644 rust/cloud-storage/.sqlx/query-f04af5974db6b600e88a7c1fd3f39a09a5f4d3185af10d1a7a32e8035b2c5ec1.json create mode 100644 rust/cloud-storage/.sqlx/query-f0c307220a9a497860462656f53da3e5786501c7b07a41983acb8459df610b8b.json create mode 100644 rust/cloud-storage/.sqlx/query-f1346adcde7c4a86859ebc936ac4c8ae492febce05ce35df78bced81c1070f01.json create mode 100644 rust/cloud-storage/.sqlx/query-f1afe1bb26ffc5e97fe3a5db39ca0fe594d449939c99f3dd8e338aff9d26753b.json create mode 100644 rust/cloud-storage/.sqlx/query-f249e23685d626a0e63015828655a4dc7053d1e1d6425b9de339986d41c8e180.json create mode 100644 rust/cloud-storage/.sqlx/query-f2a71de44d62190ec6ccad44b2e3a5b00bf57e5f0b948b2d882d2d036375d913.json create mode 100644 rust/cloud-storage/.sqlx/query-f2b90d413f8882f0d1da810aeca51a503118d0dddd8759495f607c65158605d7.json create mode 100644 rust/cloud-storage/.sqlx/query-f2c563a84ecf4b347e19eed2770c9593db5cf4bba24c234e9179f741a920d4d5.json create mode 100644 rust/cloud-storage/.sqlx/query-f2d5d7aea9918978cd69c14f8afe24156c2fa387e001ee8eaf57e4a70a106069.json create mode 100644 rust/cloud-storage/.sqlx/query-f360ad52de6c2f6b0c60902cbcb7ebad2671fe50f6425314bf3c007d01f53884.json create mode 100644 rust/cloud-storage/.sqlx/query-f3c74398e522602a72523704c37edbd92ada98d1c5b00dd4052db371fd191598.json create mode 100644 rust/cloud-storage/.sqlx/query-f3e53dd531be738b881df199783a2beded3bd378038cbd6f012080ac77c5291b.json create mode 100644 rust/cloud-storage/.sqlx/query-f3e6e462f1b3d364bbcb2e556f68dced036c605ba52ff484b30130cf837b9408.json create mode 100644 rust/cloud-storage/.sqlx/query-f3fe8a220414038b0f4ebd8fbf0a6842bf271ef6cb2e4de41b820113295ca18d.json create mode 100644 rust/cloud-storage/.sqlx/query-f419ff9b35e559aedd0c8623986307a3d445a6a5643262d3efda804e3d04ccc6.json create mode 100644 rust/cloud-storage/.sqlx/query-f4dd3bd30a64a7fd82d9a254a0fb0ea36e8607ebd4c272509afba882a3e0b572.json create mode 100644 rust/cloud-storage/.sqlx/query-f4e290fa3d4abc3cc6c28f3e88b35cb2d29a67a4c437234f0ac7d1e6baa34669.json create mode 100644 rust/cloud-storage/.sqlx/query-f53db7386c5bcacad71c665b79d14921d77330e127ed9083235078bc0d8ee970.json create mode 100644 rust/cloud-storage/.sqlx/query-f5fff13701e91118a77c814a3c1b31f3c3202031f51868b9af724e701248079f.json create mode 100644 rust/cloud-storage/.sqlx/query-f61e5ffbf5f10d3989640c3f1b70bbe79c9e1b2e6d2e6925bdf89df1a07ead5d.json create mode 100644 rust/cloud-storage/.sqlx/query-f61fae90a53682f217091f1ecbdaa60d2eb5b7b0ff90863b0d0dc288779a5f7f.json create mode 100644 rust/cloud-storage/.sqlx/query-f6226ec842f894cdf49b4a8d0d1f363e31040405915cffa7da18a3ed337e298a.json create mode 100644 rust/cloud-storage/.sqlx/query-f62b5eb569c1751fe1b85a81c1b50811245e71af919de567277e505bb59d62e5.json create mode 100644 rust/cloud-storage/.sqlx/query-f6600a8a539ce77dbd8b5332ea8994e58da416d649dc4963c510b3f6906db5fd.json create mode 100644 rust/cloud-storage/.sqlx/query-f6a7499d3079d346afe5d866734ffc5d4ac3f9f1a8c2a5714ef130e53d11145f.json create mode 100644 rust/cloud-storage/.sqlx/query-f6bc8c7f62c44aa50928badd81140cddf46a772f8a638259541b05f006bd4c1c.json create mode 100644 rust/cloud-storage/.sqlx/query-f6c0addc618fb161405a1a989f2cacd0718c070eb2ee345d524abe7ba8b5b35e.json create mode 100644 rust/cloud-storage/.sqlx/query-f7350272860b713193c09bbd784418605ec3f0f9f090344882fcac7d251bfdba.json create mode 100644 rust/cloud-storage/.sqlx/query-f740b3f09ab349c876e1c7d8e42ad59600be3ea7f6f3db61fcc3045330a20f39.json create mode 100644 rust/cloud-storage/.sqlx/query-f77a2e12f69d9ca98e0ddf9bc9c10b9c54cb028c0f723b18c05231eafe5722af.json create mode 100644 rust/cloud-storage/.sqlx/query-f8e7be63fb307e8882da2ef41dfb8ebb75a89ecd397f5a266032c2c8a1f9c561.json create mode 100644 rust/cloud-storage/.sqlx/query-f8ea2beac8e9feddd9f8ebd4e3d67032505a085b4c9c5e787f3194414758601b.json create mode 100644 rust/cloud-storage/.sqlx/query-f95b295c9ffa7b96a7907c43c0557d60af3f02fc72c3f541bc94c903034a6748.json create mode 100644 rust/cloud-storage/.sqlx/query-f97467addd6684e98f641dabde769092e981121feea08d55de4cd41762f1fa1e.json create mode 100644 rust/cloud-storage/.sqlx/query-f97ea400ea881b9116d2deb19f1cb9c8f850746382a3c7049303286f2868a851.json create mode 100644 rust/cloud-storage/.sqlx/query-f9dd839c0eeb6b25a432136def701390348a6d4e33feefb4c3d33974e15fcf83.json create mode 100644 rust/cloud-storage/.sqlx/query-f9e1032b35c2a8134372f0188b76dc5ca777fdfccf87f1760b3ff0f03d4515b2.json create mode 100644 rust/cloud-storage/.sqlx/query-f9f132f209b5a22522df5c6b9ae936efa63645abc9b36965f9e8daead43b7adc.json create mode 100644 rust/cloud-storage/.sqlx/query-f9f7a7f7bf87cffd10d68d891874a0a270de769b42747942090f55ac86c78574.json create mode 100644 rust/cloud-storage/.sqlx/query-fa0410f4a8b799f01b4a582582d0baafac16a1058e7017d63813abf87b340e4a.json create mode 100644 rust/cloud-storage/.sqlx/query-fa0c2815727b1e1d81f6fc75f7b1b0bd250c9b56ab63138ac60b52e9174c48b1.json create mode 100644 rust/cloud-storage/.sqlx/query-fa1bd94a6aca08ddbb856f2c42327e8397a42089600571a38981bfa11b7796d4.json create mode 100644 rust/cloud-storage/.sqlx/query-fa24799c4889a98bfb62a1987d1fe93975169bfeb0cdbecb04dac3f31288570f.json create mode 100644 rust/cloud-storage/.sqlx/query-fa75cf5f948fd99ec052e6bc48a9fc3f7df9188479defc6072394d8d06f4b3c1.json create mode 100644 rust/cloud-storage/.sqlx/query-fab6b92c5781874261b3c3ca673d0bf0ad8155e25cf77aa57dafdcb133f30509.json create mode 100644 rust/cloud-storage/.sqlx/query-faf5532927a794d4e40350f17e0633ba54b8185f1e6aeac32a8d1bfca35a43d3.json create mode 100644 rust/cloud-storage/.sqlx/query-fafa84eb636a2855f683f73eba494f9ce25445a642ef58e1f8a59788a7f374b8.json create mode 100644 rust/cloud-storage/.sqlx/query-fb28d507d6c6e160fdf0e56d5fc7a70bfbf8709ea5473b3ec59e8f547cbeaed9.json create mode 100644 rust/cloud-storage/.sqlx/query-fb8a9157d4c7546ced9440b417c693bcaa3226934fedb2a4348a24ca9568c4ed.json create mode 100644 rust/cloud-storage/.sqlx/query-fc0744ebeb842c69501102f111cb569a6f2b0c2fc0e62e5243a5857e054e61c7.json create mode 100644 rust/cloud-storage/.sqlx/query-fc0a71fe3ce6804e5f2b80e78c108aba496434dc78909951f7c1bd86f9c56ec0.json create mode 100644 rust/cloud-storage/.sqlx/query-fc6df4dc3c0f82de02b70975338d7455df93799b12af38d50bb85d81391861c3.json create mode 100644 rust/cloud-storage/.sqlx/query-fc8a4a51536361c5b5c0a742ba268fff2908654b8bb53923320e7fabe244b467.json create mode 100644 rust/cloud-storage/.sqlx/query-fc9cc90bb37368b293d46d43efd16c178a9865c5926e4195249eb22e2a4a91b3.json create mode 100644 rust/cloud-storage/.sqlx/query-fcd4b67db8a3a8de51b0bb55880c5934f900adbadcc5549165e709cb1cd345b5.json create mode 100644 rust/cloud-storage/.sqlx/query-fd2b153cf0275acd708641fc7908abfce69d431447fcbf846e60aa60febb1433.json create mode 100644 rust/cloud-storage/.sqlx/query-fd65e80e68a17871a3a3ef4bd1bab20faaf6ba24f55172486a74aaec3da480f4.json create mode 100644 rust/cloud-storage/.sqlx/query-fd9545dca362a8cdf1b3189af6277d724c16d6068b7ab828c2eb604617227113.json create mode 100644 rust/cloud-storage/.sqlx/query-fe93b3b50a3a64b8b354903858cfef2cdff408625fa1a592977996a81e8b3f3c.json create mode 100644 rust/cloud-storage/.sqlx/query-ff0ad36a3e9b991dfd04335db13c6bec2f121b2afb9c5c1fa39c2d804cb71286.json create mode 100644 rust/cloud-storage/.sqlx/query-ff3cfaae68201d92e5a587defc0b23eddb2d7a5a8a1572ef33f3040f8e0d671b.json create mode 100644 rust/cloud-storage/.sqlx/query-ff54b7462bad2c7811807786e3b57f3b77a2108138b267fd97144edad023be1c.json create mode 100644 rust/cloud-storage/.sqlx/query-ff7d21bb92d1ed078738e8190acee79c3e0b64c8c4a507719aa78405325cad76.json create mode 100644 rust/cloud-storage/.sqlx/query-ff9a8fc2c134909f51787e9bbc3e541dddf035820810dbf1b1a6feacfeb0e431.json create mode 100644 rust/cloud-storage/.sqlx/query-ffb324854a460dd540e7c0849f87741bc7947c8473dba0fb39c61ee8be80950c.json diff --git a/rust/cloud-storage/.sqlx/query-000c1235f8bd55c9dd179d10421e262d6e096bc1a8547f5da22596dbc56e0ddc.json b/rust/cloud-storage/.sqlx/query-000c1235f8bd55c9dd179d10421e262d6e096bc1a8547f5da22596dbc56e0ddc.json new file mode 100644 index 0000000000..28048605a8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-000c1235f8bd55c9dd179d10421e262d6e096bc1a8547f5da22596dbc56e0ddc.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n COUNT(DISTINCT cm.id) AS ai_chat_messages,\n COUNT(DISTINCT d.id) AS documents\n FROM \"User\" u\n LEFT JOIN \"Chat\" c ON c.\"userId\" = u.id AND c.\"deletedAt\" IS NULL\n LEFT JOIN \"ChatMessage\" cm ON cm.\"chatId\" = c.id AND cm.role = 'user'\n LEFT JOIN \"Document\" d ON d.\"owner\" = u.id AND d.\"deletedAt\" IS NULL\n WHERE u.id = $1;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "ai_chat_messages", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "documents", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null, + null + ] + }, + "hash": "000c1235f8bd55c9dd179d10421e262d6e096bc1a8547f5da22596dbc56e0ddc" +} diff --git a/rust/cloud-storage/.sqlx/query-000dcd3c4befc3975adf3bee932023bec273d62d6c2f233c3236ffebbfaf5810.json b/rust/cloud-storage/.sqlx/query-000dcd3c4befc3975adf3bee932023bec273d62d6c2f233c3236ffebbfaf5810.json new file mode 100644 index 0000000000..02036afbf1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-000dcd3c4befc3975adf3bee932023bec273d62d6c2f233c3236ffebbfaf5810.json @@ -0,0 +1,66 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n a.channel_id AS \"channel_id: uuid::Uuid\",\n c.name AS \"channel_name?\", -- Option\n a.message_id AS \"message_id: uuid::Uuid\",\n m.thread_id AS \"thread_id?: uuid::Uuid\",\n m.sender_id AS \"sender_id!\", -- String\n m.content AS \"message_content!\", -- String\n m.created_at AS \"message_created_at!: chrono::DateTime\",\n a.created_at AS \"attachment_created_at!: chrono::DateTime\"\n FROM comms_attachments a\n JOIN comms_messages m ON a.message_id = m.id\n JOIN comms_channels c ON a.channel_id = c.id\n JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE a.entity_type = $1\n AND a.entity_id = $2\n AND cp.user_id = $3\n AND cp.left_at IS NULL\n AND m.deleted_at IS NULL\n ORDER BY a.created_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_name?", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "message_id: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "thread_id?: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "sender_id!", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "message_content!", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "message_created_at!: chrono::DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "attachment_created_at!: chrono::DateTime", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text" + ] + }, + "nullable": [ + false, + true, + false, + true, + false, + false, + false, + false + ] + }, + "hash": "000dcd3c4befc3975adf3bee932023bec273d62d6c2f233c3236ffebbfaf5810" +} diff --git a/rust/cloud-storage/.sqlx/query-00b50429eacf802503b639b2dc362bbdbf3d29b375b73ca25f7720941929f10b.json b/rust/cloud-storage/.sqlx/query-00b50429eacf802503b639b2dc362bbdbf3d29b375b73ca25f7720941929f10b.json new file mode 100644 index 0000000000..3cb6780373 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-00b50429eacf802503b639b2dc362bbdbf3d29b375b73ca25f7720941929f10b.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH RECURSIVE project_path AS (\n SELECT\n p.id,\n p.name,\n p.\"userId\",\n p.\"parentId\",\n p.\"updatedAt\",\n ARRAY[p.name] as path\n FROM \"Project\" p\n WHERE p.id = ANY($1)\n\n UNION ALL\n\n SELECT\n pp.id,\n pp.name,\n pp.\"userId\",\n parent.\"parentId\",\n pp.\"updatedAt\",\n ARRAY[parent.name] || pp.path as path\n FROM project_path pp\n JOIN \"Project\" parent ON pp.\"parentId\" = parent.id\n )\n SELECT DISTINCT ON (id)\n id as \"id!\",\n name as \"name!\",\n \"userId\" as \"owner!\",\n path as \"path!\",\n \"updatedAt\"::timestamptz as \"updated_at\"\n FROM project_path\n WHERE \"parentId\" IS NULL\n ORDER BY id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "path!", + "type_info": "TextArray" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + null, + null, + null, + null, + null + ] + }, + "hash": "00b50429eacf802503b639b2dc362bbdbf3d29b375b73ca25f7720941929f10b" +} diff --git a/rust/cloud-storage/.sqlx/query-012063ce1220cd6f1b04eeefa088324d50ac472be760c0efe10b5060b0878c75.json b/rust/cloud-storage/.sqlx/query-012063ce1220cd6f1b04eeefa088324d50ac472be760c0efe10b5060b0878c75.json new file mode 100644 index 0000000000..4a8de045bb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-012063ce1220cd6f1b04eeefa088324d50ac472be760c0efe10b5060b0878c75.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT child_macro_id\n FROM macro_user_links\n WHERE primary_macro_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "child_macro_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "012063ce1220cd6f1b04eeefa088324d50ac472be760c0efe10b5060b0878c75" +} diff --git a/rust/cloud-storage/.sqlx/query-014d3b9b1509bfcd1b11c8c0ef8fe4534c4caa33640876469811d19d64a9b7d0.json b/rust/cloud-storage/.sqlx/query-014d3b9b1509bfcd1b11c8c0ef8fe4534c4caa33640876469811d19d64a9b7d0.json new file mode 100644 index 0000000000..1e9e030596 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-014d3b9b1509bfcd1b11c8c0ef8fe4534c4caa33640876469811d19d64a9b7d0.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT email\n FROM \"BlockedEmail\"\n WHERE email = ANY($1::text[])\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "014d3b9b1509bfcd1b11c8c0ef8fe4534c4caa33640876469811d19d64a9b7d0" +} diff --git a/rust/cloud-storage/.sqlx/query-015a45b5c16b4bcc135372478d585af4ce10f5f6ae5e3578637b66655ea6d67e.json b/rust/cloud-storage/.sqlx/query-015a45b5c16b4bcc135372478d585af4ce10f5f6ae5e3578637b66655ea6d67e.json new file mode 100644 index 0000000000..4d54ccbb50 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-015a45b5c16b4bcc135372478d585af4ce10f5f6ae5e3578637b66655ea6d67e.json @@ -0,0 +1,42 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH updated AS (\n UPDATE user_notification\n SET done = $3\n WHERE user_id = $1 AND notification_id = ANY($2) AND deleted_at IS NULL\n RETURNING notification_id, done, seen_at::timestamptz as viewed_at\n )\n SELECT\n updated.notification_id,\n updated.done,\n updated.viewed_at,\n NOW()::timestamptz as \"updated_at!\"\n FROM updated\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "notification_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "done", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "viewed_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "updated_at!", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "UuidArray", + "Bool" + ] + }, + "nullable": [ + false, + false, + null, + null + ] + }, + "hash": "015a45b5c16b4bcc135372478d585af4ce10f5f6ae5e3578637b66655ea6d67e" +} diff --git a/rust/cloud-storage/.sqlx/query-0173a66e06d23847e48967c6fbf38dde11698cc4164819d48cb8f99c1ec3aae3.json b/rust/cloud-storage/.sqlx/query-0173a66e06d23847e48967c6fbf38dde11698cc4164819d48cb8f99c1ec3aae3.json new file mode 100644 index 0000000000..ba6be04006 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0173a66e06d23847e48967c6fbf38dde11698cc4164819d48cb8f99c1ec3aae3.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE user_notification\n SET deleted_at = now()\n WHERE user_id = $1 AND notification_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "0173a66e06d23847e48967c6fbf38dde11698cc4164819d48cb8f99c1ec3aae3" +} diff --git a/rust/cloud-storage/.sqlx/query-01cb0b4b2fbbd64d2be9373d1e9e75b0085f5817ee4c3360f7cea76917fa5740.json b/rust/cloud-storage/.sqlx/query-01cb0b4b2fbbd64d2be9373d1e9e75b0085f5817ee4c3360f7cea76917fa5740.json new file mode 100644 index 0000000000..9e8e5b730a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-01cb0b4b2fbbd64d2be9373d1e9e75b0085f5817ee4c3360f7cea76917fa5740.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE scheduled_action\n SET claimed = $1, updated_at = now()\n WHERE id = $2\n AND (claimed IS NULL OR claimed < $3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Timestamptz", + "Uuid", + "Timestamptz" + ] + }, + "nullable": [] + }, + "hash": "01cb0b4b2fbbd64d2be9373d1e9e75b0085f5817ee4c3360f7cea76917fa5740" +} diff --git a/rust/cloud-storage/.sqlx/query-01ee4e5a80a158998dadbbb6b8fe5d27371757cc6e9019589182150af22b5e36.json b/rust/cloud-storage/.sqlx/query-01ee4e5a80a158998dadbbb6b8fe5d27371757cc6e9019589182150af22b5e36.json new file mode 100644 index 0000000000..7515457926 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-01ee4e5a80a158998dadbbb6b8fe5d27371757cc6e9019589182150af22b5e36.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Pin\" \n WHERE \"pinnedItemId\" = ANY($1) AND \"pinnedItemType\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "Text" + ] + }, + "nullable": [] + }, + "hash": "01ee4e5a80a158998dadbbb6b8fe5d27371757cc6e9019589182150af22b5e36" +} diff --git a/rust/cloud-storage/.sqlx/query-020ad49dd342e529563c91a7d2403de9196482e24765f4b2c93d2da50273d69c.json b/rust/cloud-storage/.sqlx/query-020ad49dd342e529563c91a7d2403de9196482e24765f4b2c93d2da50273d69c.json new file mode 100644 index 0000000000..3b06227108 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-020ad49dd342e529563c91a7d2403de9196482e24765f4b2c93d2da50273d69c.json @@ -0,0 +1,59 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n eaf.attachment_id,\n eaf.message_id AS draft_id,\n ea.provider_attachment_id,\n orig_msg.provider_id AS \"message_provider_id!\",\n ea.filename,\n ea.mime_type,\n ea.size_bytes\n FROM email_attachments_fwd eaf\n JOIN email_messages draft_msg ON eaf.message_id = draft_msg.id\n JOIN email_attachments ea ON eaf.attachment_id = ea.id\n JOIN email_messages orig_msg ON ea.message_id = orig_msg.id\n WHERE eaf.message_id = $1 AND draft_msg.link_id = $2\n ORDER BY ea.filename ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "attachment_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "draft_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_attachment_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "message_provider_id!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "filename", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "mime_type", + "type_info": "Varchar" + }, + { + "ordinal": 6, + "name": "size_bytes", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true + ] + }, + "hash": "020ad49dd342e529563c91a7d2403de9196482e24765f4b2c93d2da50273d69c" +} diff --git a/rust/cloud-storage/.sqlx/query-02e665cc90a63f1a040b4e5c8acfc2ec9d8f3ebfdcd4947b1349494bc13618aa.json b/rust/cloud-storage/.sqlx/query-02e665cc90a63f1a040b4e5c8acfc2ec9d8f3ebfdcd4947b1349494bc13618aa.json new file mode 100644 index 0000000000..f44cdbac14 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-02e665cc90a63f1a040b4e5c8acfc2ec9d8f3ebfdcd4947b1349494bc13618aa.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM\n in_progress_user_link\n WHERE\n created_at < $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Timestamp" + ] + }, + "nullable": [] + }, + "hash": "02e665cc90a63f1a040b4e5c8acfc2ec9d8f3ebfdcd4947b1349494bc13618aa" +} diff --git a/rust/cloud-storage/.sqlx/query-030974957f30c1fc16d1a6bed0ffc3dcd6d71b2c0029f7f7fa3ef3285e12a8f5.json b/rust/cloud-storage/.sqlx/query-030974957f30c1fc16d1a6bed0ffc3dcd6d71b2c0029f7f7fa3ef3285e12a8f5.json new file mode 100644 index 0000000000..7cbe7bbe84 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-030974957f30c1fc16d1a6bed0ffc3dcd6d71b2c0029f7f7fa3ef3285e12a8f5.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"UserHistory\" WHERE \"itemId\" = ANY($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "030974957f30c1fc16d1a6bed0ffc3dcd6d71b2c0029f7f7fa3ef3285e12a8f5" +} diff --git a/rust/cloud-storage/.sqlx/query-03126b7a70835aac508c3f236c9e5bcd98c0df2596f1d098c08cd4308583f307.json b/rust/cloud-storage/.sqlx/query-03126b7a70835aac508c3f236c9e5bcd98c0df2596f1d098c08cd4308583f307.json new file mode 100644 index 0000000000..ee80650f37 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-03126b7a70835aac508c3f236c9e5bcd98c0df2596f1d098c08cd4308583f307.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM entity_access \n WHERE entity_id = $1 \n AND entity_type = $2 \n AND source_type = $3\n AND source_id != $4\n AND granted_from_project_id IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + { + "Custom": { + "name": "entity_access_source_type", + "kind": { + "Enum": [ + "channel", + "team", + "user" + ] + } + } + }, + "Text" + ] + }, + "nullable": [] + }, + "hash": "03126b7a70835aac508c3f236c9e5bcd98c0df2596f1d098c08cd4308583f307" +} diff --git a/rust/cloud-storage/.sqlx/query-0322d49329ea2e6d6bd515f2013a3bc08f9153d9fb263062a46a80cec5c151f0.json b/rust/cloud-storage/.sqlx/query-0322d49329ea2e6d6bd515f2013a3bc08f9153d9fb263062a46a80cec5c151f0.json new file mode 100644 index 0000000000..a446ea39b0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0322d49329ea2e6d6bd515f2013a3bc08f9153d9fb263062a46a80cec5c151f0.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentPermission\" (\"documentId\", \"sharePermissionId\")\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "0322d49329ea2e6d6bd515f2013a3bc08f9153d9fb263062a46a80cec5c151f0" +} diff --git a/rust/cloud-storage/.sqlx/query-033759a1748c41359a8cf5204f457eed63182d21b432b58fd25b7524d1dc0092.json b/rust/cloud-storage/.sqlx/query-033759a1748c41359a8cf5204f457eed63182d21b432b58fd25b7524d1dc0092.json new file mode 100644 index 0000000000..a7919cb370 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-033759a1748c41359a8cf5204f457eed63182d21b432b58fd25b7524d1dc0092.json @@ -0,0 +1,88 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as document_id,\n d.owner as owner,\n d.name as document_name,\n COALESCE(db.id, di.id) as \"document_version_id!\",\n d.\"fileType\" as \"file_type?\",\n d.\"createdAt\"::timestamptz as created_at,\n d.\"updatedAt\"::timestamptz as updated_at,\n d.\"projectId\" as \"project_id?\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n CASE \n WHEN dt.sub_type = 'task' \n AND ep_status.values->'value' ? $2\n THEN true \n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL \n END as \"is_completed\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status \n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id \n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $3\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.\"documentId\",\n i.\"createdAt\",\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON d.\"fileType\" IS DISTINCT FROM 'docx'\n WHERE d.\"projectId\" = $1 AND d.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "document_version_id!", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "file_type?", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "project_id?", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 9, + "name": "is_completed", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + null, + true, + null, + null, + true, + false, + null + ] + }, + "hash": "033759a1748c41359a8cf5204f457eed63182d21b432b58fd25b7524d1dc0092" +} diff --git a/rust/cloud-storage/.sqlx/query-036fca567f0d90c18fe528869a2e734700b1978cdf1a62bcefcb3a9bad3b6eb5.json b/rust/cloud-storage/.sqlx/query-036fca567f0d90c18fe528869a2e734700b1978cdf1a62bcefcb3a9bad3b6eb5.json new file mode 100644 index 0000000000..c3bae2d564 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-036fca567f0d90c18fe528869a2e734700b1978cdf1a62bcefcb3a9bad3b6eb5.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE crm_companies\n SET updated_at = now(),\n first_interaction = CASE\n WHEN $4 THEN LEAST(first_interaction, $2)\n ELSE first_interaction\n END,\n last_interaction = GREATEST(last_interaction, $3)\n WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Timestamptz", + "Timestamptz", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "036fca567f0d90c18fe528869a2e734700b1978cdf1a62bcefcb3a9bad3b6eb5" +} diff --git a/rust/cloud-storage/.sqlx/query-038bbad2a1388db2e9d3da5f107ecc5418ff770838a4acfbd28bec8b78e16874.json b/rust/cloud-storage/.sqlx/query-038bbad2a1388db2e9d3da5f107ecc5418ff770838a4acfbd28bec8b78e16874.json new file mode 100644 index 0000000000..4ca8943e4a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-038bbad2a1388db2e9d3da5f107ecc5418ff770838a4acfbd28bec8b78e16874.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentInstance\" (\"documentId\", \"sha\")\n VALUES ($1, $2)\n RETURNING id, sha, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + null, + null + ] + }, + "hash": "038bbad2a1388db2e9d3da5f107ecc5418ff770838a4acfbd28bec8b78e16874" +} diff --git a/rust/cloud-storage/.sqlx/query-0392a509a0896bd3acc01964a39a4477aeafb381e532657ccb7b11ad05b9038e.json b/rust/cloud-storage/.sqlx/query-0392a509a0896bd3acc01964a39a4477aeafb381e532657ccb7b11ad05b9038e.json new file mode 100644 index 0000000000..c99a6a2f83 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0392a509a0896bd3acc01964a39a4477aeafb381e532657ccb7b11ad05b9038e.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id\n FROM\n \"Document\" d\n WHERE\n d.id = ANY($1)\n AND d.\"fileType\" = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "0392a509a0896bd3acc01964a39a4477aeafb381e532657ccb7b11ad05b9038e" +} diff --git a/rust/cloud-storage/.sqlx/query-039dd65419a635365c37d46699bf115e771ceae4526e0a13928152e2bb1bb9b3.json b/rust/cloud-storage/.sqlx/query-039dd65419a635365c37d46699bf115e771ceae4526e0a13928152e2bb1bb9b3.json new file mode 100644 index 0000000000..887d1272a9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-039dd65419a635365c37d46699bf115e771ceae4526e0a13928152e2bb1bb9b3.json @@ -0,0 +1,107 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n t.id as thread_id,\n -- Return timestamps from the chosen messages directly\n COALESCE(earliest_msg.sent_at, earliest_msg.updated_at) as \"first_message_ts!\",\n COALESCE(latest_msg.sent_at, latest_msg.updated_at) as \"last_message_ts!\",\n -- Last time user viewed this thread\n uh.updated_at as \"viewed_at?\",\n latest_msg.snippet,\n earliest_msg.subject as \"subject?\",\n l.macro_id,\n t.link_id,\n latest_msg.sender as sender,\n latest_msg.pretty_sender as \"pretty_sender!\",\n latest_msg.trash_label as trash_label,\n (\n SELECT m_latest.is_draft\n FROM email_messages m_latest\n WHERE m_latest.thread_id = t.id\n AND m_latest.link_id = t.link_id\n ORDER BY m_latest.internal_date_ts DESC NULLS LAST\n LIMIT 1\n ) AS \"is_draft!\",\n t.is_read,\n t.inbox_visible,\n (\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m_imp.thread_id = t.id\n AND l.link_id = t.link_id\n AND l.name = 'IMPORTANT'\n )\n ) AS \"is_important!\"\n FROM email_threads t\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n LEFT JOIN email_links l ON l.id = t.link_id\n -- LATERAL join for LATEST message\n -- JOIN (Inner) acts as a filter to ensure we only return threads that actually have messages\n JOIN LATERAL (\n SELECT\n m2.snippet,\n m2.sent_at,\n m2.updated_at,\n c.email_address as sender,\n COALESCE(c.name, c.email_address) as pretty_sender,\n EXISTS(\n SELECT 1 \n FROM email_message_labels eml \n JOIN email_labels el ON el.id = eml.label_id \n WHERE eml.message_id = m2.id \n AND el.provider_label_id = 'TRASH'\n ) as trash_label\n FROM email_messages m2\n LEFT JOIN email_contacts c ON c.id = m2.from_contact_id\n WHERE m2.thread_id = t.id\n AND m2.link_id = t.link_id\n ORDER BY\n (CASE WHEN m2.is_draft = false AND m2.sent_at IS NOT NULL THEN 0 ELSE 1 END) ASC,\n COALESCE(m2.sent_at, m2.updated_at) DESC NULLS LAST\n LIMIT 1\n ) latest_msg ON true\n -- LATERAL join for EARLIEST message\n LEFT JOIN LATERAL (\n SELECT\n m3.subject,\n m3.sent_at,\n m3.updated_at\n FROM email_messages m3\n WHERE m3.thread_id = t.id\n AND m3.link_id = t.link_id\n ORDER BY\n -- 1. Priority: Non-drafts with valid sent_at come first (0), everything else is fallback (1)\n (CASE WHEN m3.is_draft = false AND m3.sent_at IS NOT NULL THEN 0 ELSE 1 END) ASC,\n -- 2. Sort by time (Oldest first)\n COALESCE(m3.sent_at, m3.updated_at) ASC NULLS LAST\n LIMIT 1\n ) earliest_msg ON true\n WHERE t.id = ANY($2)\n AND t.link_id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "first_message_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "last_message_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "viewed_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "subject?", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 8, + "name": "sender", + "type_info": "Varchar" + }, + { + "ordinal": 9, + "name": "pretty_sender!", + "type_info": "Varchar" + }, + { + "ordinal": 10, + "name": "trash_label", + "type_info": "Bool" + }, + { + "ordinal": 11, + "name": "is_draft!", + "type_info": "Bool" + }, + { + "ordinal": 12, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 13, + "name": "inbox_visible", + "type_info": "Bool" + }, + { + "ordinal": 14, + "name": "is_important!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "UuidArray" + ] + }, + "nullable": [ + false, + null, + null, + false, + true, + true, + false, + false, + false, + null, + null, + null, + false, + false, + null + ] + }, + "hash": "039dd65419a635365c37d46699bf115e771ceae4526e0a13928152e2bb1bb9b3" +} diff --git a/rust/cloud-storage/.sqlx/query-03a70946dc66c884a7bd84ae9439cb208449ea7048e319ea8475752fe96d650b.json b/rust/cloud-storage/.sqlx/query-03a70946dc66c884a7bd84ae9439cb208449ea7048e319ea8475752fe96d650b.json new file mode 100644 index 0000000000..aeb089b0c1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-03a70946dc66c884a7bd84ae9439cb208449ea7048e319ea8475752fe96d650b.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_message_labels\n WHERE message_id = $1\n AND label_id IN (\n SELECT id FROM email_labels\n WHERE link_id = $2 AND provider_label_id = ANY($3)\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "03a70946dc66c884a7bd84ae9439cb208449ea7048e319ea8475752fe96d650b" +} diff --git a/rust/cloud-storage/.sqlx/query-046aa54b375545002a615891a34147d0d4f2c1e409bf1aa2263b84c88e2deda9.json b/rust/cloud-storage/.sqlx/query-046aa54b375545002a615891a34147d0d4f2c1e409bf1aa2263b84c88e2deda9.json new file mode 100644 index 0000000000..33eecf6bc8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-046aa54b375545002a615891a34147d0d4f2c1e409bf1aa2263b84c88e2deda9.json @@ -0,0 +1,74 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_messages (id, channel_id, sender_id, content, thread_id)\n VALUES ($1, $2, $3, $4, $5)\n RETURNING\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "edited_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text", + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + null, + null + ] + }, + "hash": "046aa54b375545002a615891a34147d0d4f2c1e409bf1aa2263b84c88e2deda9" +} diff --git a/rust/cloud-storage/.sqlx/query-04d60026064c2948d7a528352bb3bb086ba5a39c1dc656aec25f2dd2a4eb249e.json b/rust/cloud-storage/.sqlx/query-04d60026064c2948d7a528352bb3bb086ba5a39c1dc656aec25f2dd2a4eb249e.json new file mode 100644 index 0000000000..97f5b33bb1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-04d60026064c2948d7a528352bb3bb086ba5a39c1dc656aec25f2dd2a4eb249e.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT task_id\n FROM github_pr_tasks\n WHERE github_key = $1\n AND task_id = ANY($2::text[])\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "task_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "04d60026064c2948d7a528352bb3bb086ba5a39c1dc656aec25f2dd2a4eb249e" +} diff --git a/rust/cloud-storage/.sqlx/query-056dbddac4957596098ed8444564f7eb4ee08f375c95d9e40bd879d1439a8342.json b/rust/cloud-storage/.sqlx/query-056dbddac4957596098ed8444564f7eb4ee08f375c95d9e40bd879d1439a8342.json new file mode 100644 index 0000000000..e10b8729ca --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-056dbddac4957596098ed8444564f7eb4ee08f375c95d9e40bd879d1439a8342.json @@ -0,0 +1,62 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT c.owner, t.\"documentId\" as document_id, d.name as document_name, d.\"fileType\" as file_type, dt.sub_type as \"sub_type?: DocumentSubType\", d.owner as document_owner\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n JOIN \"Document\" d ON t.\"documentId\" = d.id\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n WHERE c.id = $1 and c.\"deletedAt\" IS NULL AND t.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "document_owner", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false + ] + }, + "hash": "056dbddac4957596098ed8444564f7eb4ee08f375c95d9e40bd879d1439a8342" +} diff --git a/rust/cloud-storage/.sqlx/query-05c2cf10e578df97df70d5b372d6bd4d5a2baf8313799b21496ce399d3612b1b.json b/rust/cloud-storage/.sqlx/query-05c2cf10e578df97df70d5b372d6bd4d5a2baf8313799b21496ce399d3612b1b.json new file mode 100644 index 0000000000..50082306f7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-05c2cf10e578df97df70d5b372d6bd4d5a2baf8313799b21496ce399d3612b1b.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM mcp_servers\n WHERE user_id = $1 AND url = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "05c2cf10e578df97df70d5b372d6bd4d5a2baf8313799b21496ce399d3612b1b" +} diff --git a/rust/cloud-storage/.sqlx/query-06072374ba47adb6156d2a4d0160ab3ab9a686e9617ce4aea0e768cdc3c78f86.json b/rust/cloud-storage/.sqlx/query-06072374ba47adb6156d2a4d0160ab3ab9a686e9617ce4aea0e768cdc3c78f86.json new file mode 100644 index 0000000000..5d8ba7d6e7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-06072374ba47adb6156d2a4d0160ab3ab9a686e9617ce4aea0e768cdc3c78f86.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n a.id as \"id!: Uuid\",\n a.user_id as \"user_id!: String\",\n a.channel_id as \"channel_id!: Uuid\",\n a.viewed_at as \"viewed_at?: DateTime\",\n a.interacted_at as \"interacted_at?: DateTime\",\n a.created_at as \"created_at!: DateTime\",\n a.updated_at as \"updated_at!: DateTime\"\n FROM comms_activity a\n WHERE a.user_id = $1\n ORDER BY\n GREATEST(\n COALESCE(a.viewed_at, '1970-01-01'::timestamp),\n COALESCE(a.interacted_at, '1970-01-01'::timestamp)\n ) DESC,\n a.created_at DESC\n LIMIT 100\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id!: String", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "channel_id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "viewed_at?: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "interacted_at?: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "created_at!: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 6, + "name": "updated_at!: DateTime", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + false, + false + ] + }, + "hash": "06072374ba47adb6156d2a4d0160ab3ab9a686e9617ce4aea0e768cdc3c78f86" +} diff --git a/rust/cloud-storage/.sqlx/query-060ac46a89df4da317917f28ca8d95dc07b98f4a64effa9b76d58089fb0728b1.json b/rust/cloud-storage/.sqlx/query-060ac46a89df4da317917f28ca8d95dc07b98f4a64effa9b76d58089fb0728b1.json new file mode 100644 index 0000000000..d763e29e78 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-060ac46a89df4da317917f28ca8d95dc07b98f4a64effa9b76d58089fb0728b1.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.hidden AS \"hidden!\",\n c.team_id AS \"team_id!\",\n tu.team_role AS \"role!: TeamRole\"\n FROM crm_companies c\n JOIN team_user tu\n ON tu.team_id = c.team_id\n AND tu.user_id = $1\n WHERE c.id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hidden!", + "type_info": "Bool" + }, + { + "ordinal": 1, + "name": "team_id!", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "role!: TeamRole", + "type_info": { + "Custom": { + "name": "team_role", + "kind": { + "Enum": [ + "member", + "admin", + "owner" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "060ac46a89df4da317917f28ca8d95dc07b98f4a64effa9b76d58089fb0728b1" +} diff --git a/rust/cloud-storage/.sqlx/query-062a45b8e7d65006120b1369981c4e04e513e99855ca9dab076768d43e189a80.json b/rust/cloud-storage/.sqlx/query-062a45b8e7d65006120b1369981c4e04e513e99855ca9dab076768d43e189a80.json new file mode 100644 index 0000000000..22a0249ea8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-062a45b8e7d65006120b1369981c4e04e513e99855ca9dab076768d43e189a80.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChatMessage\" (\"id\", \"chatId\", \"content\", \"role\", \"model\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING id;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Jsonb", + "Text", + "Text", + "Timestamp", + "Timestamp" + ] + }, + "nullable": [ + false + ] + }, + "hash": "062a45b8e7d65006120b1369981c4e04e513e99855ca9dab076768d43e189a80" +} diff --git a/rust/cloud-storage/.sqlx/query-064772b7d3d47e82f044f6efd03f52f8cc0083e99d30810753539a5df539d94d.json b/rust/cloud-storage/.sqlx/query-064772b7d3d47e82f044f6efd03f52f8cc0083e99d30810753539a5df539d94d.json new file mode 100644 index 0000000000..0f25e57f4c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-064772b7d3d47e82f044f6efd03f52f8cc0083e99d30810753539a5df539d94d.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Document\" (owner, name, \"fileType\", \"projectId\", \"createdAt\", \"updatedAt\") \n VALUES ($1, $2, $3, $4, $5, $5)\n RETURNING id;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Text", + "Timestamp" + ] + }, + "nullable": [ + false + ] + }, + "hash": "064772b7d3d47e82f044f6efd03f52f8cc0083e99d30810753539a5df539d94d" +} diff --git a/rust/cloud-storage/.sqlx/query-06a72bfcfbcc5f5bbed6cd093436309607f9375d2ba7b151e9dc1a8493f88e44.json b/rust/cloud-storage/.sqlx/query-06a72bfcfbcc5f5bbed6cd093436309607f9375d2ba7b151e9dc1a8493f88e44.json new file mode 100644 index 0000000000..4c5afc274a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-06a72bfcfbcc5f5bbed6cd093436309607f9375d2ba7b151e9dc1a8493f88e44.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM notification_user_device_registration\n WHERE device_endpoint = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "06a72bfcfbcc5f5bbed6cd093436309607f9375d2ba7b151e9dc1a8493f88e44" +} diff --git a/rust/cloud-storage/.sqlx/query-0710b66e8a6608c340848ad6295fc012f06f1c298d1b287eebd7be0b89766702.json b/rust/cloud-storage/.sqlx/query-0710b66e8a6608c340848ad6295fc012f06f1c298d1b287eebd7be0b89766702.json new file mode 100644 index 0000000000..40ba2008c6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0710b66e8a6608c340848ad6295fc012f06f1c298d1b287eebd7be0b89766702.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM comms_channel_participants\n WHERE channel_id = $1 AND user_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "0710b66e8a6608c340848ad6295fc012f06f1c298d1b287eebd7be0b89766702" +} diff --git a/rust/cloud-storage/.sqlx/query-07436aee1f392392f500a116348f388ce48e6b8c596f420af1c837cf9572dcdb.json b/rust/cloud-storage/.sqlx/query-07436aee1f392392f500a116348f388ce48e6b8c596f420af1c837cf9572dcdb.json new file mode 100644 index 0000000000..80fe803c31 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-07436aee1f392392f500a116348f388ce48e6b8c596f420af1c837cf9572dcdb.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n select name from \"Project\" where id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "07436aee1f392392f500a116348f388ce48e6b8c596f420af1c837cf9572dcdb" +} diff --git a/rust/cloud-storage/.sqlx/query-0744566104aa67d5e88c96c3f1e52eb15603cfb48029d43dc507b9012088517b.json b/rust/cloud-storage/.sqlx/query-0744566104aa67d5e88c96c3f1e52eb15603cfb48029d43dc507b9012088517b.json new file mode 100644 index 0000000000..acdd919ddd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0744566104aa67d5e88c96c3f1e52eb15603cfb48029d43dc507b9012088517b.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT paying\n FROM team\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "paying", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "0744566104aa67d5e88c96c3f1e52eb15603cfb48029d43dc507b9012088517b" +} diff --git a/rust/cloud-storage/.sqlx/query-077c58347457c72a7f69ff716d27e07c1a4f41d65b619f6f949f18344b78469e.json b/rust/cloud-storage/.sqlx/query-077c58347457c72a7f69ff716d27e07c1a4f41d65b619f6f949f18344b78469e.json new file mode 100644 index 0000000000..7b6dd846ac --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-077c58347457c72a7f69ff716d27e07c1a4f41d65b619f6f949f18344b78469e.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentBom\" (\"documentId\")\n VALUES ($1)\n RETURNING id;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "077c58347457c72a7f69ff716d27e07c1a4f41d65b619f6f949f18344b78469e" +} diff --git a/rust/cloud-storage/.sqlx/query-07831ac2c19539d4422c940e56add36cfd36e05ad43cfa0cea3654dd0d5ca08a.json b/rust/cloud-storage/.sqlx/query-07831ac2c19539d4422c940e56add36cfd36e05ad43cfa0cea3654dd0d5ca08a.json new file mode 100644 index 0000000000..46a9e1a12d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-07831ac2c19539d4422c940e56add36cfd36e05ad43cfa0cea3654dd0d5ca08a.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Chat\"\n WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "07831ac2c19539d4422c940e56add36cfd36e05ad43cfa0cea3654dd0d5ca08a" +} diff --git a/rust/cloud-storage/.sqlx/query-07c340da8c4771fa651aee608e8b7d15d9f0a638566899c59aae12491ed5b490.json b/rust/cloud-storage/.sqlx/query-07c340da8c4771fa651aee608e8b7d15d9f0a638566899c59aae12491ed5b490.json new file mode 100644 index 0000000000..4d5b220144 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-07c340da8c4771fa651aee608e8b7d15d9f0a638566899c59aae12491ed5b490.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Comment\" (\"threadId\", \"owner\", \"sender\", \"text\", \"createdAt\", \"updatedAt\", \"order\")\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8", + "Text", + "Text", + "Text", + "Timestamp", + "Timestamp", + "Int4" + ] + }, + "nullable": [ + false + ] + }, + "hash": "07c340da8c4771fa651aee608e8b7d15d9f0a638566899c59aae12491ed5b490" +} diff --git a/rust/cloud-storage/.sqlx/query-07feb08ae2f8494b1a9043b878ac356af9e557d3b3d67a1a9cf2f07d292883c2.json b/rust/cloud-storage/.sqlx/query-07feb08ae2f8494b1a9043b878ac356af9e557d3b3d67a1a9cf2f07d292883c2.json new file mode 100644 index 0000000000..d7baab4a42 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-07feb08ae2f8494b1a9043b878ac356af9e557d3b3d67a1a9cf2f07d292883c2.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH ordered AS (\n SELECT\n segment_id,\n speaker_id,\n diarized_speaker_id,\n voice_id,\n content,\n started_at,\n ended_at,\n sequence_num,\n LAG(speaker_id) OVER w AS prev_speaker_id,\n LAG(diarized_speaker_id) OVER w AS prev_diarized_speaker_id,\n LAG(voice_id) OVER w AS prev_voice_id,\n LAG(ended_at) OVER w AS prev_ended_at\n FROM call_transcripts\n WHERE call_id = $2\n WINDOW w AS (ORDER BY sequence_num)\n ),\n marked AS (\n SELECT\n segment_id,\n speaker_id,\n diarized_speaker_id,\n voice_id,\n content,\n started_at,\n ended_at,\n sequence_num,\n CASE\n WHEN prev_speaker_id IS NOT NULL\n AND speaker_id = prev_speaker_id\n AND diarized_speaker_id IS NOT DISTINCT FROM prev_diarized_speaker_id\n AND voice_id IS NOT DISTINCT FROM prev_voice_id\n AND prev_ended_at IS NOT NULL\n AND started_at - prev_ended_at <= INTERVAL '5 seconds'\n THEN 0\n ELSE 1\n END AS is_new_group\n FROM ordered\n ),\n grouped AS (\n SELECT\n segment_id,\n speaker_id,\n diarized_speaker_id,\n voice_id,\n content,\n started_at,\n ended_at,\n sequence_num,\n SUM(is_new_group) OVER (ORDER BY sequence_num) AS group_id\n FROM marked\n )\n INSERT INTO call_record_transcripts (call_record_id, segment_id, speaker_id, diarized_speaker_id, voice_id, content, started_at, ended_at, sequence_num)\n SELECT\n $1,\n MIN(segment_id),\n MIN(speaker_id),\n MIN(diarized_speaker_id),\n -- voice_id is UUID (no MIN); all rows in a group share the same value via IS NOT DISTINCT FROM.\n (array_agg(voice_id ORDER BY sequence_num))[1],\n STRING_AGG(content, ' ' ORDER BY sequence_num),\n MIN(started_at),\n MAX(ended_at),\n MIN(sequence_num)\n FROM grouped\n GROUP BY group_id\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "07feb08ae2f8494b1a9043b878ac356af9e557d3b3d67a1a9cf2f07d292883c2" +} diff --git a/rust/cloud-storage/.sqlx/query-081e71f5dae75d12f512d95febfffe28cdc4f8cc83542bf69b8c502b4892a6da.json b/rust/cloud-storage/.sqlx/query-081e71f5dae75d12f512d95febfffe28cdc4f8cc83542bf69b8c502b4892a6da.json new file mode 100644 index 0000000000..df417ff277 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-081e71f5dae75d12f512d95febfffe28cdc4f8cc83542bf69b8c502b4892a6da.json @@ -0,0 +1,173 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id,\n m.provider_id,\n m.global_id,\n m.link_id,\n m.thread_id,\n m.provider_thread_id,\n m.replying_to_id,\n m.provider_history_id,\n m.internal_date_ts,\n m.snippet,\n m.size_estimate,\n m.subject,\n m.from_name,\n m.from_contact_id,\n m.sent_at,\n m.has_attachments,\n m.is_read,\n m.is_starred,\n m.is_sent,\n m.is_draft,\n NULL::TEXT as body_text,\n NULL::TEXT as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb,\n m.created_at,\n m.updated_at\n FROM\n email_messages m\n WHERE\n m.thread_id = $1 AND m.link_id = $2\n ORDER BY\n m.internal_date_ts DESC NULLS LAST\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 21, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 22, + "name": "body_macro", + "type_info": "Text" + }, + { + "ordinal": 23, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 24, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 25, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + null, + null, + null, + true, + false, + false + ] + }, + "hash": "081e71f5dae75d12f512d95febfffe28cdc4f8cc83542bf69b8c502b4892a6da" +} diff --git a/rust/cloud-storage/.sqlx/query-0876e7623feb7c8f77b58716cbe3e43456fefad97ac0ba38daf2e5e6880bb51b.json b/rust/cloud-storage/.sqlx/query-0876e7623feb7c8f77b58716cbe3e43456fefad97ac0ba38daf2e5e6880bb51b.json new file mode 100644 index 0000000000..10cdcda76b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0876e7623feb7c8f77b58716cbe3e43456fefad97ac0ba38daf2e5e6880bb51b.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE \"Project\" SET \"parentId\"=$2 WHERE \"id\"=$1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "0876e7623feb7c8f77b58716cbe3e43456fefad97ac0ba38daf2e5e6880bb51b" +} diff --git a/rust/cloud-storage/.sqlx/query-08896a23d1261be751853b5cf7553cbe0e8500e8f47233914c020d23d5a1b1b6.json b/rust/cloud-storage/.sqlx/query-08896a23d1261be751853b5cf7553cbe0e8500e8f47233914c020d23d5a1b1b6.json new file mode 100644 index 0000000000..a5f92f9ded --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-08896a23d1261be751853b5cf7553cbe0e8500e8f47233914c020d23d5a1b1b6.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"PdfHighlightAnchor\" (\n \"uuid\", \"documentId\", \"owner\", \"threadId\", \"page\", \"red\", \"green\", \"blue\", \n \"alpha\", \"type\", \"text\", \"pageViewportWidth\", \"pageViewportHeight\"\n ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)\n RETURNING uuid\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "uuid", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Int8", + "Int4", + "Int4", + "Int4", + "Int4", + "Float8", + "Int4", + "Text", + "Float8", + "Float8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "08896a23d1261be751853b5cf7553cbe0e8500e8f47233914c020d23d5a1b1b6" +} diff --git a/rust/cloud-storage/.sqlx/query-0893292d05dc339bc516ddc4e2e27ee0f730dd38e1d82bd2a049d38cb7abb275.json b/rust/cloud-storage/.sqlx/query-0893292d05dc339bc516ddc4e2e27ee0f730dd38e1d82bd2a049d38cb7abb275.json new file mode 100644 index 0000000000..34779cb42e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0893292d05dc339bc516ddc4e2e27ee0f730dd38e1d82bd2a049d38cb7abb275.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id,\n d.name,\n d.owner,\n d.\"fileType\" as \"file_type\",\n d.\"projectId\" as \"project_id\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\"\n FROM\n \"Document\" d\n WHERE\n d.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at!", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + null, + null + ] + }, + "hash": "0893292d05dc339bc516ddc4e2e27ee0f730dd38e1d82bd2a049d38cb7abb275" +} diff --git a/rust/cloud-storage/.sqlx/query-08ff113e378c34c5c4cd00bd47227bb363d4c1d98a2b589c260b9c77fcb94492.json b/rust/cloud-storage/.sqlx/query-08ff113e378c34c5c4cd00bd47227bb363d4c1d98a2b589c260b9c77fcb94492.json new file mode 100644 index 0000000000..ce9bf67d23 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-08ff113e378c34c5c4cd00bd47227bb363d4c1d98a2b589c260b9c77fcb94492.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE user_notification\n SET sent = true\n FROM notification n\n WHERE n.id = user_notification.notification_id\n AND n.event_item_id = ANY($2)\n AND user_notification.user_id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "08ff113e378c34c5c4cd00bd47227bb363d4c1d98a2b589c260b9c77fcb94492" +} diff --git a/rust/cloud-storage/.sqlx/query-0905fbb6644dc89da3bbb8f5119b1d4e83711bdb0670ea238e72097750435056.json b/rust/cloud-storage/.sqlx/query-0905fbb6644dc89da3bbb8f5119b1d4e83711bdb0670ea238e72097750435056.json new file mode 100644 index 0000000000..8bc9baf09d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0905fbb6644dc89da3bbb8f5119b1d4e83711bdb0670ea238e72097750435056.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id\n FROM notification_email_sent\n WHERE user_id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "0905fbb6644dc89da3bbb8f5119b1d4e83711bdb0670ea238e72097750435056" +} diff --git a/rust/cloud-storage/.sqlx/query-0953e38705bd80cf1f053c5287847c2a92639fec6e728a49b1f2a41906adb633.json b/rust/cloud-storage/.sqlx/query-0953e38705bd80cf1f053c5287847c2a92639fec6e728a49b1f2a41906adb633.json new file mode 100644 index 0000000000..ada738a350 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0953e38705bd80cf1f053c5287847c2a92639fec6e728a49b1f2a41906adb633.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Thread\" (\"owner\", \"documentId\", \"createdAt\", \"updatedAt\", \"resolved\")\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Timestamp", + "Timestamp", + "Bool" + ] + }, + "nullable": [ + false + ] + }, + "hash": "0953e38705bd80cf1f053c5287847c2a92639fec6e728a49b1f2a41906adb633" +} diff --git a/rust/cloud-storage/.sqlx/query-096cff82c1f50ae5f4a5699ba9e1f35280fefe178bfc01701fc09b8962def475.json b/rust/cloud-storage/.sqlx/query-096cff82c1f50ae5f4a5699ba9e1f35280fefe178bfc01701fc09b8962def475.json new file mode 100644 index 0000000000..e4fd6f14ab --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-096cff82c1f50ae5f4a5699ba9e1f35280fefe178bfc01701fc09b8962def475.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(id) AS \"count!\"\n FROM comms_messages\n WHERE channel_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count!", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "096cff82c1f50ae5f4a5699ba9e1f35280fefe178bfc01701fc09b8962def475" +} diff --git a/rust/cloud-storage/.sqlx/query-099d255a2a214f5c4ed3ee9d5d8389dfd3ad004eb3572fb7d724b407bdb2c2e3.json b/rust/cloud-storage/.sqlx/query-099d255a2a214f5c4ed3ee9d5d8389dfd3ad004eb3572fb7d724b407bdb2c2e3.json new file mode 100644 index 0000000000..5c08a070c2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-099d255a2a214f5c4ed3ee9d5d8389dfd3ad004eb3572fb7d724b407bdb2c2e3.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS(\n SELECT 1\n FROM email_messages\n WHERE id = $1 AND link_id = $2 AND is_draft = true\n ) as \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "099d255a2a214f5c4ed3ee9d5d8389dfd3ad004eb3572fb7d724b407bdb2c2e3" +} diff --git a/rust/cloud-storage/.sqlx/query-099d5a355490ebd8fe221bc0526af0a38305c090cdb791212b5968c24ae5d5f4.json b/rust/cloud-storage/.sqlx/query-099d5a355490ebd8fe221bc0526af0a38305c090cdb791212b5968c24ae5d5f4.json new file mode 100644 index 0000000000..6f547edaa0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-099d5a355490ebd8fe221bc0526af0a38305c090cdb791212b5968c24ae5d5f4.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE calls\n SET recording_started_at = $2\n WHERE egress_id = $1\n AND recording_started_at IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Timestamptz" + ] + }, + "nullable": [] + }, + "hash": "099d5a355490ebd8fe221bc0526af0a38305c090cdb791212b5968c24ae5d5f4" +} diff --git a/rust/cloud-storage/.sqlx/query-09dd0c12a8b30ba045caacad3927e6d7edfba61d784244a01f9d233d9b753dcb.json b/rust/cloud-storage/.sqlx/query-09dd0c12a8b30ba045caacad3927e6d7edfba61d784244a01f9d233d9b753dcb.json new file mode 100644 index 0000000000..6e8e4fde00 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-09dd0c12a8b30ba045caacad3927e6d7edfba61d784244a01f9d233d9b753dcb.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n rop.\"permissionId\" as permission_id\n FROM \"User\" u\n JOIN \"RolesOnUsers\" ru ON ru.\"userId\" = u.id\n JOIN \"RolesOnPermissions\" rop ON rop.\"roleId\" = ru.\"roleId\"\n WHERE u.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "permission_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "09dd0c12a8b30ba045caacad3927e6d7edfba61d784244a01f9d233d9b753dcb" +} diff --git a/rust/cloud-storage/.sqlx/query-09f6737b4e22a31ee50c69992a0f16140eb27339ca118ef7a6f063e113d78361.json b/rust/cloud-storage/.sqlx/query-09f6737b4e22a31ee50c69992a0f16140eb27339ca118ef7a6f063e113d78361.json new file mode 100644 index 0000000000..097d5e8c23 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-09f6737b4e22a31ee50c69992a0f16140eb27339ca118ef7a6f063e113d78361.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"RolesOnUsers\" WHERE \"userId\" = $1 AND \"roleId\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "09f6737b4e22a31ee50c69992a0f16140eb27339ca118ef7a6f063e113d78361" +} diff --git a/rust/cloud-storage/.sqlx/query-0a1f3835d8dd57e120b0378134d98858f2ba5ed410765ffca1b03abb05c7b098.json b/rust/cloud-storage/.sqlx/query-0a1f3835d8dd57e120b0378134d98858f2ba5ed410765ffca1b03abb05c7b098.json new file mode 100644 index 0000000000..a13e3d6b24 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0a1f3835d8dd57e120b0378134d98858f2ba5ed410765ffca1b03abb05c7b098.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM\n in_progress_user_link\n WHERE\n id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "0a1f3835d8dd57e120b0378134d98858f2ba5ed410765ffca1b03abb05c7b098" +} diff --git a/rust/cloud-storage/.sqlx/query-0a4d1f2c9890cc537fde22835fc5298215a79e06fd983ac9a13f52836719e8fc.json b/rust/cloud-storage/.sqlx/query-0a4d1f2c9890cc537fde22835fc5298215a79e06fd983ac9a13f52836719e8fc.json new file mode 100644 index 0000000000..9efa7fb5d4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0a4d1f2c9890cc537fde22835fc5298215a79e06fd983ac9a13f52836719e8fc.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentText\" (\"documentId\", \"content\", \"tokenCount\")\n SELECT $1, content, \"tokenCount\" FROM \"DocumentText\"\n WHERE \"documentId\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "0a4d1f2c9890cc537fde22835fc5298215a79e06fd983ac9a13f52836719e8fc" +} diff --git a/rust/cloud-storage/.sqlx/query-0a4ef2f94648e1a6de6dad96e942a9b987f96526f5865fcc9c43f6179567a891.json b/rust/cloud-storage/.sqlx/query-0a4ef2f94648e1a6de6dad96e942a9b987f96526f5865fcc9c43f6179567a891.json new file mode 100644 index 0000000000..cbaea857b8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0a4ef2f94648e1a6de6dad96e942a9b987f96526f5865fcc9c43f6179567a891.json @@ -0,0 +1,72 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n ct.id,\n ct.company_id,\n ct.email,\n ct.name,\n ct.hidden,\n ct.first_interaction,\n ct.last_interaction,\n ct.created_at,\n ct.updated_at\n FROM crm_contacts ct\n JOIN crm_companies co ON co.id = ct.company_id\n WHERE ct.id = $1\n AND co.team_id = $2\n AND ($3 OR (ct.hidden = FALSE AND co.hidden = FALSE))\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "company_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "email", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "hidden", + "type_info": "Bool" + }, + { + "ordinal": 5, + "name": "first_interaction", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "last_interaction", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Bool" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false, + false, + false, + false + ] + }, + "hash": "0a4ef2f94648e1a6de6dad96e942a9b987f96526f5865fcc9c43f6179567a891" +} diff --git a/rust/cloud-storage/.sqlx/query-0a5d8edd85634f5ecdc0a97f86e470a4e91ef06ee2baf734cacc500df5f9cd19.json b/rust/cloud-storage/.sqlx/query-0a5d8edd85634f5ecdc0a97f86e470a4e91ef06ee2baf734cacc500df5f9cd19.json new file mode 100644 index 0000000000..7959c797e7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0a5d8edd85634f5ecdc0a97f86e470a4e91ef06ee2baf734cacc500df5f9cd19.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT \"id\" as user_id, \"organizationId\" as \"organization_id?\" FROM \"User\" WHERE \"email\" = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "organization_id?", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "0a5d8edd85634f5ecdc0a97f86e470a4e91ef06ee2baf734cacc500df5f9cd19" +} diff --git a/rust/cloud-storage/.sqlx/query-0a98076ae0ee8aa572e7a73b97a4c7fb8a88979a966df92c698b295b8e3e28e0.json b/rust/cloud-storage/.sqlx/query-0a98076ae0ee8aa572e7a73b97a4c7fb8a88979a966df92c698b295b8e3e28e0.json new file mode 100644 index 0000000000..af279318b7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0a98076ae0ee8aa572e7a73b97a4c7fb8a88979a966df92c698b295b8e3e28e0.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id as chat_id,\n c.name as chat_name,\n c.\"userId\" as owner,\n c.\"updatedAt\"::timestamptz as \"updated_at\"\n FROM\n \"Chat\" c\n WHERE\n c.\"id\" = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "chat_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "chat_name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + false, + false, + null + ] + }, + "hash": "0a98076ae0ee8aa572e7a73b97a4c7fb8a88979a966df92c698b295b8e3e28e0" +} diff --git a/rust/cloud-storage/.sqlx/query-0af2bfac1a41e4dbd3c7956d306ffab02e9aee53b37e07531426a068007403ec.json b/rust/cloud-storage/.sqlx/query-0af2bfac1a41e4dbd3c7956d306ffab02e9aee53b37e07531426a068007403ec.json new file mode 100644 index 0000000000..a247c24f9c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0af2bfac1a41e4dbd3c7956d306ffab02e9aee53b37e07531426a068007403ec.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT l.macro_id\n FROM email_threads t\n JOIN email_links l ON t.link_id = l.id\n WHERE t.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "0af2bfac1a41e4dbd3c7956d306ffab02e9aee53b37e07531426a068007403ec" +} diff --git a/rust/cloud-storage/.sqlx/query-0b0ee8515cb079ef1cedbb5d8f254fef2bdc00de80faccc661bc89ffbabc7eb4.json b/rust/cloud-storage/.sqlx/query-0b0ee8515cb079ef1cedbb5d8f254fef2bdc00de80faccc661bc89ffbabc7eb4.json new file mode 100644 index 0000000000..05db2fa7d3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0b0ee8515cb079ef1cedbb5d8f254fef2bdc00de80faccc661bc89ffbabc7eb4.json @@ -0,0 +1,172 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.provider_history_id,\n m.replying_to_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n m.body_text as body_text,\n m.body_html_sanitized as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n JOIN email_links l ON m.link_id = l.id\n WHERE m.id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 21, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 22, + "name": "body_macro", + "type_info": "Text" + }, + { + "ordinal": 23, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 24, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 25, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + true, + true, + null, + true, + false, + false + ] + }, + "hash": "0b0ee8515cb079ef1cedbb5d8f254fef2bdc00de80faccc661bc89ffbabc7eb4" +} diff --git a/rust/cloud-storage/.sqlx/query-0b25861527e4ecd715a759799e7dc2d43865571925e95582689df12c3b02322a.json b/rust/cloud-storage/.sqlx/query-0b25861527e4ecd715a759799e7dc2d43865571925e95582689df12c3b02322a.json new file mode 100644 index 0000000000..9263cd881c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0b25861527e4ecd715a759799e7dc2d43865571925e95582689df12c3b02322a.json @@ -0,0 +1,83 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n link_id,\n fusionauth_user_id,\n threads_requested_limit,\n total_threads,\n threads_retrieved_count,\n status as \"status: db::backfill::BackfillJobStatus\",\n created_at,\n updated_at\n FROM email_backfill_jobs\n WHERE fusionauth_user_id = $1\n AND created_at > NOW() - INTERVAL '24 hours'\n ORDER BY created_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "threads_requested_limit", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "total_threads", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "threads_retrieved_count", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "status: db::backfill::BackfillJobStatus", + "type_info": { + "Custom": { + "name": "email_backfill_job_status", + "kind": { + "Enum": [ + "Init", + "InProgress", + "Complete", + "Cancelled", + "Failed" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + true, + false, + true, + false, + false, + false, + false, + false + ] + }, + "hash": "0b25861527e4ecd715a759799e7dc2d43865571925e95582689df12c3b02322a" +} diff --git a/rust/cloud-storage/.sqlx/query-0b3832a8e650ed74622bbe8ceeb7ead8ceb0d4f0d05e22c9e36113b4cba6e5c3.json b/rust/cloud-storage/.sqlx/query-0b3832a8e650ed74622bbe8ceeb7ead8ceb0d4f0d05e22c9e36113b4cba6e5c3.json new file mode 100644 index 0000000000..5650ce2d29 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0b3832a8e650ed74622bbe8ceeb7ead8ceb0d4f0d05e22c9e36113b4cba6e5c3.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"BlockedEmail\" (email)\n VALUES ($1)\n ON CONFLICT (email) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "0b3832a8e650ed74622bbe8ceeb7ead8ceb0d4f0d05e22c9e36113b4cba6e5c3" +} diff --git a/rust/cloud-storage/.sqlx/query-0be9d386d51f355d6c5ab947fe7ed534f7cf96c18081846fcbfbefa0a515f40b.json b/rust/cloud-storage/.sqlx/query-0be9d386d51f355d6c5ab947fe7ed534f7cf96c18081846fcbfbefa0a515f40b.json new file mode 100644 index 0000000000..e5a541e2c7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0be9d386d51f355d6c5ab947fe7ed534f7cf96c18081846fcbfbefa0a515f40b.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id\n FROM account_merge_request\n WHERE to_merge_macro_user_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "0be9d386d51f355d6c5ab947fe7ed534f7cf96c18081846fcbfbefa0a515f40b" +} diff --git a/rust/cloud-storage/.sqlx/query-0be9fe66d98f68b1d1c3c8f32aef0da52521889a32fce2449d9d7f659835b845.json b/rust/cloud-storage/.sqlx/query-0be9fe66d98f68b1d1c3c8f32aef0da52521889a32fce2449d9d7f659835b845.json new file mode 100644 index 0000000000..78432bc971 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0be9fe66d98f68b1d1c3c8f32aef0da52521889a32fce2449d9d7f659835b845.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"UserHistory\" \n WHERE \"itemId\" = ANY($1) AND \"itemType\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "Text" + ] + }, + "nullable": [] + }, + "hash": "0be9fe66d98f68b1d1c3c8f32aef0da52521889a32fce2449d9d7f659835b845" +} diff --git a/rust/cloud-storage/.sqlx/query-0c129eab69121fd65994c0b50a11f653900045b70bc059b5126905e3cca668fe.json b/rust/cloud-storage/.sqlx/query-0c129eab69121fd65994c0b50a11f653900045b70bc059b5126905e3cca668fe.json new file mode 100644 index 0000000000..b06c45ada8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0c129eab69121fd65994c0b50a11f653900045b70bc059b5126905e3cca668fe.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"PdfHighlightAnchor\"\n SET \"threadId\" = NULL\n WHERE uuid = $1 AND \"deletedAt\" IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "0c129eab69121fd65994c0b50a11f653900045b70bc059b5126905e3cca668fe" +} diff --git a/rust/cloud-storage/.sqlx/query-0c36658e4c00abbd672fd1fa7934cb81f5065482c471fffa2bf248f73782a87c.json b/rust/cloud-storage/.sqlx/query-0c36658e4c00abbd672fd1fa7934cb81f5065482c471fffa2bf248f73782a87c.json new file mode 100644 index 0000000000..75d11599e7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0c36658e4c00abbd672fd1fa7934cb81f5065482c471fffa2bf248f73782a87c.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT \"userId\" as user_id, \"deletedAt\" as deleted_at FROM \"Chat\" WHERE id=$1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "deleted_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "0c36658e4c00abbd672fd1fa7934cb81f5065482c471fffa2bf248f73782a87c" +} diff --git a/rust/cloud-storage/.sqlx/query-0c3bf4ab99e5ef1c2100c82611aeaf4fe7ffe5734a57567dfdfea1a78cfbb3ee.json b/rust/cloud-storage/.sqlx/query-0c3bf4ab99e5ef1c2100c82611aeaf4fe7ffe5734a57567dfdfea1a78cfbb3ee.json new file mode 100644 index 0000000000..f6f9d3a7c1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0c3bf4ab99e5ef1c2100c82611aeaf4fe7ffe5734a57567dfdfea1a78cfbb3ee.json @@ -0,0 +1,65 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n p.\"id\" as \"item_id!\",\n p.\"createdAt\" as \"created_at!\",\n p.\"updatedAt\" as \"updated_at!\",\n p.\"deletedAt\" as \"deleted_at?\",\n p.\"parentId\" as \"parent_project_id?\",\n uh.\"updatedAt\" as \"viewed_at?\",\n p.\"userId\" as \"user_id\",\n p.\"name\"\n FROM\n \"Project\" p\n LEFT JOIN\n \"UserHistory\" uh ON uh.\"itemId\" = p.\"id\"\n AND uh.\"userId\" = $1\n AND uh.\"itemType\" = 'project'\n WHERE\n p.\"id\" = ANY($2)\n ORDER BY\n p.\"updatedAt\" DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "created_at!", + "type_info": "Timestamp" + }, + { + "ordinal": 2, + "name": "updated_at!", + "type_info": "Timestamp" + }, + { + "ordinal": 3, + "name": "deleted_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "parent_project_id?", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "viewed_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 6, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + false, + false, + false + ] + }, + "hash": "0c3bf4ab99e5ef1c2100c82611aeaf4fe7ffe5734a57567dfdfea1a78cfbb3ee" +} diff --git a/rust/cloud-storage/.sqlx/query-0c430068640f24611873989a569d3da039a7e63dfb1a4bab8895c6f18c1b819f.json b/rust/cloud-storage/.sqlx/query-0c430068640f24611873989a569d3da039a7e63dfb1a4bab8895c6f18c1b819f.json new file mode 100644 index 0000000000..077bd1d92f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0c430068640f24611873989a569d3da039a7e63dfb1a4bab8895c6f18c1b819f.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"deletedAt\" as \"deleted_at\"\n FROM \"Chat\"\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "deleted_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true + ] + }, + "hash": "0c430068640f24611873989a569d3da039a7e63dfb1a4bab8895c6f18c1b819f" +} diff --git a/rust/cloud-storage/.sqlx/query-0ca155b0063dd021a80db6b2a9dc2353c6a1dca9e1dc13cc21b3a23d9cd81e92.json b/rust/cloud-storage/.sqlx/query-0ca155b0063dd021a80db6b2a9dc2353c6a1dca9e1dc13cc21b3a23d9cd81e92.json new file mode 100644 index 0000000000..40abab49c5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0ca155b0063dd021a80db6b2a9dc2353c6a1dca9e1dc13cc21b3a23d9cd81e92.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM \"OrganizationInvitation\" WHERE organization_id = $1 AND email = $2", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Text" + ] + }, + "nullable": [] + }, + "hash": "0ca155b0063dd021a80db6b2a9dc2353c6a1dca9e1dc13cc21b3a23d9cd81e92" +} diff --git a/rust/cloud-storage/.sqlx/query-0d38256b23e9ce70797726f76b49889efcf4b3c2fbaec05c395de5e728b0fdbb.json b/rust/cloud-storage/.sqlx/query-0d38256b23e9ce70797726f76b49889efcf4b3c2fbaec05c395de5e728b0fdbb.json new file mode 100644 index 0000000000..a3ceebc60d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0d38256b23e9ce70797726f76b49889efcf4b3c2fbaec05c395de5e728b0fdbb.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n sp.id as id,\n sp.\"isPublic\" as is_public,\n sp.\"publicAccessLevel\" as \"public_access_level?\",\n c.\"userId\" as owner,\n COALESCE(\n json_agg(json_build_object(\n 'channel_id', csp.\"channel_id\",\n 'access_level', csp.\"access_level\"\n )) FILTER (WHERE csp.\"channel_id\" IS NOT NULL),\n '[]'\n ) as \"channel_share_permissions?\"\n FROM\n \"ChatPermission\" cp\n JOIN \"SharePermission\" sp ON cp.\"sharePermissionId\" = sp.id\n JOIN \"Chat\" c ON cp.\"chatId\" = c.id\n LEFT JOIN \"ChannelSharePermission\" csp ON csp.\"share_permission_id\" = sp.id\n WHERE\n cp.\"chatId\" = $1\n GROUP BY\n sp.id, c.\"userId\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "is_public", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "public_access_level?", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "channel_share_permissions?", + "type_info": "Json" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true, + false, + null + ] + }, + "hash": "0d38256b23e9ce70797726f76b49889efcf4b3c2fbaec05c395de5e728b0fdbb" +} diff --git a/rust/cloud-storage/.sqlx/query-0d49ab1fcffce934d215d7d34b80e3334aed9e8d1cb1efc3df8698e024d0aef9.json b/rust/cloud-storage/.sqlx/query-0d49ab1fcffce934d215d7d34b80e3334aed9e8d1cb1efc3df8698e024d0aef9.json new file mode 100644 index 0000000000..305c563dd0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0d49ab1fcffce934d215d7d34b80e3334aed9e8d1cb1efc3df8698e024d0aef9.json @@ -0,0 +1,132 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_labels (\n id,\n link_id,\n provider_label_id,\n name,\n message_list_visibility,\n label_list_visibility,\n type\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n ON CONFLICT (link_id, provider_label_id) DO UPDATE\n SET\n name = EXCLUDED.name,\n message_list_visibility = EXCLUDED.message_list_visibility,\n label_list_visibility = EXCLUDED.label_list_visibility,\n type = EXCLUDED.type\n RETURNING \n id,\n link_id,\n provider_label_id,\n name,\n created_at,\n message_list_visibility as \"message_list_visibility: _\",\n label_list_visibility as \"label_list_visibility: _\",\n type as \"type_: _\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_label_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "message_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_message_list_visibility_enum", + "kind": { + "Enum": [ + "Show", + "Hide" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "label_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_label_list_visibility_enum", + "kind": { + "Enum": [ + "LabelShow", + "LabelShowIfUnread", + "LabelHide" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "type_: _", + "type_info": { + "Custom": { + "name": "email_label_type_enum", + "kind": { + "Enum": [ + "System", + "User" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text", + "Varchar", + { + "Custom": { + "name": "email_message_list_visibility_enum", + "kind": { + "Enum": [ + "Show", + "Hide" + ] + } + } + }, + { + "Custom": { + "name": "email_label_list_visibility_enum", + "kind": { + "Enum": [ + "LabelShow", + "LabelShowIfUnread", + "LabelHide" + ] + } + } + }, + { + "Custom": { + "name": "email_label_type_enum", + "kind": { + "Enum": [ + "System", + "User" + ] + } + } + } + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "0d49ab1fcffce934d215d7d34b80e3334aed9e8d1cb1efc3df8698e024d0aef9" +} diff --git a/rust/cloud-storage/.sqlx/query-0d9d272f0886376c4a756a4296517b933697934a2b3d52e931bcb2f1dc64ac87.json b/rust/cloud-storage/.sqlx/query-0d9d272f0886376c4a756a4296517b933697934a2b3d52e931bcb2f1dc64ac87.json new file mode 100644 index 0000000000..5be688e4c2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0d9d272f0886376c4a756a4296517b933697934a2b3d52e931bcb2f1dc64ac87.json @@ -0,0 +1,64 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, action_id, resource_id, start_time, end_time, is_success, result, created_at\n FROM action_execution_record\n WHERE action_id = $1\n ORDER BY start_time DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "action_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "resource_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "start_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "end_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "is_success", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "result", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + true, + false, + false, + false, + false, + false + ] + }, + "hash": "0d9d272f0886376c4a756a4296517b933697934a2b3d52e931bcb2f1dc64ac87" +} diff --git a/rust/cloud-storage/.sqlx/query-0da786be8ae29e36cd110a8875d838e3b6b8cf4bd6775d083867c733982545dd.json b/rust/cloud-storage/.sqlx/query-0da786be8ae29e36cd110a8875d838e3b6b8cf4bd6775d083867c733982545dd.json new file mode 100644 index 0000000000..e635006372 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0da786be8ae29e36cd110a8875d838e3b6b8cf4bd6775d083867c733982545dd.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Document\" SET \"deletedAt\" = $2 WHERE id = ANY($1);\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "Timestamp" + ] + }, + "nullable": [] + }, + "hash": "0da786be8ae29e36cd110a8875d838e3b6b8cf4bd6775d083867c733982545dd" +} diff --git a/rust/cloud-storage/.sqlx/query-0db3bbe78101fc309c3358271240926ee07c36bf29ff0031813a2fdbe1fd061d.json b/rust/cloud-storage/.sqlx/query-0db3bbe78101fc309c3358271240926ee07c36bf29ff0031813a2fdbe1fd061d.json new file mode 100644 index 0000000000..faedc95f8b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0db3bbe78101fc309c3358271240926ee07c36bf29ff0031813a2fdbe1fd061d.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n sp.id as id,\n sp.\"isPublic\" as is_public,\n sp.\"publicAccessLevel\" as \"public_access_level?\",\n d.\"owner\" as owner,\n COALESCE(\n json_agg(json_build_object(\n 'channel_id', csp.\"channel_id\",\n 'access_level', csp.\"access_level\"\n )) FILTER (WHERE csp.\"channel_id\" IS NOT NULL),\n '[]'\n ) as \"channel_share_permissions?\"\n FROM\n \"DocumentPermission\" dp\n JOIN \"SharePermission\" sp ON dp.\"sharePermissionId\" = sp.id\n JOIN \"Document\" d ON dp.\"documentId\" = d.id\n LEFT JOIN \"ChannelSharePermission\" csp ON csp.\"share_permission_id\" = sp.id\n WHERE\n dp.\"documentId\" = $1\n GROUP BY\n sp.id, d.\"owner\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "is_public", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "public_access_level?", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "channel_share_permissions?", + "type_info": "Json" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true, + false, + null + ] + }, + "hash": "0db3bbe78101fc309c3358271240926ee07c36bf29ff0031813a2fdbe1fd061d" +} diff --git a/rust/cloud-storage/.sqlx/query-0dcbb3a5c0829e285170d8e43e6a6d1246298aa1fc06aba34a9282318841a112.json b/rust/cloud-storage/.sqlx/query-0dcbb3a5c0829e285170d8e43e6a6d1246298aa1fc06aba34a9282318841a112.json new file mode 100644 index 0000000000..5d46bae2e6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0dcbb3a5c0829e285170d8e43e6a6d1246298aa1fc06aba34a9282318841a112.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n u.id as user_profile_id, \n mu.id as macro_user_id\n FROM macro_user mu\n JOIN \"User\" u ON mu.id = u.macro_user_id\n WHERE u.id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_profile_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "macro_user_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "0dcbb3a5c0829e285170d8e43e6a6d1246298aa1fc06aba34a9282318841a112" +} diff --git a/rust/cloud-storage/.sqlx/query-0dd403bdd3475dfb010d5a725be35e76750719785a26e4c56e969fd48c5970b3.json b/rust/cloud-storage/.sqlx/query-0dd403bdd3475dfb010d5a725be35e76750719785a26e4c56e969fd48c5970b3.json new file mode 100644 index 0000000000..63fcd51931 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0dd403bdd3475dfb010d5a725be35e76750719785a26e4c56e969fd48c5970b3.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH RECURSIVE project_hierarchy AS (\n SELECT\n p.id,\n p.\"userId\" as user_id\n FROM \"Project\" p\n WHERE p.id = $1 AND p.\"deletedAt\" IS NOT NULL\n UNION ALL\n SELECT\n sub_p.id,\n sub_p.\"userId\" as user_id\n FROM \"Project\" sub_p\n INNER JOIN project_hierarchy ph ON sub_p.\"parentId\" = ph.id\n WHERE sub_p.\"deletedAt\" IS NOT NULL\n )\n SELECT\n ph.id as \"id!\",\n ph.user_id as \"user_id!\"\n FROM project_hierarchy ph\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "user_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null, + null + ] + }, + "hash": "0dd403bdd3475dfb010d5a725be35e76750719785a26e4c56e969fd48c5970b3" +} diff --git a/rust/cloud-storage/.sqlx/query-0dde9799979e5ae1b4e351a2b8c310950db972cfe6afdf164f822a6b0a6042b8.json b/rust/cloud-storage/.sqlx/query-0dde9799979e5ae1b4e351a2b8c310950db972cfe6afdf164f822a6b0a6042b8.json new file mode 100644 index 0000000000..ba7d99d7d2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0dde9799979e5ae1b4e351a2b8c310950db972cfe6afdf164f822a6b0a6042b8.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT a.uuid, a.\"createdAt\" as created_at, a.\"updatedAt\" as updated_at\n FROM \"PdfHighlightAnchor\" a\n WHERE a.\"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 2, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "0dde9799979e5ae1b4e351a2b8c310950db972cfe6afdf164f822a6b0a6042b8" +} diff --git a/rust/cloud-storage/.sqlx/query-0df754458a7a7e50fd7cdc9a66f170bd25959079efaf0bb0c916acae2234f90d.json b/rust/cloud-storage/.sqlx/query-0df754458a7a7e50fd7cdc9a66f170bd25959079efaf0bb0c916acae2234f90d.json new file mode 100644 index 0000000000..793dff68d7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0df754458a7a7e50fd7cdc9a66f170bd25959079efaf0bb0c916acae2234f90d.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_messages m\n SET\n is_read = $1,\n updated_at = NOW()\n FROM email_links l\n WHERE\n m.id = $2\n AND m.link_id = l.id\n AND l.fusionauth_user_id = $3\n RETURNING m.id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Bool", + "Uuid", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "0df754458a7a7e50fd7cdc9a66f170bd25959079efaf0bb0c916acae2234f90d" +} diff --git a/rust/cloud-storage/.sqlx/query-0e03c9e174ceafd652563ce587e5025e8bf0dd3532b21cc1e2a939c0c26c7927.json b/rust/cloud-storage/.sqlx/query-0e03c9e174ceafd652563ce587e5025e8bf0dd3532b21cc1e2a939c0c26c7927.json new file mode 100644 index 0000000000..03bdd66fc9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0e03c9e174ceafd652563ce587e5025e8bf0dd3532b21cc1e2a939c0c26c7927.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT team_id FROM team_user\n WHERE user_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "team_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "0e03c9e174ceafd652563ce587e5025e8bf0dd3532b21cc1e2a939c0c26c7927" +} diff --git a/rust/cloud-storage/.sqlx/query-0e0422c73b3bdb5c60680cec7581ac905f34c70bd295694a120e8dd7891e3853.json b/rust/cloud-storage/.sqlx/query-0e0422c73b3bdb5c60680cec7581ac905f34c70bd295694a120e8dd7891e3853.json new file mode 100644 index 0000000000..625a77c4c3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0e0422c73b3bdb5c60680cec7581ac905f34c70bd295694a120e8dd7891e3853.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_threads\n SET project_id = $2, updated_at = NOW()\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "0e0422c73b3bdb5c60680cec7581ac905f34c70bd295694a120e8dd7891e3853" +} diff --git a/rust/cloud-storage/.sqlx/query-0e241930c0e8b940ac3f513f8081270a0b93e88f5b7f7f7fc36276b3718b8297.json b/rust/cloud-storage/.sqlx/query-0e241930c0e8b940ac3f513f8081270a0b93e88f5b7f7f7fc36276b3718b8297.json new file mode 100644 index 0000000000..84c6ebbc4b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0e241930c0e8b940ac3f513f8081270a0b93e88f5b7f7f7fc36276b3718b8297.json @@ -0,0 +1,25 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO crm_thread (company_id, contact_id, owner, metadata)\n VALUES ($1, $2, $3, $4)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text", + "Jsonb" + ] + }, + "nullable": [ + false + ] + }, + "hash": "0e241930c0e8b940ac3f513f8081270a0b93e88f5b7f7f7fc36276b3718b8297" +} diff --git a/rust/cloud-storage/.sqlx/query-0e38fa7c2ebae20feb864567132405260eb8fd223e65f4c6da337a8fbe2acc82.json b/rust/cloud-storage/.sqlx/query-0e38fa7c2ebae20feb864567132405260eb8fd223e65f4c6da337a8fbe2acc82.json new file mode 100644 index 0000000000..aa088ef8b7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0e38fa7c2ebae20feb864567132405260eb8fd223e65f4c6da337a8fbe2acc82.json @@ -0,0 +1,27 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE team_user\n SET team_role = $3\n WHERE team_id = $1\n AND user_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + { + "Custom": { + "name": "team_role", + "kind": { + "Enum": [ + "member", + "admin", + "owner" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "0e38fa7c2ebae20feb864567132405260eb8fd223e65f4c6da337a8fbe2acc82" +} diff --git a/rust/cloud-storage/.sqlx/query-0ea8abcb6adfa2a93579879f4bc537c13a9a4e4c313c115a83b0bc98c846db0f.json b/rust/cloud-storage/.sqlx/query-0ea8abcb6adfa2a93579879f4bc537c13a9a4e4c313c115a83b0bc98c846db0f.json new file mode 100644 index 0000000000..ef18ac8a9f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0ea8abcb6adfa2a93579879f4bc537c13a9a4e4c313c115a83b0bc98c846db0f.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE call_records SET recording_key = $2 WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "0ea8abcb6adfa2a93579879f4bc537c13a9a4e4c313c115a83b0bc98c846db0f" +} diff --git a/rust/cloud-storage/.sqlx/query-0eb23959e5def969cff31c097382390a0e9214d8219a3d79f65ea5c66d55121e.json b/rust/cloud-storage/.sqlx/query-0eb23959e5def969cff31c097382390a0e9214d8219a3d79f65ea5c66d55121e.json new file mode 100644 index 0000000000..478db6e5e9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0eb23959e5def969cff31c097382390a0e9214d8219a3d79f65ea5c66d55121e.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentText\" (\"documentId\", \"content\", \"tokenCount\")\n VALUES ($1, $2, $3)\n ON CONFLICT (\"documentId\")\n DO UPDATE SET \"content\" = EXCLUDED.\"content\", \"tokenCount\" = EXCLUDED.\"tokenCount\"\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "0eb23959e5def969cff31c097382390a0e9214d8219a3d79f65ea5c66d55121e" +} diff --git a/rust/cloud-storage/.sqlx/query-0f06d44ac8984b12498f8b41e70d2e692c9a1bec3ec96cd3b2fba1176e075119.json b/rust/cloud-storage/.sqlx/query-0f06d44ac8984b12498f8b41e70d2e692c9a1bec3ec96cd3b2fba1176e075119.json new file mode 100644 index 0000000000..beba999012 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0f06d44ac8984b12498f8b41e70d2e692c9a1bec3ec96cd3b2fba1176e075119.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"roleId\" as id\n FROM \"RolesOnOrganizations\"\n WHERE \"organizationId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false + ] + }, + "hash": "0f06d44ac8984b12498f8b41e70d2e692c9a1bec3ec96cd3b2fba1176e075119" +} diff --git a/rust/cloud-storage/.sqlx/query-0f180165e0d5d8661d2d9a37550c7372d1de26ee74b39b5e9602534174f1f8c5.json b/rust/cloud-storage/.sqlx/query-0f180165e0d5d8661d2d9a37550c7372d1de26ee74b39b5e9602534174f1f8c5.json new file mode 100644 index 0000000000..548cc4391e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0f180165e0d5d8661d2d9a37550c7372d1de26ee74b39b5e9602534174f1f8c5.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id as \"chat_id\",\n \"userId\" as \"user_id\"\n FROM\n \"Chat\"\n WHERE\n \"deletedAt\" IS NULL\n ORDER BY\n \"createdAt\" DESC\n LIMIT $1\n OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "chat_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "0f180165e0d5d8661d2d9a37550c7372d1de26ee74b39b5e9602534174f1f8c5" +} diff --git a/rust/cloud-storage/.sqlx/query-0f43991b34ee9e8bb85f7a8c87ed522daaa36ef9bb9e1eed4ccca12de09f44f0.json b/rust/cloud-storage/.sqlx/query-0f43991b34ee9e8bb85f7a8c87ed522daaa36ef9bb9e1eed4ccca12de09f44f0.json new file mode 100644 index 0000000000..b9e67bdaa7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0f43991b34ee9e8bb85f7a8c87ed522daaa36ef9bb9e1eed4ccca12de09f44f0.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_links\n SET macro_id = $1, updated_at = NOW()\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "0f43991b34ee9e8bb85f7a8c87ed522daaa36ef9bb9e1eed4ccca12de09f44f0" +} diff --git a/rust/cloud-storage/.sqlx/query-0f48cffd910141d7b0d12f55311f30be2d8bb5808322565b29ce0a8db2bf3c14.json b/rust/cloud-storage/.sqlx/query-0f48cffd910141d7b0d12f55311f30be2d8bb5808322565b29ce0a8db2bf3c14.json new file mode 100644 index 0000000000..03287f8f3e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0f48cffd910141d7b0d12f55311f30be2d8bb5808322565b29ce0a8db2bf3c14.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Document\" d\n WHERE d.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "0f48cffd910141d7b0d12f55311f30be2d8bb5808322565b29ce0a8db2bf3c14" +} diff --git a/rust/cloud-storage/.sqlx/query-0fa9fb46a9895ff170c9bbf339ec2369429e7fdc40a531ac5296b5442fa4f5aa.json b/rust/cloud-storage/.sqlx/query-0fa9fb46a9895ff170c9bbf339ec2369429e7fdc40a531ac5296b5442fa4f5aa.json new file mode 100644 index 0000000000..d80c3a400a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0fa9fb46a9895ff170c9bbf339ec2369429e7fdc40a531ac5296b5442fa4f5aa.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id as message_id,\n c.email_address as \"sender!\",\n COALESCE(c.name, c.email_address) as \"pretty_sender!\"\n FROM email_messages m\n LEFT JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.id = ANY($1)\n AND m.link_id = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "sender!", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "pretty_sender!", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "UuidArray" + ] + }, + "nullable": [ + false, + true, + null + ] + }, + "hash": "0fa9fb46a9895ff170c9bbf339ec2369429e7fdc40a531ac5296b5442fa4f5aa" +} diff --git a/rust/cloud-storage/.sqlx/query-0fb8a1f0bcfee684fa393fa7465a17b7345b658528783903597574827fd61dd0.json b/rust/cloud-storage/.sqlx/query-0fb8a1f0bcfee684fa393fa7465a17b7345b658528783903597574827fd61dd0.json new file mode 100644 index 0000000000..f92c09c1ed --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-0fb8a1f0bcfee684fa393fa7465a17b7345b658528783903597574827fd61dd0.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT t.company_id, t.contact_id\n FROM crm_comment c\n JOIN crm_thread t ON t.id = c.thread_id\n WHERE c.id = $1\n AND c.deleted_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "company_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "contact_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + true, + true + ] + }, + "hash": "0fb8a1f0bcfee684fa393fa7465a17b7345b658528783903597574827fd61dd0" +} diff --git a/rust/cloud-storage/.sqlx/query-100d56e0bac5061aa9f43b50e065f04b372963a63e81918d061a0c0ffab89060.json b/rust/cloud-storage/.sqlx/query-100d56e0bac5061aa9f43b50e065f04b372963a63e81918d061a0c0ffab89060.json new file mode 100644 index 0000000000..53d34de890 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-100d56e0bac5061aa9f43b50e065f04b372963a63e81918d061a0c0ffab89060.json @@ -0,0 +1,64 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n t.id as thread_id, \n t.resolved, \n t.\"documentId\" as document_id, \n t.\"createdAt\"::timestamptz as created_at, \n t.\"updatedAt\"::timestamptz as updated_at, \n t.\"deletedAt\"::timestamptz as deleted_at, \n t.metadata, \n t.owner\n FROM \"Thread\" t\n WHERE t.\"id\" = $1\n AND t.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "resolved", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "owner", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + null, + null, + null, + true, + false + ] + }, + "hash": "100d56e0bac5061aa9f43b50e065f04b372963a63e81918d061a0c0ffab89060" +} diff --git a/rust/cloud-storage/.sqlx/query-10843b4044bca618301e755b0b6b5aeca5fd398adc48ed9f755490fa25e7f3f9.json b/rust/cloud-storage/.sqlx/query-10843b4044bca618301e755b0b6b5aeca5fd398adc48ed9f755490fa25e7f3f9.json new file mode 100644 index 0000000000..2c80a4edcb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-10843b4044bca618301e755b0b6b5aeca5fd398adc48ed9f755490fa25e7f3f9.json @@ -0,0 +1,31 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_channels (id, name, owner_id, org_id, team_id, channel_type)\n VALUES ($1, $2, $3, $4, $5, $6)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Varchar", + "Text", + "Int8", + "Uuid", + { + "Custom": { + "name": "comms_channel_type", + "kind": { + "Enum": [ + "public", + "private", + "direct_message", + "team" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "10843b4044bca618301e755b0b6b5aeca5fd398adc48ed9f755490fa25e7f3f9" +} diff --git a/rust/cloud-storage/.sqlx/query-10bf501670966259cfcb441f519bf04a5ff4827980d61db77cf7645ed9bf551b.json b/rust/cloud-storage/.sqlx/query-10bf501670966259cfcb441f519bf04a5ff4827980d61db77cf7645ed9bf551b.json new file mode 100644 index 0000000000..21b13aae0d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-10bf501670966259cfcb441f519bf04a5ff4827980d61db77cf7645ed9bf551b.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH RECURSIVE edges(left_id, right_id) AS (\n SELECT m.task_id, m.duplicate_task_id\n FROM task_duplicate_match m\n JOIN \"Document\" left_document ON left_document.id = m.task_id\n JOIN \"Document\" right_document ON right_document.id = m.duplicate_task_id\n WHERE m.status = 'active'\n AND left_document.\"deletedAt\" IS NULL\n AND right_document.\"deletedAt\" IS NULL\n ),\n component(document_id) AS (\n SELECT DISTINCT unnest($1::text[])\n UNION\n SELECT CASE\n WHEN edges.left_id = component.document_id THEN edges.right_id\n ELSE edges.left_id\n END\n FROM edges\n JOIN component\n ON component.document_id = edges.left_id\n OR component.document_id = edges.right_id\n )\n SELECT DISTINCT document_id AS \"document_id!\"\n FROM component\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + null + ] + }, + "hash": "10bf501670966259cfcb441f519bf04a5ff4827980d61db77cf7645ed9bf551b" +} diff --git a/rust/cloud-storage/.sqlx/query-11a723b710519837eb7643af73af6526dfa6bf93465f9c6708dc95e8237c1f51.json b/rust/cloud-storage/.sqlx/query-11a723b710519837eb7643af73af6526dfa6bf93465f9c6708dc95e8237c1f51.json new file mode 100644 index 0000000000..ce42810756 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-11a723b710519837eb7643af73af6526dfa6bf93465f9c6708dc95e8237c1f51.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"id\" FROM \"Document\" WHERE \"projectId\" = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "11a723b710519837eb7643af73af6526dfa6bf93465f9c6708dc95e8237c1f51" +} diff --git a/rust/cloud-storage/.sqlx/query-11ac63a8975bc8587b4c3b8f64201b8999a0cec4a928d253fb4fa49f78a8626e.json b/rust/cloud-storage/.sqlx/query-11ac63a8975bc8587b4c3b8f64201b8999a0cec4a928d253fb4fa49f78a8626e.json new file mode 100644 index 0000000000..9d4460d0dd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-11ac63a8975bc8587b4c3b8f64201b8999a0cec4a928d253fb4fa49f78a8626e.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO macro_user_links (primary_macro_id, child_macro_id)\n VALUES ($1, $2)\n ON CONFLICT (primary_macro_id, child_macro_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "11ac63a8975bc8587b4c3b8f64201b8999a0cec4a928d253fb4fa49f78a8626e" +} diff --git a/rust/cloud-storage/.sqlx/query-11cffac7d14e962aa00fd0a9a0ca290ad6e8bbce98fe53cd4079791734567928.json b/rust/cloud-storage/.sqlx/query-11cffac7d14e962aa00fd0a9a0ca290ad6e8bbce98fe53cd4079791734567928.json new file mode 100644 index 0000000000..cc0d105dbd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-11cffac7d14e962aa00fd0a9a0ca290ad6e8bbce98fe53cd4079791734567928.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id\n FROM comms_channel_participants\n WHERE channel_id = $1 AND left_at IS NULL\n ORDER BY joined_at ASC, user_id ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "11cffac7d14e962aa00fd0a9a0ca290ad6e8bbce98fe53cd4079791734567928" +} diff --git a/rust/cloud-storage/.sqlx/query-11ddfba613626f54d684c1399279df5c3364e8d3dfc0484cda469086991a64fd.json b/rust/cloud-storage/.sqlx/query-11ddfba613626f54d684c1399279df5c3364e8d3dfc0484cda469086991a64fd.json new file mode 100644 index 0000000000..f8c1b33c14 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-11ddfba613626f54d684c1399279df5c3364e8d3dfc0484cda469086991a64fd.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id as \"chat_id\"\n FROM\n \"Chat\"\n WHERE\n \"deletedAt\" IS NULL\n ORDER BY\n \"createdAt\" ASC\n LIMIT $1\n OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "chat_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "11ddfba613626f54d684c1399279df5c3364e8d3dfc0484cda469086991a64fd" +} diff --git a/rust/cloud-storage/.sqlx/query-11f1046dbd6f8f510a196fe1feedb4bdbfedbde691ebb4aec849a07f6b54d0fc.json b/rust/cloud-storage/.sqlx/query-11f1046dbd6f8f510a196fe1feedb4bdbfedbde691ebb4aec849a07f6b54d0fc.json new file mode 100644 index 0000000000..329f409c49 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-11f1046dbd6f8f510a196fe1feedb4bdbfedbde691ebb4aec849a07f6b54d0fc.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, draft_id, file_name, content_type, sha, size, s3_key\n FROM email_attachments_drafts\n WHERE draft_id = ANY($1)\n ORDER BY draft_id, file_name ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "draft_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "file_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content_type", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "size", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "s3_key", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "11f1046dbd6f8f510a196fe1feedb4bdbfedbde691ebb4aec849a07f6b54d0fc" +} diff --git a/rust/cloud-storage/.sqlx/query-1220fdf68c54c2bbb630bc32b642bccc39501f39821f5a5fac209930e6afd338.json b/rust/cloud-storage/.sqlx/query-1220fdf68c54c2bbb630bc32b642bccc39501f39821f5a5fac209930e6afd338.json new file mode 100644 index 0000000000..4c8372a82b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1220fdf68c54c2bbb630bc32b642bccc39501f39821f5a5fac209930e6afd338.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Document\" SET \"updatedAt\" = NOW()\n WHERE id = $1\n RETURNING id as \"document_id\", owner, \"fileType\" as file_type, name as document_name,\n \"branchedFromId\" as branched_from_id, \"branchedFromVersionId\" as branched_from_version_id,\n \"documentFamilyId\" as document_family_id,\n \"projectId\" as project_id,\n \"deletedAt\"::timestamptz as \"deleted_at\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true, + false, + true, + true, + true, + true, + null + ] + }, + "hash": "1220fdf68c54c2bbb630bc32b642bccc39501f39821f5a5fac209930e6afd338" +} diff --git a/rust/cloud-storage/.sqlx/query-12332b2ea487399f281dbdc5f7c0bddccfdff4da1d53fe8e16c26e825dbc1b14.json b/rust/cloud-storage/.sqlx/query-12332b2ea487399f281dbdc5f7c0bddccfdff4da1d53fe8e16c26e825dbc1b14.json new file mode 100644 index 0000000000..6720c10665 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-12332b2ea487399f281dbdc5f7c0bddccfdff4da1d53fe8e16c26e825dbc1b14.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"EmailThreadPermission\" (\"threadId\", \"sharePermissionId\", \"userId\")\n VALUES ($1, $2, $3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "12332b2ea487399f281dbdc5f7c0bddccfdff4da1d53fe8e16c26e825dbc1b14" +} diff --git a/rust/cloud-storage/.sqlx/query-124901aaedcea50030b2b8039c8ef509d980650a4c5d0fca7053cba0c2543155.json b/rust/cloud-storage/.sqlx/query-124901aaedcea50030b2b8039c8ef509d980650a4c5d0fca7053cba0c2543155.json new file mode 100644 index 0000000000..6923dd89fd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-124901aaedcea50030b2b8039c8ef509d980650a4c5d0fca7053cba0c2543155.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT c.id, LOWER(c.email_address) AS \"email_lower!\"\n FROM email_contacts c\n JOIN email_links el ON el.id = c.link_id\n JOIN team_user tu ON tu.user_id = el.macro_id\n WHERE tu.team_id = $1\n AND LOWER(c.email_address) = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email_lower!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [ + false, + null + ] + }, + "hash": "124901aaedcea50030b2b8039c8ef509d980650a4c5d0fca7053cba0c2543155" +} diff --git a/rust/cloud-storage/.sqlx/query-126bf3c6fc9b29a885703ecfab9a69bc36b7eeee011d09a63b4b44b81f7663df.json b/rust/cloud-storage/.sqlx/query-126bf3c6fc9b29a885703ecfab9a69bc36b7eeee011d09a63b4b44b81f7663df.json new file mode 100644 index 0000000000..23389bd286 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-126bf3c6fc9b29a885703ecfab9a69bc36b7eeee011d09a63b4b44b81f7663df.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM\n in_progress_email_link\n WHERE\n id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "126bf3c6fc9b29a885703ecfab9a69bc36b7eeee011d09a63b4b44b81f7663df" +} diff --git a/rust/cloud-storage/.sqlx/query-127b4b2d2391121a41b63f3ad116bea2be0329fccb27362d4e3a5a37601e0ba0.json b/rust/cloud-storage/.sqlx/query-127b4b2d2391121a41b63f3ad116bea2be0329fccb27362d4e3a5a37601e0ba0.json new file mode 100644 index 0000000000..14b2e4c2c3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-127b4b2d2391121a41b63f3ad116bea2be0329fccb27362d4e3a5a37601e0ba0.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT a.owner, a.\"threadId\" as thread_id, d.owner as document_owner, d.id as document_id\n FROM \"PdfHighlightAnchor\" a\n JOIN \"Document\" d ON a.\"documentId\" = d.id\n WHERE a.uuid = $1 AND a.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "document_owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "document_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + false, + false + ] + }, + "hash": "127b4b2d2391121a41b63f3ad116bea2be0329fccb27362d4e3a5a37601e0ba0" +} diff --git a/rust/cloud-storage/.sqlx/query-12bbf364a130b8f3af7e7bc7f8c64eb026124d2a66d2735b95ef387433cecd03.json b/rust/cloud-storage/.sqlx/query-12bbf364a130b8f3af7e7bc7f8c64eb026124d2a66d2735b95ef387433cecd03.json new file mode 100644 index 0000000000..8bcde4e677 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-12bbf364a130b8f3af7e7bc7f8c64eb026124d2a66d2735b95ef387433cecd03.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT team_id\n FROM team_user\n WHERE user_id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "team_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "12bbf364a130b8f3af7e7bc7f8c64eb026124d2a66d2735b95ef387433cecd03" +} diff --git a/rust/cloud-storage/.sqlx/query-131fdac5ab0aba8955d6900eb7390dd279939a1323b5805eaae071cc500f54dc.json b/rust/cloud-storage/.sqlx/query-131fdac5ab0aba8955d6900eb7390dd279939a1323b5805eaae071cc500f54dc.json new file mode 100644 index 0000000000..5c4540cc5a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-131fdac5ab0aba8955d6900eb7390dd279939a1323b5805eaae071cc500f54dc.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE in_progress_user_link\n SET linked_email = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "131fdac5ab0aba8955d6900eb7390dd279939a1323b5805eaae071cc500f54dc" +} diff --git a/rust/cloud-storage/.sqlx/query-13739c28aac5015e3bb881dbf24f0a657d995d9292dd6cffc385e2f92ec07276.json b/rust/cloud-storage/.sqlx/query-13739c28aac5015e3bb881dbf24f0a657d995d9292dd6cffc385e2f92ec07276.json new file mode 100644 index 0000000000..b1c2763d8b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-13739c28aac5015e3bb881dbf24f0a657d995d9292dd6cffc385e2f92ec07276.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH message_channel AS (\n SELECT channel_id FROM comms_messages WHERE id = $1\n ),\n mentions_to_insert AS (\n SELECT t.entity_type, t.entity_id\n FROM UNNEST($2::text[], $3::text[]) AS t(entity_type, entity_id)\n ),\n inserted_mentions AS (\n INSERT INTO comms_entity_mentions (id, source_entity_type, source_entity_id, entity_type, entity_id, user_id)\n SELECT gen_random_uuid(), 'message', $1::text, m.entity_type, m.entity_id, NULL\n FROM mentions_to_insert m\n WHERE NOT EXISTS (\n SELECT 1 FROM comms_entity_mentions em \n WHERE em.source_entity_type = 'message' \n AND em.source_entity_id = $1::text\n AND em.entity_type = m.entity_type \n AND em.entity_id = m.entity_id\n )\n )\n SELECT DISTINCT cp.user_id\n FROM mentions_to_insert m\n CROSS JOIN message_channel mc\n JOIN comms_channel_participants cp ON m.entity_id = cp.user_id\n WHERE m.entity_type = 'user'\n AND cp.channel_id = mc.channel_id\n AND cp.left_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "13739c28aac5015e3bb881dbf24f0a657d995d9292dd6cffc385e2f92ec07276" +} diff --git a/rust/cloud-storage/.sqlx/query-137986b2287f8a7e8d9023d6f9bfee888a6e18170f84df631df81e3e84158348.json b/rust/cloud-storage/.sqlx/query-137986b2287f8a7e8d9023d6f9bfee888a6e18170f84df631df81e3e84158348.json new file mode 100644 index 0000000000..cbf66c3866 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-137986b2287f8a7e8d9023d6f9bfee888a6e18170f84df631df81e3e84158348.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.id as user_profile_id,\n mui.first_name,\n mui.last_name\n FROM macro_user_info mui\n JOIN \"User\" u ON mui.macro_user_id = u.macro_user_id\n WHERE u.id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_profile_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "first_name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "last_name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + true, + true + ] + }, + "hash": "137986b2287f8a7e8d9023d6f9bfee888a6e18170f84df631df81e3e84158348" +} diff --git a/rust/cloud-storage/.sqlx/query-13a6d39ef2b895cae2162fcf65f7f64a5b303859b36186f4106144a2c5cc23ac.json b/rust/cloud-storage/.sqlx/query-13a6d39ef2b895cae2162fcf65f7f64a5b303859b36186f4106144a2c5cc23ac.json new file mode 100644 index 0000000000..6792d184f7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-13a6d39ef2b895cae2162fcf65f7f64a5b303859b36186f4106144a2c5cc23ac.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id, url, server_name, credentials, enabled\n FROM mcp_servers\n WHERE user_id = $1\n ORDER BY created_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "url", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "server_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "credentials", + "type_info": "Bytea" + }, + { + "ordinal": 4, + "name": "enabled", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + false + ] + }, + "hash": "13a6d39ef2b895cae2162fcf65f7f64a5b303859b36186f4106144a2c5cc23ac" +} diff --git a/rust/cloud-storage/.sqlx/query-13ef9a0dd33e56d64232964dc11b44b0a333958a67d89dfcb1db9dd523a1b837.json b/rust/cloud-storage/.sqlx/query-13ef9a0dd33e56d64232964dc11b44b0a333958a67d89dfcb1db9dd523a1b837.json new file mode 100644 index 0000000000..46afde0329 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-13ef9a0dd33e56d64232964dc11b44b0a333958a67d89dfcb1db9dd523a1b837.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT macro_user_id FROM \"User\" WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "13ef9a0dd33e56d64232964dc11b44b0a333958a67d89dfcb1db9dd523a1b837" +} diff --git a/rust/cloud-storage/.sqlx/query-1400e6024ad92e90369be284cd0ca35a4b9b6c1d70fb86dde1ec83a2314350d2.json b/rust/cloud-storage/.sqlx/query-1400e6024ad92e90369be284cd0ca35a4b9b6c1d70fb86dde1ec83a2314350d2.json new file mode 100644 index 0000000000..31173c10d4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1400e6024ad92e90369be284cd0ca35a4b9b6c1d70fb86dde1ec83a2314350d2.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"macro_user_id\" as \"macro_user_id!\"\n FROM \"User\"\n WHERE \"email\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "1400e6024ad92e90369be284cd0ca35a4b9b6c1d70fb86dde1ec83a2314350d2" +} diff --git a/rust/cloud-storage/.sqlx/query-1411c7b041f6313844a7f5a78c741e2410cce10dc0c7a196e5104e6fa2ae0875.json b/rust/cloud-storage/.sqlx/query-1411c7b041f6313844a7f5a78c741e2410cce10dc0c7a196e5104e6fa2ae0875.json new file mode 100644 index 0000000000..5590b7be29 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1411c7b041f6313844a7f5a78c741e2410cce10dc0c7a196e5104e6fa2ae0875.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO notification_email_unsubscribe (email) VALUES ($1)\n ON CONFLICT (email) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "1411c7b041f6313844a7f5a78c741e2410cce10dc0c7a196e5104e6fa2ae0875" +} diff --git a/rust/cloud-storage/.sqlx/query-1435acbba365796ddcb6ddbef86f4ebf664cffc44082996f6b60a60373c28f75.json b/rust/cloud-storage/.sqlx/query-1435acbba365796ddcb6ddbef86f4ebf664cffc44082996f6b60a60373c28f75.json new file mode 100644 index 0000000000..d2b084cf10 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1435acbba365796ddcb6ddbef86f4ebf664cffc44082996f6b60a60373c28f75.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO entity_properties (id, entity_id, entity_type, property_definition_id, values)\n SELECT \n u.id,\n u.entity_id,\n 'TASK'::property_entity_type,\n u.property_definition_id,\n u.values\n FROM UNNEST(\n $1::UUID[],\n $2::TEXT[],\n $3::UUID[],\n $4::JSONB[]\n ) AS u(id, entity_id, property_definition_id, values)\n ON CONFLICT (entity_id, entity_type, property_definition_id)\n DO UPDATE SET \n values = EXCLUDED.values,\n updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "TextArray", + "UuidArray", + "JsonbArray" + ] + }, + "nullable": [] + }, + "hash": "1435acbba365796ddcb6ddbef86f4ebf664cffc44082996f6b60a60373c28f75" +} diff --git a/rust/cloud-storage/.sqlx/query-14398843140a148be3189f593e689c36283225f47a6b37c197bc543f3fa18703.json b/rust/cloud-storage/.sqlx/query-14398843140a148be3189f593e689c36283225f47a6b37c197bc543f3fa18703.json new file mode 100644 index 0000000000..f73606ba8c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-14398843140a148be3189f593e689c36283225f47a6b37c197bc543f3fa18703.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.thread_id,\n c.email_address as \"email_address!\",\n COALESCE(m.from_name, c.name) as \"name\"\n FROM email_messages m\n JOIN email_contacts c ON m.from_contact_id = c.id\n WHERE m.thread_id = ANY($1) AND m.from_contact_id IS NOT NULL\n ORDER BY m.created_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email_address!", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + null + ] + }, + "hash": "14398843140a148be3189f593e689c36283225f47a6b37c197bc543f3fa18703" +} diff --git a/rust/cloud-storage/.sqlx/query-146fdea46a07193ea84051c9d3300b516be3f85d42ddeaf9cd9d0563e1303201.json b/rust/cloud-storage/.sqlx/query-146fdea46a07193ea84051c9d3300b516be3f85d42ddeaf9cd9d0563e1303201.json new file mode 100644 index 0000000000..660fdb55e4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-146fdea46a07193ea84051c9d3300b516be3f85d42ddeaf9cd9d0563e1303201.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n t.id,\n t.name,\n t.owner_id\n FROM team t\n JOIN team_user tu ON t.id = tu.team_id\n WHERE tu.user_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "146fdea46a07193ea84051c9d3300b516be3f85d42ddeaf9cd9d0563e1303201" +} diff --git a/rust/cloud-storage/.sqlx/query-1490ec3dcbefe6dff27992f93481ee30fef91724dadb7b7c1e461d8286235f60.json b/rust/cloud-storage/.sqlx/query-1490ec3dcbefe6dff27992f93481ee30fef91724dadb7b7c1e461d8286235f60.json new file mode 100644 index 0000000000..70047a0c81 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1490ec3dcbefe6dff27992f93481ee30fef91724dadb7b7c1e461d8286235f60.json @@ -0,0 +1,44 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_messages (\n id, provider_id, link_id, global_id, thread_id, provider_thread_id, replying_to_id, provider_history_id, internal_date_ts,\n snippet, size_estimate, subject, from_name, from_contact_id, sent_at, has_attachments, is_read,\n is_starred, is_sent, is_draft, body_text, body_html_sanitized, headers_jsonb\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23)\n ON CONFLICT (link_id, provider_id) WHERE provider_id IS NOT NULL DO UPDATE SET\n global_id = EXCLUDED.global_id,\n provider_history_id = EXCLUDED.provider_history_id,\n provider_thread_id = EXCLUDED.provider_thread_id,\n replying_to_id = EXCLUDED.replying_to_id,\n from_name = EXCLUDED.from_name,\n from_contact_id = EXCLUDED.from_contact_id,\n internal_date_ts = EXCLUDED.internal_date_ts,\n snippet = EXCLUDED.snippet,\n size_estimate = EXCLUDED.size_estimate,\n subject = EXCLUDED.subject,\n sent_at = EXCLUDED.sent_at,\n has_attachments = EXCLUDED.has_attachments,\n is_read = EXCLUDED.is_read,\n is_starred = EXCLUDED.is_starred,\n is_sent = EXCLUDED.is_sent,\n is_draft = EXCLUDED.is_draft,\n headers_jsonb = EXCLUDED.headers_jsonb,\n body_text = EXCLUDED.body_text,\n body_html_sanitized = EXCLUDED.body_html_sanitized,\n updated_at = NOW()\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Uuid", + "Text", + "Uuid", + "Text", + "Uuid", + "Text", + "Timestamptz", + "Text", + "Int8", + "Text", + "Varchar", + "Uuid", + "Timestamptz", + "Bool", + "Bool", + "Bool", + "Bool", + "Bool", + "Text", + "Text", + "Jsonb" + ] + }, + "nullable": [ + false + ] + }, + "hash": "1490ec3dcbefe6dff27992f93481ee30fef91724dadb7b7c1e461d8286235f60" +} diff --git a/rust/cloud-storage/.sqlx/query-14acfc516e4790908d6e9378281d30f55a71271945c03e98665acc3cc9d4ea4b.json b/rust/cloud-storage/.sqlx/query-14acfc516e4790908d6e9378281d30f55a71271945c03e98665acc3cc9d4ea4b.json new file mode 100644 index 0000000000..42b8e34c98 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-14acfc516e4790908d6e9378281d30f55a71271945c03e98665acc3cc9d4ea4b.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT \"organizationId\" as organization_id FROM \"User\" WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "organization_id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true + ] + }, + "hash": "14acfc516e4790908d6e9378281d30f55a71271945c03e98665acc3cc9d4ea4b" +} diff --git a/rust/cloud-storage/.sqlx/query-14cb6f59ddb400c9539d83f42f665da8af863d2fd1ebf848a1a6e64db75a9ef2.json b/rust/cloud-storage/.sqlx/query-14cb6f59ddb400c9539d83f42f665da8af863d2fd1ebf848a1a6e64db75a9ef2.json new file mode 100644 index 0000000000..a952d834cc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-14cb6f59ddb400c9539d83f42f665da8af863d2fd1ebf848a1a6e64db75a9ef2.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"stripeCustomerId\" as \"stripe_customer_id?\"\n FROM \"User\"\n WHERE \"id\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "stripe_customer_id?", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true + ] + }, + "hash": "14cb6f59ddb400c9539d83f42f665da8af863d2fd1ebf848a1a6e64db75a9ef2" +} diff --git a/rust/cloud-storage/.sqlx/query-14f0507004b3076a625e1a10ab8de9b4f09cf2a0480dbca99952cf0d8b78b177.json b/rust/cloud-storage/.sqlx/query-14f0507004b3076a625e1a10ab8de9b4f09cf2a0480dbca99952cf0d8b78b177.json new file mode 100644 index 0000000000..b4f92836bd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-14f0507004b3076a625e1a10ab8de9b4f09cf2a0480dbca99952cf0d8b78b177.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM saved_view WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "14f0507004b3076a625e1a10ab8de9b4f09cf2a0480dbca99952cf0d8b78b177" +} diff --git a/rust/cloud-storage/.sqlx/query-1511f43c28d30141885fec9cfbc87b855ec6f10241b3e74499f22aeef7f762bc.json b/rust/cloud-storage/.sqlx/query-1511f43c28d30141885fec9cfbc87b855ec6f10241b3e74499f22aeef7f762bc.json new file mode 100644 index 0000000000..3b87978453 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1511f43c28d30141885fec9cfbc87b855ec6f10241b3e74499f22aeef7f762bc.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS(\n SELECT 1 FROM promoted_shared_mailboxes WHERE macro_id = $1\n ) AS \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "1511f43c28d30141885fec9cfbc87b855ec6f10241b3e74499f22aeef7f762bc" +} diff --git a/rust/cloud-storage/.sqlx/query-152c4be0db7c3ecd7cf7ca77049231154b7f03ae0ebb073103df8b0554d416af.json b/rust/cloud-storage/.sqlx/query-152c4be0db7c3ecd7cf7ca77049231154b7f03ae0ebb073103df8b0554d416af.json new file mode 100644 index 0000000000..62daab76de --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-152c4be0db7c3ecd7cf7ca77049231154b7f03ae0ebb073103df8b0554d416af.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"User\"\n SET \"tutorialComplete\" = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bool", + "Text" + ] + }, + "nullable": [] + }, + "hash": "152c4be0db7c3ecd7cf7ca77049231154b7f03ae0ebb073103df8b0554d416af" +} diff --git a/rust/cloud-storage/.sqlx/query-15b00cf9b57c2c077f7e55bd25c267a6cf83c9efdc10ba23981f7b85847881c3.json b/rust/cloud-storage/.sqlx/query-15b00cf9b57c2c077f7e55bd25c267a6cf83c9efdc10ba23981f7b85847881c3.json new file mode 100644 index 0000000000..ef0ebb8a40 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-15b00cf9b57c2c077f7e55bd25c267a6cf83c9efdc10ba23981f7b85847881c3.json @@ -0,0 +1,73 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, macro_id, fusionauth_user_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at \n FROM email_links\n WHERE macro_id = $1\n ORDER BY created_at DESC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "provider: _", + "type_info": { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_sync_active", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "15b00cf9b57c2c077f7e55bd25c267a6cf83c9efdc10ba23981f7b85847881c3" +} diff --git a/rust/cloud-storage/.sqlx/query-15f433450a25ed0fb63fa44a1e4d13fb82179f90fbdd99b632a244c24f1ff5d2.json b/rust/cloud-storage/.sqlx/query-15f433450a25ed0fb63fa44a1e4d13fb82179f90fbdd99b632a244c24f1ff5d2.json new file mode 100644 index 0000000000..7c02d0b9f0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-15f433450a25ed0fb63fa44a1e4d13fb82179f90fbdd99b632a244c24f1ff5d2.json @@ -0,0 +1,42 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO team (id, name, owner_id, seat_count)\n VALUES ($1, $2, $3, 1)\n RETURNING id, name, slug, owner_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "slug", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "owner_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false + ] + }, + "hash": "15f433450a25ed0fb63fa44a1e4d13fb82179f90fbdd99b632a244c24f1ff5d2" +} diff --git a/rust/cloud-storage/.sqlx/query-166a1874072c2882aaca16d26b22a66944f723c32d9066d1d8b671b177986aa4.json b/rust/cloud-storage/.sqlx/query-166a1874072c2882aaca16d26b22a66944f723c32d9066d1d8b671b177986aa4.json new file mode 100644 index 0000000000..746d602d16 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-166a1874072c2882aaca16d26b22a66944f723c32d9066d1d8b671b177986aa4.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"organizationId\" as organization_id\n FROM \"OrganizationEmailMatches\"\n WHERE email = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "organization_id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "166a1874072c2882aaca16d26b22a66944f723c32d9066d1d8b671b177986aa4" +} diff --git a/rust/cloud-storage/.sqlx/query-16975c8ff9585b8da53ace00a26851f992232834de508dac16ff58d9da1cbc2a.json b/rust/cloud-storage/.sqlx/query-16975c8ff9585b8da53ace00a26851f992232834de508dac16ff58d9da1cbc2a.json new file mode 100644 index 0000000000..b0e63bec06 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-16975c8ff9585b8da53ace00a26851f992232834de508dac16ff58d9da1cbc2a.json @@ -0,0 +1,21 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_attachments_drafts (\n id, draft_id, file_name, content_type, sha, size, s3_key\n )\n -- if the message belongs to a different link_id, nothing will be returned from this\n -- and thus nothing will be inserted\n SELECT $1, $2, $3, $4, $5, $6, $7\n FROM email_messages m\n WHERE m.id = $2 AND m.link_id = $8\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text", + "Text", + "Text", + "Int4", + "Text", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "16975c8ff9585b8da53ace00a26851f992232834de508dac16ff58d9da1cbc2a" +} diff --git a/rust/cloud-storage/.sqlx/query-169914b00c5e4ced19940e170f8135d288553a7fdc41589e2211da4c32cead9a.json b/rust/cloud-storage/.sqlx/query-169914b00c5e4ced19940e170f8135d288553a7fdc41589e2211da4c32cead9a.json new file mode 100644 index 0000000000..0ff57465ef --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-169914b00c5e4ced19940e170f8135d288553a7fdc41589e2211da4c32cead9a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH RECURSIVE project_hierarchy AS (\n SELECT\n p.id\n FROM \"Project\" p\n WHERE p.id = ANY($1) AND p.\"deletedAt\" IS NULL\n UNION ALL\n SELECT\n sub_p.id\n FROM \"Project\" sub_p\n INNER JOIN project_hierarchy ph ON sub_p.\"parentId\" = ph.id\n WHERE sub_p.\"deletedAt\" IS NULL\n )\n SELECT\n ph.id as \"id!\"\n FROM project_hierarchy ph\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + null + ] + }, + "hash": "169914b00c5e4ced19940e170f8135d288553a7fdc41589e2211da4c32cead9a" +} diff --git a/rust/cloud-storage/.sqlx/query-16da7cf038f35f49f83fc3a869f56da725bccb87d92dc3a2c4195a7b4c436a29.json b/rust/cloud-storage/.sqlx/query-16da7cf038f35f49f83fc3a869f56da725bccb87d92dc3a2c4195a7b4c436a29.json new file mode 100644 index 0000000000..45ffc5a866 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-16da7cf038f35f49f83fc3a869f56da725bccb87d92dc3a2c4195a7b4c436a29.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"documentId\" as \"document_id\"\n FROM \"InstructionsDocuments\" id\n JOIN \"Document\" d ON d.\"id\" = id.\"documentId\"\n WHERE \"userId\" = $1 AND d.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "16da7cf038f35f49f83fc3a869f56da725bccb87d92dc3a2c4195a7b4c436a29" +} diff --git a/rust/cloud-storage/.sqlx/query-16fe6d8422135f9b01d5acb48576c9ebeea62fe8b80747ddcf9c5fdeee1a6c7e.json b/rust/cloud-storage/.sqlx/query-16fe6d8422135f9b01d5acb48576c9ebeea62fe8b80747ddcf9c5fdeee1a6c7e.json new file mode 100644 index 0000000000..08f519fb97 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-16fe6d8422135f9b01d5acb48576c9ebeea62fe8b80747ddcf9c5fdeee1a6c7e.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_message_labels (message_id, label_id)\n SELECT\n unnested_message_id,\n l.id\n FROM\n UNNEST($1::uuid[]) AS t(unnested_message_id)\n CROSS JOIN\n email_labels l\n WHERE\n l.link_id = $2 AND l.provider_label_id = $3\n ON CONFLICT (message_id, label_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "16fe6d8422135f9b01d5acb48576c9ebeea62fe8b80747ddcf9c5fdeee1a6c7e" +} diff --git a/rust/cloud-storage/.sqlx/query-170411ea24963c7605046d59dbf2bc32d23c2d62e36a11e3875a8b84e8f1e062.json b/rust/cloud-storage/.sqlx/query-170411ea24963c7605046d59dbf2bc32d23c2d62e36a11e3875a8b84e8f1e062.json new file mode 100644 index 0000000000..65a1903328 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-170411ea24963c7605046d59dbf2bc32d23c2d62e36a11e3875a8b84e8f1e062.json @@ -0,0 +1,19 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO task_duplicate_match (\n id,\n task_id,\n duplicate_task_id,\n status,\n vector_score,\n judge_model,\n judge_reason\n )\n VALUES ($1, $2, $3, 'active', $4, $5, $6)\n ON CONFLICT (task_id, duplicate_task_id) DO UPDATE\n SET status = 'active',\n vector_score = EXCLUDED.vector_score,\n judge_model = EXCLUDED.judge_model,\n judge_reason = EXCLUDED.judge_reason,\n updated_at = NOW()\n WHERE task_duplicate_match.status <> 'dismissed'\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Float8", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "170411ea24963c7605046d59dbf2bc32d23c2d62e36a11e3875a8b84e8f1e062" +} diff --git a/rust/cloud-storage/.sqlx/query-1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e.json b/rust/cloud-storage/.sqlx/query-1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e.json new file mode 100644 index 0000000000..54063b0e84 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Document\"\n WHERE owner = $1 AND \"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e" +} diff --git a/rust/cloud-storage/.sqlx/query-1780a52d3024ae99105fd28c74121b9a3611ea3ae3bf5edccebda195b52bead2.json b/rust/cloud-storage/.sqlx/query-1780a52d3024ae99105fd28c74121b9a3611ea3ae3bf5edccebda195b52bead2.json new file mode 100644 index 0000000000..59dfc222e7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1780a52d3024ae99105fd28c74121b9a3611ea3ae3bf5edccebda195b52bead2.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT e.id, e.active, e.\"started_at\"::timestamptz as started_at, e.\"ended_at\"::timestamptz as ended_at\n FROM \"Experiment\" e\n JOIN \"ExperimentLog\" el ON e.id = el.experiment_id\n WHERE el.user_id = $1 AND e.active = true\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "active", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "started_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "ended_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + null, + null + ] + }, + "hash": "1780a52d3024ae99105fd28c74121b9a3611ea3ae3bf5edccebda195b52bead2" +} diff --git a/rust/cloud-storage/.sqlx/query-1787312f37ce2a63f3a448f70e719581607988c79c9d2f4ead58811d60d5bec7.json b/rust/cloud-storage/.sqlx/query-1787312f37ce2a63f3a448f70e719581607988c79c9d2f4ead58811d60d5bec7.json new file mode 100644 index 0000000000..3001af3ce5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1787312f37ce2a63f3a448f70e719581607988c79c9d2f4ead58811d60d5bec7.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM scheduled_action\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "1787312f37ce2a63f3a448f70e719581607988c79c9d2f4ead58811d60d5bec7" +} diff --git a/rust/cloud-storage/.sqlx/query-1787f623620cbe61083403a7e51577540398e8ce459156d6f83fcb8193fc2800.json b/rust/cloud-storage/.sqlx/query-1787f623620cbe61083403a7e51577540398e8ce459156d6f83fcb8193fc2800.json new file mode 100644 index 0000000000..da58536bad --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1787f623620cbe61083403a7e51577540398e8ce459156d6f83fcb8193fc2800.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text AS source_id\n FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text\n FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n visible_calls AS (\n SELECT\n cr.id,\n CASE\n WHEN EXISTS (\n SELECT 1 FROM call_record_participants crp\n WHERE crp.call_record_id = cr.id AND crp.user_id = $1\n ) THEN 'ATTENDED'\n WHEN EXISTS (\n SELECT 1 FROM comms_channel_participants ccp\n WHERE ccp.channel_id = cr.channel_id\n AND ccp.user_id = $1\n AND ccp.left_at IS NULL\n ) THEN 'MISSED'\n ELSE 'UNATTENDED'\n END AS status\n FROM call_records cr\n WHERE (\n EXISTS (\n SELECT 1 FROM entity_access ea\n WHERE ea.entity_id = cr.id\n AND ea.entity_type = 'call'\n AND ea.source_id IN (SELECT source_id FROM user_source_ids)\n ) OR EXISTS (\n SELECT 1 FROM \"SharePermission\" sp\n WHERE sp.id = cr.share_permission_id\n AND sp.\"isPublic\" = true\n AND sp.\"publicAccessLevel\" IS NOT NULL\n )\n )\n )\n SELECT id AS \"id!\"\n FROM visible_calls\n WHERE cardinality($2::text[]) = 0 OR status = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "1787f623620cbe61083403a7e51577540398e8ce459156d6f83fcb8193fc2800" +} diff --git a/rust/cloud-storage/.sqlx/query-178aa765b997de754dd7405fc233aa7b24dd0a456f3cd4863725b3089f7bbe27.json b/rust/cloud-storage/.sqlx/query-178aa765b997de754dd7405fc233aa7b24dd0a456f3cd4863725b3089f7bbe27.json new file mode 100644 index 0000000000..98595cec9c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-178aa765b997de754dd7405fc233aa7b24dd0a456f3cd4863725b3089f7bbe27.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n id, \n owner, \n text as content, \n \"createdAt\" as created_at, \n \"updatedAt\" as updated_at,\n \"order\"\n FROM \"Comment\" \n WHERE \"threadId\" = $1\n ORDER BY \"order\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "order", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true + ] + }, + "hash": "178aa765b997de754dd7405fc233aa7b24dd0a456f3cd4863725b3089f7bbe27" +} diff --git a/rust/cloud-storage/.sqlx/query-17b1a9529bc693aeb668fd0c432d6b55a4c527fd3105bfa9cf83dbc70516011c.json b/rust/cloud-storage/.sqlx/query-17b1a9529bc693aeb668fd0c432d6b55a4c527fd3105bfa9cf83dbc70516011c.json new file mode 100644 index 0000000000..6aac09106d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-17b1a9529bc693aeb668fd0c432d6b55a4c527fd3105bfa9cf83dbc70516011c.json @@ -0,0 +1,86 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as \"document_id\",\n d.owner,\n d.name as \"document_name\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"projectId\" as \"project_id\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n WHERE\n d.id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 5, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + true, + true, + false, + true, + null + ] + }, + "hash": "17b1a9529bc693aeb668fd0c432d6b55a4c527fd3105bfa9cf83dbc70516011c" +} diff --git a/rust/cloud-storage/.sqlx/query-17eb78883f203e76c823566fa1127a752597dae52b891be1e12526b02fdb2e6c.json b/rust/cloud-storage/.sqlx/query-17eb78883f203e76c823566fa1127a752597dae52b891be1e12526b02fdb2e6c.json new file mode 100644 index 0000000000..5e44ab1491 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-17eb78883f203e76c823566fa1127a752597dae52b891be1e12526b02fdb2e6c.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM crm_companies WHERE team_id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "17eb78883f203e76c823566fa1127a752597dae52b891be1e12526b02fdb2e6c" +} diff --git a/rust/cloud-storage/.sqlx/query-18134bc97487fbf6b88e8afdb94dc601bf0d997ad5b6974ef5866dd6262b8618.json b/rust/cloud-storage/.sqlx/query-18134bc97487fbf6b88e8afdb94dc601bf0d997ad5b6974ef5866dd6262b8618.json new file mode 100644 index 0000000000..cbb754459e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-18134bc97487fbf6b88e8afdb94dc601bf0d997ad5b6974ef5866dd6262b8618.json @@ -0,0 +1,31 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n -- Get all entities the user has access to via entity_access, filtered to requested items\n AllAccessGrants AS (\n -- Documents the user has access to\n SELECT ea.entity_id::text as item_id, ea.entity_type as item_type\n FROM entity_access ea\n LEFT JOIN \"Document\" d ON ea.entity_type = 'document' AND ea.entity_id::text = d.id\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n AND ea.entity_type = 'document'\n AND ea.entity_id::text = ANY($2)\n AND d.\"deletedAt\" IS NULL\n\n UNION ALL\n\n -- Chats the user has access to\n SELECT ea.entity_id::text as item_id, ea.entity_type as item_type\n FROM entity_access ea\n LEFT JOIN \"Chat\" c ON ea.entity_type = 'chat' AND ea.entity_id::text = c.id\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n AND ea.entity_type = 'chat'\n AND ea.entity_id::text = ANY($3)\n AND c.\"deletedAt\" IS NULL\n\n UNION ALL\n\n -- Projects the user has access to\n SELECT ea.entity_id::text as item_id, ea.entity_type as item_type\n FROM entity_access ea\n LEFT JOIN \"Project\" p ON ea.entity_type = 'project' AND ea.entity_id::text = p.id\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n AND ea.entity_type = 'project'\n AND ea.entity_id::text = ANY($4)\n AND p.\"deletedAt\" IS NULL\n ),\n UserAccessibleItems AS (\n SELECT\n item_id,\n item_type\n FROM AllAccessGrants\n GROUP BY item_id, item_type\n )\n SELECT item_id as \"item_id!\", item_type as \"item_type!\" FROM UserAccessibleItems\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "item_type!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray", + "TextArray", + "TextArray" + ] + }, + "nullable": [ + null, + null + ] + }, + "hash": "18134bc97487fbf6b88e8afdb94dc601bf0d997ad5b6974ef5866dd6262b8618" +} diff --git a/rust/cloud-storage/.sqlx/query-183fbda8d590393f7f3faa763c2cb6344b42556f949b59a0f8f77a01ec8572c4.json b/rust/cloud-storage/.sqlx/query-183fbda8d590393f7f3faa763c2cb6344b42556f949b59a0f8f77a01ec8572c4.json new file mode 100644 index 0000000000..3a8125cf5d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-183fbda8d590393f7f3faa763c2cb6344b42556f949b59a0f8f77a01ec8572c4.json @@ -0,0 +1,64 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n ea.message_id,\n ea.id,\n ea.provider_attachment_id,\n ea.filename,\n ea.mime_type,\n ea.size_bytes,\n eas.sfs_id as \"sfs_id?\",\n ea.content_id\n FROM email_attachments ea\n LEFT JOIN email_attachments_sfs eas ON ea.id = eas.attachment_id\n WHERE ea.message_id = ANY($1)\n ORDER BY ea.message_id, ea.filename NULLS LAST\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_attachment_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "filename", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "mime_type", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "size_bytes", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "sfs_id?", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "content_id", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + false, + true + ] + }, + "hash": "183fbda8d590393f7f3faa763c2cb6344b42556f949b59a0f8f77a01ec8572c4" +} diff --git a/rust/cloud-storage/.sqlx/query-184633e8b40af8c1077847e8b20dbee5117d4a35ec182b62db7d4ea0507ee73c.json b/rust/cloud-storage/.sqlx/query-184633e8b40af8c1077847e8b20dbee5117d4a35ec182b62db7d4ea0507ee73c.json new file mode 100644 index 0000000000..313d7cf3a4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-184633e8b40af8c1077847e8b20dbee5117d4a35ec182b62db7d4ea0507ee73c.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChatAttachment\" (\"entity_type\", \"entity_id\", \"chatId\", \"messageId\")\n SELECT * FROM UNNEST($1::TEXT[], $2::UUID[], $3::TEXT[], $4::TEXT[])\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "UuidArray", + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "184633e8b40af8c1077847e8b20dbee5117d4a35ec182b62db7d4ea0507ee73c" +} diff --git a/rust/cloud-storage/.sqlx/query-18aac439d006f5d15299582df56f00790bde81c4e7a515e6cadbf341466b9fa8.json b/rust/cloud-storage/.sqlx/query-18aac439d006f5d15299582df56f00790bde81c4e7a515e6cadbf341466b9fa8.json new file mode 100644 index 0000000000..f542fc63f8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-18aac439d006f5d15299582df56f00790bde81c4e7a515e6cadbf341466b9fa8.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n bp.sha\n FROM \"BomPart\" bp\n JOIN \"DocumentBom\" db ON bp.\"documentBomId\" = db.id\n WHERE db.\"documentId\" = $1\n AND db.id = (\n SELECT db_inner.id\n FROM \"DocumentBom\" db_inner\n WHERE db_inner.\"documentId\" = $1\n ORDER BY db_inner.\"updatedAt\" DESC\n LIMIT 1\n )\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "sha", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "18aac439d006f5d15299582df56f00790bde81c4e7a515e6cadbf341466b9fa8" +} diff --git a/rust/cloud-storage/.sqlx/query-18ce46c3571cde47b087eae1c4aa5fef86b1058e0b9ad16614fc06d02f4cf86f.json b/rust/cloud-storage/.sqlx/query-18ce46c3571cde47b087eae1c4aa5fef86b1058e0b9ad16614fc06d02f4cf86f.json new file mode 100644 index 0000000000..39cffecceb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-18ce46c3571cde47b087eae1c4aa5fef86b1058e0b9ad16614fc06d02f4cf86f.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH label_lookup AS (\n SELECT id FROM email_labels\n WHERE link_id = $2 AND provider_label_id = $3\n )\n INSERT INTO email_message_labels (message_id, label_id)\n SELECT $1, id FROM label_lookup\n ON CONFLICT (message_id, label_id) DO NOTHING\n RETURNING (SELECT COUNT(*) FROM label_lookup) AS label_found\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "label_found", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "18ce46c3571cde47b087eae1c4aa5fef86b1058e0b9ad16614fc06d02f4cf86f" +} diff --git a/rust/cloud-storage/.sqlx/query-18d2885f4c7a6ffd835a5d661ec5e81dd143cd4a51873e92050a0beedbbb86cb.json b/rust/cloud-storage/.sqlx/query-18d2885f4c7a6ffd835a5d661ec5e81dd143cd4a51873e92050a0beedbbb86cb.json new file mode 100644 index 0000000000..6c17e2c89d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-18d2885f4c7a6ffd835a5d661ec5e81dd143cd4a51873e92050a0beedbbb86cb.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n channel_id,\n share_permission_id,\n access_level as \"access_level: AccessLevel\"\n FROM\n \"ChannelSharePermission\"\n WHERE\n channel_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "share_permission_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "access_level: AccessLevel", + "type_info": { + "Custom": { + "name": "\"AccessLevel\"", + "kind": { + "Enum": [ + "view", + "comment", + "edit", + "owner" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "18d2885f4c7a6ffd835a5d661ec5e81dd143cd4a51873e92050a0beedbbb86cb" +} diff --git a/rust/cloud-storage/.sqlx/query-18f484857d5b6d140bfe2e78fce5632c78c630fddf249f0d53261e601969889b.json b/rust/cloud-storage/.sqlx/query-18f484857d5b6d140bfe2e78fce5632c78c630fddf249f0d53261e601969889b.json new file mode 100644 index 0000000000..e742261f23 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-18f484857d5b6d140bfe2e78fce5632c78c630fddf249f0d53261e601969889b.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_links\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "18f484857d5b6d140bfe2e78fce5632c78c630fddf249f0d53261e601969889b" +} diff --git a/rust/cloud-storage/.sqlx/query-18fc1de07e3dc64355b0baf69f67bd8c5254c63292c67e87ac3c3f45c20b7284.json b/rust/cloud-storage/.sqlx/query-18fc1de07e3dc64355b0baf69f67bd8c5254c63292c67e87ac3c3f45c20b7284.json new file mode 100644 index 0000000000..ff6c450bbb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-18fc1de07e3dc64355b0baf69f67bd8c5254c63292c67e87ac3c3f45c20b7284.json @@ -0,0 +1,127 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"PdfPlaceableCommentAnchor\" (\n \"uuid\", \"owner\", \"threadId\", \"page\", \"originalPage\", \"originalIndex\", \n \"xPct\", \"yPct\", \"widthPct\", \"heightPct\", \"allowableEdits\", \n \"wasEdited\", \"wasDeleted\", \"shouldLockOnSave\", \"documentId\", \"rotation\"\n ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16)\n RETURNING \n uuid, \n \"documentId\" as document_id,\n owner, \n \"threadId\" as thread_id, \n page, \n \"originalPage\" as original_page, \n \"originalIndex\" as original_index, \n \"xPct\" as x_pct, \n \"yPct\" as y_pct, \n \"widthPct\" as width_pct, \n \"heightPct\" as height_pct, \n rotation,\n \"allowableEdits\" as allowable_edits, \n \"wasEdited\" as was_edited, \n \"wasDeleted\" as was_deleted, \n \"shouldLockOnSave\" as should_lock_on_save\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "page", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "original_page", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "original_index", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "x_pct", + "type_info": "Float8" + }, + { + "ordinal": 8, + "name": "y_pct", + "type_info": "Float8" + }, + { + "ordinal": 9, + "name": "width_pct", + "type_info": "Float8" + }, + { + "ordinal": 10, + "name": "height_pct", + "type_info": "Float8" + }, + { + "ordinal": 11, + "name": "rotation", + "type_info": "Float8" + }, + { + "ordinal": 12, + "name": "allowable_edits", + "type_info": "Jsonb" + }, + { + "ordinal": 13, + "name": "was_edited", + "type_info": "Bool" + }, + { + "ordinal": 14, + "name": "was_deleted", + "type_info": "Bool" + }, + { + "ordinal": 15, + "name": "should_lock_on_save", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Int8", + "Int4", + "Int4", + "Int4", + "Float8", + "Float8", + "Float8", + "Float8", + "Jsonb", + "Bool", + "Bool", + "Bool", + "Text", + "Float8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false + ] + }, + "hash": "18fc1de07e3dc64355b0baf69f67bd8c5254c63292c67e87ac3c3f45c20b7284" +} diff --git a/rust/cloud-storage/.sqlx/query-190452da4bb37a289c415dfbb4ec725bbda911931e97ccb22a5868b5a7655709.json b/rust/cloud-storage/.sqlx/query-190452da4bb37a289c415dfbb4ec725bbda911931e97ccb22a5868b5a7655709.json new file mode 100644 index 0000000000..1a46bafb16 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-190452da4bb37a289c415dfbb4ec725bbda911931e97ccb22a5868b5a7655709.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.\"id\" as id\n FROM \"Chat\" c\n INNER JOIN \"UserHistory\" uh ON uh.\"itemId\" = c.\"id\" AND uh.\"itemType\" = 'chat'\n INNER JOIN \"User\" u ON u.id = uh.\"userId\"\n WHERE c.id = $1 AND u.id != c.\"userId\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "190452da4bb37a289c415dfbb4ec725bbda911931e97ccb22a5868b5a7655709" +} diff --git a/rust/cloud-storage/.sqlx/query-19ad643d2447743fb58441e39654369eb50ac8efbea1fd554bdca3d7545d61e0.json b/rust/cloud-storage/.sqlx/query-19ad643d2447743fb58441e39654369eb50ac8efbea1fd554bdca3d7545d61e0.json new file mode 100644 index 0000000000..69c93d3037 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-19ad643d2447743fb58441e39654369eb50ac8efbea1fd554bdca3d7545d61e0.json @@ -0,0 +1,25 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Document\" (owner, name, \"fileType\", \"projectId\")\n VALUES ($1, $2, $3, $4)\n RETURNING id;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "19ad643d2447743fb58441e39654369eb50ac8efbea1fd554bdca3d7545d61e0" +} diff --git a/rust/cloud-storage/.sqlx/query-19c878ce5817c5643e48a6159fce81a2f964defcb7b190460f2b16ac67078766.json b/rust/cloud-storage/.sqlx/query-19c878ce5817c5643e48a6159fce81a2f964defcb7b190460f2b16ac67078766.json new file mode 100644 index 0000000000..7df56bcc2a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-19c878ce5817c5643e48a6159fce81a2f964defcb7b190460f2b16ac67078766.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM notification_user_device_registration\n WHERE device_token = $1 AND device_type = $2\n RETURNING device_endpoint\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "device_endpoint", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + { + "Custom": { + "name": "notification_device_type_option", + "kind": { + "Enum": [ + "ios", + "android", + "iosvoip" + ] + } + } + } + ] + }, + "nullable": [ + false + ] + }, + "hash": "19c878ce5817c5643e48a6159fce81a2f964defcb7b190460f2b16ac67078766" +} diff --git a/rust/cloud-storage/.sqlx/query-1a5d33c55a52c7076f78b54e915e57fe675a43d9dd2d6198d1039565131d52f1.json b/rust/cloud-storage/.sqlx/query-1a5d33c55a52c7076f78b54e915e57fe675a43d9dd2d6198d1039565131d52f1.json new file mode 100644 index 0000000000..a67426e009 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1a5d33c55a52c7076f78b54e915e57fe675a43d9dd2d6198d1039565131d52f1.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*)\n FROM \"DocumentView\" dv\n WHERE dv.\"document_id\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "1a5d33c55a52c7076f78b54e915e57fe675a43d9dd2d6198d1039565131d52f1" +} diff --git a/rust/cloud-storage/.sqlx/query-1ad1d46ce50de26cb5f1441e73845df205acdf018d65ada384f0b059425e9ab0.json b/rust/cloud-storage/.sqlx/query-1ad1d46ce50de26cb5f1441e73845df205acdf018d65ada384f0b059425e9ab0.json new file mode 100644 index 0000000000..fdda5f8185 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1ad1d46ce50de26cb5f1441e73845df205acdf018d65ada384f0b059425e9ab0.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE bot_tokens\n SET last_used_at = now()\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "1ad1d46ce50de26cb5f1441e73845df205acdf018d65ada384f0b059425e9ab0" +} diff --git a/rust/cloud-storage/.sqlx/query-1b30e7bb6b67b93826781122a191e243db4c43ec8630b32ea48b1c7e31724264.json b/rust/cloud-storage/.sqlx/query-1b30e7bb6b67b93826781122a191e243db4c43ec8630b32ea48b1c7e31724264.json new file mode 100644 index 0000000000..29a3ad393c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1b30e7bb6b67b93826781122a191e243db4c43ec8630b32ea48b1c7e31724264.json @@ -0,0 +1,138 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n UserAccessibleItems AS (\n SELECT DISTINCT\n ea.entity_id::text as item_id,\n ea.entity_type as item_type\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n ),\n Combined AS (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\",\n d.\"projectId\" as \"project_id\",\n NULL as \"is_persistent\",\n di.sha as \"sha\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE\n WHEN dt.sub_type = 'task'\n AND ep_status.values->'value' ? $4\n THEN true\n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL\n END as \"is_completed\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status \n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id \n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $5\n INNER JOIN UserAccessibleItems uai \n ON uai.item_id = d.id \n AND uai.item_type = 'document'\n LEFT JOIN \"UserHistory\" uh \n ON uh.\"itemId\" = d.id \n AND uh.\"itemType\" = 'document' \n AND uh.\"userId\" = $1\n LEFT JOIN LATERAL (\n SELECT b.id \n FROM \"DocumentBom\" b \n WHERE b.\"documentId\" = d.id \n ORDER BY b.\"createdAt\" DESC \n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT i.id, i.sha \n FROM \"DocumentInstance\" i \n WHERE i.\"documentId\" = d.id \n ORDER BY i.\"updatedAt\" DESC \n LIMIT 1\n ) di ON true\n WHERE d.\"deletedAt\" IS NULL\n AND d.id = ANY($2::text[])\n\n UNION ALL\n \n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at!\",\n c.\"updatedAt\"::timestamptz as \"updated_at!\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n NULL as \"is_completed\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Chat\" c\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = c.id\n AND uai.item_type = 'chat'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = c.id\n AND uh.\"itemType\" = 'chat'\n AND uh.\"userId\" = $1\n WHERE c.\"deletedAt\" IS NULL\n AND c.id = ANY($3::text[])\n )\n SELECT * \n FROM Combined\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_type!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_version_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "user_id!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "name!", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "is_persistent", + "type_info": "Bool" + }, + { + "ordinal": 13, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 14, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 15, + "name": "viewed_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 16, + "name": "is_completed", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray", + "TextArray", + "Text", + "Uuid" + ] + }, + "nullable": [ + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null + ] + }, + "hash": "1b30e7bb6b67b93826781122a191e243db4c43ec8630b32ea48b1c7e31724264" +} diff --git a/rust/cloud-storage/.sqlx/query-1b324f7419bf6620c5eae611b237ee202fb2b3b011422dc27f351a2c3d10813c.json b/rust/cloud-storage/.sqlx/query-1b324f7419bf6620c5eae611b237ee202fb2b3b011422dc27f351a2c3d10813c.json new file mode 100644 index 0000000000..8257f56f38 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1b324f7419bf6620c5eae611b237ee202fb2b3b011422dc27f351a2c3d10813c.json @@ -0,0 +1,184 @@ +{ + "db_name": "PostgreSQL", + "query": "\nSELECT\n ep.id as entity_property_id,\n ep.entity_id,\n ep.entity_type as \"entity_type: EntityType\",\n ep.property_definition_id,\n ep.values as \"values: sqlx::types::JsonValue\",\n ep.created_at as entity_property_created_at,\n ep.updated_at as entity_property_updated_at,\n pd.organization_id as definition_organization_id,\n pd.user_id as definition_user_id,\n pd.display_name,\n pd.data_type as \"data_type: DataType\",\n pd.is_multi_select,\n pd.specific_entity_type as \"specific_entity_type: Option\",\n pd.created_at as definition_created_at,\n pd.updated_at as definition_updated_at,\n pd.is_system as definition_is_system\nFROM entity_properties ep\nINNER JOIN property_definitions pd ON ep.property_definition_id = pd.id\nWHERE (ep.entity_id, ep.entity_type) IN (\n SELECT * FROM UNNEST($1::TEXT[], $2::property_entity_type[])\n)\n", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_property_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "entity_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "entity_type: EntityType", + "type_info": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "property_definition_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "values: sqlx::types::JsonValue", + "type_info": "Jsonb" + }, + { + "ordinal": 5, + "name": "entity_property_created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "entity_property_updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "definition_organization_id", + "type_info": "Int4" + }, + { + "ordinal": 8, + "name": "definition_user_id", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "display_name", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "data_type: DataType", + "type_info": { + "Custom": { + "name": "property_data_type", + "kind": { + "Enum": [ + "BOOLEAN", + "DATE", + "NUMBER", + "STRING", + "SELECT_NUMBER", + "SELECT_STRING", + "ENTITY", + "LINK" + ] + } + } + } + }, + { + "ordinal": 11, + "name": "is_multi_select", + "type_info": "Bool" + }, + { + "ordinal": 12, + "name": "specific_entity_type: Option", + "type_info": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + }, + { + "ordinal": 13, + "name": "definition_created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 14, + "name": "definition_updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "definition_is_system", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "TextArray", + { + "Custom": { + "name": "property_entity_type[]", + "kind": { + "Array": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + } + } + } + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + false, + false, + true, + true, + false, + false, + false, + true, + false, + false, + false + ] + }, + "hash": "1b324f7419bf6620c5eae611b237ee202fb2b3b011422dc27f351a2c3d10813c" +} diff --git a/rust/cloud-storage/.sqlx/query-1b40eda58263b088d61f65897fdfe490653e4c1065cd55e9c39722b988c54a02.json b/rust/cloud-storage/.sqlx/query-1b40eda58263b088d61f65897fdfe490653e4c1065cd55e9c39722b988c54a02.json new file mode 100644 index 0000000000..bf7f89fe5e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1b40eda58263b088d61f65897fdfe490653e4c1065cd55e9c39722b988c54a02.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM \"DocumentBom\" WHERE id = $2 and \"documentId\" = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "1b40eda58263b088d61f65897fdfe490653e4c1065cd55e9c39722b988c54a02" +} diff --git a/rust/cloud-storage/.sqlx/query-1b50363c934ae7e01406a2cbb674b84fa6af6f7caa8353d52ed22e48b3899327.json b/rust/cloud-storage/.sqlx/query-1b50363c934ae7e01406a2cbb674b84fa6af6f7caa8353d52ed22e48b3899327.json new file mode 100644 index 0000000000..6a64b12e48 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1b50363c934ae7e01406a2cbb674b84fa6af6f7caa8353d52ed22e48b3899327.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Pin\" WHERE \"pinnedItemId\" = ANY($1) AND \"pinnedItemType\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "Text" + ] + }, + "nullable": [] + }, + "hash": "1b50363c934ae7e01406a2cbb674b84fa6af6f7caa8353d52ed22e48b3899327" +} diff --git a/rust/cloud-storage/.sqlx/query-1b7983a9a8a54322fd63d2bf169f27b45f853652a757123e3508017861b5c7c6.json b/rust/cloud-storage/.sqlx/query-1b7983a9a8a54322fd63d2bf169f27b45f853652a757123e3508017861b5c7c6.json new file mode 100644 index 0000000000..f97907a55c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1b7983a9a8a54322fd63d2bf169f27b45f853652a757123e3508017861b5c7c6.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n \"publicAccessLevel\" as \"access_level!\"\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"ProjectPermission\" WHERE \"projectId\" = $1\n )\n\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "access_level!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true + ] + }, + "hash": "1b7983a9a8a54322fd63d2bf169f27b45f853652a757123e3508017861b5c7c6" +} diff --git a/rust/cloud-storage/.sqlx/query-1b8266e388b4e120d27c47d891f5f447e26ff2b83fc6c6e6a0e2726aba761a51.json b/rust/cloud-storage/.sqlx/query-1b8266e388b4e120d27c47d891f5f447e26ff2b83fc6c6e6a0e2726aba761a51.json new file mode 100644 index 0000000000..e8dcefae26 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1b8266e388b4e120d27c47d891f5f447e26ff2b83fc6c6e6a0e2726aba761a51.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT m.\"chatId\" as chat_id\n FROM \"ChatMessage\" m\n WHERE m.\"id\" = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "chat_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "1b8266e388b4e120d27c47d891f5f447e26ff2b83fc6c6e6a0e2726aba761a51" +} diff --git a/rust/cloud-storage/.sqlx/query-1b8be86d6e9c1637d47b9ec156a1d8b010408005f7e12db26e1c3fc5b6d23c29.json b/rust/cloud-storage/.sqlx/query-1b8be86d6e9c1637d47b9ec156a1d8b010408005f7e12db26e1c3fc5b6d23c29.json new file mode 100644 index 0000000000..563ccbce2e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1b8be86d6e9c1637d47b9ec156a1d8b010408005f7e12db26e1c3fc5b6d23c29.json @@ -0,0 +1,101 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n ml.message_id,\n l.id,\n l.link_id,\n l.provider_label_id,\n l.name,\n l.created_at,\n l.message_list_visibility as \"message_list_visibility: _\",\n l.label_list_visibility as \"label_list_visibility: _\",\n l.type as \"type_: _\"\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE\n ml.message_id = ANY($1)\n ORDER BY ml.message_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "provider_label_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "message_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_message_list_visibility_enum", + "kind": { + "Enum": [ + "Show", + "Hide" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "label_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_label_list_visibility_enum", + "kind": { + "Enum": [ + "LabelShow", + "LabelShowIfUnread", + "LabelHide" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "type_: _", + "type_info": { + "Custom": { + "name": "email_label_type_enum", + "kind": { + "Enum": [ + "System", + "User" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "1b8be86d6e9c1637d47b9ec156a1d8b010408005f7e12db26e1c3fc5b6d23c29" +} diff --git a/rust/cloud-storage/.sqlx/query-1b9256d39a08d605aba08de1c5bddd8eb29bedd31dd21719114646449ab1333f.json b/rust/cloud-storage/.sqlx/query-1b9256d39a08d605aba08de1c5bddd8eb29bedd31dd21719114646449ab1333f.json new file mode 100644 index 0000000000..d75fdd9537 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1b9256d39a08d605aba08de1c5bddd8eb29bedd31dd21719114646449ab1333f.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH RECURSIVE project_hierarchy AS (\n SELECT\n p.id\n FROM \"Project\" p\n WHERE p.id = $1 AND p.\"deletedAt\" IS NULL\n UNION ALL\n SELECT\n sub_p.id\n FROM \"Project\" sub_p\n INNER JOIN project_hierarchy ph ON sub_p.\"parentId\" = ph.id\n WHERE sub_p.\"deletedAt\" IS NULL\n )\n SELECT\n ph.id as \"id!\"\n FROM project_hierarchy ph\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "1b9256d39a08d605aba08de1c5bddd8eb29bedd31dd21719114646449ab1333f" +} diff --git a/rust/cloud-storage/.sqlx/query-1bf9b2bf67d4780b41454d87c4a1995677a162dd11af0b9d77df947b657cd651.json b/rust/cloud-storage/.sqlx/query-1bf9b2bf67d4780b41454d87c4a1995677a162dd11af0b9d77df947b657cd651.json new file mode 100644 index 0000000000..8c916fcea0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1bf9b2bf67d4780b41454d87c4a1995677a162dd11af0b9d77df947b657cd651.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO team_user (team_id, user_id, team_role)\n VALUES ($1, $2, 'owner')\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "1bf9b2bf67d4780b41454d87c4a1995677a162dd11af0b9d77df947b657cd651" +} diff --git a/rust/cloud-storage/.sqlx/query-1c03d1e837124187c0f4b940ee6863ec370be7dc1b87c38d1c53d898bfa6a235.json b/rust/cloud-storage/.sqlx/query-1c03d1e837124187c0f4b940ee6863ec370be7dc1b87c38d1c53d898bfa6a235.json new file mode 100644 index 0000000000..7bafd18b74 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1c03d1e837124187c0f4b940ee6863ec370be7dc1b87c38d1c53d898bfa6a235.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n cp.role::text as \"role?\",\n c.channel_type::text as \"channel_type!\",\n c.org_id as \"org_id?\"\n FROM comms_channels c\n LEFT JOIN comms_channel_participants cp\n ON cp.channel_id = c.id AND cp.user_id = $2 AND cp.left_at IS NULL\n WHERE c.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "role?", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "channel_type!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "org_id?", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + null, + null, + true + ] + }, + "hash": "1c03d1e837124187c0f4b940ee6863ec370be7dc1b87c38d1c53d898bfa6a235" +} diff --git a/rust/cloud-storage/.sqlx/query-1c5f9c90a5ee11ffedc5c98b589c821898f04952a5a597c9796e152fa4c65bb1.json b/rust/cloud-storage/.sqlx/query-1c5f9c90a5ee11ffedc5c98b589c821898f04952a5a597c9796e152fa4c65bb1.json new file mode 100644 index 0000000000..dee1621260 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1c5f9c90a5ee11ffedc5c98b589c821898f04952a5a597c9796e152fa4c65bb1.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n e.subject,\n l.macro_id\n FROM\n \"email_messages\" e\n JOIN email_links l ON l.id = e.link_id\n WHERE\n e.thread_id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + true, + false + ] + }, + "hash": "1c5f9c90a5ee11ffedc5c98b589c821898f04952a5a597c9796e152fa4c65bb1" +} diff --git a/rust/cloud-storage/.sqlx/query-1c651bb11edabc6aceff14663b7a1e722ca09640bdae70dad37a017fafd16206.json b/rust/cloud-storage/.sqlx/query-1c651bb11edabc6aceff14663b7a1e722ca09640bdae70dad37a017fafd16206.json new file mode 100644 index 0000000000..dc7641635e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1c651bb11edabc6aceff14663b7a1e722ca09640bdae70dad37a017fafd16206.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT pp.\"sharePermissionId\" as \"share_permission_id!\"\n FROM \"ProjectPermission\" pp\n WHERE pp.\"projectId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "1c651bb11edabc6aceff14663b7a1e722ca09640bdae70dad37a017fafd16206" +} diff --git a/rust/cloud-storage/.sqlx/query-1c6ee06fa02288f263d5b51c30d3cd5280f4596a359328c00b1b3e2ce74c0234.json b/rust/cloud-storage/.sqlx/query-1c6ee06fa02288f263d5b51c30d3cd5280f4596a359328c00b1b3e2ce74c0234.json new file mode 100644 index 0000000000..9c4760a3e2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1c6ee06fa02288f263d5b51c30d3cd5280f4596a359328c00b1b3e2ce74c0234.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n c.id\n FROM \"Chat\" c\n JOIN \"ItemLastAccessed\" ila ON c.id = ila.item_id\n AND ila.item_type = 'chat'\n AND ila.last_accessed < NOW() - ($2 || ' days')::INTERVAL\n WHERE c.\"userId\" IN (\n SELECT \n u.\"id\"\n FROM \"User\" u\n WHERE u.\"organizationId\" = $1\n );\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int4", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "1c6ee06fa02288f263d5b51c30d3cd5280f4596a359328c00b1b3e2ce74c0234" +} diff --git a/rust/cloud-storage/.sqlx/query-1d935a7fdb8ef926a5b7613fcb7ecc9949bb5adff895d426acbcdbef50a87e96.json b/rust/cloud-storage/.sqlx/query-1d935a7fdb8ef926a5b7613fcb7ecc9949bb5adff895d426acbcdbef50a87e96.json new file mode 100644 index 0000000000..8b039290a8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1d935a7fdb8ef926a5b7613fcb7ecc9949bb5adff895d426acbcdbef50a87e96.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM crm_contacts WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "1d935a7fdb8ef926a5b7613fcb7ecc9949bb5adff895d426acbcdbef50a87e96" +} diff --git a/rust/cloud-storage/.sqlx/query-1dba8f7824a404cbe6b276df601bbf45b0bbe751d89e8b841068d86b855f44ae.json b/rust/cloud-storage/.sqlx/query-1dba8f7824a404cbe6b276df601bbf45b0bbe751d89e8b841068d86b855f44ae.json new file mode 100644 index 0000000000..4c0a3e375a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1dba8f7824a404cbe6b276df601bbf45b0bbe751d89e8b841068d86b855f44ae.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id FROM \"Document\" WHERE \"owner\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "1dba8f7824a404cbe6b276df601bbf45b0bbe751d89e8b841068d86b855f44ae" +} diff --git a/rust/cloud-storage/.sqlx/query-1df49f5d478dcee269a9bded7fdcc34060d1c9dd6f964f3d6444b55830af299a.json b/rust/cloud-storage/.sqlx/query-1df49f5d478dcee269a9bded7fdcc34060d1c9dd6f964f3d6444b55830af299a.json new file mode 100644 index 0000000000..9826ea2bab --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1df49f5d478dcee269a9bded7fdcc34060d1c9dd6f964f3d6444b55830af299a.json @@ -0,0 +1,72 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE comms_messages\n SET content = $1, updated_at = NOW(), edited_at = NOW()\n WHERE id = $2 AND channel_id = $3\n RETURNING\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "edited_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + null, + null + ] + }, + "hash": "1df49f5d478dcee269a9bded7fdcc34060d1c9dd6f964f3d6444b55830af299a" +} diff --git a/rust/cloud-storage/.sqlx/query-1dfe7b9de91625d4dafc473dd014326d84465827ee265f1111cd30e6d936f714.json b/rust/cloud-storage/.sqlx/query-1dfe7b9de91625d4dafc473dd014326d84465827ee265f1111cd30e6d936f714.json new file mode 100644 index 0000000000..b2923990ae --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1dfe7b9de91625d4dafc473dd014326d84465827ee265f1111cd30e6d936f714.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT email FROM notification_email_unsubscribe_code WHERE code = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "1dfe7b9de91625d4dafc473dd014326d84465827ee265f1111cd30e6d936f714" +} diff --git a/rust/cloud-storage/.sqlx/query-1e14d3e8348556865af942ec6e3d883668d0b8073143094ed67d34285f9cc92b.json b/rust/cloud-storage/.sqlx/query-1e14d3e8348556865af942ec6e3d883668d0b8073143094ed67d34285f9cc92b.json new file mode 100644 index 0000000000..e5287b48b3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1e14d3e8348556865af942ec6e3d883668d0b8073143094ed67d34285f9cc92b.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, $4)\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = $4;\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Timestamp" + ] + }, + "nullable": [] + }, + "hash": "1e14d3e8348556865af942ec6e3d883668d0b8073143094ed67d34285f9cc92b" +} diff --git a/rust/cloud-storage/.sqlx/query-1e45a7245820860fa347be763bb94e3aa7d6e5d9a2660ed6668eaec3d0b39745.json b/rust/cloud-storage/.sqlx/query-1e45a7245820860fa347be763bb94e3aa7d6e5d9a2660ed6668eaec3d0b39745.json new file mode 100644 index 0000000000..8612481418 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1e45a7245820860fa347be763bb94e3aa7d6e5d9a2660ed6668eaec3d0b39745.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE calls SET egress_id = $2 WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "1e45a7245820860fa347be763bb94e3aa7d6e5d9a2660ed6668eaec3d0b39745" +} diff --git a/rust/cloud-storage/.sqlx/query-1e96a9f033805dc354b5b3f06575ce22f1e4fbd6770c390a252cd6c790ee2d6e.json b/rust/cloud-storage/.sqlx/query-1e96a9f033805dc354b5b3f06575ce22f1e4fbd6770c390a252cd6c790ee2d6e.json new file mode 100644 index 0000000000..023a7e4749 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1e96a9f033805dc354b5b3f06575ce22f1e4fbd6770c390a252cd6c790ee2d6e.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Chat\" SET \"projectId\" = NULL\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "1e96a9f033805dc354b5b3f06575ce22f1e4fbd6770c390a252cd6c790ee2d6e" +} diff --git a/rust/cloud-storage/.sqlx/query-1ea0c7996fa301f1b842d74bc2c42c4c399bae6774014cf03704024bd4293821.json b/rust/cloud-storage/.sqlx/query-1ea0c7996fa301f1b842d74bc2c42c4c399bae6774014cf03704024bd4293821.json new file mode 100644 index 0000000000..ec2174302b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1ea0c7996fa301f1b842d74bc2c42c4c399bae6774014cf03704024bd4293821.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n macro_user_id,\n id\n FROM\n in_progress_email_link\n WHERE\n in_progress_email_link.email = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "1ea0c7996fa301f1b842d74bc2c42c4c399bae6774014cf03704024bd4293821" +} diff --git a/rust/cloud-storage/.sqlx/query-1ec5c2ad3ac95f2b35d28c6298da7d8e7db9a7fb97d8af9ca3219a9e13215742.json b/rust/cloud-storage/.sqlx/query-1ec5c2ad3ac95f2b35d28c6298da7d8e7db9a7fb97d8af9ca3219a9e13215742.json new file mode 100644 index 0000000000..05c6ec92c2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1ec5c2ad3ac95f2b35d28c6298da7d8e7db9a7fb97d8af9ca3219a9e13215742.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_message_labels\n WHERE label_id IN (\n SELECT id FROM email_labels\n WHERE link_id = $1 AND provider_label_id = ANY($2)\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "1ec5c2ad3ac95f2b35d28c6298da7d8e7db9a7fb97d8af9ca3219a9e13215742" +} diff --git a/rust/cloud-storage/.sqlx/query-1ed8b097d0371b977eab7215aba09ffc9721b22d7e9d8ea5d80d285dcf65e152.json b/rust/cloud-storage/.sqlx/query-1ed8b097d0371b977eab7215aba09ffc9721b22d7e9d8ea5d80d285dcf65e152.json new file mode 100644 index 0000000000..ecd2ef9747 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1ed8b097d0371b977eab7215aba09ffc9721b22d7e9d8ea5d80d285dcf65e152.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n ca.id,\n ca.\"chatId\" as \"chat_id\",\n ca.\"entity_id\"::TEXT as \"attachment_id!\",\n ca.\"entity_type\" as \"attachment_type: AttachmentType\",\n ca.\"messageId\" as \"message_id\"\n FROM\n \"ChatAttachment\" ca\n WHERE ca.\"chatId\" = $1\n ORDER BY ca.id ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "chat_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "attachment_id!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "attachment_type: AttachmentType", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "message_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + true, + null, + false, + true + ] + }, + "hash": "1ed8b097d0371b977eab7215aba09ffc9721b22d7e9d8ea5d80d285dcf65e152" +} diff --git a/rust/cloud-storage/.sqlx/query-1ee4ffd924167f7e5cda2be1ac66506c341547cd49c76e365129d91650474605.json b/rust/cloud-storage/.sqlx/query-1ee4ffd924167f7e5cda2be1ac66506c341547cd49c76e365129d91650474605.json new file mode 100644 index 0000000000..cafa6efc60 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1ee4ffd924167f7e5cda2be1ac66506c341547cd49c76e365129d91650474605.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n SELECT u.user_id, u.item_id, 'document', NOW(), NOW()\n FROM UNNEST($1::text[], $2::text[]) AS u(item_id, user_id)\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = NOW();\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "1ee4ffd924167f7e5cda2be1ac66506c341547cd49c76e365129d91650474605" +} diff --git a/rust/cloud-storage/.sqlx/query-1ef37a5e008e95d1d123d815c287931dc2e7ddcbc393c0dc068cfcd1a752e6e0.json b/rust/cloud-storage/.sqlx/query-1ef37a5e008e95d1d123d815c287931dc2e7ddcbc393c0dc068cfcd1a752e6e0.json new file mode 100644 index 0000000000..c96f5b1155 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1ef37a5e008e95d1d123d815c287931dc2e7ddcbc393c0dc068cfcd1a752e6e0.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, provider_id as \"provider_id!\"\n FROM email_threads\n WHERE link_id = $1\n AND provider_id = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "1ef37a5e008e95d1d123d815c287931dc2e7ddcbc393c0dc068cfcd1a752e6e0" +} diff --git a/rust/cloud-storage/.sqlx/query-1f007b302205e5fb56f1d90b145aa96922a8f97e7a10d91ec7970c0cbf824281.json b/rust/cloud-storage/.sqlx/query-1f007b302205e5fb56f1d90b145aa96922a8f97e7a10d91ec7970c0cbf824281.json new file mode 100644 index 0000000000..22393c625f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1f007b302205e5fb56f1d90b145aa96922a8f97e7a10d91ec7970c0cbf824281.json @@ -0,0 +1,88 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n kind,\n owner_user_id,\n team_id,\n name,\n handle,\n description,\n avatar_url,\n created_by,\n created_at,\n updated_at,\n deleted_at\n FROM bots\n WHERE id = $1\n AND deleted_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "kind", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "team_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "handle", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "description", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "avatar_url", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "created_by", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true + ] + }, + "hash": "1f007b302205e5fb56f1d90b145aa96922a8f97e7a10d91ec7970c0cbf824281" +} diff --git a/rust/cloud-storage/.sqlx/query-1f0770cc758a37117b875b129eeb2e3e3e1143e8ab3dae3a85e9e756cdf9bdc0.json b/rust/cloud-storage/.sqlx/query-1f0770cc758a37117b875b129eeb2e3e3e1143e8ab3dae3a85e9e756cdf9bdc0.json new file mode 100644 index 0000000000..ad81720097 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1f0770cc758a37117b875b129eeb2e3e3e1143e8ab3dae3a85e9e756cdf9bdc0.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"organizationId\" as id\n FROM \"OrganizationBilling\"\n WHERE \"email\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "1f0770cc758a37117b875b129eeb2e3e3e1143e8ab3dae3a85e9e756cdf9bdc0" +} diff --git a/rust/cloud-storage/.sqlx/query-1fa9e2989967fe9d44ee4e7c7db0091aebd9369c066fde6ccfe090bc97271e71.json b/rust/cloud-storage/.sqlx/query-1fa9e2989967fe9d44ee4e7c7db0091aebd9369c066fde6ccfe090bc97271e71.json new file mode 100644 index 0000000000..fbeff2f208 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1fa9e2989967fe9d44ee4e7c7db0091aebd9369c066fde6ccfe090bc97271e71.json @@ -0,0 +1,30 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT t.id, l.macro_id\n FROM email_threads t\n JOIN email_links l ON t.link_id = l.id\n WHERE t.updated_at >= $3\n ORDER BY t.latest_inbound_message_ts DESC NULLS LAST\n LIMIT $1 OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8", + "Timestamptz" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "1fa9e2989967fe9d44ee4e7c7db0091aebd9369c066fde6ccfe090bc97271e71" +} diff --git a/rust/cloud-storage/.sqlx/query-1fc6d4133d6252a01a56005faa3e7244ab1debf1731781813995f3be3075d9f1.json b/rust/cloud-storage/.sqlx/query-1fc6d4133d6252a01a56005faa3e7244ab1debf1731781813995f3be3075d9f1.json new file mode 100644 index 0000000000..813b01d6d0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1fc6d4133d6252a01a56005faa3e7244ab1debf1731781813995f3be3075d9f1.json @@ -0,0 +1,18 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO mcp_servers (user_id, url, server_name, credentials, enabled)\n VALUES ($1, $2, $3, $4, $5)\n ON CONFLICT (user_id, url) DO UPDATE\n SET server_name = EXCLUDED.server_name,\n credentials = EXCLUDED.credentials,\n enabled = EXCLUDED.enabled,\n updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Bytea", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "1fc6d4133d6252a01a56005faa3e7244ab1debf1731781813995f3be3075d9f1" +} diff --git a/rust/cloud-storage/.sqlx/query-1ffb3c556caf3fe25d6f69bbeeca0a39d1e5a6fadc9170a2d863fee8fbfb0939.json b/rust/cloud-storage/.sqlx/query-1ffb3c556caf3fe25d6f69bbeeca0a39d1e5a6fadc9170a2d863fee8fbfb0939.json new file mode 100644 index 0000000000..0101701448 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-1ffb3c556caf3fe25d6f69bbeeca0a39d1e5a6fadc9170a2d863fee8fbfb0939.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id, joined_at, left_at\n FROM call_record_participants\n WHERE call_record_id = $1\n ORDER BY joined_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "joined_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "left_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + true + ] + }, + "hash": "1ffb3c556caf3fe25d6f69bbeeca0a39d1e5a6fadc9170a2d863fee8fbfb0939" +} diff --git a/rust/cloud-storage/.sqlx/query-2032b8706e7c7928243b8185349df6fde6d25c6187e9b03a75640a771aa8899a.json b/rust/cloud-storage/.sqlx/query-2032b8706e7c7928243b8185349df6fde6d25c6187e9b03a75640a771aa8899a.json new file mode 100644 index 0000000000..0890ed3cf7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2032b8706e7c7928243b8185349df6fde6d25c6187e9b03a75640a771aa8899a.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.id,\n u.\"stripeCustomerId\" as \"stripe_customer_id\"\n FROM \"User\" u\n WHERE u.\"macro_user_id\" IS NULL\n ORDER BY u.id ASC\n LIMIT $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "stripe_customer_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "2032b8706e7c7928243b8185349df6fde6d25c6187e9b03a75640a771aa8899a" +} diff --git a/rust/cloud-storage/.sqlx/query-205c24d0647adde8fd03d37aa37fce4a37f75e0b9796a77bb45d0ebb3264928a.json b/rust/cloud-storage/.sqlx/query-205c24d0647adde8fd03d37aa37fce4a37f75e0b9796a77bb45d0ebb3264928a.json new file mode 100644 index 0000000000..044d5bf983 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-205c24d0647adde8fd03d37aa37fce4a37f75e0b9796a77bb45d0ebb3264928a.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n \"messageId\" as \"message_id\",\n \"url\",\n \"title\",\n \"description\",\n \"favicon_url\",\n \"image_url\"\n FROM \"WebAnnotations\" wa\n INNER JOIN \"ChatMessage\" cm ON cm.id = wa.\"messageId\"\n WHERE cm.\"chatId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "url", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "title", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "description", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "favicon_url", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "image_url", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true, + false, + false, + true, + true, + true + ] + }, + "hash": "205c24d0647adde8fd03d37aa37fce4a37f75e0b9796a77bb45d0ebb3264928a" +} diff --git a/rust/cloud-storage/.sqlx/query-20a52bc26743ce11459bb7c7cfda25dd6084c0d64e4dc99d3f0d802f0ae61136.json b/rust/cloud-storage/.sqlx/query-20a52bc26743ce11459bb7c7cfda25dd6084c0d64e4dc99d3f0d802f0ae61136.json new file mode 100644 index 0000000000..f9a64311a2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-20a52bc26743ce11459bb7c7cfda25dd6084c0d64e4dc99d3f0d802f0ae61136.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH ranked AS (\n SELECT\n id,\n ROW_NUMBER() OVER (\n ORDER BY vector_score DESC, created_at DESC\n ) AS rn\n FROM task_duplicate_match\n WHERE status = 'active'\n AND (task_id = $1 OR duplicate_task_id = $1)\n )\n UPDATE task_duplicate_match m\n SET status = 'dismissed', updated_at = NOW()\n FROM ranked r\n WHERE m.id = r.id\n AND r.rn > $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "20a52bc26743ce11459bb7c7cfda25dd6084c0d64e4dc99d3f0d802f0ae61136" +} diff --git a/rust/cloud-storage/.sqlx/query-20a6a1d55831d2f428a4439ff09cd0f680dab8845b5789b83eee8966bbb85937.json b/rust/cloud-storage/.sqlx/query-20a6a1d55831d2f428a4439ff09cd0f680dab8845b5789b83eee8966bbb85937.json new file mode 100644 index 0000000000..53e84b1e8f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-20a6a1d55831d2f428a4439ff09cd0f680dab8845b5789b83eee8966bbb85937.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM calls WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "20a6a1d55831d2f428a4439ff09cd0f680dab8845b5789b83eee8966bbb85937" +} diff --git a/rust/cloud-storage/.sqlx/query-20a883359476f1460ce1ecb7c96d502b89f9151a884b24f316c6196f62158659.json b/rust/cloud-storage/.sqlx/query-20a883359476f1460ce1ecb7c96d502b89f9151a884b24f316c6196f62158659.json new file mode 100644 index 0000000000..f2e030ab47 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-20a883359476f1460ce1ecb7c96d502b89f9151a884b24f316c6196f62158659.json @@ -0,0 +1,64 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id,\n c.link_id,\n c.email_address,\n COALESCE(m.from_name, c.name) as \"name\", -- name from message overrides contact name\n c.original_photo_url,\n c.sfs_photo_url,\n c.created_at,\n c.updated_at\n FROM email_messages m\n INNER JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.id = ANY($1)\n AND m.from_contact_id IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "original_photo_url", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "sfs_photo_url", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + null, + true, + true, + false, + false + ] + }, + "hash": "20a883359476f1460ce1ecb7c96d502b89f9151a884b24f316c6196f62158659" +} diff --git a/rust/cloud-storage/.sqlx/query-21ac8784f90a5e311b658fe88195bdf9c83dfc84f0b5a8e8075a7153d7f41818.json b/rust/cloud-storage/.sqlx/query-21ac8784f90a5e311b658fe88195bdf9c83dfc84f0b5a8e8075a7153d7f41818.json new file mode 100644 index 0000000000..cf7c2c61a1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-21ac8784f90a5e311b658fe88195bdf9c83dfc84f0b5a8e8075a7153d7f41818.json @@ -0,0 +1,95 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n link_id,\n provider_label_id,\n name,\n created_at,\n message_list_visibility as \"message_list_visibility: _\",\n label_list_visibility as \"label_list_visibility: _\",\n type as \"type_: _\"\n FROM email_labels\n WHERE link_id = $1\n ORDER BY name\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_label_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "message_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_message_list_visibility_enum", + "kind": { + "Enum": [ + "Show", + "Hide" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "label_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_label_list_visibility_enum", + "kind": { + "Enum": [ + "LabelShow", + "LabelShowIfUnread", + "LabelHide" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "type_: _", + "type_info": { + "Custom": { + "name": "email_label_type_enum", + "kind": { + "Enum": [ + "System", + "User" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "21ac8784f90a5e311b658fe88195bdf9c83dfc84f0b5a8e8075a7153d7f41818" +} diff --git a/rust/cloud-storage/.sqlx/query-21cce4388c4839d33ceac5f09a2f3f7a506003afe498d487699c0cb4b78c7899.json b/rust/cloud-storage/.sqlx/query-21cce4388c4839d33ceac5f09a2f3f7a506003afe498d487699c0cb4b78c7899.json new file mode 100644 index 0000000000..4cfd33f2d4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-21cce4388c4839d33ceac5f09a2f3f7a506003afe498d487699c0cb4b78c7899.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.id\n FROM\n \"User\" u\n WHERE\n u.email = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "21cce4388c4839d33ceac5f09a2f3f7a506003afe498d487699c0cb4b78c7899" +} diff --git a/rust/cloud-storage/.sqlx/query-2247a3c9b543df2bdf1150a7148956f0c3c8287e3863893eb7e8761af066a46f.json b/rust/cloud-storage/.sqlx/query-2247a3c9b543df2bdf1150a7148956f0c3c8287e3863893eb7e8761af066a46f.json new file mode 100644 index 0000000000..92694142b3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2247a3c9b543df2bdf1150a7148956f0c3c8287e3863893eb7e8761af066a46f.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM comms_attachments\n WHERE id = ANY($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [] + }, + "hash": "2247a3c9b543df2bdf1150a7148956f0c3c8287e3863893eb7e8761af066a46f" +} diff --git a/rust/cloud-storage/.sqlx/query-22c535eec28118577d247aed68b7064a5a22071296f2603d6f86a7bc1816dd0f.json b/rust/cloud-storage/.sqlx/query-22c535eec28118577d247aed68b7064a5a22071296f2603d6f86a7bc1816dd0f.json new file mode 100644 index 0000000000..80831ac218 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-22c535eec28118577d247aed68b7064a5a22071296f2603d6f86a7bc1816dd0f.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Pin\" WHERE \"userId\" = $1 AND \"pinnedItemId\" = $2 AND \"pinnedItemType\" = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "22c535eec28118577d247aed68b7064a5a22071296f2603d6f86a7bc1816dd0f" +} diff --git a/rust/cloud-storage/.sqlx/query-22cfead49cd3d400a1752f2c232b9ccc7072aac9d5dd7c17a15c6be812fb3d4f.json b/rust/cloud-storage/.sqlx/query-22cfead49cd3d400a1752f2c232b9ccc7072aac9d5dd7c17a15c6be812fb3d4f.json new file mode 100644 index 0000000000..6bff4d79af --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-22cfead49cd3d400a1752f2c232b9ccc7072aac9d5dd7c17a15c6be812fb3d4f.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"User\"\n SET macro_user_id = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "22cfead49cd3d400a1752f2c232b9ccc7072aac9d5dd7c17a15c6be812fb3d4f" +} diff --git a/rust/cloud-storage/.sqlx/query-2323566d1f90b640bf6cbd83beb86be825ff271d9a18921835dfd1864a78ebfb.json b/rust/cloud-storage/.sqlx/query-2323566d1f90b640bf6cbd83beb86be825ff271d9a18921835dfd1864a78ebfb.json new file mode 100644 index 0000000000..19bcc6aa4e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2323566d1f90b640bf6cbd83beb86be825ff271d9a18921835dfd1864a78ebfb.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"SharePermission\" (\"isPublic\", \"publicAccessLevel\", \"createdAt\", \"updatedAt\")\n VALUES (false, NULL, NOW(), NOW())\n RETURNING id as \"id!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "2323566d1f90b640bf6cbd83beb86be825ff271d9a18921835dfd1864a78ebfb" +} diff --git a/rust/cloud-storage/.sqlx/query-233648d4502d3b4c6190603e4692c9224a44d046cecb5cce585afbb2e8aeaf49.json b/rust/cloud-storage/.sqlx/query-233648d4502d3b4c6190603e4692c9224a44d046cecb5cce585afbb2e8aeaf49.json new file mode 100644 index 0000000000..ff086d1c89 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-233648d4502d3b4c6190603e4692c9224a44d046cecb5cce585afbb2e8aeaf49.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id,\n d.name,\n d.\"owner\",\n d.\"fileType\" as \"file_type!\",\n di.id as \"document_version_id?\"\n FROM\n \"Document\" d\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" ASC\n LIMIT 1\n ) di ON true\n WHERE\n d.\"deletedAt\" IS NULL AND\n d.id = $1 AND\n d.\"fileType\" IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "file_type!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "document_version_id?", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + false + ] + }, + "hash": "233648d4502d3b4c6190603e4692c9224a44d046cecb5cce585afbb2e8aeaf49" +} diff --git a/rust/cloud-storage/.sqlx/query-2386c156456dbaea33ec5071907677174bdfc3048719f1be818c11b6dd7ada01.json b/rust/cloud-storage/.sqlx/query-2386c156456dbaea33ec5071907677174bdfc3048719f1be818c11b6dd7ada01.json new file mode 100644 index 0000000000..5c0001485c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2386c156456dbaea33ec5071907677174bdfc3048719f1be818c11b6dd7ada01.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n esm.link_id, esm.message_id\n FROM email_scheduled_messages esm\n JOIN email_messages em ON em.id = esm.message_id\n WHERE\n esm.send_time < now()\n AND esm.sent = FALSE\n AND em.is_draft = TRUE\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false + ] + }, + "hash": "2386c156456dbaea33ec5071907677174bdfc3048719f1be818c11b6dd7ada01" +} diff --git a/rust/cloud-storage/.sqlx/query-2434f8a0e387b85009c8857ab719928f6e922ecf302228837e4d0686866ac515.json b/rust/cloud-storage/.sqlx/query-2434f8a0e387b85009c8857ab719928f6e922ecf302228837e4d0686866ac515.json new file mode 100644 index 0000000000..2b787b4f2b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2434f8a0e387b85009c8857ab719928f6e922ecf302228837e4d0686866ac515.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"ChatMessage\"\n SET \"content\" = $1, \"updatedAt\" = NOW()\n WHERE \"id\" = $2 AND \"chatId\" = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Jsonb", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "2434f8a0e387b85009c8857ab719928f6e922ecf302228837e4d0686866ac515" +} diff --git a/rust/cloud-storage/.sqlx/query-2443fe54c4008a741bf932783b861f1049c87b024003d7a6781ed24d82f095e8.json b/rust/cloud-storage/.sqlx/query-2443fe54c4008a741bf932783b861f1049c87b024003d7a6781ed24d82f095e8.json new file mode 100644 index 0000000000..15f9c1c609 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2443fe54c4008a741bf932783b861f1049c87b024003d7a6781ed24d82f095e8.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT l.id\n FROM email_labels l\n JOIN email_links el ON el.id = l.link_id\n JOIN team_user tu ON tu.user_id = el.macro_id\n WHERE l.name = 'TRASH' AND tu.team_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "2443fe54c4008a741bf932783b861f1049c87b024003d7a6781ed24d82f095e8" +} diff --git a/rust/cloud-storage/.sqlx/query-2448b50af4a227c3a7d638e1377145f8a813091547e4f47a9f1fed4b8959e4bf.json b/rust/cloud-storage/.sqlx/query-2448b50af4a227c3a7d638e1377145f8a813091547e4f47a9f1fed4b8959e4bf.json new file mode 100644 index 0000000000..7ec90a9c87 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2448b50af4a227c3a7d638e1377145f8a813091547e4f47a9f1fed4b8959e4bf.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n id,\n email,\n \"organizationId\" as \"organization_id?\"\n FROM \"User\"\n WHERE \"id\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "email", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "organization_id?", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true + ] + }, + "hash": "2448b50af4a227c3a7d638e1377145f8a813091547e4f47a9f1fed4b8959e4bf" +} diff --git a/rust/cloud-storage/.sqlx/query-244c5d4b6165e48a376b1a33583bcc6cbe5e22bd559419180a6c2f2855ff607e.json b/rust/cloud-storage/.sqlx/query-244c5d4b6165e48a376b1a33583bcc6cbe5e22bd559419180a6c2f2855ff607e.json new file mode 100644 index 0000000000..7303f3cfa9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-244c5d4b6165e48a376b1a33583bcc6cbe5e22bd559419180a6c2f2855ff607e.json @@ -0,0 +1,73 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n channel_id,\n thread_id,\n sender_id,\n content,\n created_at,\n updated_at,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages\n WHERE channel_id = $1\n AND (created_at, id) > ($2, $3)\n ORDER BY created_at ASC, id ASC\n LIMIT $4\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "edited_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Timestamptz", + "Uuid", + "Int8" + ] + }, + "nullable": [ + false, + false, + true, + false, + false, + false, + false, + null, + null + ] + }, + "hash": "244c5d4b6165e48a376b1a33583bcc6cbe5e22bd559419180a6c2f2855ff607e" +} diff --git a/rust/cloud-storage/.sqlx/query-2500e65cc47f0cfb5cf99c7b4aa87ca672780591c4b7b2ff5429121d5b4594bf.json b/rust/cloud-storage/.sqlx/query-2500e65cc47f0cfb5cf99c7b4aa87ca672780591c4b7b2ff5429121d5b4594bf.json new file mode 100644 index 0000000000..e6831d38ae --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2500e65cc47f0cfb5cf99c7b4aa87ca672780591c4b7b2ff5429121d5b4594bf.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as \"document_id\",\n COALESCE(db.id, di.id) as \"document_version_id!\",\n d.name as \"document_name\",\n d.\"fileType\" as \"file_type\",\n d.\"branchedFromId\" as branched_from_id,\n d.\"branchedFromVersionId\" as branched_from_version_id,\n d.\"documentFamilyId\" as document_family_id,\n d.\"createdAt\"::timestamptz as created_at,\n d.\"updatedAt\"::timestamptz as updated_at\n FROM\n \"Document\" d\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" DESC\n LIMIT 1\n ) di ON d.\"fileType\" IS DISTINCT FROM 'docx'\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n WHERE\n d.owner = $1 AND d.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "document_version_id!", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + null, + false, + true, + true, + true, + true, + null, + null + ] + }, + "hash": "2500e65cc47f0cfb5cf99c7b4aa87ca672780591c4b7b2ff5429121d5b4594bf" +} diff --git a/rust/cloud-storage/.sqlx/query-2524aba87b62046462d33a88cd3ccd9818906c386468c40410d1e96f1aeb4e27.json b/rust/cloud-storage/.sqlx/query-2524aba87b62046462d33a88cd3ccd9818906c386468c40410d1e96f1aeb4e27.json new file mode 100644 index 0000000000..772c090515 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2524aba87b62046462d33a88cd3ccd9818906c386468c40410d1e96f1aeb4e27.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id\n FROM email_contacts\n WHERE LOWER(email_address) = LOWER($1) AND link_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "2524aba87b62046462d33a88cd3ccd9818906c386468c40410d1e96f1aeb4e27" +} diff --git a/rust/cloud-storage/.sqlx/query-2576862c3cfe8c3efaf56031067a7251ed3737e3aa63d2213520a9f9b83a281c.json b/rust/cloud-storage/.sqlx/query-2576862c3cfe8c3efaf56031067a7251ed3737e3aa63d2213520a9f9b83a281c.json new file mode 100644 index 0000000000..661cc4ff38 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2576862c3cfe8c3efaf56031067a7251ed3737e3aa63d2213520a9f9b83a281c.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT id, user_id, default_view_id FROM excluded_default_view WHERE user_id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "default_view_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "2576862c3cfe8c3efaf56031067a7251ed3737e3aa63d2213520a9f9b83a281c" +} diff --git a/rust/cloud-storage/.sqlx/query-25ecb2c575d0ba90bea0d500ac8522346fb8bc6aa9bf669219c300cc398a1108.json b/rust/cloud-storage/.sqlx/query-25ecb2c575d0ba90bea0d500ac8522346fb8bc6aa9bf669219c300cc398a1108.json new file mode 100644 index 0000000000..19945e3ba5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-25ecb2c575d0ba90bea0d500ac8522346fb8bc6aa9bf669219c300cc398a1108.json @@ -0,0 +1,25 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH message AS (\n SELECT id\n FROM comms_messages\n WHERE id = $2 AND channel_id = $1\n ),\n inserted AS (\n INSERT INTO comms_reactions (message_id, emoji, user_id)\n SELECT id, $3, $4\n FROM message\n ON CONFLICT DO NOTHING\n )\n SELECT EXISTS (SELECT 1 FROM message) AS \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Varchar", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "25ecb2c575d0ba90bea0d500ac8522346fb8bc6aa9bf669219c300cc398a1108" +} diff --git a/rust/cloud-storage/.sqlx/query-2611958405cf94c91ef85a09da00b0a8701621b42e4c57e74d2da40062d577d4.json b/rust/cloud-storage/.sqlx/query-2611958405cf94c91ef85a09da00b0a8701621b42e4c57e74d2da40062d577d4.json new file mode 100644 index 0000000000..06196d06b6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2611958405cf94c91ef85a09da00b0a8701621b42e4c57e74d2da40062d577d4.json @@ -0,0 +1,130 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH PinnedItems AS (\n SELECT\n p.\"pinnedItemId\" as pin_item_id,\n p.\"pinnedItemType\" as pin_item_type,\n p.\"pinIndex\" as pin_index\n FROM \"Pin\" p\n WHERE p.\"userId\" = $1\n ), Combined AS (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"projectId\" as \"project_id\",\n di.sha as \"sha\",\n NULL as \"is_persistent\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n pi.pin_index as \"pin_index\",\n CASE \n WHEN dt.sub_type = 'task' \n AND ep_status.values->'value' ? $2\n THEN true \n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL \n END as \"is_completed\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status \n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id \n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $3\n INNER JOIN PinnedItems pi ON pi.pin_item_id = d.id AND pi.pin_item_type = 'document'\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.\"documentId\",\n i.\"sha\",\n i.\"createdAt\",\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n UNION ALL\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"projectId\" as \"project_id\",\n NULL as \"sha\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as sub_type,\n pi.pin_index as \"pin_index\",\n NULL as \"is_completed\"\n FROM \"Chat\" c\n INNER JOIN PinnedItems pi ON pi.pin_item_id = c.id AND pi.pin_item_type = 'chat'\n UNION ALL\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at\",\n p.\"updatedAt\"::timestamptz as \"updated_at\",\n p.\"parentId\" as \"project_id\",\n NULL as \"sha\",\n NULL as \"is_persistent\",\n NULL as sub_type,\n pi.pin_index as \"pin_index\",\n NULL as \"is_completed\"\n FROM \"Project\" p\n INNER JOIN PinnedItems pi ON pi.pin_item_id = p.id AND pi.pin_item_type = 'project'\n )\n SELECT * FROM Combined\n ORDER BY pin_index ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_type!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_version_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "user_id!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "name!", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 13, + "name": "is_persistent", + "type_info": "Bool" + }, + { + "ordinal": 14, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 15, + "name": "pin_index", + "type_info": "Int4" + }, + { + "ordinal": 16, + "name": "is_completed", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Uuid" + ] + }, + "nullable": [ + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null + ] + }, + "hash": "2611958405cf94c91ef85a09da00b0a8701621b42e4c57e74d2da40062d577d4" +} diff --git a/rust/cloud-storage/.sqlx/query-26ab5fa9630526b99a3937baff648f056a532178864f1f62ce55d107d1702f7f.json b/rust/cloud-storage/.sqlx/query-26ab5fa9630526b99a3937baff648f056a532178864f1f62ce55d107d1702f7f.json new file mode 100644 index 0000000000..204ec15fdc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-26ab5fa9630526b99a3937baff648f056a532178864f1f62ce55d107d1702f7f.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT link_id, signature_on_replies_forwards\n FROM email_settings\n WHERE link_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "signature_on_replies_forwards", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "26ab5fa9630526b99a3937baff648f056a532178864f1f62ce55d107d1702f7f" +} diff --git a/rust/cloud-storage/.sqlx/query-26c357f323179bc7c5c64492521aa202a0a8119036d4be0975aaac1ce6d96cd2.json b/rust/cloud-storage/.sqlx/query-26c357f323179bc7c5c64492521aa202a0a8119036d4be0975aaac1ce6d96cd2.json new file mode 100644 index 0000000000..77a2fec9fa --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-26c357f323179bc7c5c64492521aa202a0a8119036d4be0975aaac1ce6d96cd2.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.email\n FROM \"UserHistory\" uh\n JOIN \"User\" u ON uh.\"userId\" = u.id\n WHERE uh.\"itemId\" = $1 AND uh.\"itemType\" = 'document'\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "26c357f323179bc7c5c64492521aa202a0a8119036d4be0975aaac1ce6d96cd2" +} diff --git a/rust/cloud-storage/.sqlx/query-270cd8ae6b47508cb7e4e920bd76cb0f6177d685bddedb06f1892d0014af6f01.json b/rust/cloud-storage/.sqlx/query-270cd8ae6b47508cb7e4e920bd76cb0f6177d685bddedb06f1892d0014af6f01.json new file mode 100644 index 0000000000..ee1916f8f5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-270cd8ae6b47508cb7e4e920bd76cb0f6177d685bddedb06f1892d0014af6f01.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM notification_user_device_registration\n WHERE device_token = $1 AND device_type = $2\n RETURNING device_endpoint\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "device_endpoint", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + { + "Custom": { + "name": "notification_device_type_option", + "kind": { + "Enum": [ + "ios", + "android", + "iosvoip" + ] + } + } + } + ] + }, + "nullable": [ + false + ] + }, + "hash": "270cd8ae6b47508cb7e4e920bd76cb0f6177d685bddedb06f1892d0014af6f01" +} diff --git a/rust/cloud-storage/.sqlx/query-270e056bb1d522c9f46b8f8f0fde1d3307bf0627fe420be6bc0509072bae1565.json b/rust/cloud-storage/.sqlx/query-270e056bb1d522c9f46b8f8f0fde1d3307bf0627fe420be6bc0509072bae1565.json new file mode 100644 index 0000000000..df429bfdc5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-270e056bb1d522c9f46b8f8f0fde1d3307bf0627fe420be6bc0509072bae1565.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"sharePermissionId\" as share_permission_id\n FROM \"ProjectPermission\"\n WHERE \"projectId\"=$1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "270e056bb1d522c9f46b8f8f0fde1d3307bf0627fe420be6bc0509072bae1565" +} diff --git a/rust/cloud-storage/.sqlx/query-273231d502cf7d6ac6e29d3007fb5bf5fff4d5bc979ed1555df61f4666e1121e.json b/rust/cloud-storage/.sqlx/query-273231d502cf7d6ac6e29d3007fb5bf5fff4d5bc979ed1555df61f4666e1121e.json new file mode 100644 index 0000000000..9e4157d065 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-273231d502cf7d6ac6e29d3007fb5bf5fff4d5bc979ed1555df61f4666e1121e.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM team\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "273231d502cf7d6ac6e29d3007fb5bf5fff4d5bc979ed1555df61f4666e1121e" +} diff --git a/rust/cloud-storage/.sqlx/query-275669451834ace05bb416ced2daa303d315804838e6d3847718eecd239864ee.json b/rust/cloud-storage/.sqlx/query-275669451834ace05bb416ced2daa303d315804838e6d3847718eecd239864ee.json new file mode 100644 index 0000000000..4186d5178a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-275669451834ace05bb416ced2daa303d315804838e6d3847718eecd239864ee.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE calls\n SET preview_url = $2\n WHERE recording_key = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "275669451834ace05bb416ced2daa303d315804838e6d3847718eecd239864ee" +} diff --git a/rust/cloud-storage/.sqlx/query-2765a1391d0f36121f7b42445e00be69a87c2a9c380a8fc2c64afa9fb509e9d8.json b/rust/cloud-storage/.sqlx/query-2765a1391d0f36121f7b42445e00be69a87c2a9c380a8fc2c64afa9fb509e9d8.json new file mode 100644 index 0000000000..d54e213bf6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2765a1391d0f36121f7b42445e00be69a87c2a9c380a8fc2c64afa9fb509e9d8.json @@ -0,0 +1,64 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id as \"id!: Uuid\",\n foreign_entity_id as \"foreign_entity_id!: String\",\n foreign_entity_source as \"foreign_entity_source!: String\",\n metadata as \"metadata!: serde_json::Value\",\n stored_for_id as \"stored_for_id!: String\",\n stored_for_auth_entity as \"stored_for_auth_entity!: String\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\"\n FROM foreign_entity\n WHERE id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "foreign_entity_id!: String", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "foreign_entity_source!: String", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "metadata!: serde_json::Value", + "type_info": "Jsonb" + }, + { + "ordinal": 4, + "name": "stored_for_id!: String", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "stored_for_auth_entity!: String", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "created_at!: DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at!: DateTime", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "2765a1391d0f36121f7b42445e00be69a87c2a9c380a8fc2c64afa9fb509e9d8" +} diff --git a/rust/cloud-storage/.sqlx/query-278876b19e66f90a52e4a982f6dc6376849461c5df6a9cb1037d1eee6e30cfab.json b/rust/cloud-storage/.sqlx/query-278876b19e66f90a52e4a982f6dc6376849461c5df6a9cb1037d1eee6e30cfab.json new file mode 100644 index 0000000000..090c1515dc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-278876b19e66f90a52e4a982f6dc6376849461c5df6a9cb1037d1eee6e30cfab.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n COALESCE(db.id, di.id) as \"id!\",\n d.uploaded\n FROM\n \"Document\" d\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" ASC\n LIMIT 1\n ) di ON d.\"fileType\" IS DISTINCT FROM 'docx'\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" ASC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n WHERE\n d.id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "uploaded", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null, + false + ] + }, + "hash": "278876b19e66f90a52e4a982f6dc6376849461c5df6a9cb1037d1eee6e30cfab" +} diff --git a/rust/cloud-storage/.sqlx/query-279926d74db34fd618a6b507e2ec60160ef8399af5cfa11393a2e1e8d9762d65.json b/rust/cloud-storage/.sqlx/query-279926d74db34fd618a6b507e2ec60160ef8399af5cfa11393a2e1e8d9762d65.json new file mode 100644 index 0000000000..0216da5e97 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-279926d74db34fd618a6b507e2ec60160ef8399af5cfa11393a2e1e8d9762d65.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM entity_access\n WHERE entity_id = ANY($1)\n AND granted_from_project_id = ANY($2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "279926d74db34fd618a6b507e2ec60160ef8399af5cfa11393a2e1e8d9762d65" +} diff --git a/rust/cloud-storage/.sqlx/query-27af0e4ef3bfa65509108039027a7a0891ce7e5f9d3ff36e6598d5f51650416c.json b/rust/cloud-storage/.sqlx/query-27af0e4ef3bfa65509108039027a7a0891ce7e5f9d3ff36e6598d5f51650416c.json new file mode 100644 index 0000000000..0a50742ac6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-27af0e4ef3bfa65509108039027a7a0891ce7e5f9d3ff36e6598d5f51650416c.json @@ -0,0 +1,60 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Project\" (\"name\", \"userId\", \"parentId\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, NOW(), NOW())\n RETURNING id, name, \"userId\"::text as user_id, \"createdAt\"::timestamptz as created_at, \"deletedAt\"::timestamptz as deleted_at,\n \"updatedAt\"::timestamptz as updated_at, \"parentId\" as parent_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "parent_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + null, + null, + null, + true + ] + }, + "hash": "27af0e4ef3bfa65509108039027a7a0891ce7e5f9d3ff36e6598d5f51650416c" +} diff --git a/rust/cloud-storage/.sqlx/query-27cffe57cded3d1b63df02e8dca8b2158fe2072af6b7baacd30b3f0095cb7e0c.json b/rust/cloud-storage/.sqlx/query-27cffe57cded3d1b63df02e8dca8b2158fe2072af6b7baacd30b3f0095cb7e0c.json new file mode 100644 index 0000000000..53bc4e1cd9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-27cffe57cded3d1b63df02e8dca8b2158fe2072af6b7baacd30b3f0095cb7e0c.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT link_id, message_id, send_time, sent, processing\n FROM email_scheduled_messages\n WHERE message_id = ANY($1) AND sent = false\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "send_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "sent", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "processing", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + false, + false + ] + }, + "hash": "27cffe57cded3d1b63df02e8dca8b2158fe2072af6b7baacd30b3f0095cb7e0c" +} diff --git a/rust/cloud-storage/.sqlx/query-28baf072b97758fba3e18900b97176766a0cd023d6730538b6e5c936ae7bdb48.json b/rust/cloud-storage/.sqlx/query-28baf072b97758fba3e18900b97176766a0cd023d6730538b6e5c936ae7bdb48.json new file mode 100644 index 0000000000..d1cec003c4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-28baf072b97758fba3e18900b97176766a0cd023d6730538b6e5c936ae7bdb48.json @@ -0,0 +1,32 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id AS \"call_id!\",\n started_at AS \"started_at!\"\n FROM call_records\n WHERE\n ($2::timestamptz IS NULL OR started_at >= $2)\n AND ($3::timestamptz IS NULL OR started_at < $3)\n AND (\n $4::timestamptz IS NULL\n OR (started_at, id) > ($4, $5::uuid)\n )\n ORDER BY started_at ASC, id ASC\n LIMIT $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "call_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "started_at!", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Int8", + "Timestamptz", + "Timestamptz", + "Timestamptz", + "Uuid" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "28baf072b97758fba3e18900b97176766a0cd023d6730538b6e5c936ae7bdb48" +} diff --git a/rust/cloud-storage/.sqlx/query-28c518d844cd4d843c097af1551f6f384a4763514d278b5444341390f58a8281.json b/rust/cloud-storage/.sqlx/query-28c518d844cd4d843c097af1551f6f384a4763514d278b5444341390f58a8281.json new file mode 100644 index 0000000000..98ceb2aeec --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-28c518d844cd4d843c097af1551f6f384a4763514d278b5444341390f58a8281.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE \"Project\" SET \"updatedAt\" = NOW() WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "28c518d844cd4d843c097af1551f6f384a4763514d278b5444341390f58a8281" +} diff --git a/rust/cloud-storage/.sqlx/query-28df117b319120af2c7f9b3dbfdd45539b62c00cb222b029e501cd7a40e83ccd.json b/rust/cloud-storage/.sqlx/query-28df117b319120af2c7f9b3dbfdd45539b62c00cb222b029e501cd7a40e83ccd.json new file mode 100644 index 0000000000..50a96efdf5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-28df117b319120af2c7f9b3dbfdd45539b62c00cb222b029e501cd7a40e83ccd.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT github_key\n FROM github_pr_tasks\n WHERE task_id = $1\n ORDER BY created_at ASC, github_key ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "github_key", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "28df117b319120af2c7f9b3dbfdd45539b62c00cb222b029e501cd7a40e83ccd" +} diff --git a/rust/cloud-storage/.sqlx/query-2930435da61e2e75a6ec3a127f3f1591934bb55a9f2fed8e47dd4406085fa6b2.json b/rust/cloud-storage/.sqlx/query-2930435da61e2e75a6ec3a127f3f1591934bb55a9f2fed8e47dd4406085fa6b2.json new file mode 100644 index 0000000000..1ccf0c370f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2930435da61e2e75a6ec3a127f3f1591934bb55a9f2fed8e47dd4406085fa6b2.json @@ -0,0 +1,86 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as \"document_id\",\n d.owner,\n d.name as \"document_name\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"projectId\" as \"project_id\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n WHERE\n d.id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 5, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + true, + true, + false, + true, + null + ] + }, + "hash": "2930435da61e2e75a6ec3a127f3f1591934bb55a9f2fed8e47dd4406085fa6b2" +} diff --git a/rust/cloud-storage/.sqlx/query-293ae45a8798edad6555057aa63f96b7c27c4d7457aeeb615789f1ebd5468337.json b/rust/cloud-storage/.sqlx/query-293ae45a8798edad6555057aa63f96b7c27c4d7457aeeb615789f1ebd5468337.json new file mode 100644 index 0000000000..50f4178fc0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-293ae45a8798edad6555057aa63f96b7c27c4d7457aeeb615789f1ebd5468337.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE bots\n SET deleted_at = now(), updated_at = now()\n WHERE id = $1\n AND deleted_at IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "293ae45a8798edad6555057aa63f96b7c27c4d7457aeeb615789f1ebd5468337" +} diff --git a/rust/cloud-storage/.sqlx/query-29496c090bdffe2b771ad704687525136fcd17a1d3e680142e5d0f9e253af578.json b/rust/cloud-storage/.sqlx/query-29496c090bdffe2b771ad704687525136fcd17a1d3e680142e5d0f9e253af578.json new file mode 100644 index 0000000000..918f0d6d3d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-29496c090bdffe2b771ad704687525136fcd17a1d3e680142e5d0f9e253af578.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT message_id, send_time\n FROM email_scheduled_messages\n WHERE message_id = ANY($1) AND sent = false\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "send_time", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "29496c090bdffe2b771ad704687525136fcd17a1d3e680142e5d0f9e253af578" +} diff --git a/rust/cloud-storage/.sqlx/query-29f40fc78b59a74c6b0df0c8cb0abe9d4e5f57b4b08a18673276967b456d8bb5.json b/rust/cloud-storage/.sqlx/query-29f40fc78b59a74c6b0df0c8cb0abe9d4e5f57b4b08a18673276967b456d8bb5.json new file mode 100644 index 0000000000..fa71ec2445 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-29f40fc78b59a74c6b0df0c8cb0abe9d4e5f57b4b08a18673276967b456d8bb5.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"UserHistory\" WHERE \"itemId\" = $1 AND \"itemType\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "29f40fc78b59a74c6b0df0c8cb0abe9d4e5f57b4b08a18673276967b456d8bb5" +} diff --git a/rust/cloud-storage/.sqlx/query-2a75819c2697a91f55f1161c1dd79d065235f02119bbb2cc2b881f6fa8f82274.json b/rust/cloud-storage/.sqlx/query-2a75819c2697a91f55f1161c1dd79d065235f02119bbb2cc2b881f6fa8f82274.json new file mode 100644 index 0000000000..01133fef47 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2a75819c2697a91f55f1161c1dd79d065235f02119bbb2cc2b881f6fa8f82274.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT call_id, user_id, joined_at\n FROM call_participants\n WHERE call_id = $1 AND left_at IS NULL\n ORDER BY joined_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "call_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "joined_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "2a75819c2697a91f55f1161c1dd79d065235f02119bbb2cc2b881f6fa8f82274" +} diff --git a/rust/cloud-storage/.sqlx/query-2a7d96d4ad9f58533ca637112bdf0e50e65f9f7dade0f8e1239cc32404e2b135.json b/rust/cloud-storage/.sqlx/query-2a7d96d4ad9f58533ca637112bdf0e50e65f9f7dade0f8e1239cc32404e2b135.json new file mode 100644 index 0000000000..8c508b8a1b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2a7d96d4ad9f58533ca637112bdf0e50e65f9f7dade0f8e1239cc32404e2b135.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT l.macro_id, t.id as thread_id\n FROM UNNEST($1::text[], $2::uuid[]) AS inp(macro_id, thread_id)\n JOIN email_links l ON l.macro_id = inp.macro_id\n JOIN email_threads t ON t.link_id = l.id AND t.id = inp.thread_id\n WHERE t.latest_outbound_message_ts IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "thread_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "TextArray", + "UuidArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "2a7d96d4ad9f58533ca637112bdf0e50e65f9f7dade0f8e1239cc32404e2b135" +} diff --git a/rust/cloud-storage/.sqlx/query-2ac4359cf8918df8770a8f89b43195b87a928d18ff10c5d5dbec9bba0dc9eca1.json b/rust/cloud-storage/.sqlx/query-2ac4359cf8918df8770a8f89b43195b87a928d18ff10c5d5dbec9bba0dc9eca1.json new file mode 100644 index 0000000000..fd0b595d9d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2ac4359cf8918df8770a8f89b43195b87a928d18ff10c5d5dbec9bba0dc9eca1.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT destination\n FROM email_sfs_mappings\n WHERE source = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "destination", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "2ac4359cf8918df8770a8f89b43195b87a928d18ff10c5d5dbec9bba0dc9eca1" +} diff --git a/rust/cloud-storage/.sqlx/query-2b2674801d90fb7b89f286300e8a03ec10c34ab1f8a6ecc6a9ecac5b964669a2.json b/rust/cloud-storage/.sqlx/query-2b2674801d90fb7b89f286300e8a03ec10c34ab1f8a6ecc6a9ecac5b964669a2.json new file mode 100644 index 0000000000..be3b1e901c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2b2674801d90fb7b89f286300e8a03ec10c34ab1f8a6ecc6a9ecac5b964669a2.json @@ -0,0 +1,71 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE comms_messages\n SET\n updated_at = NOW(),\n edited_at = NOW(),\n deleted_at = CASE\n WHEN $2 = false AND (content IS NULL OR content ~ '^[\\s]*$') THEN NOW()\n ELSE deleted_at\n END\n WHERE id = $1\n RETURNING\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "edited_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Bool" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + null, + null + ] + }, + "hash": "2b2674801d90fb7b89f286300e8a03ec10c34ab1f8a6ecc6a9ecac5b964669a2" +} diff --git a/rust/cloud-storage/.sqlx/query-2b51093ef799db343575cce3aead5f7db7aed774cb8d6fd74645f5e09b2215c6.json b/rust/cloud-storage/.sqlx/query-2b51093ef799db343575cce3aead5f7db7aed774cb8d6fd74645f5e09b2215c6.json new file mode 100644 index 0000000000..08b8cc2ff7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2b51093ef799db343575cce3aead5f7db7aed774cb8d6fd74645f5e09b2215c6.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'document'\n AND source_id = $2\n AND source_type = 'team'\n AND granted_from_project_id IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "2b51093ef799db343575cce3aead5f7db7aed774cb8d6fd74645f5e09b2215c6" +} diff --git a/rust/cloud-storage/.sqlx/query-2b56d4020e5e9882bf82e2909868eda21c8f93ee647274cbd0f7f8b8cfad02bf.json b/rust/cloud-storage/.sqlx/query-2b56d4020e5e9882bf82e2909868eda21c8f93ee647274cbd0f7f8b8cfad02bf.json new file mode 100644 index 0000000000..158ddfee1e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2b56d4020e5e9882bf82e2909868eda21c8f93ee647274cbd0f7f8b8cfad02bf.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentInstanceModificationData\" (\"documentInstanceId\", \"modificationData\")\n VALUES ($1, $2);\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "2b56d4020e5e9882bf82e2909868eda21c8f93ee647274cbd0f7f8b8cfad02bf" +} diff --git a/rust/cloud-storage/.sqlx/query-2ba42e1b8b6e432c5cbe966076ca05523a4b1f4be0798ae362a325c172b19a43.json b/rust/cloud-storage/.sqlx/query-2ba42e1b8b6e432c5cbe966076ca05523a4b1f4be0798ae362a325c172b19a43.json new file mode 100644 index 0000000000..5ea23b9b81 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2ba42e1b8b6e432c5cbe966076ca05523a4b1f4be0798ae362a325c172b19a43.json @@ -0,0 +1,32 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT gh.history_id\n FROM email_links l\n LEFT JOIN email_gmail_histories gh ON l.id = gh.link_id\n WHERE l.email_address = $1 AND l.provider = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "history_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + ] + }, + "nullable": [ + false + ] + }, + "hash": "2ba42e1b8b6e432c5cbe966076ca05523a4b1f4be0798ae362a325c172b19a43" +} diff --git a/rust/cloud-storage/.sqlx/query-2bd69fc8396fe1765b4d3e2c229d7a703234207c5747da7f76bf210966819fb8.json b/rust/cloud-storage/.sqlx/query-2bd69fc8396fe1765b4d3e2c229d7a703234207c5747da7f76bf210966819fb8.json new file mode 100644 index 0000000000..d9cf85b622 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2bd69fc8396fe1765b4d3e2c229d7a703234207c5747da7f76bf210966819fb8.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT memory\n FROM team_memory\n WHERE id = $1 AND team_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "memory", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "2bd69fc8396fe1765b4d3e2c229d7a703234207c5747da7f76bf210966819fb8" +} diff --git a/rust/cloud-storage/.sqlx/query-2c16c9daa8fd2542c90ea2fcd848ed60ba013aa7ee53742b7f1f677e7082ce2f.json b/rust/cloud-storage/.sqlx/query-2c16c9daa8fd2542c90ea2fcd848ed60ba013aa7ee53742b7f1f677e7082ce2f.json new file mode 100644 index 0000000000..1efcd7e916 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2c16c9daa8fd2542c90ea2fcd848ed60ba013aa7ee53742b7f1f677e7082ce2f.json @@ -0,0 +1,96 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n id, \n link_id, \n provider_label_id, \n name, \n created_at,\n message_list_visibility as \"message_list_visibility: _\",\n label_list_visibility as \"label_list_visibility: _\",\n type as \"type_: _\"\n FROM email_labels\n WHERE id = $1 AND link_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_label_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "message_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_message_list_visibility_enum", + "kind": { + "Enum": [ + "Show", + "Hide" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "label_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_label_list_visibility_enum", + "kind": { + "Enum": [ + "LabelShow", + "LabelShowIfUnread", + "LabelHide" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "type_: _", + "type_info": { + "Custom": { + "name": "email_label_type_enum", + "kind": { + "Enum": [ + "System", + "User" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "2c16c9daa8fd2542c90ea2fcd848ed60ba013aa7ee53742b7f1f677e7082ce2f" +} diff --git a/rust/cloud-storage/.sqlx/query-2c1ca56683bc4ff97f5b9768e6da72ee6558c2ea8bb9b58237370e3cb80d309c.json b/rust/cloud-storage/.sqlx/query-2c1ca56683bc4ff97f5b9768e6da72ee6558c2ea8bb9b58237370e3cb80d309c.json new file mode 100644 index 0000000000..54b0e1cd14 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2c1ca56683bc4ff97f5b9768e6da72ee6558c2ea8bb9b58237370e3cb80d309c.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n a.id,\n a.message_id,\n a.provider_attachment_id,\n a.filename,\n a.mime_type,\n a.size_bytes,\n a.content_id,\n a.created_at,\n m.thread_id\n FROM\n email_attachments a\n JOIN\n email_messages m ON a.message_id = m.id\n WHERE\n m.thread_id = ANY($1)\n ORDER BY\n a.created_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_attachment_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "filename", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "mime_type", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "size_bytes", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "content_id", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "thread_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "2c1ca56683bc4ff97f5b9768e6da72ee6558c2ea8bb9b58237370e3cb80d309c" +} diff --git a/rust/cloud-storage/.sqlx/query-2c1df8ba2035cc1f63f9d566e8ac763f4d0b5e28370570971935d29237a0211a.json b/rust/cloud-storage/.sqlx/query-2c1df8ba2035cc1f63f9d566e8ac763f4d0b5e28370570971935d29237a0211a.json new file mode 100644 index 0000000000..4e5c86734c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2c1df8ba2035cc1f63f9d566e8ac763f4d0b5e28370570971935d29237a0211a.json @@ -0,0 +1,74 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT l.id, l.macro_id, l.fusionauth_user_id, l.email_address, l.provider as \"provider: _\",\n l.is_sync_active, l.created_at, l.updated_at\n FROM email_threads t\n JOIN email_links l ON l.id = t.link_id\n WHERE t.id = $1\n AND (\n l.macro_id = $2\n OR EXISTS (\n SELECT 1 FROM macro_user_links mul\n WHERE mul.child_macro_id = l.macro_id AND mul.primary_macro_id = $2\n )\n )\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "provider: _", + "type_info": { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_sync_active", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "2c1df8ba2035cc1f63f9d566e8ac763f4d0b5e28370570971935d29237a0211a" +} diff --git a/rust/cloud-storage/.sqlx/query-2c2e1fbbc52b300640cab8add807f581aba22df15410900b9f598daf699b60de.json b/rust/cloud-storage/.sqlx/query-2c2e1fbbc52b300640cab8add807f581aba22df15410900b9f598daf699b60de.json new file mode 100644 index 0000000000..81c377d3c2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2c2e1fbbc52b300640cab8add807f581aba22df15410900b9f598daf699b60de.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.id\n FROM \"User\" u\n WHERE u.\"id\" = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "2c2e1fbbc52b300640cab8add807f581aba22df15410900b9f598daf699b60de" +} diff --git a/rust/cloud-storage/.sqlx/query-2c523a7a5cc018de790645eef920861ebc4fc1a28d0a6e14ee1aed1d472ff87a.json b/rust/cloud-storage/.sqlx/query-2c523a7a5cc018de790645eef920861ebc4fc1a28d0a6e14ee1aed1d472ff87a.json new file mode 100644 index 0000000000..6f5cf33ea1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2c523a7a5cc018de790645eef920861ebc4fc1a28d0a6e14ee1aed1d472ff87a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT \"fileType\" as \"file_type?\" FROM \"Document\" WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "file_type?", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true + ] + }, + "hash": "2c523a7a5cc018de790645eef920861ebc4fc1a28d0a6e14ee1aed1d472ff87a" +} diff --git a/rust/cloud-storage/.sqlx/query-2c8623569ad039d0ee10321ab06c2563d7f90f17e00e6c4e18d25bc0a7b1355b.json b/rust/cloud-storage/.sqlx/query-2c8623569ad039d0ee10321ab06c2563d7f90f17e00e6c4e18d25bc0a7b1355b.json new file mode 100644 index 0000000000..b60c8f01fa --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2c8623569ad039d0ee10321ab06c2563d7f90f17e00e6c4e18d25bc0a7b1355b.json @@ -0,0 +1,106 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n t.id as thread_id, \n t.resolved as is_resolved,\n a.uuid as anchor_uuid, \n a.page, \n a.\"originalPage\" as original_page,\n a.\"originalIndex\" as original_index,\n a.\"shouldLockOnSave\" as should_lock_on_save,\n a.\"wasEdited\" as was_edited,\n a.\"wasDeleted\" as was_deleted,\n a.\"allowableEdits\" as allowable_edits,\n a.\"xPct\" as x_pct,\n a.\"yPct\" as y_pct,\n a.\"widthPct\" as width_pct,\n a.\"heightPct\" as height_pct,\n a.rotation\n FROM \"Thread\" t\n JOIN \"PdfPlaceableCommentAnchor\" a ON t.\"id\" = a.\"threadId\"\n WHERE t.\"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "is_resolved", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "anchor_uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "page", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "original_page", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "original_index", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "should_lock_on_save", + "type_info": "Bool" + }, + { + "ordinal": 7, + "name": "was_edited", + "type_info": "Bool" + }, + { + "ordinal": 8, + "name": "was_deleted", + "type_info": "Bool" + }, + { + "ordinal": 9, + "name": "allowable_edits", + "type_info": "Jsonb" + }, + { + "ordinal": 10, + "name": "x_pct", + "type_info": "Float8" + }, + { + "ordinal": 11, + "name": "y_pct", + "type_info": "Float8" + }, + { + "ordinal": 12, + "name": "width_pct", + "type_info": "Float8" + }, + { + "ordinal": 13, + "name": "height_pct", + "type_info": "Float8" + }, + { + "ordinal": 14, + "name": "rotation", + "type_info": "Float8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false + ] + }, + "hash": "2c8623569ad039d0ee10321ab06c2563d7f90f17e00e6c4e18d25bc0a7b1355b" +} diff --git a/rust/cloud-storage/.sqlx/query-2cbc42ba5738de1d3d5c0f16306cf0daaab7ccca3618ff516bdbf2efda3077e5.json b/rust/cloud-storage/.sqlx/query-2cbc42ba5738de1d3d5c0f16306cf0daaab7ccca3618ff516bdbf2efda3077e5.json new file mode 100644 index 0000000000..d426064cfb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2cbc42ba5738de1d3d5c0f16306cf0daaab7ccca3618ff516bdbf2efda3077e5.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id FROM (\n -- Direct user grants\n SELECT source_id as user_id FROM entity_access\n WHERE entity_id = $1 AND entity_type = $2 AND source_type = 'user'\n\n UNION ALL\n\n -- Channel Members\n SELECT cp.user_id FROM comms_channel_participants cp\n WHERE cp.left_at IS NULL AND cp.channel_id IN (\n SELECT source_id::uuid FROM entity_access\n WHERE entity_id = $1 AND entity_type = $2 AND source_type = 'channel'\n )\n\n UNION ALL\n\n -- Team Members\n SELECT tu.user_id FROM team_user tu\n WHERE tu.team_id IN (\n SELECT source_id::uuid FROM entity_access\n WHERE entity_id = $1 AND entity_type = $2 AND source_type = 'team'\n )\n ) AS combined_users\n\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "2cbc42ba5738de1d3d5c0f16306cf0daaab7ccca3618ff516bdbf2efda3077e5" +} diff --git a/rust/cloud-storage/.sqlx/query-2d1112d21440f0dfdf8fcbec264389f7abdcc74544558d60d817f56ff0c14524.json b/rust/cloud-storage/.sqlx/query-2d1112d21440f0dfdf8fcbec264389f7abdcc74544558d60d817f56ff0c14524.json new file mode 100644 index 0000000000..9d5f4be71c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2d1112d21440f0dfdf8fcbec264389f7abdcc74544558d60d817f56ff0c14524.json @@ -0,0 +1,56 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as \"document_id\",\n d.owner,\n d.name as \"document_name\",\n d.\"fileType\" as \"file_type\",\n dst.sub_type as \"sub_type?: DocumentSubType\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dst ON dst.document_id = d.id\n WHERE d.id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + false, + false, + true, + true + ] + }, + "hash": "2d1112d21440f0dfdf8fcbec264389f7abdcc74544558d60d817f56ff0c14524" +} diff --git a/rust/cloud-storage/.sqlx/query-2d17144ac0fad7ccde292b6da4197cee6ec3a0e3eefc8711308ef3c6b3f7f30c.json b/rust/cloud-storage/.sqlx/query-2d17144ac0fad7ccde292b6da4197cee6ec3a0e3eefc8711308ef3c6b3f7f30c.json new file mode 100644 index 0000000000..b615b341e1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2d17144ac0fad7ccde292b6da4197cee6ec3a0e3eefc8711308ef3c6b3f7f30c.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Chat\" SET \"tokenCount\" = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Text" + ] + }, + "nullable": [] + }, + "hash": "2d17144ac0fad7ccde292b6da4197cee6ec3a0e3eefc8711308ef3c6b3f7f30c" +} diff --git a/rust/cloud-storage/.sqlx/query-2d57c3a99a46bf686884ad509c913941732afc0ed4d180fdd982f50cdf39b08b.json b/rust/cloud-storage/.sqlx/query-2d57c3a99a46bf686884ad509c913941732afc0ed4d180fdd982f50cdf39b08b.json new file mode 100644 index 0000000000..fef16a70f7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2d57c3a99a46bf686884ad509c913941732afc0ed4d180fdd982f50cdf39b08b.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT t.email as \"email!\"\n FROM UNNEST($2::text[], $3::text[]) WITH ORDINALITY AS t(email, user_id, ord)\n WHERE NOT EXISTS (\n SELECT 1 FROM team_invite ti\n WHERE ti.team_id = $1 AND ti.email = t.email\n )\n AND NOT EXISTS (\n SELECT 1 FROM team_user tu\n WHERE tu.team_id = $1 AND tu.user_id = t.user_id\n )\n GROUP BY t.email\n ORDER BY MIN(t.ord)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray", + "TextArray" + ] + }, + "nullable": [ + null + ] + }, + "hash": "2d57c3a99a46bf686884ad509c913941732afc0ed4d180fdd982f50cdf39b08b" +} diff --git a/rust/cloud-storage/.sqlx/query-2d689689caf98fbfbb437fe34129b37a1ece02e7c4189d0619ea741f74f05bdf.json b/rust/cloud-storage/.sqlx/query-2d689689caf98fbfbb437fe34129b37a1ece02e7c4189d0619ea741f74f05bdf.json new file mode 100644 index 0000000000..05a17cf734 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2d689689caf98fbfbb437fe34129b37a1ece02e7c4189d0619ea741f74f05bdf.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT tt.document_id\n FROM UNNEST($2::text[], $3::int4[]) AS refs(team_slug, task_num)\n JOIN github_app_installation gai\n ON gai.id = $1\n AND gai.source_type = 'team'::github_app_installation_source_type\n JOIN team t\n ON t.id = gai.source_id::uuid\n AND LOWER(t.slug) = LOWER(refs.team_slug)\n JOIN team_task tt ON tt.team_id = t.id AND tt.task_num = refs.task_num\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray", + "Int4Array" + ] + }, + "nullable": [ + false + ] + }, + "hash": "2d689689caf98fbfbb437fe34129b37a1ece02e7c4189d0619ea741f74f05bdf" +} diff --git a/rust/cloud-storage/.sqlx/query-2db06a8049c3fa54997e62b47e3862e24a45c9278ff5671e190b594d0972946f.json b/rust/cloud-storage/.sqlx/query-2db06a8049c3fa54997e62b47e3862e24a45c9278ff5671e190b594d0972946f.json new file mode 100644 index 0000000000..7115b37189 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2db06a8049c3fa54997e62b47e3862e24a45c9278ff5671e190b594d0972946f.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT hidden FROM crm_companies WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hidden", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "2db06a8049c3fa54997e62b47e3862e24a45c9278ff5671e190b594d0972946f" +} diff --git a/rust/cloud-storage/.sqlx/query-2e069f7c63dac759abe54f685567743862bb918f45f0a21481e044ff99427976.json b/rust/cloud-storage/.sqlx/query-2e069f7c63dac759abe54f685567743862bb918f45f0a21481e044ff99427976.json new file mode 100644 index 0000000000..35d3cece1c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2e069f7c63dac759abe54f685567743862bb918f45f0a21481e044ff99427976.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE user_notification\n SET done = true\n WHERE notification_id = $1 AND user_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "2e069f7c63dac759abe54f685567743862bb918f45f0a21481e044ff99427976" +} diff --git a/rust/cloud-storage/.sqlx/query-2e0d56c9e8fecdbbd5ca1853876f9bf94f8980710a99f36274ab20bd75514a52.json b/rust/cloud-storage/.sqlx/query-2e0d56c9e8fecdbbd5ca1853876f9bf94f8980710a99f36274ab20bd75514a52.json new file mode 100644 index 0000000000..e08e9ad42e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2e0d56c9e8fecdbbd5ca1853876f9bf94f8980710a99f36274ab20bd75514a52.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n VALUES ($1, 'document', $2, 'team', $3)\n ON CONFLICT (entity_id, entity_type, source_id, source_type)\n WHERE granted_from_project_id IS NULL\n DO UPDATE SET access_level = EXCLUDED.access_level, updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + { + "Custom": { + "name": "\"AccessLevel\"", + "kind": { + "Enum": [ + "view", + "comment", + "edit", + "owner" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "2e0d56c9e8fecdbbd5ca1853876f9bf94f8980710a99f36274ab20bd75514a52" +} diff --git a/rust/cloud-storage/.sqlx/query-2e318ed8eff90b0e145afae548e3f895f7b7c4f8458df987c7bed9054fbc3450.json b/rust/cloud-storage/.sqlx/query-2e318ed8eff90b0e145afae548e3f895f7b7c4f8458df987c7bed9054fbc3450.json new file mode 100644 index 0000000000..7dc8bf69a0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2e318ed8eff90b0e145afae548e3f895f7b7c4f8458df987c7bed9054fbc3450.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n name\n FROM\n \"Organization\"\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false + ] + }, + "hash": "2e318ed8eff90b0e145afae548e3f895f7b7c4f8458df987c7bed9054fbc3450" +} diff --git a/rust/cloud-storage/.sqlx/query-2e5e76597cf6fe734978fef0762c7c86aeba3b076e8684a85696045ed3a4636e.json b/rust/cloud-storage/.sqlx/query-2e5e76597cf6fe734978fef0762c7c86aeba3b076e8684a85696045ed3a4636e.json new file mode 100644 index 0000000000..7c3172354d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2e5e76597cf6fe734978fef0762c7c86aeba3b076e8684a85696045ed3a4636e.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_scheduled_messages\n WHERE link_id = $1 AND message_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "2e5e76597cf6fe734978fef0762c7c86aeba3b076e8684a85696045ed3a4636e" +} diff --git a/rust/cloud-storage/.sqlx/query-2e86cba5f8e5a4358520e11e33cea6c51ce2ca2d05b985a30debdb97f9d7d78a.json b/rust/cloud-storage/.sqlx/query-2e86cba5f8e5a4358520e11e33cea6c51ce2ca2d05b985a30debdb97f9d7d78a.json new file mode 100644 index 0000000000..38ea8a45d4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2e86cba5f8e5a4358520e11e33cea6c51ce2ca2d05b985a30debdb97f9d7d78a.json @@ -0,0 +1,124 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"PdfPlaceableCommentAnchor\" SET\n \"page\" = COALESCE($1, \"page\"),\n \"originalPage\" = COALESCE($2, \"originalPage\"),\n \"originalIndex\" = COALESCE($3, \"originalIndex\"),\n \"xPct\" = COALESCE($4, \"xPct\"),\n \"yPct\" = COALESCE($5, \"yPct\"),\n \"widthPct\" = COALESCE($6, \"widthPct\"),\n \"heightPct\" = COALESCE($7, \"heightPct\"),\n \"rotation\" = COALESCE($8, \"rotation\"),\n \"allowableEdits\" = COALESCE($9, \"allowableEdits\"),\n \"wasEdited\" = COALESCE($10, \"wasEdited\"),\n \"wasDeleted\" = COALESCE($11, \"wasDeleted\"),\n \"shouldLockOnSave\" = COALESCE($12, \"shouldLockOnSave\")\n WHERE uuid = $13\n RETURNING \n uuid, \n \"documentId\" as document_id,\n owner, \n \"threadId\" as thread_id, \n page, \n \"originalPage\" as original_page, \n \"originalIndex\" as original_index, \n \"xPct\" as x_pct, \n \"yPct\" as y_pct, \n \"widthPct\" as width_pct, \n \"heightPct\" as height_pct, \n rotation,\n \"allowableEdits\" as allowable_edits, \n \"wasEdited\" as was_edited, \n \"wasDeleted\" as was_deleted, \n \"shouldLockOnSave\" as should_lock_on_save\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "page", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "original_page", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "original_index", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "x_pct", + "type_info": "Float8" + }, + { + "ordinal": 8, + "name": "y_pct", + "type_info": "Float8" + }, + { + "ordinal": 9, + "name": "width_pct", + "type_info": "Float8" + }, + { + "ordinal": 10, + "name": "height_pct", + "type_info": "Float8" + }, + { + "ordinal": 11, + "name": "rotation", + "type_info": "Float8" + }, + { + "ordinal": 12, + "name": "allowable_edits", + "type_info": "Jsonb" + }, + { + "ordinal": 13, + "name": "was_edited", + "type_info": "Bool" + }, + { + "ordinal": 14, + "name": "was_deleted", + "type_info": "Bool" + }, + { + "ordinal": 15, + "name": "should_lock_on_save", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int4", + "Int4", + "Int4", + "Float8", + "Float8", + "Float8", + "Float8", + "Float8", + "Jsonb", + "Bool", + "Bool", + "Bool", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false + ] + }, + "hash": "2e86cba5f8e5a4358520e11e33cea6c51ce2ca2d05b985a30debdb97f9d7d78a" +} diff --git a/rust/cloud-storage/.sqlx/query-2e94210011a9636d994437cbe074d904d563e57443cc3f65432e1db986f016dc.json b/rust/cloud-storage/.sqlx/query-2e94210011a9636d994437cbe074d904d563e57443cc3f65432e1db986f016dc.json new file mode 100644 index 0000000000..c8f7b6d614 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2e94210011a9636d994437cbe074d904d563e57443cc3f65432e1db986f016dc.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT sender_id\n FROM comms_messages\n WHERE id = $1\n ORDER BY created_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "sender_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "2e94210011a9636d994437cbe074d904d563e57443cc3f65432e1db986f016dc" +} diff --git a/rust/cloud-storage/.sqlx/query-2f1f54eaf23c0c277b0685c35ae75eea5921057be13e25a9609410d6ac5b17ba.json b/rust/cloud-storage/.sqlx/query-2f1f54eaf23c0c277b0685c35ae75eea5921057be13e25a9609410d6ac5b17ba.json new file mode 100644 index 0000000000..1428af8b0e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2f1f54eaf23c0c277b0685c35ae75eea5921057be13e25a9609410d6ac5b17ba.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"User\" (\"id\", \"email\", \"stripeCustomerId\", \"organizationId\", \"macro_user_id\")\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Int4", + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "2f1f54eaf23c0c277b0685c35ae75eea5921057be13e25a9609410d6ac5b17ba" +} diff --git a/rust/cloud-storage/.sqlx/query-2f25b7a9ef03d53404c384af4763ec5ce5f48079d5b040724b62f1964e49c932.json b/rust/cloud-storage/.sqlx/query-2f25b7a9ef03d53404c384af4763ec5ce5f48079d5b040724b62f1964e49c932.json new file mode 100644 index 0000000000..bf7d0c2a17 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2f25b7a9ef03d53404c384af4763ec5ce5f48079d5b040724b62f1964e49c932.json @@ -0,0 +1,25 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH message AS (\n SELECT id\n FROM comms_messages\n WHERE id = $2 AND channel_id = $1\n ),\n deleted AS (\n DELETE FROM comms_reactions r\n USING message m\n WHERE r.message_id = m.id\n AND r.emoji = $3\n AND r.user_id = $4\n )\n SELECT EXISTS (SELECT 1 FROM message) AS \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "2f25b7a9ef03d53404c384af4763ec5ce5f48079d5b040724b62f1964e49c932" +} diff --git a/rust/cloud-storage/.sqlx/query-2f26d3b3e0337d1b7b7c31345c0cde73657c5fc5e53fd86a8a2eb14ad063af2c.json b/rust/cloud-storage/.sqlx/query-2f26d3b3e0337d1b7b7c31345c0cde73657c5fc5e53fd86a8a2eb14ad063af2c.json new file mode 100644 index 0000000000..d3ca62a73c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2f26d3b3e0337d1b7b7c31345c0cde73657c5fc5e53fd86a8a2eb14ad063af2c.json @@ -0,0 +1,30 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n channel_id,\n id\n FROM comms_messages\n WHERE\n $3::bool IS NULL\n OR ($3 AND deleted_at IS NOT NULL)\n OR (NOT $3 AND deleted_at IS NULL)\n ORDER BY created_at ASC\n LIMIT $1\n OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8", + "Bool" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "2f26d3b3e0337d1b7b7c31345c0cde73657c5fc5e53fd86a8a2eb14ad063af2c" +} diff --git a/rust/cloud-storage/.sqlx/query-2f51ce444a7d59339909afba8296d2076f0654d89c89495858fec18432df7074.json b/rust/cloud-storage/.sqlx/query-2f51ce444a7d59339909afba8296d2076f0654d89c89495858fec18432df7074.json new file mode 100644 index 0000000000..538ce89fdb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2f51ce444a7d59339909afba8296d2076f0654d89c89495858fec18432df7074.json @@ -0,0 +1,128 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH ApplicableLabelIDs AS (\n SELECT id\n FROM email_labels\n WHERE link_id = ANY($1)\n AND (name = 'INBOX')\n ),\n QualifyingMessages AS (\n SELECT m.thread_id,\n m.internal_date_ts,\n m.created_at AS fallback_ts,\n m.is_draft,\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name\n FROM email_messages m\n WHERE m.link_id = ANY($1)\n AND NOT EXISTS (\n SELECT 1\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id\n AND l.name = 'TRASH'\n AND l.link_id = m.link_id\n )\n AND EXISTS (\n SELECT 1\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id\n AND l.name = 'IMPORTANT'\n )\n AND EXISTS (\n SELECT 1\n FROM email_message_labels ml\n JOIN ApplicableLabelIDs ali ON ml.label_id = ali.id\n WHERE ml.message_id = m.id\n )\n\n UNION ALL\n\n SELECT m.thread_id,\n m.internal_date_ts,\n m.created_at AS fallback_ts,\n m.is_draft,\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name\n FROM email_messages m\n WHERE m.link_id = ANY($1)\n AND m.is_draft = TRUE\n AND NOT EXISTS (\n SELECT 1\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id\n AND l.name = 'TRASH'\n AND l.link_id = m.link_id\n )\n ),\n AllImportantThreads AS (\n -- From all qualifying messages, get the single most recent one per thread.\n SELECT DISTINCT ON (thread_id)\n thread_id,\n internal_date_ts,\n fallback_ts,\n is_draft,\n subject,\n snippet,\n from_contact_id,\n from_name\n FROM QualifyingMessages\n ORDER BY thread_id, COALESCE(internal_date_ts, fallback_ts) DESC\n ),\n ImportantWithSortKey AS (\n -- Join with user_history to calculate the final effective sort key.\n SELECT\n ait.thread_id,\n ait.internal_date_ts,\n ait.fallback_ts,\n ait.is_draft,\n ait.subject,\n ait.snippet,\n ait.from_contact_id,\n ait.from_name,\n COALESCE(ait.internal_date_ts, ait.fallback_ts) as created_at,\n COALESCE(ait.internal_date_ts, ait.fallback_ts) as updated_at,\n uh.updated_at as viewed_at,\n -- This CASE statement dynamically selects the correct timestamp for sorting.\n -- For 'updated_at' and 'created_at', we use the important message timestamp\n -- For 'viewed_at', we use the history timestamp.\n -- For 'viewed_updated', we use the history timestamp if it exists, otherwise the important message timestamp.\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, COALESCE(ait.internal_date_ts, ait.fallback_ts))\n ELSE COALESCE(ait.internal_date_ts, ait.fallback_ts)\n END AS effective_ts\n FROM AllImportantThreads ait\n JOIN email_threads tt ON tt.id = ait.thread_id\n -- This has to be a left join to support all sort methods.\n LEFT JOIN email_user_history uh ON uh.thread_id = ait.thread_id AND uh.link_id = tt.link_id\n )\n SELECT\n isk.thread_id as \"id!\",\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n isk.effective_ts as \"sort_ts!\",\n isk.created_at as \"created_at!\",\n isk.updated_at as \"updated_at!\",\n t.project_id,\n isk.viewed_at as \"viewed_at?\",\n isk.is_draft as \"is_draft!\",\n -- It's the important view - all threads here are important\n true as \"is_important!\",\n isk.subject as \"name?\",\n isk.snippet as \"snippet?\",\n c.email_address AS \"sender_email?\",\n COALESCE(isk.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM ImportantWithSortKey isk\n JOIN email_threads t ON isk.thread_id = t.id\n LEFT JOIN email_contacts c ON isk.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n WHERE\n ($3::timestamptz IS NULL) OR (isk.effective_ts, isk.thread_id) < ($3::timestamptz, $4::uuid)\n ORDER BY isk.effective_ts DESC, isk.thread_id DESC\n LIMIT $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "inbox_visible", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "sort_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "viewed_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "is_draft!", + "type_info": "Bool" + }, + { + "ordinal": 10, + "name": "is_important!", + "type_info": "Bool" + }, + { + "ordinal": 11, + "name": "name?", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "snippet?", + "type_info": "Text" + }, + { + "ordinal": 13, + "name": "sender_email?", + "type_info": "Varchar" + }, + { + "ordinal": 14, + "name": "sender_name?", + "type_info": "Varchar" + }, + { + "ordinal": 15, + "name": "sender_photo_url?", + "type_info": "Text" + }, + { + "ordinal": 16, + "name": "owner_id!", + "type_info": "Text" + }, + { + "ordinal": 17, + "name": "link_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "Int8", + "Timestamptz", + "Uuid", + "Text" + ] + }, + "nullable": [ + null, + true, + false, + false, + null, + null, + null, + true, + false, + null, + null, + null, + null, + false, + null, + true, + false, + false + ] + }, + "hash": "2f51ce444a7d59339909afba8296d2076f0654d89c89495858fec18432df7074" +} diff --git a/rust/cloud-storage/.sqlx/query-2f57ef816b974c70f46ed469ff98a316ee83b8e0b87a504a40ab4eb6f91c9bf6.json b/rust/cloud-storage/.sqlx/query-2f57ef816b974c70f46ed469ff98a316ee83b8e0b87a504a40ab4eb6f91c9bf6.json new file mode 100644 index 0000000000..8dab22de3e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-2f57ef816b974c70f46ed469ff98a316ee83b8e0b87a504a40ab4eb6f91c9bf6.json @@ -0,0 +1,18 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"PdfHighlightRect\" (\"pdfHighlightAnchorId\", \"top\", \"left\", \"width\", \"height\")\n SELECT *\n FROM UNNEST(\n $1::uuid[], \n $2::double precision[], \n $3::double precision[], \n $4::double precision[], \n $5::double precision[]\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "Float8Array", + "Float8Array", + "Float8Array", + "Float8Array" + ] + }, + "nullable": [] + }, + "hash": "2f57ef816b974c70f46ed469ff98a316ee83b8e0b87a504a40ab4eb6f91c9bf6" +} diff --git a/rust/cloud-storage/.sqlx/query-304363603c60b5894a3e692b394aa320b6d72a5851a596cec6dc37b6ef5f80e6.json b/rust/cloud-storage/.sqlx/query-304363603c60b5894a3e692b394aa320b6d72a5851a596cec6dc37b6ef5f80e6.json new file mode 100644 index 0000000000..c120389544 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-304363603c60b5894a3e692b394aa320b6d72a5851a596cec6dc37b6ef5f80e6.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT l.macro_id as \"macro_id!\"\n FROM email_threads t\n JOIN email_links l ON t.link_id = l.id\n WHERE t.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "304363603c60b5894a3e692b394aa320b6d72a5851a596cec6dc37b6ef5f80e6" +} diff --git a/rust/cloud-storage/.sqlx/query-30cb91911aecb757da05dab343255e9c81997db622339c1f414e36e873cb476e.json b/rust/cloud-storage/.sqlx/query-30cb91911aecb757da05dab343255e9c81997db622339c1f414e36e873cb476e.json new file mode 100644 index 0000000000..d1649a41c1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-30cb91911aecb757da05dab343255e9c81997db622339c1f414e36e873cb476e.json @@ -0,0 +1,32 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.id AS user_id,\n u.email,\n COUNT(d.id) AS document_count\n FROM\n \"User\" u\n LEFT JOIN\n \"Document\" d ON u.id = d.owner AND d.\"fileType\" IS DISTINCT FROM 'docx'\n WHERE\n u.id NOT LIKE 'macro|%'\n GROUP BY\n u.id, u.email\n ORDER BY\n document_count DESC;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "email", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + null + ] + }, + "hash": "30cb91911aecb757da05dab343255e9c81997db622339c1f414e36e873cb476e" +} diff --git a/rust/cloud-storage/.sqlx/query-3152bd385bf8a62ac1258308acc31e02e1d6a1a5aa81499903ec6ca86f678219.json b/rust/cloud-storage/.sqlx/query-3152bd385bf8a62ac1258308acc31e02e1d6a1a5aa81499903ec6ca86f678219.json new file mode 100644 index 0000000000..e508902b50 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3152bd385bf8a62ac1258308acc31e02e1d6a1a5aa81499903ec6ca86f678219.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE team_invite\n SET last_sent_at = NOW()\n WHERE id = ANY($1::uuid[])\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [] + }, + "hash": "3152bd385bf8a62ac1258308acc31e02e1d6a1a5aa81499903ec6ca86f678219" +} diff --git a/rust/cloud-storage/.sqlx/query-317f5f566558b0a1c27174de398f923cb9e2d47d3cb0adbe628f18f753995d90.json b/rust/cloud-storage/.sqlx/query-317f5f566558b0a1c27174de398f923cb9e2d47d3cb0adbe628f18f753995d90.json new file mode 100644 index 0000000000..8be30f3fe9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-317f5f566558b0a1c27174de398f923cb9e2d47d3cb0adbe628f18f753995d90.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT ea.id, ea.message_id, ea.provider_attachment_id, ea.filename, ea.mime_type, ea.size_bytes, ea.content_id, eas.sfs_id as \"sfs_id?\", ea.created_at\n FROM email_attachments ea\n LEFT JOIN email_attachments_sfs eas ON ea.id = eas.attachment_id\n WHERE ea.message_id = ANY($1)\n ORDER BY ea.message_id, ea.filename NULLS LAST\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_attachment_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "filename", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "mime_type", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "size_bytes", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "content_id", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "sfs_id?", + "type_info": "Uuid" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "317f5f566558b0a1c27174de398f923cb9e2d47d3cb0adbe628f18f753995d90" +} diff --git a/rust/cloud-storage/.sqlx/query-31d2504654072ca22b3fc69edcfda0a7c112bb86527c7200c38326cd920f94e8.json b/rust/cloud-storage/.sqlx/query-31d2504654072ca22b3fc69edcfda0a7c112bb86527c7200c38326cd920f94e8.json new file mode 100644 index 0000000000..018d07b559 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-31d2504654072ca22b3fc69edcfda0a7c112bb86527c7200c38326cd920f94e8.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH source_pairs AS (\n SELECT DISTINCT stored_for_id, stored_for_auth_entity\n FROM UNNEST($2::text[], $3::text[])\n AS source_rows(stored_for_id, stored_for_auth_entity)\n )\n SELECT EXISTS (\n SELECT 1\n FROM foreign_entity fe\n WHERE fe.id = $1\n AND EXISTS (\n SELECT 1\n FROM source_pairs s\n WHERE s.stored_for_id = fe.stored_for_id\n AND s.stored_for_auth_entity = fe.stored_for_auth_entity\n )\n ) AS \"has_access!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "has_access!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray", + "TextArray" + ] + }, + "nullable": [ + null + ] + }, + "hash": "31d2504654072ca22b3fc69edcfda0a7c112bb86527c7200c38326cd920f94e8" +} diff --git a/rust/cloud-storage/.sqlx/query-31dbb9af47386234da706e7c3175a7a2e43c2231040cc399488418eab9f6023a.json b/rust/cloud-storage/.sqlx/query-31dbb9af47386234da706e7c3175a7a2e43c2231040cc399488418eab9f6023a.json new file mode 100644 index 0000000000..88bcfc4608 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-31dbb9af47386234da706e7c3175a7a2e43c2231040cc399488418eab9f6023a.json @@ -0,0 +1,25 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO document_sub_type (document_id, sub_type)\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "31dbb9af47386234da706e7c3175a7a2e43c2231040cc399488418eab9f6023a" +} diff --git a/rust/cloud-storage/.sqlx/query-322b3420ee6b76c4b85d1953e2bfb47c8b8ba0618e2833475801815dff29d42b.json b/rust/cloud-storage/.sqlx/query-322b3420ee6b76c4b85d1953e2bfb47c8b8ba0618e2833475801815dff29d42b.json new file mode 100644 index 0000000000..baf375e8ba --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-322b3420ee6b76c4b85d1953e2bfb47c8b8ba0618e2833475801815dff29d42b.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, name, slug, owner_id\n FROM team\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "slug", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "owner_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false + ] + }, + "hash": "322b3420ee6b76c4b85d1953e2bfb47c8b8ba0618e2833475801815dff29d42b" +} diff --git a/rust/cloud-storage/.sqlx/query-32900d38a985678b10e8b72c3a250033052a9fb05c14a92e0d2b89b3b47330a2.json b/rust/cloud-storage/.sqlx/query-32900d38a985678b10e8b72c3a250033052a9fb05c14a92e0d2b89b3b47330a2.json new file mode 100644 index 0000000000..4a65e67f3d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-32900d38a985678b10e8b72c3a250033052a9fb05c14a92e0d2b89b3b47330a2.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l.id AS \"link_id!\"\n FROM\n public.email_links l\n JOIN\n public.email_user_history h ON l.id = h.link_id\n WHERE\n l.macro_id NOT LIKE '%@macro.com'\n GROUP BY\n l.id\n HAVING\n MAX(h.updated_at) < NOW() - (make_interval(days => $1))\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "link_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false + ] + }, + "hash": "32900d38a985678b10e8b72c3a250033052a9fb05c14a92e0d2b89b3b47330a2" +} diff --git a/rust/cloud-storage/.sqlx/query-32bc3d9fd93e31e31e94a11d286017303907af0da309f50568bda9f6fa74c22f.json b/rust/cloud-storage/.sqlx/query-32bc3d9fd93e31e31e94a11d286017303907af0da309f50568bda9f6fa74c22f.json new file mode 100644 index 0000000000..4748f06d4d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-32bc3d9fd93e31e31e94a11d286017303907af0da309f50568bda9f6fa74c22f.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO notification_email_unsubscribe_code (email, code) VALUES ($1, $2)\n ON CONFLICT (email) DO UPDATE \n SET code = notification_email_unsubscribe_code.code\n RETURNING notification_email_unsubscribe_code.code\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "code", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "32bc3d9fd93e31e31e94a11d286017303907af0da309f50568bda9f6fa74c22f" +} diff --git a/rust/cloud-storage/.sqlx/query-32d4e521979a071490ce529b37db5210b6068fa4a23b88e2b2d922f04e7129d8.json b/rust/cloud-storage/.sqlx/query-32d4e521979a071490ce529b37db5210b6068fa4a23b88e2b2d922f04e7129d8.json new file mode 100644 index 0000000000..95e3693fce --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-32d4e521979a071490ce529b37db5210b6068fa4a23b88e2b2d922f04e7129d8.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n c.id as comment_id, \n c.\"threadId\" as thread_id, \n c.owner, \n c.sender, \n c.text, \n c.metadata, \n c.\"createdAt\"::timestamptz as created_at, \n c.\"updatedAt\"::timestamptz as updated_at, \n c.\"deletedAt\"::timestamptz as deleted_at, \n c.order\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n WHERE t.\"documentId\" = $1 AND t.\"deletedAt\" IS NULL AND c.\"deletedAt\" IS NULL\n ORDER BY c.\"createdAt\" ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "comment_id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "sender", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "text", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "order", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + true, + null, + null, + null, + true + ] + }, + "hash": "32d4e521979a071490ce529b37db5210b6068fa4a23b88e2b2d922f04e7129d8" +} diff --git a/rust/cloud-storage/.sqlx/query-3357165799ff1f7bf1de3891174668e0ab16c64bd9dfc905213681e6021474fa.json b/rust/cloud-storage/.sqlx/query-3357165799ff1f7bf1de3891174668e0ab16c64bd9dfc905213681e6021474fa.json new file mode 100644 index 0000000000..6696253445 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3357165799ff1f7bf1de3891174668e0ab16c64bd9dfc905213681e6021474fa.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS(\n SELECT 1 FROM notification_message_receipt\n WHERE user_id = $1\n AND notification_id = $2\n AND failed = false\n ) as \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "3357165799ff1f7bf1de3891174668e0ab16c64bd9dfc905213681e6021474fa" +} diff --git a/rust/cloud-storage/.sqlx/query-337c5b8167734371400bf99235e441b2a8bfe4d2d7cc242195f298437d95e7c3.json b/rust/cloud-storage/.sqlx/query-337c5b8167734371400bf99235e441b2a8bfe4d2d7cc242195f298437d95e7c3.json new file mode 100644 index 0000000000..9adfebb5e1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-337c5b8167734371400bf99235e441b2a8bfe4d2d7cc242195f298437d95e7c3.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM channel_notification_email_sent\n WHERE channel_id = $1 AND user_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "337c5b8167734371400bf99235e441b2a8bfe4d2d7cc242195f298437d95e7c3" +} diff --git a/rust/cloud-storage/.sqlx/query-33d640ec17b5f3daff76c169a999c7347151ce6a8bed1faa103c27a490a110d6.json b/rust/cloud-storage/.sqlx/query-33d640ec17b5f3daff76c169a999c7347151ce6a8bed1faa103c27a490a110d6.json new file mode 100644 index 0000000000..08cef514e3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-33d640ec17b5f3daff76c169a999c7347151ce6a8bed1faa103c27a490a110d6.json @@ -0,0 +1,64 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, bot_id, token_prefix, label, last_used_at, expires_at, revoked_at, created_at\n FROM bot_tokens\n WHERE bot_id = $1\n AND revoked_at IS NULL\n ORDER BY created_at DESC, id DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "bot_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "token_prefix", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "label", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "last_used_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "expires_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "revoked_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + true, + true, + false + ] + }, + "hash": "33d640ec17b5f3daff76c169a999c7347151ce6a8bed1faa103c27a490a110d6" +} diff --git a/rust/cloud-storage/.sqlx/query-33e0a69e797d9274f49771113b4abc47b8a9fe63263b050379d73cc14ce38fd7.json b/rust/cloud-storage/.sqlx/query-33e0a69e797d9274f49771113b4abc47b8a9fe63263b050379d73cc14ce38fd7.json new file mode 100644 index 0000000000..ae0c6b9b23 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-33e0a69e797d9274f49771113b4abc47b8a9fe63263b050379d73cc14ce38fd7.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id\n FROM\n \"Document\" d\n WHERE\n d.\"projectId\" = ANY($1::text[])\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "33e0a69e797d9274f49771113b4abc47b8a9fe63263b050379d73cc14ce38fd7" +} diff --git a/rust/cloud-storage/.sqlx/query-341489a2c91e2bf15545e01ab49df8ca99355322514ac541a95c0ef65491505d.json b/rust/cloud-storage/.sqlx/query-341489a2c91e2bf15545e01ab49df8ca99355322514ac541a95c0ef65491505d.json new file mode 100644 index 0000000000..93f4c93d02 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-341489a2c91e2bf15545e01ab49df8ca99355322514ac541a95c0ef65491505d.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id as \"thread_id\"\n FROM\n email_threads\n ORDER BY\n created_at ASC\n LIMIT $1\n OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "341489a2c91e2bf15545e01ab49df8ca99355322514ac541a95c0ef65491505d" +} diff --git a/rust/cloud-storage/.sqlx/query-345333b49aa634cf527c0d5c10f6064359b93f5cadb52da18c5e12a50cf50ae1.json b/rust/cloud-storage/.sqlx/query-345333b49aa634cf527c0d5c10f6064359b93f5cadb52da18c5e12a50cf50ae1.json new file mode 100644 index 0000000000..e4348b6a7f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-345333b49aa634cf527c0d5c10f6064359b93f5cadb52da18c5e12a50cf50ae1.json @@ -0,0 +1,45 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id as entity_id,\n c.name,\n regexp_replace(\n c.name,\n $6,\n '\\1',\n 'gi'\n ) as name_highlighted,\n c.\"updatedAt\" as updated_at\n FROM \"Chat\" c\n WHERE c.id = ANY($1)\n AND c.\"deletedAt\" IS NULL\n AND c.name ILIKE $2\n AND (\n $4::timestamptz IS NULL\n OR (c.\"updatedAt\", c.id) < ($4, $5)\n )\n ORDER BY c.\"updatedAt\" DESC, c.id DESC\n LIMIT $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name_highlighted", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "TextArray", + "Text", + "Int8", + "Timestamptz", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + null, + false + ] + }, + "hash": "345333b49aa634cf527c0d5c10f6064359b93f5cadb52da18c5e12a50cf50ae1" +} diff --git a/rust/cloud-storage/.sqlx/query-3463e587c615fd82082c41897c917aef97239bcdd408c928caffed0d69c21613.json b/rust/cloud-storage/.sqlx/query-3463e587c615fd82082c41897c917aef97239bcdd408c928caffed0d69c21613.json new file mode 100644 index 0000000000..68c21db99b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3463e587c615fd82082c41897c917aef97239bcdd408c928caffed0d69c21613.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentProcessResult\" (\"documentId\", \"content\", \"jobType\")\n SELECT $1, content, 'pdf_preprocess' FROM \"DocumentProcessResult\"\n WHERE \"documentId\" = $2 and \"jobType\" = 'pdf_preprocess'\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "3463e587c615fd82082c41897c917aef97239bcdd408c928caffed0d69c21613" +} diff --git a/rust/cloud-storage/.sqlx/query-3480a69060f20430ed75c05cf9e40734b03ec692b637f99fb61b25f9b7c54583.json b/rust/cloud-storage/.sqlx/query-3480a69060f20430ed75c05cf9e40734b03ec692b637f99fb61b25f9b7c54583.json new file mode 100644 index 0000000000..c2ea120327 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3480a69060f20430ed75c05cf9e40734b03ec692b637f99fb61b25f9b7c54583.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT id as \"id!\" FROM (\n SELECT m.sender_id AS id\n FROM comms_channel_participants cp\n JOIN comms_channels c ON c.id = cp.channel_id\n JOIN comms_messages m ON m.channel_id = c.id\n WHERE (m.id = $1 OR m.thread_id = $1) AND cp.left_at IS NULL\n UNION\n SELECT em.entity_id AS id\n FROM comms_entity_mentions em\n JOIN comms_messages m ON m.id::text = em.source_entity_id\n JOIN comms_channel_participants cp\n ON cp.channel_id = m.channel_id AND cp.user_id = em.entity_id\n WHERE (m.id = $1 OR m.thread_id = $1)\n AND em.source_entity_type = 'message'\n AND em.entity_type = 'user'\n AND cp.left_at IS NULL\n ) AS combined\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "3480a69060f20430ed75c05cf9e40734b03ec692b637f99fb61b25f9b7c54583" +} diff --git a/rust/cloud-storage/.sqlx/query-34a70ab661c087eb2c6b97d57099ac2c7ff263b9340003c319475fcafdf0356b.json b/rust/cloud-storage/.sqlx/query-34a70ab661c087eb2c6b97d57099ac2c7ff263b9340003c319475fcafdf0356b.json new file mode 100644 index 0000000000..c92d9c45fc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-34a70ab661c087eb2c6b97d57099ac2c7ff263b9340003c319475fcafdf0356b.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM entity_access\n WHERE entity_id = $1 AND entity_type = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "34a70ab661c087eb2c6b97d57099ac2c7ff263b9340003c319475fcafdf0356b" +} diff --git a/rust/cloud-storage/.sqlx/query-34cf0289f36241df424661c22080748ca056ffa883a4cdba1652b7b8500ba179.json b/rust/cloud-storage/.sqlx/query-34cf0289f36241df424661c22080748ca056ffa883a4cdba1652b7b8500ba179.json new file mode 100644 index 0000000000..e59236c0f1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-34cf0289f36241df424661c22080748ca056ffa883a4cdba1652b7b8500ba179.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChatMessage\" (\"chatId\", \"createdAt\", \"updatedAt\", \"content\", \"role\", \"model\")\n SELECT $1, \"createdAt\", \"updatedAt\", \"content\", \"role\", \"model\"\n FROM \"ChatMessage\"\n WHERE \"chatId\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "34cf0289f36241df424661c22080748ca056ffa883a4cdba1652b7b8500ba179" +} diff --git a/rust/cloud-storage/.sqlx/query-34e06c7ad5a9ddb12ac9bdfb86a0ab6388547e69762533e204f39af71d0e68ee.json b/rust/cloud-storage/.sqlx/query-34e06c7ad5a9ddb12ac9bdfb86a0ab6388547e69762533e204f39af71d0e68ee.json new file mode 100644 index 0000000000..201e76778f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-34e06c7ad5a9ddb12ac9bdfb86a0ab6388547e69762533e204f39af71d0e68ee.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, 'chat', NOW(), NOW())\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "34e06c7ad5a9ddb12ac9bdfb86a0ab6388547e69762533e204f39af71d0e68ee" +} diff --git a/rust/cloud-storage/.sqlx/query-350800132ce9026847f44354b415156432c57f20036d3e05eb8a72f09d88e10f.json b/rust/cloud-storage/.sqlx/query-350800132ce9026847f44354b415156432c57f20036d3e05eb8a72f09d88e10f.json new file mode 100644 index 0000000000..573f3269e8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-350800132ce9026847f44354b415156432c57f20036d3e05eb8a72f09d88e10f.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n SELECT u.user_id, u.item_id, 'project', NOW(), NOW()\n FROM UNNEST($1::text[], $2::text[]) AS u(item_id, user_id)\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = NOW();\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "350800132ce9026847f44354b415156432c57f20036d3e05eb8a72f09d88e10f" +} diff --git a/rust/cloud-storage/.sqlx/query-357682d4dddfaa980129c516f38c4176352fa9b44242cdd5abe8b4ee18a62f8e.json b/rust/cloud-storage/.sqlx/query-357682d4dddfaa980129c516f38c4176352fa9b44242cdd5abe8b4ee18a62f8e.json new file mode 100644 index 0000000000..cc59a6ec34 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-357682d4dddfaa980129c516f38c4176352fa9b44242cdd5abe8b4ee18a62f8e.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT access_level FROM (\n -- Source 1: entity_access source_id match\n SELECT\n access_level::text FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'call'\n AND source_id = ANY($2)\n\n UNION ALL\n -- Source 2: items share permission\n SELECT\n \"publicAccessLevel\"::text AS access_level\n FROM \"SharePermission\"\n WHERE id in (\n SELECT share_permission_id\n FROM calls\n WHERE id = $1\n UNION ALL\n SELECT share_permission_id\n FROM call_records\n WHERE id = $1\n LIMIT 1\n )\n AND \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n ) AS combined_access\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "access_level", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [ + null + ] + }, + "hash": "357682d4dddfaa980129c516f38c4176352fa9b44242cdd5abe8b4ee18a62f8e" +} diff --git a/rust/cloud-storage/.sqlx/query-359a16ea19cd02675cf7f6ffb815f76ad39c5aca7b6503ae8e43ebd1cc5d733f.json b/rust/cloud-storage/.sqlx/query-359a16ea19cd02675cf7f6ffb815f76ad39c5aca7b6503ae8e43ebd1cc5d733f.json new file mode 100644 index 0000000000..f99ce906c2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-359a16ea19cd02675cf7f6ffb815f76ad39c5aca7b6503ae8e43ebd1cc5d733f.json @@ -0,0 +1,31 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_contacts (id, link_id, email_address, name)\n SELECT * FROM unnest($1::uuid[], $2::uuid[], $3::text[], $4::text[])\n ON CONFLICT (link_id, email_address) DO NOTHING\n RETURNING id, email_address\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email_address", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "UuidArray", + "TextArray", + "TextArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "359a16ea19cd02675cf7f6ffb815f76ad39c5aca7b6503ae8e43ebd1cc5d733f" +} diff --git a/rust/cloud-storage/.sqlx/query-35aa1ada3371fd09902d19b1218c2034a348d30889a11f28b98a9e4a0daf4525.json b/rust/cloud-storage/.sqlx/query-35aa1ada3371fd09902d19b1218c2034a348d30889a11f28b98a9e4a0daf4525.json new file mode 100644 index 0000000000..0bc29e54eb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-35aa1ada3371fd09902d19b1218c2034a348d30889a11f28b98a9e4a0daf4525.json @@ -0,0 +1,177 @@ +{ + "db_name": "PostgreSQL", + "query": "\nSELECT\n ep.id as entity_property_id,\n ep.entity_id,\n ep.entity_type as \"entity_type: EntityType\",\n ep.property_definition_id,\n ep.values as \"values: sqlx::types::JsonValue\",\n ep.created_at as entity_property_created_at,\n ep.updated_at as entity_property_updated_at,\n pd.organization_id as definition_organization_id,\n pd.user_id as definition_user_id,\n pd.display_name,\n pd.data_type as \"data_type: DataType\",\n pd.is_multi_select,\n pd.specific_entity_type as \"specific_entity_type: Option\",\n pd.created_at as definition_created_at,\n pd.updated_at as definition_updated_at,\n pd.is_system as definition_is_system\nFROM entity_properties ep\nINNER JOIN property_definitions pd ON ep.property_definition_id = pd.id\nWHERE ep.entity_id = $1 AND ep.entity_type = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_property_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "entity_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "entity_type: EntityType", + "type_info": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "property_definition_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "values: sqlx::types::JsonValue", + "type_info": "Jsonb" + }, + { + "ordinal": 5, + "name": "entity_property_created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "entity_property_updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "definition_organization_id", + "type_info": "Int4" + }, + { + "ordinal": 8, + "name": "definition_user_id", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "display_name", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "data_type: DataType", + "type_info": { + "Custom": { + "name": "property_data_type", + "kind": { + "Enum": [ + "BOOLEAN", + "DATE", + "NUMBER", + "STRING", + "SELECT_NUMBER", + "SELECT_STRING", + "ENTITY", + "LINK" + ] + } + } + } + }, + { + "ordinal": 11, + "name": "is_multi_select", + "type_info": "Bool" + }, + { + "ordinal": 12, + "name": "specific_entity_type: Option", + "type_info": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + }, + { + "ordinal": 13, + "name": "definition_created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 14, + "name": "definition_updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "definition_is_system", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + false, + false, + true, + true, + false, + false, + false, + true, + false, + false, + false + ] + }, + "hash": "35aa1ada3371fd09902d19b1218c2034a348d30889a11f28b98a9e4a0daf4525" +} diff --git a/rust/cloud-storage/.sqlx/query-35d32d2785c724360d20f94c8f10207caec56d853493823994679a4b081a1c38.json b/rust/cloud-storage/.sqlx/query-35d32d2785c724360d20f94c8f10207caec56d853493823994679a4b081a1c38.json new file mode 100644 index 0000000000..81582bc4ad --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-35d32d2785c724360d20f94c8f10207caec56d853493823994679a4b081a1c38.json @@ -0,0 +1,100 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, channel_id, room_name, created_by, started_at, ended_at, duration_ms, egress_id, recording_key, preview_url, recording_started_at, custom_name, summary, share_with_team\n FROM call_records\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "room_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_by", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "started_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "ended_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "duration_ms", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "egress_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "recording_key", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "preview_url", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "recording_started_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "custom_name", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "summary", + "type_info": "Text" + }, + { + "ordinal": 13, + "name": "share_with_team", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + true, + true, + true, + false + ] + }, + "hash": "35d32d2785c724360d20f94c8f10207caec56d853493823994679a4b081a1c38" +} diff --git a/rust/cloud-storage/.sqlx/query-35e9ea6799e4075ef4573116cc4dfb7c5904a23c2d859d838f607d1bd296777d.json b/rust/cloud-storage/.sqlx/query-35e9ea6799e4075ef4573116cc4dfb7c5904a23c2d859d838f607d1bd296777d.json new file mode 100644 index 0000000000..9c3becc68f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-35e9ea6799e4075ef4573116cc4dfb7c5904a23c2d859d838f607d1bd296777d.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n d.id\n FROM \"Document\" d\n JOIN \"ItemLastAccessed\" ila ON d.id = ila.item_id\n AND ila.item_type = 'document'\n AND ila.last_accessed < NOW() - ($2 || ' days')::INTERVAL\n WHERE d.owner IN (\n SELECT \n u.\"id\"\n FROM \"User\" u\n WHERE u.\"organizationId\" = $1\n );\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int4", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "35e9ea6799e4075ef4573116cc4dfb7c5904a23c2d859d838f607d1bd296777d" +} diff --git a/rust/cloud-storage/.sqlx/query-361c3d6e5a9549af7dd9042a088005f8da9e6128de27e65a9bb69e780615bf4c.json b/rust/cloud-storage/.sqlx/query-361c3d6e5a9549af7dd9042a088005f8da9e6128de27e65a9bb69e780615bf4c.json new file mode 100644 index 0000000000..48c07f8426 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-361c3d6e5a9549af7dd9042a088005f8da9e6128de27e65a9bb69e780615bf4c.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO crm_domains (company_id, team_id, domain)\n VALUES ($1, $2, $3)\n ON CONFLICT (team_id, LOWER(domain)) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "361c3d6e5a9549af7dd9042a088005f8da9e6128de27e65a9bb69e780615bf4c" +} diff --git a/rust/cloud-storage/.sqlx/query-36a0d1e85cdabcc03083ebedd508372d7c83b2ffe1f393c77ceae79ba7a24199.json b/rust/cloud-storage/.sqlx/query-36a0d1e85cdabcc03083ebedd508372d7c83b2ffe1f393c77ceae79ba7a24199.json new file mode 100644 index 0000000000..4f258d00ae --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-36a0d1e85cdabcc03083ebedd508372d7c83b2ffe1f393c77ceae79ba7a24199.json @@ -0,0 +1,51 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.\"id\" as \"chat_id\",\n m.id as \"message_id\",\n c.\"userId\" as \"user_id\",\n m.\"createdAt\" as \"created_at\",\n m.\"updatedAt\" as \"updated_at\"\n FROM\n \"ChatMessage\" m\n JOIN\n \"Chat\" c on c.\"id\" = m.\"chatId\"\n WHERE\n (\n $2::bool IS NULL\n OR ($2 AND c.\"deletedAt\" IS NOT NULL)\n OR (NOT $2 AND c.\"deletedAt\" IS NULL)\n )\n AND ($3::timestamptz IS NULL OR m.\"updatedAt\" >= $3)\n AND ($4::timestamptz IS NULL OR m.\"updatedAt\" < $4)\n AND (\n $5::timestamptz IS NULL\n OR (m.\"updatedAt\", m.id) > ($5, $6::text)\n )\n ORDER BY m.\"updatedAt\" ASC, m.id ASC\n LIMIT $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "chat_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8", + "Bool", + "Timestamptz", + "Timestamptz", + "Timestamptz", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false + ] + }, + "hash": "36a0d1e85cdabcc03083ebedd508372d7c83b2ffe1f393c77ceae79ba7a24199" +} diff --git a/rust/cloud-storage/.sqlx/query-36dfcf982834f117d97d1ba332be6784c946f05120c7c228ff258389ceba97a1.json b/rust/cloud-storage/.sqlx/query-36dfcf982834f117d97d1ba332be6784c946f05120c7c228ff258389ceba97a1.json new file mode 100644 index 0000000000..c07ec0acbe --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-36dfcf982834f117d97d1ba332be6784c946f05120c7c228ff258389ceba97a1.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO user_notification_type_preference (user_id, notification_event_type)\n VALUES ($1, $2)\n ON CONFLICT (user_id, notification_event_type) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Varchar" + ] + }, + "nullable": [] + }, + "hash": "36dfcf982834f117d97d1ba332be6784c946f05120c7c228ff258389ceba97a1" +} diff --git a/rust/cloud-storage/.sqlx/query-370a87eb4e8c69c5430716f06c0b23ec03e343c026d2e13ba7c4337fab85cd05.json b/rust/cloud-storage/.sqlx/query-370a87eb4e8c69c5430716f06c0b23ec03e343c026d2e13ba7c4337fab85cd05.json new file mode 100644 index 0000000000..72262bfe13 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-370a87eb4e8c69c5430716f06c0b23ec03e343c026d2e13ba7c4337fab85cd05.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM entity_access\n WHERE entity_id = $1\n AND entity_type = $2\n AND source_id = $3\n AND source_type = $4\n AND granted_from_project_id IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + { + "Custom": { + "name": "entity_access_source_type", + "kind": { + "Enum": [ + "channel", + "team", + "user" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "370a87eb4e8c69c5430716f06c0b23ec03e343c026d2e13ba7c4337fab85cd05" +} diff --git a/rust/cloud-storage/.sqlx/query-376d485681b329e1febf28f35020eadfdbec930e33a0666707593e20ae4f67f5.json b/rust/cloud-storage/.sqlx/query-376d485681b329e1febf28f35020eadfdbec930e33a0666707593e20ae4f67f5.json new file mode 100644 index 0000000000..8b67204019 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-376d485681b329e1febf28f35020eadfdbec930e33a0666707593e20ae4f67f5.json @@ -0,0 +1,118 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n ph.uuid, \n ph.\"documentId\" as document_id,\n ph.owner, \n ph.\"threadId\" as thread_id, \n ph.page, \n ph.red,\n ph.green, \n ph.blue, \n ph.alpha, \n ph.type as highlight_type, \n ph.text, \n ph.\"pageViewportWidth\" as page_viewport_width, \n ph.\"pageViewportHeight\" as page_viewport_height, \n ph.\"createdAt\"::timestamptz as created_at, \n ph.\"updatedAt\"::timestamptz as updated_at, \n ph.\"deletedAt\"::timestamptz as deleted_at, \n array_agg((phr.id, phr.top, phr.left, phr.width, phr.height)) as \"highlight_rects!: Vec\"\n FROM \"PdfHighlightAnchor\" ph\n JOIN \"PdfHighlightRect\" phr ON ph.uuid = phr.\"pdfHighlightAnchorId\"\n LEFT JOIN \"Thread\" t ON ph.\"threadId\" = t.id\n WHERE ph.\"documentId\" = $1\n AND ph.\"deletedAt\" IS NULL\n AND t.\"deletedAt\" IS NULL\n GROUP BY ph.uuid, ph.owner, ph.\"threadId\", ph.page, ph.red, ph.green, ph.blue, ph.alpha, ph.type, ph.text, ph.\"pageViewportWidth\", ph.\"pageViewportHeight\", ph.\"createdAt\", ph.\"updatedAt\", ph.\"deletedAt\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "page", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "red", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "green", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "blue", + "type_info": "Int4" + }, + { + "ordinal": 8, + "name": "alpha", + "type_info": "Float8" + }, + { + "ordinal": 9, + "name": "highlight_type", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "text", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "page_viewport_width", + "type_info": "Float8" + }, + { + "ordinal": 12, + "name": "page_viewport_height", + "type_info": "Float8" + }, + { + "ordinal": 13, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 14, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 16, + "name": "highlight_rects!: Vec", + "type_info": "RecordArray" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + null, + null, + null, + null + ] + }, + "hash": "376d485681b329e1febf28f35020eadfdbec930e33a0666707593e20ae4f67f5" +} diff --git a/rust/cloud-storage/.sqlx/query-377f7c130cc3d834870fa692f5ba36d070bce17512b9ab348d0cb40ebe4d1b08.json b/rust/cloud-storage/.sqlx/query-377f7c130cc3d834870fa692f5ba36d070bce17512b9ab348d0cb40ebe4d1b08.json new file mode 100644 index 0000000000..9348d25315 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-377f7c130cc3d834870fa692f5ba36d070bce17512b9ab348d0cb40ebe4d1b08.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n \"publicAccessLevel\" as \"access_level!\"\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"DocumentPermission\" WHERE \"documentId\" = $1\n )\n \n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "access_level!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true + ] + }, + "hash": "377f7c130cc3d834870fa692f5ba36d070bce17512b9ab348d0cb40ebe4d1b08" +} diff --git a/rust/cloud-storage/.sqlx/query-37c8b721c4a8e35b8cbecf02ca434d2095a2b2dbfc9d3a64e595f9725bbb0b8c.json b/rust/cloud-storage/.sqlx/query-37c8b721c4a8e35b8cbecf02ca434d2095a2b2dbfc9d3a64e595f9725bbb0b8c.json new file mode 100644 index 0000000000..b5dcd6e28f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-37c8b721c4a8e35b8cbecf02ca434d2095a2b2dbfc9d3a64e595f9725bbb0b8c.json @@ -0,0 +1,25 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH message_channel AS (\n SELECT channel_id FROM comms_messages WHERE id = $1\n ),\n mentions_to_insert AS (\n SELECT t.entity_type, t.entity_id\n FROM UNNEST($2::text[], $3::text[]) AS t(entity_type, entity_id)\n ),\n inserted_mentions AS (\n INSERT INTO comms_entity_mentions (\n id,\n source_entity_type,\n source_entity_id,\n entity_type,\n entity_id,\n user_id\n )\n SELECT gen_random_uuid(), 'message', $4::text, m.entity_type, m.entity_id, NULL\n FROM mentions_to_insert m\n WHERE NOT EXISTS (\n SELECT 1\n FROM comms_entity_mentions em\n WHERE em.source_entity_type = 'message'\n AND em.source_entity_id = $4::text\n AND em.entity_type = m.entity_type\n AND em.entity_id = m.entity_id\n )\n )\n SELECT DISTINCT cp.user_id\n FROM mentions_to_insert m\n CROSS JOIN message_channel mc\n JOIN comms_channel_participants cp ON m.entity_id = cp.user_id\n WHERE m.entity_type = 'user'\n AND cp.channel_id = mc.channel_id\n AND cp.left_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray", + "TextArray", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "37c8b721c4a8e35b8cbecf02ca434d2095a2b2dbfc9d3a64e595f9725bbb0b8c" +} diff --git a/rust/cloud-storage/.sqlx/query-38d8954ab4b43aa67742a32d78af64cfaf2c5620a534753cc358602d626693c1.json b/rust/cloud-storage/.sqlx/query-38d8954ab4b43aa67742a32d78af64cfaf2c5620a534753cc358602d626693c1.json new file mode 100644 index 0000000000..9073b27116 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-38d8954ab4b43aa67742a32d78af64cfaf2c5620a534753cc358602d626693c1.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id, joined_at, left_at\n FROM call_participants\n WHERE call_id = $1\n ORDER BY joined_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "joined_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "left_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + true + ] + }, + "hash": "38d8954ab4b43aa67742a32d78af64cfaf2c5620a534753cc358602d626693c1" +} diff --git a/rust/cloud-storage/.sqlx/query-3907578083a1a10d49eab63c85fd92d078cbce9ef2e968480ea475623ec76f63.json b/rust/cloud-storage/.sqlx/query-3907578083a1a10d49eab63c85fd92d078cbce9ef2e968480ea475623ec76f63.json new file mode 100644 index 0000000000..43ea9df225 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3907578083a1a10d49eab63c85fd92d078cbce9ef2e968480ea475623ec76f63.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n cr.id AS \"call_id!\",\n cr.channel_id AS \"channel_id!\",\n cr.created_by AS \"created_by!\",\n cc.name AS \"channel_name?\"\n FROM call_records cr\n LEFT JOIN comms_channels cc ON cc.id = cr.channel_id\n WHERE cr.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "call_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id!", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "created_by!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "channel_name?", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + true + ] + }, + "hash": "3907578083a1a10d49eab63c85fd92d078cbce9ef2e968480ea475623ec76f63" +} diff --git a/rust/cloud-storage/.sqlx/query-391f9e418d24bb793ff8e4408dd44193d3c769a6d43078570accc708e6a749b3.json b/rust/cloud-storage/.sqlx/query-391f9e418d24bb793ff8e4408dd44193d3c769a6d43078570accc708e6a749b3.json new file mode 100644 index 0000000000..2c5537268e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-391f9e418d24bb793ff8e4408dd44193d3c769a6d43078570accc708e6a749b3.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE user_notification un SET seen_at = NOW()\n WHERE un.user_id = $1\n AND un.notification_id = ANY($2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "UuidArray" + ] + }, + "nullable": [] + }, + "hash": "391f9e418d24bb793ff8e4408dd44193d3c769a6d43078570accc708e6a749b3" +} diff --git a/rust/cloud-storage/.sqlx/query-39257a88a1d0bda4726e269ce262291e713cf20f121e10997bcf944f3363efb8.json b/rust/cloud-storage/.sqlx/query-39257a88a1d0bda4726e269ce262291e713cf20f121e10997bcf944f3363efb8.json new file mode 100644 index 0000000000..edc2b98e8c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-39257a88a1d0bda4726e269ce262291e713cf20f121e10997bcf944f3363efb8.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n bp.sha as sha,\n bp.path as path,\n bp.id as id\n FROM \"BomPart\" bp\n JOIN \"DocumentBom\" db ON bp.\"documentBomId\" = db.id\n WHERE db.\"documentId\" = $1;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "path", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "39257a88a1d0bda4726e269ce262291e713cf20f121e10997bcf944f3363efb8" +} diff --git a/rust/cloud-storage/.sqlx/query-392aaf2a2b9c1d3b0a30fdaed7107209446a4893f7f44b1d5c19cfa9fd387695.json b/rust/cloud-storage/.sqlx/query-392aaf2a2b9c1d3b0a30fdaed7107209446a4893f7f44b1d5c19cfa9fd387695.json new file mode 100644 index 0000000000..5bf800b64e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-392aaf2a2b9c1d3b0a30fdaed7107209446a4893f7f44b1d5c19cfa9fd387695.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS (\n SELECT 1\n FROM public.email_threads t\n JOIN public.email_links l ON l.id = t.link_id\n WHERE t.id = $1::uuid\n AND (\n l.macro_id = $2\n OR EXISTS (\n SELECT 1\n FROM public.macro_user_links mul\n WHERE mul.child_macro_id = l.macro_id\n AND mul.primary_macro_id = $2\n )\n )\n ) AS \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "392aaf2a2b9c1d3b0a30fdaed7107209446a4893f7f44b1d5c19cfa9fd387695" +} diff --git a/rust/cloud-storage/.sqlx/query-399d9c2a1c07919059e7d5a7c58c97f9eff09db1237092b37fc80ece52ff410f.json b/rust/cloud-storage/.sqlx/query-399d9c2a1c07919059e7d5a7c58c97f9eff09db1237092b37fc80ece52ff410f.json new file mode 100644 index 0000000000..6773f99e9e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-399d9c2a1c07919059e7d5a7c58c97f9eff09db1237092b37fc80ece52ff410f.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"User\" SET \"macro_user_id\" = $1 WHERE \"macro_user_id\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "399d9c2a1c07919059e7d5a7c58c97f9eff09db1237092b37fc80ece52ff410f" +} diff --git a/rust/cloud-storage/.sqlx/query-3a4acf38ce09e3278ff2020de09c48267215a33e4c8d135319959aed14edbe63.json b/rust/cloud-storage/.sqlx/query-3a4acf38ce09e3278ff2020de09c48267215a33e4c8d135319959aed14edbe63.json new file mode 100644 index 0000000000..d507796bee --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3a4acf38ce09e3278ff2020de09c48267215a33e4c8d135319959aed14edbe63.json @@ -0,0 +1,42 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ExperimentLog\" (experiment_id, user_id, \"group\")\n VALUES ($1, $2, $3)\n RETURNING experiment_id, user_id, \"group\" as experiment_group, completed\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "experiment_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "experiment_group", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "completed", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Varchar" + ] + }, + "nullable": [ + false, + false, + false, + false + ] + }, + "hash": "3a4acf38ce09e3278ff2020de09c48267215a33e4c8d135319959aed14edbe63" +} diff --git a/rust/cloud-storage/.sqlx/query-3ad109bc298d98b88d0afac7d254a35a85f1671b808c2f2b71781114bbc1d134.json b/rust/cloud-storage/.sqlx/query-3ad109bc298d98b88d0afac7d254a35a85f1671b808c2f2b71781114bbc1d134.json new file mode 100644 index 0000000000..179c2f5674 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3ad109bc298d98b88d0afac7d254a35a85f1671b808c2f2b71781114bbc1d134.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT d.device_endpoint\n FROM notification_user_device_registration d\n WHERE d.device_token = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "device_endpoint", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "3ad109bc298d98b88d0afac7d254a35a85f1671b808c2f2b71781114bbc1d134" +} diff --git a/rust/cloud-storage/.sqlx/query-3ada2f8355f9c5ecd4072938c3243296615904f9af24c4e18dda50992b47d5af.json b/rust/cloud-storage/.sqlx/query-3ada2f8355f9c5ecd4072938c3243296615904f9af24c4e18dda50992b47d5af.json new file mode 100644 index 0000000000..c07d958fd5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3ada2f8355f9c5ecd4072938c3243296615904f9af24c4e18dda50992b47d5af.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_activity (id, user_id, channel_id, created_at, updated_at)\n VALUES ($1, $2, $3, NOW(), NOW())\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "3ada2f8355f9c5ecd4072938c3243296615904f9af24c4e18dda50992b47d5af" +} diff --git a/rust/cloud-storage/.sqlx/query-3b147b8bcb7d08a87729fc68c562ea545e65d41bd61891ed3aad8eda3c4d90dd.json b/rust/cloud-storage/.sqlx/query-3b147b8bcb7d08a87729fc68c562ea545e65d41bd61891ed3aad8eda3c4d90dd.json new file mode 100644 index 0000000000..3de2090f48 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3b147b8bcb7d08a87729fc68c562ea545e65d41bd61891ed3aad8eda3c4d90dd.json @@ -0,0 +1,33 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_messages (\n id, provider_id, link_id, thread_id, provider_thread_id,\n replying_to_id, subject, from_contact_id, sent_at,\n has_attachments, is_read, is_starred, is_sent, is_draft,\n body_text, body_html_sanitized, body_macro, headers_jsonb,\n created_at, updated_at\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20)\n ON CONFLICT (id) DO UPDATE SET\n provider_id = EXCLUDED.provider_id,\n thread_id = EXCLUDED.thread_id,\n provider_thread_id = EXCLUDED.provider_thread_id,\n replying_to_id = EXCLUDED.replying_to_id,\n subject = EXCLUDED.subject,\n from_contact_id = EXCLUDED.from_contact_id,\n sent_at = EXCLUDED.sent_at,\n has_attachments = EXCLUDED.has_attachments,\n is_read = EXCLUDED.is_read,\n is_starred = EXCLUDED.is_starred,\n is_sent = EXCLUDED.is_sent,\n is_draft = EXCLUDED.is_draft,\n body_text = EXCLUDED.body_text,\n body_html_sanitized = EXCLUDED.body_html_sanitized,\n body_macro = EXCLUDED.body_macro,\n headers_jsonb = EXCLUDED.headers_jsonb,\n updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Uuid", + "Uuid", + "Text", + "Uuid", + "Text", + "Uuid", + "Timestamptz", + "Bool", + "Bool", + "Bool", + "Bool", + "Bool", + "Text", + "Text", + "Text", + "Jsonb", + "Timestamptz", + "Timestamptz" + ] + }, + "nullable": [] + }, + "hash": "3b147b8bcb7d08a87729fc68c562ea545e65d41bd61891ed3aad8eda3c4d90dd" +} diff --git a/rust/cloud-storage/.sqlx/query-3b570b222c479d824a07d83d5af9bb51833195bf60052e04a1c754df22f57220.json b/rust/cloud-storage/.sqlx/query-3b570b222c479d824a07d83d5af9bb51833195bf60052e04a1c754df22f57220.json new file mode 100644 index 0000000000..15557826d9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3b570b222c479d824a07d83d5af9bb51833195bf60052e04a1c754df22f57220.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_scheduled_messages\n WHERE message_id = ANY($1) AND link_id = $2 AND sent = false\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "3b570b222c479d824a07d83d5af9bb51833195bf60052e04a1c754df22f57220" +} diff --git a/rust/cloud-storage/.sqlx/query-3bb80109f339257e2fa01b7ea05d8c9786d6202db2a9fc41186d53c430d8f155.json b/rust/cloud-storage/.sqlx/query-3bb80109f339257e2fa01b7ea05d8c9786d6202db2a9fc41186d53c430d8f155.json new file mode 100644 index 0000000000..0d41cd1358 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3bb80109f339257e2fa01b7ea05d8c9786d6202db2a9fc41186d53c430d8f155.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT t.id as thread_id\n FROM email_threads t\n JOIN email_links l ON t.link_id = l.id\n WHERE l.macro_id = $1\n AND t.latest_outbound_message_ts IS NOT NULL\n ORDER BY t.latest_outbound_message_ts DESC\n LIMIT $2 OFFSET $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text", + "Int8", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "3bb80109f339257e2fa01b7ea05d8c9786d6202db2a9fc41186d53c430d8f155" +} diff --git a/rust/cloud-storage/.sqlx/query-3bd649e798f834ea3e0fc9d6c3b03d923622666779a97429afb926c64b517e1b.json b/rust/cloud-storage/.sqlx/query-3bd649e798f834ea3e0fc9d6c3b03d923622666779a97429afb926c64b517e1b.json new file mode 100644 index 0000000000..6e2c2d93de --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3bd649e798f834ea3e0fc9d6c3b03d923622666779a97429afb926c64b517e1b.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE calls SET share_with_team = $2 WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "3bd649e798f834ea3e0fc9d6c3b03d923622666779a97429afb926c64b517e1b" +} diff --git a/rust/cloud-storage/.sqlx/query-3c082e8dc2056f62233bb2d68147a491c8ccb46f90738f8ebbf25afea699876a.json b/rust/cloud-storage/.sqlx/query-3c082e8dc2056f62233bb2d68147a491c8ccb46f90738f8ebbf25afea699876a.json new file mode 100644 index 0000000000..1f389c60ba --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3c082e8dc2056f62233bb2d68147a491c8ccb46f90738f8ebbf25afea699876a.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.id as user_id\n FROM \"User\" u\n WHERE u.\"organizationId\" = $1\n LIMIT $2\n OFFSET $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int4", + "Int8", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "3c082e8dc2056f62233bb2d68147a491c8ccb46f90738f8ebbf25afea699876a" +} diff --git a/rust/cloud-storage/.sqlx/query-3c570d90cccdcc4d4546ecd377500c4882b1c7fb6c56e822cc4dfb8d4191dce4.json b/rust/cloud-storage/.sqlx/query-3c570d90cccdcc4d4546ecd377500c4882b1c7fb6c56e822cc4dfb8d4191dce4.json new file mode 100644 index 0000000000..c910776c50 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3c570d90cccdcc4d4546ecd377500c4882b1c7fb6c56e822cc4dfb8d4191dce4.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT et.id as thread_id, et.link_id\n FROM email_attachments ea\n INNER JOIN email_messages em ON ea.message_id = em.id\n INNER JOIN email_threads et ON em.thread_id = et.id\n WHERE ea.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "3c570d90cccdcc4d4546ecd377500c4882b1c7fb6c56e822cc4dfb8d4191dce4" +} diff --git a/rust/cloud-storage/.sqlx/query-3cc12a354bd0b48195a8f6b7b1df42d96b19eda98a61750b4405c0a0c55e50b2.json b/rust/cloud-storage/.sqlx/query-3cc12a354bd0b48195a8f6b7b1df42d96b19eda98a61750b4405c0a0c55e50b2.json new file mode 100644 index 0000000000..e8ed76ed8e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3cc12a354bd0b48195a8f6b7b1df42d96b19eda98a61750b4405c0a0c55e50b2.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_scheduled_messages\n SET\n sent = true,\n updated_at = NOW()\n WHERE link_id = $1 AND message_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "3cc12a354bd0b48195a8f6b7b1df42d96b19eda98a61750b4405c0a0c55e50b2" +} diff --git a/rust/cloud-storage/.sqlx/query-3d0cc500bd9cee7fe4179b9ebc8176e5b20c478d2e5c4cba230e5fa3f57d38d6.json b/rust/cloud-storage/.sqlx/query-3d0cc500bd9cee7fe4179b9ebc8176e5b20c478d2e5c4cba230e5fa3f57d38d6.json new file mode 100644 index 0000000000..90d7d9ea68 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3d0cc500bd9cee7fe4179b9ebc8176e5b20c478d2e5c4cba230e5fa3f57d38d6.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n p.id as id,\n p.name,\n p.\"userId\" as user_id,\n p.\"parentId\" as \"parent_id?\",\n p.\"createdAt\"::timestamptz as created_at,\n p.\"updatedAt\"::timestamptz as updated_at,\n p.\"deletedAt\"::timestamptz as deleted_at\n FROM\n \"Project\" p\n WHERE p.\"parentId\" = $1 AND p.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "parent_id?", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + null, + null, + null + ] + }, + "hash": "3d0cc500bd9cee7fe4179b9ebc8176e5b20c478d2e5c4cba230e5fa3f57d38d6" +} diff --git a/rust/cloud-storage/.sqlx/query-3dd2c8152498a2183ff2a944699251aaeac0e320a02b2504b1bc74402ad894cd.json b/rust/cloud-storage/.sqlx/query-3dd2c8152498a2183ff2a944699251aaeac0e320a02b2504b1bc74402ad894cd.json new file mode 100644 index 0000000000..3bfa3d5798 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3dd2c8152498a2183ff2a944699251aaeac0e320a02b2504b1bc74402ad894cd.json @@ -0,0 +1,79 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE crm_comment c\n SET text = $3, updated_at = now()\n FROM crm_thread t\n WHERE c.id = $1\n AND c.thread_id = t.id\n AND c.deleted_at IS NULL\n AND (\n EXISTS (\n SELECT 1 FROM crm_companies co\n WHERE co.id = t.company_id\n AND co.team_id = $2\n AND ($4 OR co.hidden = FALSE)\n )\n OR EXISTS (\n SELECT 1 FROM crm_contacts ct\n JOIN crm_companies co2 ON co2.id = ct.company_id\n WHERE ct.id = t.contact_id\n AND co2.team_id = $2\n AND ($4 OR (ct.hidden = FALSE AND co2.hidden = FALSE))\n )\n )\n RETURNING c.id, c.thread_id, c.\"order\", c.owner, c.sender, c.text,\n c.metadata, c.created_at, c.updated_at, c.deleted_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "order", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "sender", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "text", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text", + "Bool" + ] + }, + "nullable": [ + false, + false, + true, + false, + true, + false, + true, + false, + false, + true + ] + }, + "hash": "3dd2c8152498a2183ff2a944699251aaeac0e320a02b2504b1bc74402ad894cd" +} diff --git a/rust/cloud-storage/.sqlx/query-3ddef23b2904342f1b84795fd71b50de4413626a5dd460c83ad9e997fb8e09ae.json b/rust/cloud-storage/.sqlx/query-3ddef23b2904342f1b84795fd71b50de4413626a5dd460c83ad9e997fb8e09ae.json new file mode 100644 index 0000000000..53ba1ca60d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3ddef23b2904342f1b84795fd71b50de4413626a5dd460c83ad9e997fb8e09ae.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Chat\" SET \"deletedAt\" = NOW() WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "3ddef23b2904342f1b84795fd71b50de4413626a5dd460c83ad9e997fb8e09ae" +} diff --git a/rust/cloud-storage/.sqlx/query-3de786ce00b9b7a2cf935b39ed0bed0d042a4133b63124b1894da135d0a9449b.json b/rust/cloud-storage/.sqlx/query-3de786ce00b9b7a2cf935b39ed0bed0d042a4133b63124b1894da135d0a9449b.json new file mode 100644 index 0000000000..036b2d51d9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3de786ce00b9b7a2cf935b39ed0bed0d042a4133b63124b1894da135d0a9449b.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.\"documentId\" as \"document_id\"\n FROM\n \"DocumentText\" d\n WHERE\n d.\"tokenCount\" = 0\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "3de786ce00b9b7a2cf935b39ed0bed0d042a4133b63124b1894da135d0a9449b" +} diff --git a/rust/cloud-storage/.sqlx/query-3e161b7906ba15490634a5375e300d649e4aa06841adb1645d4f17507cf15694.json b/rust/cloud-storage/.sqlx/query-3e161b7906ba15490634a5375e300d649e4aa06841adb1645d4f17507cf15694.json new file mode 100644 index 0000000000..8a601b1311 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3e161b7906ba15490634a5375e300d649e4aa06841adb1645d4f17507cf15694.json @@ -0,0 +1,25 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"User\" (\"id\", \"email\", \"organizationId\", \"macro_user_id\")\n VALUES ($1, $2, $3, $4)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Int4", + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "3e161b7906ba15490634a5375e300d649e4aa06841adb1645d4f17507cf15694" +} diff --git a/rust/cloud-storage/.sqlx/query-3e259ea5cbdcfae4334cb0125de6423fa95a0c127fbeba0a59d7096b0177c072.json b/rust/cloud-storage/.sqlx/query-3e259ea5cbdcfae4334cb0125de6423fa95a0c127fbeba0a59d7096b0177c072.json new file mode 100644 index 0000000000..8ee9d7919b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3e259ea5cbdcfae4334cb0125de6423fa95a0c127fbeba0a59d7096b0177c072.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n p.id,\n p.name,\n p.\"userId\" as \"owner\",\n p.\"parentId\" as \"parent_id\",\n p.\"createdAt\"::timestamptz as \"created_at!\",\n p.\"updatedAt\"::timestamptz as \"updated_at!\"\n FROM\n \"Project\" p\n WHERE\n p.id = $1 AND p.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "parent_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at!", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + null, + null + ] + }, + "hash": "3e259ea5cbdcfae4334cb0125de6423fa95a0c127fbeba0a59d7096b0177c072" +} diff --git a/rust/cloud-storage/.sqlx/query-3e333cb74dc40b2af8d6f9ed74105709ccaeca68b0ff0906e2f6be307963b49f.json b/rust/cloud-storage/.sqlx/query-3e333cb74dc40b2af8d6f9ed74105709ccaeca68b0ff0906e2f6be307963b49f.json new file mode 100644 index 0000000000..3f1f35a9f8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3e333cb74dc40b2af8d6f9ed74105709ccaeca68b0ff0906e2f6be307963b49f.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"SharePermission\" (\"isPublic\", \"publicAccessLevel\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, NOW(), NOW())\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Bool", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "3e333cb74dc40b2af8d6f9ed74105709ccaeca68b0ff0906e2f6be307963b49f" +} diff --git a/rust/cloud-storage/.sqlx/query-3e3b2b04a9eb28ea82f8f97a2b725b205e0b6f330e4f3eb9690375e992ce2194.json b/rust/cloud-storage/.sqlx/query-3e3b2b04a9eb28ea82f8f97a2b725b205e0b6f330e4f3eb9690375e992ce2194.json new file mode 100644 index 0000000000..dad50de6d8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3e3b2b04a9eb28ea82f8f97a2b725b205e0b6f330e4f3eb9690375e992ce2194.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"id\" FROM \"Chat\" WHERE \"projectId\" = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "3e3b2b04a9eb28ea82f8f97a2b725b205e0b6f330e4f3eb9690375e992ce2194" +} diff --git a/rust/cloud-storage/.sqlx/query-3e5924421ddbfb3eef5e5d949677a72f6dddf521d5df201bb11207e89be08747.json b/rust/cloud-storage/.sqlx/query-3e5924421ddbfb3eef5e5d949677a72f6dddf521d5df201bb11207e89be08747.json new file mode 100644 index 0000000000..c97deb4e61 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3e5924421ddbfb3eef5e5d949677a72f6dddf521d5df201bb11207e89be08747.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n macro_user_id,\n email\n FROM\n in_progress_email_link\n WHERE\n id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_user_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "email", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "3e5924421ddbfb3eef5e5d949677a72f6dddf521d5df201bb11207e89be08747" +} diff --git a/rust/cloud-storage/.sqlx/query-3e75b16310cd04a141ddede2b9360356850135fd8b7bc79ef54d6548c40dbbb0.json b/rust/cloud-storage/.sqlx/query-3e75b16310cd04a141ddede2b9360356850135fd8b7bc79ef54d6548c40dbbb0.json new file mode 100644 index 0000000000..45457a185c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3e75b16310cd04a141ddede2b9360356850135fd8b7bc79ef54d6548c40dbbb0.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT provider_id\n FROM email_threads\n WHERE link_id = $1 AND id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "provider_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + true + ] + }, + "hash": "3e75b16310cd04a141ddede2b9360356850135fd8b7bc79ef54d6548c40dbbb0" +} diff --git a/rust/cloud-storage/.sqlx/query-3e8d3378b4651a45d6e1cfee02d1d991bb8fa6a687207164d713487c524d87a6.json b/rust/cloud-storage/.sqlx/query-3e8d3378b4651a45d6e1cfee02d1d991bb8fa6a687207164d713487c524d87a6.json new file mode 100644 index 0000000000..6496703c4d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3e8d3378b4651a45d6e1cfee02d1d991bb8fa6a687207164d713487c524d87a6.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Chat\" SET \"deletedAt\" = NULL WHERE id = ANY($1);\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "3e8d3378b4651a45d6e1cfee02d1d991bb8fa6a687207164d713487c524d87a6" +} diff --git a/rust/cloud-storage/.sqlx/query-3ebdc4ec5d9a7b08d21f6e249d5c72d10d42e25aa07353aa47ebd3f1ad4f56a7.json b/rust/cloud-storage/.sqlx/query-3ebdc4ec5d9a7b08d21f6e249d5c72d10d42e25aa07353aa47ebd3f1ad4f56a7.json new file mode 100644 index 0000000000..dc0ac30179 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3ebdc4ec5d9a7b08d21f6e249d5c72d10d42e25aa07353aa47ebd3f1ad4f56a7.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT bp.sha\n FROM \"BomPart\" bp\n WHERE bp.\"documentBomId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "sha", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "3ebdc4ec5d9a7b08d21f6e249d5c72d10d42e25aa07353aa47ebd3f1ad4f56a7" +} diff --git a/rust/cloud-storage/.sqlx/query-3eebc9f54cadfffef67a78b403320f8f305d08873a4c857c118f166d6c16b6af.json b/rust/cloud-storage/.sqlx/query-3eebc9f54cadfffef67a78b403320f8f305d08873a4c857c118f166d6c16b6af.json new file mode 100644 index 0000000000..b4e060a62c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3eebc9f54cadfffef67a78b403320f8f305d08873a4c857c118f166d6c16b6af.json @@ -0,0 +1,60 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_activity (\n id,\n user_id,\n channel_id,\n created_at,\n updated_at\n )\n VALUES (\n $1, $2, $3, NOW(), NOW()\n )\n RETURNING \n id as \"id!: Uuid\",\n user_id as \"user_id!: String\",\n channel_id as \"channel_id!: Uuid\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\",\n viewed_at as \"viewed_at?: DateTime\",\n interacted_at as \"interacted_at?: DateTime\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id!: String", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "channel_id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "created_at!: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "updated_at!: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "viewed_at?: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 6, + "name": "interacted_at?: DateTime", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + true + ] + }, + "hash": "3eebc9f54cadfffef67a78b403320f8f305d08873a4c857c118f166d6c16b6af" +} diff --git a/rust/cloud-storage/.sqlx/query-3eefc691aa14c4c3da377bf741138ed2f91343adfb13af0c7573dd6c29f8ac9a.json b/rust/cloud-storage/.sqlx/query-3eefc691aa14c4c3da377bf741138ed2f91343adfb13af0c7573dd6c29f8ac9a.json new file mode 100644 index 0000000000..04379411f8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3eefc691aa14c4c3da377bf741138ed2f91343adfb13af0c7573dd6c29f8ac9a.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentText\" (\"documentId\", \"content\", \"tokenCount\")\n VALUES ($1, $2, $3)\n ON CONFLICT (\"documentId\") DO UPDATE \n SET \"content\" = $2, \"tokenCount\" = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "3eefc691aa14c4c3da377bf741138ed2f91343adfb13af0c7573dd6c29f8ac9a" +} diff --git a/rust/cloud-storage/.sqlx/query-3f3b5a5d8734e3748d4e29d64cfa89baff99dae621e7cbd7a10017beec9485c8.json b/rust/cloud-storage/.sqlx/query-3f3b5a5d8734e3748d4e29d64cfa89baff99dae621e7cbd7a10017beec9485c8.json new file mode 100644 index 0000000000..5c152ecd5e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3f3b5a5d8734e3748d4e29d64cfa89baff99dae621e7cbd7a10017beec9485c8.json @@ -0,0 +1,50 @@ +{ + "db_name": "PostgreSQL", + "query": "\nSELECT\n ep.entity_id,\n ep.entity_type as \"entity_type: EntityType\",\n ep.property_definition_id\nFROM entity_properties ep\nWHERE ep.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "entity_type: EntityType", + "type_info": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + }, + { + "ordinal": 2, + "name": "property_definition_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "3f3b5a5d8734e3748d4e29d64cfa89baff99dae621e7cbd7a10017beec9485c8" +} diff --git a/rust/cloud-storage/.sqlx/query-3f518302c857be0e5aa9180c4cb50a316694bb9210e88c664c4f998fd5759fb3.json b/rust/cloud-storage/.sqlx/query-3f518302c857be0e5aa9180c4cb50a316694bb9210e88c664c4f998fd5759fb3.json new file mode 100644 index 0000000000..c10bb1161a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3f518302c857be0e5aa9180c4cb50a316694bb9210e88c664c4f998fd5759fb3.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ItemLastAccessed\" (\"item_id\", \"item_type\", \"last_accessed\")\n VALUES ($1, 'chat', NOW())\n ON CONFLICT (\"item_id\", \"item_type\") DO UPDATE\n SET \"last_accessed\" = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "3f518302c857be0e5aa9180c4cb50a316694bb9210e88c664c4f998fd5759fb3" +} diff --git a/rust/cloud-storage/.sqlx/query-3f5df39d7ee978e92a94f3e9c1d6f12e812b89f46a7a40cb0d4b0ff8397b1b2f.json b/rust/cloud-storage/.sqlx/query-3f5df39d7ee978e92a94f3e9c1d6f12e812b89f46a7a40cb0d4b0ff8397b1b2f.json new file mode 100644 index 0000000000..b8ae88954d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3f5df39d7ee978e92a94f3e9c1d6f12e812b89f46a7a40cb0d4b0ff8397b1b2f.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT access_level FROM (\n -- Source 1: entity_access source_id match\n SELECT\n access_level::text FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'chat'\n AND source_id = ANY($2)\n\n UNION ALL\n -- Source 2: items share permission\n SELECT\n \"publicAccessLevel\"::text AS access_level\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"ChatPermission\" WHERE \"chatId\" = $3\n )\n ) AS combined_access\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "access_level", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "3f5df39d7ee978e92a94f3e9c1d6f12e812b89f46a7a40cb0d4b0ff8397b1b2f" +} diff --git a/rust/cloud-storage/.sqlx/query-3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046.json b/rust/cloud-storage/.sqlx/query-3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046.json new file mode 100644 index 0000000000..5bc1c5aaef --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046.json @@ -0,0 +1,65 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id,\n c.name,\n c.channel_type AS \"channel_type: ChannelType\",\n c.org_id,\n c.team_id,\n CASE WHEN (\n c.channel_type = 'public'\n OR\n (c.channel_type IN ('private', 'direct_message', 'team') AND EXISTS (\n SELECT 1 FROM comms_channel_participants cp\n WHERE cp.channel_id = c.id\n AND cp.user_id = $2\n AND cp.left_at IS NULL\n ))\n ) THEN true ELSE false END AS \"has_access!: bool\"\n FROM comms_channels c\n WHERE c.id::text = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "channel_type: ChannelType", + "type_info": { + "Custom": { + "name": "comms_channel_type", + "kind": { + "Enum": [ + "public", + "private", + "direct_message", + "team" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "org_id", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "team_id", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "has_access!: bool", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "TextArray", + "Text" + ] + }, + "nullable": [ + false, + true, + false, + true, + true, + null + ] + }, + "hash": "3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046" +} diff --git a/rust/cloud-storage/.sqlx/query-3ff726c2ff64c69e2af5dca67815300efe7b0bcbd74ae96f3d65aeb8edd064f7.json b/rust/cloud-storage/.sqlx/query-3ff726c2ff64c69e2af5dca67815300efe7b0bcbd74ae96f3d65aeb8edd064f7.json new file mode 100644 index 0000000000..9cd2b5c5ae --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-3ff726c2ff64c69e2af5dca67815300efe7b0bcbd74ae96f3d65aeb8edd064f7.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n p.id,\n p.name,\n p.\"userId\" as user_id,\n p.\"parentId\" as parent_id,\n p.\"createdAt\"::timestamptz as created_at,\n p.\"updatedAt\"::timestamptz as updated_at,\n p.\"deletedAt\"::timestamptz as deleted_at\n FROM \"Project\" p\n WHERE id = $1 AND p.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "parent_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + null, + null, + null + ] + }, + "hash": "3ff726c2ff64c69e2af5dca67815300efe7b0bcbd74ae96f3d65aeb8edd064f7" +} diff --git a/rust/cloud-storage/.sqlx/query-402db336b46141f0ff5f728de492c3c3897c0c17a0f53ce67c915b20e07b3545.json b/rust/cloud-storage/.sqlx/query-402db336b46141f0ff5f728de492c3c3897c0c17a0f53ce67c915b20e07b3545.json new file mode 100644 index 0000000000..8733c29969 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-402db336b46141f0ff5f728de492c3c3897c0c17a0f53ce67c915b20e07b3545.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, source_entity_type, source_entity_id, entity_type, entity_id, user_id, created_at\n FROM comms_entity_mentions\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "source_entity_type", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "source_entity_id", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "entity_type", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "entity_id", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "user_id", + "type_info": "Varchar" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + false + ] + }, + "hash": "402db336b46141f0ff5f728de492c3c3897c0c17a0f53ce67c915b20e07b3545" +} diff --git a/rust/cloud-storage/.sqlx/query-40791e0cf94fdc888849594849e83daebe532ed4f8935d06815c24289d3c91c2.json b/rust/cloud-storage/.sqlx/query-40791e0cf94fdc888849594849e83daebe532ed4f8935d06815c24289d3c91c2.json new file mode 100644 index 0000000000..5fc1c6cc19 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-40791e0cf94fdc888849594849e83daebe532ed4f8935d06815c24289d3c91c2.json @@ -0,0 +1,172 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n provider_id,\n global_id,\n thread_id,\n provider_thread_id,\n replying_to_id,\n link_id,\n provider_history_id,\n internal_date_ts,\n snippet,\n size_estimate,\n subject,\n from_name,\n from_contact_id,\n sent_at,\n has_attachments,\n is_read,\n is_starred,\n is_sent,\n is_draft,\n headers_jsonb,\n created_at,\n updated_at,\n -- No body attributes\n NULL as \"body_text?\",\n NULL as \"body_html_sanitized?\",\n NULL as \"body_macro?\"\n FROM email_messages\n WHERE thread_id = $1\n ORDER BY internal_date_ts DESC NULLS LAST\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 6, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 21, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 22, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 23, + "name": "body_text?", + "type_info": "Text" + }, + { + "ordinal": 24, + "name": "body_html_sanitized?", + "type_info": "Text" + }, + { + "ordinal": 25, + "name": "body_macro?", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + true, + false, + false, + null, + null, + null + ] + }, + "hash": "40791e0cf94fdc888849594849e83daebe532ed4f8935d06815c24289d3c91c2" +} diff --git a/rust/cloud-storage/.sqlx/query-40955b135c91071078ae79b3be1c76ed21031ab2497aa0c137a5644f7e7e6e7c.json b/rust/cloud-storage/.sqlx/query-40955b135c91071078ae79b3be1c76ed21031ab2497aa0c137a5644f7e7e6e7c.json new file mode 100644 index 0000000000..6d4d559663 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-40955b135c91071078ae79b3be1c76ed21031ab2497aa0c137a5644f7e7e6e7c.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM call_records WHERE id = $1 RETURNING recording_key, preview_url\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "recording_key", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "preview_url", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + true, + true + ] + }, + "hash": "40955b135c91071078ae79b3be1c76ed21031ab2497aa0c137a5644f7e7e6e7c" +} diff --git a/rust/cloud-storage/.sqlx/query-4095df49b0672e4a41dee5acbe6be80494d59ba5242b073b9dbefbf8752a39f6.json b/rust/cloud-storage/.sqlx/query-4095df49b0672e4a41dee5acbe6be80494d59ba5242b073b9dbefbf8752a39f6.json new file mode 100644 index 0000000000..e34db5f9bb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4095df49b0672e4a41dee5acbe6be80494d59ba5242b073b9dbefbf8752a39f6.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n organization_id,\n retention_days\n FROM\n \"OrganizationRetentionPolicy\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "organization_id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "retention_days", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + true + ] + }, + "hash": "4095df49b0672e4a41dee5acbe6be80494d59ba5242b073b9dbefbf8752a39f6" +} diff --git a/rust/cloud-storage/.sqlx/query-40980d3ade1b42b14019fa0add93fb37a8a26d78f4e275d9bca1ebaa7e558f6b.json b/rust/cloud-storage/.sqlx/query-40980d3ade1b42b14019fa0add93fb37a8a26d78f4e275d9bca1ebaa7e558f6b.json new file mode 100644 index 0000000000..b420aa09dc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-40980d3ade1b42b14019fa0add93fb37a8a26d78f4e275d9bca1ebaa7e558f6b.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE crm_contacts SET hidden = TRUE WHERE company_id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "40980d3ade1b42b14019fa0add93fb37a8a26d78f4e275d9bca1ebaa7e558f6b" +} diff --git a/rust/cloud-storage/.sqlx/query-40bfe125ad0bde96466e2a8ed9083c72877347fafb9fbcde0935ac10290b7cb0.json b/rust/cloud-storage/.sqlx/query-40bfe125ad0bde96466e2a8ed9083c72877347fafb9fbcde0935ac10290b7cb0.json new file mode 100644 index 0000000000..0cbe128b65 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-40bfe125ad0bde96466e2a8ed9083c72877347fafb9fbcde0935ac10290b7cb0.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT m.thread_id as \"thread_id!\"\n FROM email_messages m\n WHERE m.from_contact_id = ANY($1)\n UNION\n SELECT DISTINCT m.thread_id as \"thread_id!\"\n FROM email_messages m\n JOIN email_message_recipients mr ON m.id = mr.message_id\n WHERE mr.contact_id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + null + ] + }, + "hash": "40bfe125ad0bde96466e2a8ed9083c72877347fafb9fbcde0935ac10290b7cb0" +} diff --git a/rust/cloud-storage/.sqlx/query-4103298cf62438b69d534ac4092423b210d7bcf2202ca38480fd7ce026977166.json b/rust/cloud-storage/.sqlx/query-4103298cf62438b69d534ac4092423b210d7bcf2202ca38480fd7ce026977166.json new file mode 100644 index 0000000000..a1def484e8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4103298cf62438b69d534ac4092423b210d7bcf2202ca38480fd7ce026977166.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT channel_id, user_id\n FROM comms_channel_participants\n WHERE channel_id = ANY($1) AND left_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "4103298cf62438b69d534ac4092423b210d7bcf2202ca38480fd7ce026977166" +} diff --git a/rust/cloud-storage/.sqlx/query-411177d8b75b7150971074b41fd825873d729e28915a0fd36335b36494a93c53.json b/rust/cloud-storage/.sqlx/query-411177d8b75b7150971074b41fd825873d729e28915a0fd36335b36494a93c53.json new file mode 100644 index 0000000000..c832a3e0d2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-411177d8b75b7150971074b41fd825873d729e28915a0fd36335b36494a93c53.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE \"Chat\" SET \"projectId\" = $1 WHERE id = $2", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "411177d8b75b7150971074b41fd825873d729e28915a0fd36335b36494a93c53" +} diff --git a/rust/cloud-storage/.sqlx/query-4123b0f2a6fa02a9191a87f2484cb27fd4220b15126fd010acbf4b954a9afb68.json b/rust/cloud-storage/.sqlx/query-4123b0f2a6fa02a9191a87f2484cb27fd4220b15126fd010acbf4b954a9afb68.json new file mode 100644 index 0000000000..1990ecc0d6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4123b0f2a6fa02a9191a87f2484cb27fd4220b15126fd010acbf4b954a9afb68.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT elem->>'entity_id' as \"subtask_id!\"\n FROM entity_properties,\n jsonb_array_elements(values->'value') elem\n WHERE entity_id = $1\n AND entity_type = 'TASK'\n AND property_definition_id = $2\n AND values IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "subtask_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "4123b0f2a6fa02a9191a87f2484cb27fd4220b15126fd010acbf4b954a9afb68" +} diff --git a/rust/cloud-storage/.sqlx/query-414c3ac70d95caaaf4c7fdb0556c287e3755f19187f07ec05d4ce0c60a5df751.json b/rust/cloud-storage/.sqlx/query-414c3ac70d95caaaf4c7fdb0556c287e3755f19187f07ec05d4ce0c60a5df751.json new file mode 100644 index 0000000000..12cc6e12d0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-414c3ac70d95caaaf4c7fdb0556c287e3755f19187f07ec05d4ce0c60a5df751.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, channel_id, room_name, created_by, created_at, egress_id\n FROM calls\n WHERE channel_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "room_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_by", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "egress_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true + ] + }, + "hash": "414c3ac70d95caaaf4c7fdb0556c287e3755f19187f07ec05d4ce0c60a5df751" +} diff --git a/rust/cloud-storage/.sqlx/query-41682a8f6e1e2fb8836f76ca3ceab5fe676b45c9942ec0c99486c03e52733a47.json b/rust/cloud-storage/.sqlx/query-41682a8f6e1e2fb8836f76ca3ceab5fe676b45c9942ec0c99486c03e52733a47.json new file mode 100644 index 0000000000..7eab7370d7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-41682a8f6e1e2fb8836f76ca3ceab5fe676b45c9942ec0c99486c03e52733a47.json @@ -0,0 +1,38 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO property_options (\n id,\n property_definition_id,\n display_order,\n number_value,\n string_value\n )\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id, created_at, updated_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Int4", + "Float8", + "Text" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "41682a8f6e1e2fb8836f76ca3ceab5fe676b45c9942ec0c99486c03e52733a47" +} diff --git a/rust/cloud-storage/.sqlx/query-41de07226ced9b95c7419c9e6d5d9bd9c5890cf1c144f0f8905664cd72c7f132.json b/rust/cloud-storage/.sqlx/query-41de07226ced9b95c7419c9e6d5d9bd9c5890cf1c144f0f8905664cd72c7f132.json new file mode 100644 index 0000000000..b75a3a2ff5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-41de07226ced9b95c7419c9e6d5d9bd9c5890cf1c144f0f8905664cd72c7f132.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n VALUES ($1, $2, $3, $4, $5)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + { + "Custom": { + "name": "entity_access_source_type", + "kind": { + "Enum": [ + "channel", + "team", + "user" + ] + } + } + }, + { + "Custom": { + "name": "\"AccessLevel\"", + "kind": { + "Enum": [ + "view", + "comment", + "edit", + "owner" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "41de07226ced9b95c7419c9e6d5d9bd9c5890cf1c144f0f8905664cd72c7f132" +} diff --git a/rust/cloud-storage/.sqlx/query-41ef28446ebbd766c0778fd56fb8ee8094c2cb84ed3f4dab9e890d441611722b.json b/rust/cloud-storage/.sqlx/query-41ef28446ebbd766c0778fd56fb8ee8094c2cb84ed3f4dab9e890d441611722b.json new file mode 100644 index 0000000000..4eaee7da4e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-41ef28446ebbd766c0778fd56fb8ee8094c2cb84ed3f4dab9e890d441611722b.json @@ -0,0 +1,146 @@ +{ + "db_name": "PostgreSQL", + "query": " \n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n UserAccessibleItems AS (\n SELECT DISTINCT\n ea.entity_id::text as item_id,\n ea.entity_type as item_type\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n ),\n Combined AS (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\",\n d.\"projectId\" as \"project_id\",\n NULL as \"is_persistent\",\n di.sha as \"sha\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", d.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN d.\"createdAt\"\n ELSE d.\"updatedAt\"\n END::timestamptz as \"sort_ts!\",\n CASE\n WHEN dt.sub_type = 'task'\n AND ep_status.values->'value' ? $6\n THEN true\n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL\n END as \"is_completed\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status\n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id\n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $7\n INNER JOIN UserAccessibleItems uai ON uai.item_id = d.id AND uai.item_type = 'document'\n -- This MUST be a LEFT JOIN to support all three sort methods\n LEFT JOIN \"UserHistory\" uh ON uh.\"itemId\" = d.id AND uh.\"itemType\" = 'document' AND uh.\"userId\" = $1\n LEFT JOIN LATERAL (\n SELECT b.id\n FROM \"DocumentBom\" b\n WHERE b.\"documentId\" = d.id\n ORDER BY b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT i.id, i.sha\n FROM \"DocumentInstance\" i\n WHERE i.\"documentId\" = d.id\n ORDER BY i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n WHERE d.\"deletedAt\" IS NULL\n\n UNION ALL\n\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at!\",\n c.\"updatedAt\"::timestamptz as \"updated_at!\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", c.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN c.\"createdAt\"\n ELSE c.\"updatedAt\"\n END::timestamptz as \"sort_ts!\",\n NULL as \"is_completed\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Chat\" c\n INNER JOIN UserAccessibleItems uai ON uai.item_id = c.id AND uai.item_type = 'chat'\n LEFT JOIN \"UserHistory\" uh ON uh.\"itemId\" = c.id AND uh.\"itemType\" = 'chat' AND uh.\"userId\" = $1\n WHERE c.\"deletedAt\" IS NULL\n\n UNION ALL\n\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at!\",\n p.\"updatedAt\"::timestamptz as \"updated_at!\",\n p.\"parentId\" as \"project_id\",\n NULL as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", p.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN p.\"createdAt\"\n ELSE p.\"updatedAt\"\n END::timestamptz as \"sort_ts!\",\n NULL as \"is_completed\",\n p.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Project\" p\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = p.id\n AND uai.item_type = 'project'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = p.id\n AND uh.\"itemType\" = 'project'\n AND uh.\"userId\" = $1\n WHERE p.\"deletedAt\" IS NULL\n )\n SELECT Combined.* FROM Combined\n LEFT JOIN frecency_aggregates fa\n ON fa.entity_id = Combined.\"id!\"\n AND fa.entity_type = Combined.\"item_type!\"\n AND fa.user_id = $1\n WHERE fa.id IS NULL\n AND (\n ($4::timestamptz IS NULL)\n OR\n (Combined.\"sort_ts!\", Combined.\"id!\"::text) < ($4, $5)\n )\n ORDER BY Combined.\"sort_ts!\" DESC, Combined.\"id!\" DESC\n LIMIT $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_type!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_version_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "user_id!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "name!", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "is_persistent", + "type_info": "Bool" + }, + { + "ordinal": 13, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 14, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 15, + "name": "viewed_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 16, + "name": "sort_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 17, + "name": "is_completed", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Int8", + "Timestamptz", + "Text", + "Text", + "Uuid" + ] + }, + "nullable": [ + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null + ] + }, + "hash": "41ef28446ebbd766c0778fd56fb8ee8094c2cb84ed3f4dab9e890d441611722b" +} diff --git a/rust/cloud-storage/.sqlx/query-41f77dad73c881816d91df173411d39329574a7a99ae1d295fcd43afa5963408.json b/rust/cloud-storage/.sqlx/query-41f77dad73c881816d91df173411d39329574a7a99ae1d295fcd43afa5963408.json new file mode 100644 index 0000000000..13c88a263e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-41f77dad73c881816d91df173411d39329574a7a99ae1d295fcd43afa5963408.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChannelSharePermission\" (\"share_permission_id\", \"channel_id\", \"access_level\")\n VALUES ($1, $2, $3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + { + "Custom": { + "name": "\"AccessLevel\"", + "kind": { + "Enum": [ + "view", + "comment", + "edit", + "owner" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "41f77dad73c881816d91df173411d39329574a7a99ae1d295fcd43afa5963408" +} diff --git a/rust/cloud-storage/.sqlx/query-42175eb671a66713c2bb172aed854b0fd109b0089bbb4951379ea045012ad6f6.json b/rust/cloud-storage/.sqlx/query-42175eb671a66713c2bb172aed854b0fd109b0089bbb4951379ea045012ad6f6.json new file mode 100644 index 0000000000..cc245b938c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-42175eb671a66713c2bb172aed854b0fd109b0089bbb4951379ea045012ad6f6.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id FROM email_links\n WHERE macro_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "42175eb671a66713c2bb172aed854b0fd109b0089bbb4951379ea045012ad6f6" +} diff --git a/rust/cloud-storage/.sqlx/query-42546a42d5b23be78e06b0bdf3188821246cd0b2d459d8dc667be1e6c8de1c98.json b/rust/cloud-storage/.sqlx/query-42546a42d5b23be78e06b0bdf3188821246cd0b2d459d8dc667be1e6c8de1c98.json new file mode 100644 index 0000000000..001698c6b2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-42546a42d5b23be78e06b0bdf3188821246cd0b2d459d8dc667be1e6c8de1c98.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.\"id\" as id\n FROM \"Document\" d\n INNER JOIN \"UserHistory\" uh ON uh.\"itemId\" = d.\"id\" AND uh.\"itemType\" = 'document'\n INNER JOIN \"User\" u ON u.id = uh.\"userId\"\n WHERE d.id = $1 AND u.id != d.\"owner\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "42546a42d5b23be78e06b0bdf3188821246cd0b2d459d8dc667be1e6c8de1c98" +} diff --git a/rust/cloud-storage/.sqlx/query-4264fcdaec0d80ff28c8ff6e2443f685b084283f4fb1cc683330b7c7875ca312.json b/rust/cloud-storage/.sqlx/query-4264fcdaec0d80ff28c8ff6e2443f685b084283f4fb1cc683330b7c7875ca312.json new file mode 100644 index 0000000000..7b86d66efe --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4264fcdaec0d80ff28c8ff6e2443f685b084283f4fb1cc683330b7c7875ca312.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE call_records SET summary = $2 WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "4264fcdaec0d80ff28c8ff6e2443f685b084283f4fb1cc683330b7c7875ca312" +} diff --git a/rust/cloud-storage/.sqlx/query-428083ae29c00ef5dfae2fadc0d3ebe3c3191c212f37631feda29343104f9548.json b/rust/cloud-storage/.sqlx/query-428083ae29c00ef5dfae2fadc0d3ebe3c3191c212f37631feda29343104f9548.json new file mode 100644 index 0000000000..dff060816a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-428083ae29c00ef5dfae2fadc0d3ebe3c3191c212f37631feda29343104f9548.json @@ -0,0 +1,18 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"User\"\n SET \"firstName\" = $1,\n \"lastName\" = $2,\n \"title\" = $3,\n \"industry\" = $4\n WHERE id = $5\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Varchar", + "Varchar", + "Varchar", + "Varchar", + "Text" + ] + }, + "nullable": [] + }, + "hash": "428083ae29c00ef5dfae2fadc0d3ebe3c3191c212f37631feda29343104f9548" +} diff --git a/rust/cloud-storage/.sqlx/query-429ca8e2c629499903d69292063060cafd143f63c7548ffdb8ae19461d0f0c76.json b/rust/cloud-storage/.sqlx/query-429ca8e2c629499903d69292063060cafd143f63c7548ffdb8ae19461d0f0c76.json new file mode 100644 index 0000000000..3f7b7596cb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-429ca8e2c629499903d69292063060cafd143f63c7548ffdb8ae19461d0f0c76.json @@ -0,0 +1,95 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO bots (\n id, kind, owner_user_id, team_id, name, handle, description, avatar_url, created_by\n )\n VALUES ($1, 'owned', $2, $3, $4, $5, $6, $7, $8)\n RETURNING\n id,\n kind,\n owner_user_id,\n team_id,\n name,\n handle,\n description,\n avatar_url,\n created_by,\n created_at,\n updated_at,\n deleted_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "kind", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "team_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "handle", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "description", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "avatar_url", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "created_by", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Uuid", + "Text", + "Text", + "Text", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true + ] + }, + "hash": "429ca8e2c629499903d69292063060cafd143f63c7548ffdb8ae19461d0f0c76" +} diff --git a/rust/cloud-storage/.sqlx/query-42a7d2fb1eb1c98ae10f8375a262c48cb828e3c0ed342d0c2b090c2a69c62a2f.json b/rust/cloud-storage/.sqlx/query-42a7d2fb1eb1c98ae10f8375a262c48cb828e3c0ed342d0c2b090c2a69c62a2f.json new file mode 100644 index 0000000000..9335e3b082 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-42a7d2fb1eb1c98ae10f8375a262c48cb828e3c0ed342d0c2b090c2a69c62a2f.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE call_records SET share_with_team = $2 WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "42a7d2fb1eb1c98ae10f8375a262c48cb828e3c0ed342d0c2b090c2a69c62a2f" +} diff --git a/rust/cloud-storage/.sqlx/query-42e46f8f1c2cbf80383f65dd19d4efa3ae9c2697363d56278789de68b2295366.json b/rust/cloud-storage/.sqlx/query-42e46f8f1c2cbf80383f65dd19d4efa3ae9c2697363d56278789de68b2295366.json new file mode 100644 index 0000000000..018330cc92 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-42e46f8f1c2cbf80383f65dd19d4efa3ae9c2697363d56278789de68b2295366.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Chat\" (\"userId\", name, \"projectId\")\n VALUES ($1, $2, $3)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "42e46f8f1c2cbf80383f65dd19d4efa3ae9c2697363d56278789de68b2295366" +} diff --git a/rust/cloud-storage/.sqlx/query-42f09cdfac72096bac4124c84318142bbc2bc0256ff84a6ba9ab2f98fd9fb0c1.json b/rust/cloud-storage/.sqlx/query-42f09cdfac72096bac4124c84318142bbc2bc0256ff84a6ba9ab2f98fd9fb0c1.json new file mode 100644 index 0000000000..a7dfaf200c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-42f09cdfac72096bac4124c84318142bbc2bc0256ff84a6ba9ab2f98fd9fb0c1.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM \"OrganizationEmailMatches\" WHERE \"organizationId\" = $1 AND email = $2", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Text" + ] + }, + "nullable": [] + }, + "hash": "42f09cdfac72096bac4124c84318142bbc2bc0256ff84a6ba9ab2f98fd9fb0c1" +} diff --git a/rust/cloud-storage/.sqlx/query-435f8b35060d08ba47b4676c968b0543e406adc48edfd2a72ed715164c4a093b.json b/rust/cloud-storage/.sqlx/query-435f8b35060d08ba47b4676c968b0543e406adc48edfd2a72ed715164c4a093b.json new file mode 100644 index 0000000000..bd8240acd1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-435f8b35060d08ba47b4676c968b0543e406adc48edfd2a72ed715164c4a093b.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT call_id AS \"id!\", user_id AS \"user_id!\", joined_at AS \"joined_at!\", left_at\n FROM call_participants\n WHERE call_id = ANY($1)\n UNION ALL\n SELECT call_record_id AS \"id!\", user_id AS \"user_id!\", joined_at AS \"joined_at!\", left_at\n FROM call_record_participants\n WHERE call_record_id = ANY($2)\n ORDER BY 3 ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "joined_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "left_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "UuidArray" + ] + }, + "nullable": [ + null, + null, + null, + null + ] + }, + "hash": "435f8b35060d08ba47b4676c968b0543e406adc48edfd2a72ed715164c4a093b" +} diff --git a/rust/cloud-storage/.sqlx/query-444840cacdf181727100b5ee338de844abb56d9cb3a88034db7b285fcff7e9b7.json b/rust/cloud-storage/.sqlx/query-444840cacdf181727100b5ee338de844abb56d9cb3a88034db7b285fcff7e9b7.json new file mode 100644 index 0000000000..0f87a4867d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-444840cacdf181727100b5ee338de844abb56d9cb3a88034db7b285fcff7e9b7.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id FROM call_records WHERE egress_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "444840cacdf181727100b5ee338de844abb56d9cb3a88034db7b285fcff7e9b7" +} diff --git a/rust/cloud-storage/.sqlx/query-4465cdde5f953cd550e7190572d8e5e4c70fce8558763d56a3f57e99474a9aeb.json b/rust/cloud-storage/.sqlx/query-4465cdde5f953cd550e7190572d8e5e4c70fce8558763d56a3f57e99474a9aeb.json new file mode 100644 index 0000000000..a891deb671 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4465cdde5f953cd550e7190572d8e5e4c70fce8558763d56a3f57e99474a9aeb.json @@ -0,0 +1,38 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_channels (id, name, owner_id, org_id, channel_type)\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Varchar", + "Text", + "Int8", + { + "Custom": { + "name": "comms_channel_type", + "kind": { + "Enum": [ + "public", + "private", + "direct_message", + "team" + ] + } + } + } + ] + }, + "nullable": [ + false + ] + }, + "hash": "4465cdde5f953cd550e7190572d8e5e4c70fce8558763d56a3f57e99474a9aeb" +} diff --git a/rust/cloud-storage/.sqlx/query-44682e65711eb45a1dbec725646b7b0e02ced66e66f2d985f3da2d3eb7ad8c60.json b/rust/cloud-storage/.sqlx/query-44682e65711eb45a1dbec725646b7b0e02ced66e66f2d985f3da2d3eb7ad8c60.json new file mode 100644 index 0000000000..2bb459c23a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-44682e65711eb45a1dbec725646b7b0e02ced66e66f2d985f3da2d3eb7ad8c60.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT ml.message_id, el.provider_label_id\n FROM email_message_labels ml\n JOIN email_labels el ON el.id = ml.label_id\n WHERE ml.message_id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_label_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "44682e65711eb45a1dbec725646b7b0e02ced66e66f2d985f3da2d3eb7ad8c60" +} diff --git a/rust/cloud-storage/.sqlx/query-44a05989da2597deae3eaded94e7270307a3e4f36625e76d489d4bc39b66e759.json b/rust/cloud-storage/.sqlx/query-44a05989da2597deae3eaded94e7270307a3e4f36625e76d489d4bc39b66e759.json new file mode 100644 index 0000000000..fad533832f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-44a05989da2597deae3eaded94e7270307a3e4f36625e76d489d4bc39b66e759.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n pp.\"sharePermissionId\" as share_permission_id\n FROM \"ProjectPermission\" pp\n WHERE pp.\"projectId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "44a05989da2597deae3eaded94e7270307a3e4f36625e76d489d4bc39b66e759" +} diff --git a/rust/cloud-storage/.sqlx/query-44aa0fedb485db7f86d0dd21c5ac83ffd5ac9b4ce85a5d08d0fc5095efa73505.json b/rust/cloud-storage/.sqlx/query-44aa0fedb485db7f86d0dd21c5ac83ffd5ac9b4ce85a5d08d0fc5095efa73505.json new file mode 100644 index 0000000000..3d662e3a32 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-44aa0fedb485db7f86d0dd21c5ac83ffd5ac9b4ce85a5d08d0fc5095efa73505.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT oem.email\n FROM \"OrganizationEmailMatches\" oem\n JOIN \"Organization\" o ON o.\"id\" = oem.\"organizationId\"\n WHERE oem.\"organizationId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false + ] + }, + "hash": "44aa0fedb485db7f86d0dd21c5ac83ffd5ac9b4ce85a5d08d0fc5095efa73505" +} diff --git a/rust/cloud-storage/.sqlx/query-44cc40d5175302af5445a34d4add1e7dc2d0cea3efa5b87c16cb2416b43fc098.json b/rust/cloud-storage/.sqlx/query-44cc40d5175302af5445a34d4add1e7dc2d0cea3efa5b87c16cb2416b43fc098.json new file mode 100644 index 0000000000..7eadb2f534 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-44cc40d5175302af5445a34d4add1e7dc2d0cea3efa5b87c16cb2416b43fc098.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n VALUES ($1, $2, $3, $4, $5)\n ON CONFLICT DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + { + "Custom": { + "name": "entity_access_source_type", + "kind": { + "Enum": [ + "channel", + "team", + "user" + ] + } + } + }, + { + "Custom": { + "name": "\"AccessLevel\"", + "kind": { + "Enum": [ + "view", + "comment", + "edit", + "owner" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "44cc40d5175302af5445a34d4add1e7dc2d0cea3efa5b87c16cb2416b43fc098" +} diff --git a/rust/cloud-storage/.sqlx/query-45063eedc20b7eb86019e69545c2e8b441f1e9e067086b05617437b6f43bc329.json b/rust/cloud-storage/.sqlx/query-45063eedc20b7eb86019e69545c2e8b441f1e9e067086b05617437b6f43bc329.json new file mode 100644 index 0000000000..6a8b3392e5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-45063eedc20b7eb86019e69545c2e8b441f1e9e067086b05617437b6f43bc329.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Chat\"\n SET \"deletedAt\" = NULL\n WHERE id = $1\n RETURNING \"userId\" as owner\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "owner", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "45063eedc20b7eb86019e69545c2e8b441f1e9e067086b05617437b6f43bc329" +} diff --git a/rust/cloud-storage/.sqlx/query-45064c055927af781bc06e3a602a9efbefbd111110b9f0fab5cf029e70208c1e.json b/rust/cloud-storage/.sqlx/query-45064c055927af781bc06e3a602a9efbefbd111110b9f0fab5cf029e70208c1e.json new file mode 100644 index 0000000000..8e34d4b90f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-45064c055927af781bc06e3a602a9efbefbd111110b9f0fab5cf029e70208c1e.json @@ -0,0 +1,82 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH user_channels AS (\n SELECT DISTINCT c.*\n FROM comms_channels c\n INNER JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n ),\n channel_participants_json AS (\n SELECT \n uc.id as channel_id,\n ARRAY_AGG(\n json_build_object(\n 'channel_id', cp.channel_id,\n 'user_id', cp.user_id,\n 'role', cp.role,\n 'joined_at', cp.joined_at,\n 'left_at', cp.left_at\n )\n ) as participants\n FROM user_channels uc\n JOIN comms_channel_participants cp ON cp.channel_id = uc.id\n WHERE cp.left_at IS NULL\n GROUP BY uc.id\n )\n SELECT \n uc.id as \"id!\",\n uc.name as \"name\",\n uc.channel_type as \"channel_type!: ChannelType\",\n uc.team_id,\n uc.org_id,\n uc.created_at as \"created_at!\",\n uc.updated_at as \"updated_at!\",\n uc.owner_id as \"owner_id!\",\n cpj.participants as \"participants_json?\"\n FROM user_channels uc\n LEFT JOIN channel_participants_json cpj ON cpj.channel_id = uc.id\n ORDER BY uc.created_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "channel_type!: ChannelType", + "type_info": { + "Custom": { + "name": "comms_channel_type", + "kind": { + "Enum": [ + "public", + "private", + "direct_message", + "team" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "team_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "org_id", + "type_info": "Int8" + }, + { + "ordinal": 5, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "owner_id!", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "participants_json?", + "type_info": "JsonArray" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + true, + false, + true, + true, + false, + false, + false, + null + ] + }, + "hash": "45064c055927af781bc06e3a602a9efbefbd111110b9f0fab5cf029e70208c1e" +} diff --git a/rust/cloud-storage/.sqlx/query-4511579c08d1a9b52afd1279a058c1a7fd6ded6c7e73a7a2dea50fd492d5e88b.json b/rust/cloud-storage/.sqlx/query-4511579c08d1a9b52afd1279a058c1a7fd6ded6c7e73a7a2dea50fd492d5e88b.json new file mode 100644 index 0000000000..b1716363e9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4511579c08d1a9b52afd1279a058c1a7fd6ded6c7e73a7a2dea50fd492d5e88b.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_scheduled_messages\n WHERE link_id = $1 AND message_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "4511579c08d1a9b52afd1279a058c1a7fd6ded6c7e73a7a2dea50fd492d5e88b" +} diff --git a/rust/cloud-storage/.sqlx/query-45267fb7a6016603a87fca1f2314d86540a99362db746fa2a04a2369bac18095.json b/rust/cloud-storage/.sqlx/query-45267fb7a6016603a87fca1f2314d86540a99362db746fa2a04a2369bac18095.json new file mode 100644 index 0000000000..945660d977 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-45267fb7a6016603a87fca1f2314d86540a99362db746fa2a04a2369bac18095.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT name FROM \"Project\" WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "45267fb7a6016603a87fca1f2314d86540a99362db746fa2a04a2369bac18095" +} diff --git a/rust/cloud-storage/.sqlx/query-454e1202630627f0f8c9f876f1917d6cfbed8fc192939cc0e5e43b86905a4ca2.json b/rust/cloud-storage/.sqlx/query-454e1202630627f0f8c9f876f1917d6cfbed8fc192939cc0e5e43b86905a4ca2.json new file mode 100644 index 0000000000..0e8a2423f4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-454e1202630627f0f8c9f876f1917d6cfbed8fc192939cc0e5e43b86905a4ca2.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"OrganizationInvitation\"\n WHERE email = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "454e1202630627f0f8c9f876f1917d6cfbed8fc192939cc0e5e43b86905a4ca2" +} diff --git a/rust/cloud-storage/.sqlx/query-45a55e0ea2f0cc2d7583ede119ffd4059933d25cca50775c74f1ef5a0224493c.json b/rust/cloud-storage/.sqlx/query-45a55e0ea2f0cc2d7583ede119ffd4059933d25cca50775c74f1ef5a0224493c.json new file mode 100644 index 0000000000..58bc367329 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-45a55e0ea2f0cc2d7583ede119ffd4059933d25cca50775c74f1ef5a0224493c.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.thread_id,\n c.id, c.link_id, c.email_address, COALESCE(m.from_name, c.name) as \"name\", c.sfs_photo_url\n FROM email_messages m\n JOIN email_contacts c ON m.from_contact_id = c.id\n WHERE m.thread_id = ANY($1) AND m.from_contact_id IS NOT NULL\n ORDER BY m.created_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "sfs_photo_url", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + false, + null, + true + ] + }, + "hash": "45a55e0ea2f0cc2d7583ede119ffd4059933d25cca50775c74f1ef5a0224493c" +} diff --git a/rust/cloud-storage/.sqlx/query-45ac2a692bf3676d053ca1905fe8586ff1dd139822d3cbde8e125add5575194a.json b/rust/cloud-storage/.sqlx/query-45ac2a692bf3676d053ca1905fe8586ff1dd139822d3cbde8e125add5575194a.json new file mode 100644 index 0000000000..fcef7e28e8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-45ac2a692bf3676d053ca1905fe8586ff1dd139822d3cbde8e125add5575194a.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT values as \"values: serde_json::Value\"\n FROM entity_properties\n WHERE entity_id = $1\n AND entity_type = $2\n AND property_definition_id = $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "values: serde_json::Value", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Text", + { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + }, + "Uuid" + ] + }, + "nullable": [ + true + ] + }, + "hash": "45ac2a692bf3676d053ca1905fe8586ff1dd139822d3cbde8e125add5575194a" +} diff --git a/rust/cloud-storage/.sqlx/query-45e8619173ce143a2908e7874cac1d14a38ad27be4af19f4558d1439e5e1108b.json b/rust/cloud-storage/.sqlx/query-45e8619173ce143a2908e7874cac1d14a38ad27be4af19f4558d1439e5e1108b.json new file mode 100644 index 0000000000..8cd4920d2d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-45e8619173ce143a2908e7874cac1d14a38ad27be4af19f4558d1439e5e1108b.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE crm_companies\n SET hidden = FALSE\n WHERE id = $1 AND team_id = $2\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "45e8619173ce143a2908e7874cac1d14a38ad27be4af19f4558d1439e5e1108b" +} diff --git a/rust/cloud-storage/.sqlx/query-460e4c3dcd4adba352eb7c00381bac9d3c4b8b107dd02fd35ec991e848919eed.json b/rust/cloud-storage/.sqlx/query-460e4c3dcd4adba352eb7c00381bac9d3c4b8b107dd02fd35ec991e848919eed.json new file mode 100644 index 0000000000..f875ee7641 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-460e4c3dcd4adba352eb7c00381bac9d3c4b8b107dd02fd35ec991e848919eed.json @@ -0,0 +1,83 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n link_id,\n fusionauth_user_id,\n threads_requested_limit,\n total_threads,\n threads_retrieved_count,\n status as \"status: db::backfill::BackfillJobStatus\",\n created_at,\n updated_at\n FROM email_backfill_jobs\n WHERE link_id = $1 AND status IN ('Init', 'InProgress')\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "threads_requested_limit", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "total_threads", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "threads_retrieved_count", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "status: db::backfill::BackfillJobStatus", + "type_info": { + "Custom": { + "name": "email_backfill_job_status", + "kind": { + "Enum": [ + "Init", + "InProgress", + "Complete", + "Cancelled", + "Failed" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + false, + true, + false, + false, + false, + false, + false + ] + }, + "hash": "460e4c3dcd4adba352eb7c00381bac9d3c4b8b107dd02fd35ec991e848919eed" +} diff --git a/rust/cloud-storage/.sqlx/query-46529d3ed1fd86a194a7e99458b4f95a0dc0ae92127693240ce9dc0acc3b7467.json b/rust/cloud-storage/.sqlx/query-46529d3ed1fd86a194a7e99458b4f95a0dc0ae92127693240ce9dc0acc3b7467.json new file mode 100644 index 0000000000..348c31b38b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-46529d3ed1fd86a194a7e99458b4f95a0dc0ae92127693240ce9dc0acc3b7467.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChannelSharePermission\" (\"share_permission_id\", \"channel_id\", \"access_level\")\n VALUES ($1, $2, $3)\n ON CONFLICT (\"share_permission_id\", \"channel_id\") DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + { + "Custom": { + "name": "\"AccessLevel\"", + "kind": { + "Enum": [ + "view", + "comment", + "edit", + "owner" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "46529d3ed1fd86a194a7e99458b4f95a0dc0ae92127693240ce9dc0acc3b7467" +} diff --git a/rust/cloud-storage/.sqlx/query-4656631949bab512d00e10664be31128b89c8047812362331ded6b6e0a12e1ac.json b/rust/cloud-storage/.sqlx/query-4656631949bab512d00e10664be31128b89c8047812362331ded6b6e0a12e1ac.json new file mode 100644 index 0000000000..f621865b2b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4656631949bab512d00e10664be31128b89c8047812362331ded6b6e0a12e1ac.json @@ -0,0 +1,69 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n email,\n team_id,\n team_role as \"team_role!: TeamRole\",\n invited_by,\n created_at as \"created_at!: chrono::DateTime\",\n last_sent_at as \"last_sent_at!: chrono::DateTime\"\n FROM team_invite\n WHERE email = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "team_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "team_role!: TeamRole", + "type_info": { + "Custom": { + "name": "team_role", + "kind": { + "Enum": [ + "member", + "admin", + "owner" + ] + } + } + } + }, + { + "ordinal": 4, + "name": "invited_by", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "created_at!: chrono::DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 6, + "name": "last_sent_at!: chrono::DateTime", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "4656631949bab512d00e10664be31128b89c8047812362331ded6b6e0a12e1ac" +} diff --git a/rust/cloud-storage/.sqlx/query-467fc7bd79aaa296588af3527f1d1fa944740f01ce65798b18269b099a65a283.json b/rust/cloud-storage/.sqlx/query-467fc7bd79aaa296588af3527f1d1fa944740f01ce65798b18269b099a65a283.json new file mode 100644 index 0000000000..f7c0d8d0b0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-467fc7bd79aaa296588af3527f1d1fa944740f01ce65798b18269b099a65a283.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"sharePermissionId\" as id FROM \"ProjectPermission\" WHERE \"projectId\" = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "467fc7bd79aaa296588af3527f1d1fa944740f01ce65798b18269b099a65a283" +} diff --git a/rust/cloud-storage/.sqlx/query-46ffaa1a906d49a47c765c9c03d89e50037adc4b72c364bdb4282ab0c8cf1237.json b/rust/cloud-storage/.sqlx/query-46ffaa1a906d49a47c765c9c03d89e50037adc4b72c364bdb4282ab0c8cf1237.json new file mode 100644 index 0000000000..c91a76ff52 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-46ffaa1a906d49a47c765c9c03d89e50037adc4b72c364bdb4282ab0c8cf1237.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM entity_access\n WHERE entity_id = $1 AND entity_type = $2\n AND source_id = ANY($3) AND source_type = 'channel'\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "46ffaa1a906d49a47c765c9c03d89e50037adc4b72c364bdb4282ab0c8cf1237" +} diff --git a/rust/cloud-storage/.sqlx/query-472e132fc9b3df044b4f267507ab146a3631e9fb26323cae0e49e9d25d7d0767.json b/rust/cloud-storage/.sqlx/query-472e132fc9b3df044b4f267507ab146a3631e9fb26323cae0e49e9d25d7d0767.json new file mode 100644 index 0000000000..be450e8629 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-472e132fc9b3df044b4f267507ab146a3631e9fb26323cae0e49e9d25d7d0767.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n COALESCE(u.email, NULLIF(split_part(request_user.user_id, '|', 2), ''), request_user.user_id) AS \"user_email!\",\n gl.github_username AS \"github_username?\",\n t.slug AS \"team_slug?\",\n tt.task_num AS \"team_task_id?\"\n FROM (SELECT $1::text AS user_id) request_user\n LEFT JOIN \"User\" u ON u.id = request_user.user_id\n LEFT JOIN LATERAL (\n SELECT github_username\n FROM github_links\n WHERE macro_id = request_user.user_id\n ORDER BY updated_at DESC\n LIMIT 1\n ) gl ON true\n LEFT JOIN LATERAL (\n SELECT team_id\n FROM team_user\n WHERE user_id = request_user.user_id\n ORDER BY team_id\n LIMIT 1\n ) tu ON true\n LEFT JOIN team t ON t.id = tu.team_id\n LEFT JOIN team_task tt ON tt.team_id = tu.team_id AND tt.document_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_email!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "github_username?", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "team_slug?", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "team_task_id?", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + null, + true, + true, + true + ] + }, + "hash": "472e132fc9b3df044b4f267507ab146a3631e9fb26323cae0e49e9d25d7d0767" +} diff --git a/rust/cloud-storage/.sqlx/query-473db34286d4aeefece0b6a97cea69cad83d20908c700d750a4047ce5bee30f4.json b/rust/cloud-storage/.sqlx/query-473db34286d4aeefece0b6a97cea69cad83d20908c700d750a4047ce5bee30f4.json new file mode 100644 index 0000000000..f182e4bc32 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-473db34286d4aeefece0b6a97cea69cad83d20908c700d750a4047ce5bee30f4.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_attachments_drafts ead\n USING email_messages m\n WHERE ead.draft_id = m.id\n AND ead.id = $1 AND ead.draft_id = $2 AND m.link_id = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "473db34286d4aeefece0b6a97cea69cad83d20908c700d750a4047ce5bee30f4" +} diff --git a/rust/cloud-storage/.sqlx/query-47527ceedb84aa81cf48fd3529718a5303e9f456e3db0ac35840627b086d3995.json b/rust/cloud-storage/.sqlx/query-47527ceedb84aa81cf48fd3529718a5303e9f456e3db0ac35840627b086d3995.json new file mode 100644 index 0000000000..76fa7f167e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-47527ceedb84aa81cf48fd3529718a5303e9f456e3db0ac35840627b086d3995.json @@ -0,0 +1,74 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n UserAccessibleDocuments AS (\n SELECT DISTINCT ON (entity_id) entity_id, access_level\n FROM entity_access\n WHERE source_id = ANY(SELECT source_id FROM user_source_ids)\n AND entity_type = 'document'\n ORDER BY entity_id,\n CASE access_level::text\n WHEN 'owner' THEN 4\n WHEN 'edit' THEN 3\n WHEN 'comment' THEN 2\n WHEN 'view' THEN 1\n ELSE 0\n END DESC\n )\n SELECT\n d.id as \"document_id!\",\n d.name as \"document_name!\",\n d.owner as \"owner!\",\n d.\"fileType\" as \"file_type\",\n d.\"projectId\" as \"project_id\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\",\n uad.access_level::text as \"access_level!\"\n FROM \"Document\" d\n INNER JOIN UserAccessibleDocuments uad ON uad.entity_id = d.id::uuid\n WHERE d.\"deletedAt\" IS NULL\n AND ($2::text[] IS NULL OR d.\"fileType\" = ANY($2))\n AND (\n CASE uad.access_level::text\n WHEN 'owner' THEN 4\n WHEN 'edit' THEN 3\n WHEN 'comment' THEN 2\n WHEN 'view' THEN 1\n ELSE 0\n END >=\n CASE $3\n WHEN 'owner' THEN 4\n WHEN 'edit' THEN 3\n WHEN 'comment' THEN 2\n WHEN 'view' THEN 1\n ELSE 0\n END\n )\n ORDER BY d.\"updatedAt\" DESC\n LIMIT $4 OFFSET $5\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "document_name!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "access_level!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray", + "Text", + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + null, + null, + null, + null + ] + }, + "hash": "47527ceedb84aa81cf48fd3529718a5303e9f456e3db0ac35840627b086d3995" +} diff --git a/rust/cloud-storage/.sqlx/query-47f0213791a57c90d28af2015b1de283865e6bbf5776a9f482a5d21568c14d3e.json b/rust/cloud-storage/.sqlx/query-47f0213791a57c90d28af2015b1de283865e6bbf5776a9f482a5d21568c14d3e.json new file mode 100644 index 0000000000..1d742c4cac --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-47f0213791a57c90d28af2015b1de283865e6bbf5776a9f482a5d21568c14d3e.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"User\"\n SET \"aiDataConsent\" = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bool", + "Text" + ] + }, + "nullable": [] + }, + "hash": "47f0213791a57c90d28af2015b1de283865e6bbf5776a9f482a5d21568c14d3e" +} diff --git a/rust/cloud-storage/.sqlx/query-47fb0faaa3568c45ff7abcc6b1b1229d7042950891759db010a27c5a18ed2909.json b/rust/cloud-storage/.sqlx/query-47fb0faaa3568c45ff7abcc6b1b1229d7042950891759db010a27c5a18ed2909.json new file mode 100644 index 0000000000..7013b71318 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-47fb0faaa3568c45ff7abcc6b1b1229d7042950891759db010a27c5a18ed2909.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT d.id\n FROM \"Document\" d\n WHERE d.\"deletedAt\" IS NOT NULL AND d.\"deletedAt\" <= $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Timestamp" + ] + }, + "nullable": [ + false + ] + }, + "hash": "47fb0faaa3568c45ff7abcc6b1b1229d7042950891759db010a27c5a18ed2909" +} diff --git a/rust/cloud-storage/.sqlx/query-4825133a0ea4f2d839f5976681269e6ad7a517fd29a3d2a7634cc655bf7f2bfb.json b/rust/cloud-storage/.sqlx/query-4825133a0ea4f2d839f5976681269e6ad7a517fd29a3d2a7634cc655bf7f2bfb.json new file mode 100644 index 0000000000..e9ccf34748 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4825133a0ea4f2d839f5976681269e6ad7a517fd29a3d2a7634cc655bf7f2bfb.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"entity_access\"\n WHERE entity_id = ANY($1) AND entity_type = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "Text" + ] + }, + "nullable": [] + }, + "hash": "4825133a0ea4f2d839f5976681269e6ad7a517fd29a3d2a7634cc655bf7f2bfb" +} diff --git a/rust/cloud-storage/.sqlx/query-48293aa40f783e58d4f49e2d0495255d70d2b790baa1bfb5397913d2a4b1dd8f.json b/rust/cloud-storage/.sqlx/query-48293aa40f783e58d4f49e2d0495255d70d2b790baa1bfb5397913d2a4b1dd8f.json new file mode 100644 index 0000000000..d5d5bbf1a9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-48293aa40f783e58d4f49e2d0495255d70d2b790baa1bfb5397913d2a4b1dd8f.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"OrganizationRetentionPolicy\" \n SET \"retention_days\" = $2\n WHERE \"organization_id\" = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "48293aa40f783e58d4f49e2d0495255d70d2b790baa1bfb5397913d2a4b1dd8f" +} diff --git a/rust/cloud-storage/.sqlx/query-483f8f8ef068fb6394d5af8d06068d4463413d22894b6c6b72965f90d8ef0436.json b/rust/cloud-storage/.sqlx/query-483f8f8ef068fb6394d5af8d06068d4463413d22894b6c6b72965f90d8ef0436.json new file mode 100644 index 0000000000..338983b3a7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-483f8f8ef068fb6394d5af8d06068d4463413d22894b6c6b72965f90d8ef0436.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM \"UserHistory\" WHERE \"userId\" = $1 AND \"itemId\" = $2 AND \"itemType\" = $3", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "483f8f8ef068fb6394d5af8d06068d4463413d22894b6c6b72965f90d8ef0436" +} diff --git a/rust/cloud-storage/.sqlx/query-4857541516ce135939f34754fde00c114cdf9ed7f203553020cf032732892e80.json b/rust/cloud-storage/.sqlx/query-4857541516ce135939f34754fde00c114cdf9ed7f203553020cf032732892e80.json new file mode 100644 index 0000000000..cb80ad13ca --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4857541516ce135939f34754fde00c114cdf9ed7f203553020cf032732892e80.json @@ -0,0 +1,27 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_links_history (id, link_id, fusionauth_user_id, email_address, provider, created_at)\n VALUES ($1, $2, $3, $4, $5, NOW())\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text", + "Varchar", + { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "4857541516ce135939f34754fde00c114cdf9ed7f203553020cf032732892e80" +} diff --git a/rust/cloud-storage/.sqlx/query-48697f17a7121986cc770d6698fbca7bf107ae20dbadbf64a7799ab162b2feb4.json b/rust/cloud-storage/.sqlx/query-48697f17a7121986cc770d6698fbca7bf107ae20dbadbf64a7799ab162b2feb4.json new file mode 100644 index 0000000000..3fdea7e232 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-48697f17a7121986cc770d6698fbca7bf107ae20dbadbf64a7799ab162b2feb4.json @@ -0,0 +1,95 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n un.user_id as owner_id,\n un.notification_id,\n n.event_item_id,\n n.event_item_type,\n un.sent,\n un.done,\n un.created_at::timestamptz as \"created_at!\",\n un.seen_at::timestamptz as viewed_at,\n un.created_at::timestamptz as \"updated_at!\",\n un.deleted_at::timestamptz,\n n.metadata as \"notification_metadata: serde_json::Value\",\n n.notification_event_type as notification_event_type,\n n.sender_id as sender_id\n FROM user_notification un\n JOIN notification n ON n.id = un.notification_id\n WHERE un.user_id = $1\n AND un.notification_id = $2\n AND un.deleted_at IS NULL\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "owner_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "notification_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "event_item_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "event_item_type", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "sent", + "type_info": "Bool" + }, + { + "ordinal": 5, + "name": "done", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "viewed_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "notification_metadata: serde_json::Value", + "type_info": "Jsonb" + }, + { + "ordinal": 11, + "name": "notification_event_type", + "type_info": "Varchar" + }, + { + "ordinal": 12, + "name": "sender_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + null, + null, + null, + null, + false, + false, + true + ] + }, + "hash": "48697f17a7121986cc770d6698fbca7bf107ae20dbadbf64a7799ab162b2feb4" +} diff --git a/rust/cloud-storage/.sqlx/query-48b369655e2258f40d38ab1352825be135e66c8215c051a56c7aa032b2abbd02.json b/rust/cloud-storage/.sqlx/query-48b369655e2258f40d38ab1352825be135e66c8215c051a56c7aa032b2abbd02.json new file mode 100644 index 0000000000..8c77e4ca15 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-48b369655e2258f40d38ab1352825be135e66c8215c051a56c7aa032b2abbd02.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ThreadAnchor\" (\"threadId\", \"anchorId\", \"anchorTableName\")\n VALUES ($1, $2, $3::\"anchor_table_name\")\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Uuid", + { + "Custom": { + "name": "anchor_table_name", + "kind": { + "Enum": [ + "PdfPlaceableCommentAnchor", + "PdfHighlightAnchor" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "48b369655e2258f40d38ab1352825be135e66c8215c051a56c7aa032b2abbd02" +} diff --git a/rust/cloud-storage/.sqlx/query-48df79c41ba4ec7fa2454ac962aee9ff97875c9e2335b46fe13b2bbdee721186.json b/rust/cloud-storage/.sqlx/query-48df79c41ba4ec7fa2454ac962aee9ff97875c9e2335b46fe13b2bbdee721186.json new file mode 100644 index 0000000000..b38dcf84f8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-48df79c41ba4ec7fa2454ac962aee9ff97875c9e2335b46fe13b2bbdee721186.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT id, link_id, email_address, email_domain, is_important, created_at\n FROM email_filters\n WHERE link_id = $1\n ORDER BY created_at DESC", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "email_domain", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "is_important", + "type_info": "Bool" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + false + ] + }, + "hash": "48df79c41ba4ec7fa2454ac962aee9ff97875c9e2335b46fe13b2bbdee721186" +} diff --git a/rust/cloud-storage/.sqlx/query-49044852c3fc5c0183d7253e27ec923e43d1d9abcfa5ad3fd714ce35c3c0e3f0.json b/rust/cloud-storage/.sqlx/query-49044852c3fc5c0183d7253e27ec923e43d1d9abcfa5ad3fd714ce35c3c0e3f0.json new file mode 100644 index 0000000000..223773f5ff --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-49044852c3fc5c0183d7253e27ec923e43d1d9abcfa5ad3fd714ce35c3c0e3f0.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT u.user_id\n FROM user_notification_item_unsubscribe u\n WHERE u.item_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "49044852c3fc5c0183d7253e27ec923e43d1d9abcfa5ad3fd714ce35c3c0e3f0" +} diff --git a/rust/cloud-storage/.sqlx/query-4942eda5f2d8832fc43c02a17aae1ec8ed06a16fc14ae6d4046eb75bc427fb69.json b/rust/cloud-storage/.sqlx/query-4942eda5f2d8832fc43c02a17aae1ec8ed06a16fc14ae6d4046eb75bc427fb69.json new file mode 100644 index 0000000000..b4e8c85aaf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4942eda5f2d8832fc43c02a17aae1ec8ed06a16fc14ae6d4046eb75bc427fb69.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, macro_id, fusionauth_user_id as \"fusionauth_user_id: Uuid\", github_username, github_user_id, created_at, updated_at\n FROM github_links\n WHERE macro_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "github_username", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "github_user_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "4942eda5f2d8832fc43c02a17aae1ec8ed06a16fc14ae6d4046eb75bc427fb69" +} diff --git a/rust/cloud-storage/.sqlx/query-4948508d8a7862e5986502d9373c0b1a97e277c5c50d9f14dd86c121164b486b.json b/rust/cloud-storage/.sqlx/query-4948508d8a7862e5986502d9373c0b1a97e277c5c50d9f14dd86c121164b486b.json new file mode 100644 index 0000000000..afedbb4e78 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4948508d8a7862e5986502d9373c0b1a97e277c5c50d9f14dd86c121164b486b.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO crm_contact_sources (contact_id, link_id)\n VALUES ($1, $2)\n ON CONFLICT (contact_id, link_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "4948508d8a7862e5986502d9373c0b1a97e277c5c50d9f14dd86c121164b486b" +} diff --git a/rust/cloud-storage/.sqlx/query-4962707d2bc90c036ab1540db476ad45483ad784af4908660342b1c57f045095.json b/rust/cloud-storage/.sqlx/query-4962707d2bc90c036ab1540db476ad45483ad784af4908660342b1c57f045095.json new file mode 100644 index 0000000000..ac1dfe7b9e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4962707d2bc90c036ab1540db476ad45483ad784af4908660342b1c57f045095.json @@ -0,0 +1,64 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, message_id, channel_id, entity_type, entity_id, width, height, created_at\n FROM comms_attachments\n WHERE message_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "entity_type", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "entity_id", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "width", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "height", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + true, + false + ] + }, + "hash": "4962707d2bc90c036ab1540db476ad45483ad784af4908660342b1c57f045095" +} diff --git a/rust/cloud-storage/.sqlx/query-49b6375ff01eeccbeecacee87258d2b4c354daa345b9c838adc1fadbc6a1cbb5.json b/rust/cloud-storage/.sqlx/query-49b6375ff01eeccbeecacee87258d2b4c354daa345b9c838adc1fadbc6a1cbb5.json new file mode 100644 index 0000000000..32e2bdf85e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-49b6375ff01eeccbeecacee87258d2b4c354daa345b9c838adc1fadbc6a1cbb5.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT location\n FROM \"UserDocumentViewLocation\"\n WHERE user_id = $1 AND document_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "location", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "49b6375ff01eeccbeecacee87258d2b4c354daa345b9c838adc1fadbc6a1cbb5" +} diff --git a/rust/cloud-storage/.sqlx/query-49cbada51408e2501723f7a1de4e170efcab0fcd922e2c5a79772256c1e51baa.json b/rust/cloud-storage/.sqlx/query-49cbada51408e2501723f7a1de4e170efcab0fcd922e2c5a79772256c1e51baa.json new file mode 100644 index 0000000000..08ee66140d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-49cbada51408e2501723f7a1de4e170efcab0fcd922e2c5a79772256c1e51baa.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_messages\n SET\n is_draft = $1,\n updated_at = NOW()\n WHERE\n id = $2\n AND link_id = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bool", + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "49cbada51408e2501723f7a1de4e170efcab0fcd922e2c5a79772256c1e51baa" +} diff --git a/rust/cloud-storage/.sqlx/query-4a02aab26f16872fc4f19617011e4dc054b233dea57f9c78a4f2ba5b19284f62.json b/rust/cloud-storage/.sqlx/query-4a02aab26f16872fc4f19617011e4dc054b233dea57f9c78a4f2ba5b19284f62.json new file mode 100644 index 0000000000..9b18331876 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4a02aab26f16872fc4f19617011e4dc054b233dea57f9c78a4f2ba5b19284f62.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n oi.email\n FROM \"OrganizationInvitation\" oi\n WHERE oi.organization_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false + ] + }, + "hash": "4a02aab26f16872fc4f19617011e4dc054b233dea57f9c78a4f2ba5b19284f62" +} diff --git a/rust/cloud-storage/.sqlx/query-4a158c278c77c87d5394e9cf1166ceff6eead17cf856cf45a6a49896626b6bdf.json b/rust/cloud-storage/.sqlx/query-4a158c278c77c87d5394e9cf1166ceff6eead17cf856cf45a6a49896626b6bdf.json new file mode 100644 index 0000000000..42a00e0acb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4a158c278c77c87d5394e9cf1166ceff6eead17cf856cf45a6a49896626b6bdf.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE scheduled_action\n SET next_run_at = $1, updated_at = now()\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Timestamptz", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "4a158c278c77c87d5394e9cf1166ceff6eead17cf856cf45a6a49896626b6bdf" +} diff --git a/rust/cloud-storage/.sqlx/query-4a8b04d2fa922cd2f007241f83d6ad7e4dbcb5e7f6b0560316ca474878971e63.json b/rust/cloud-storage/.sqlx/query-4a8b04d2fa922cd2f007241f83d6ad7e4dbcb5e7f6b0560316ca474878971e63.json new file mode 100644 index 0000000000..c905db25bd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4a8b04d2fa922cd2f007241f83d6ad7e4dbcb5e7f6b0560316ca474878971e63.json @@ -0,0 +1,84 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, macro_id, fusionauth_user_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at\n FROM email_links\n WHERE fusionauth_user_id = $1 AND email_address = $2 AND provider = $3\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "provider: _", + "type_info": { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_sync_active", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "4a8b04d2fa922cd2f007241f83d6ad7e4dbcb5e7f6b0560316ca474878971e63" +} diff --git a/rust/cloud-storage/.sqlx/query-4aeb58db6713bcb7ba53c394a0cde88693c45f2184b1d9553a9baa36cbef6380.json b/rust/cloud-storage/.sqlx/query-4aeb58db6713bcb7ba53c394a0cde88693c45f2184b1d9553a9baa36cbef6380.json new file mode 100644 index 0000000000..259b042985 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4aeb58db6713bcb7ba53c394a0cde88693c45f2184b1d9553a9baa36cbef6380.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT link_id, contacts_sync_token, other_contacts_sync_token\n FROM email_sync_tokens\n WHERE link_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "contacts_sync_token", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "other_contacts_sync_token", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + true + ] + }, + "hash": "4aeb58db6713bcb7ba53c394a0cde88693c45f2184b1d9553a9baa36cbef6380" +} diff --git a/rust/cloud-storage/.sqlx/query-4aff42ef43f7b7ef454cc331d2e96f3fc28bd7c823b9eb181eb0c9fba7635c37.json b/rust/cloud-storage/.sqlx/query-4aff42ef43f7b7ef454cc331d2e96f3fc28bd7c823b9eb181eb0c9fba7635c37.json new file mode 100644 index 0000000000..223860f0ff --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4aff42ef43f7b7ef454cc331d2e96f3fc28bd7c823b9eb181eb0c9fba7635c37.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT message_id, emoji, user_id\n FROM comms_reactions\n WHERE message_id = ANY($1)\n ORDER BY created_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "emoji", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "4aff42ef43f7b7ef454cc331d2e96f3fc28bd7c823b9eb181eb0c9fba7635c37" +} diff --git a/rust/cloud-storage/.sqlx/query-4b483617cc20e22761392cb54e682762a83c3dbeec3eacfeaadae1ca8aff376c.json b/rust/cloud-storage/.sqlx/query-4b483617cc20e22761392cb54e682762a83c3dbeec3eacfeaadae1ca8aff376c.json new file mode 100644 index 0000000000..70a5865537 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4b483617cc20e22761392cb54e682762a83c3dbeec3eacfeaadae1ca8aff376c.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, username, stripe_customer_id\n FROM macro_user\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "username", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "stripe_customer_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "4b483617cc20e22761392cb54e682762a83c3dbeec3eacfeaadae1ca8aff376c" +} diff --git a/rust/cloud-storage/.sqlx/query-4b75a017d1bfeb600d0b75c58220b27c51a57253d0d82c55793eb5b0852d476f.json b/rust/cloud-storage/.sqlx/query-4b75a017d1bfeb600d0b75c58220b27c51a57253d0d82c55793eb5b0852d476f.json new file mode 100644 index 0000000000..a8c8857eae --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4b75a017d1bfeb600d0b75c58220b27c51a57253d0d82c55793eb5b0852d476f.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_contacts\n SET name = data.name, updated_at = now()\n FROM (SELECT unnest($1::uuid[]) as id, unnest($2::text[]) as name) as data\n WHERE email_contacts.id = data.id\n AND email_contacts.name IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "4b75a017d1bfeb600d0b75c58220b27c51a57253d0d82c55793eb5b0852d476f" +} diff --git a/rust/cloud-storage/.sqlx/query-4bce30abb40ab058dd6e4681f28e4e0761b29a596122af48beb1a062bd157844.json b/rust/cloud-storage/.sqlx/query-4bce30abb40ab058dd6e4681f28e4e0761b29a596122af48beb1a062bd157844.json new file mode 100644 index 0000000000..4a8318f952 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4bce30abb40ab058dd6e4681f28e4e0761b29a596122af48beb1a062bd157844.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n a.user_id as \"user_id!: String\",\n a.updated_at\n FROM comms_activity a\n WHERE channel_id = $1 AND user_id = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id!: String", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "4bce30abb40ab058dd6e4681f28e4e0761b29a596122af48beb1a062bd157844" +} diff --git a/rust/cloud-storage/.sqlx/query-4be607458d6cc823fa5a692842b502b405bd0e971be8425d4573846beadb6bf3.json b/rust/cloud-storage/.sqlx/query-4be607458d6cc823fa5a692842b502b405bd0e971be8425d4573846beadb6bf3.json new file mode 100644 index 0000000000..b502f33690 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4be607458d6cc823fa5a692842b502b405bd0e971be8425d4573846beadb6bf3.json @@ -0,0 +1,61 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Project\" (\"name\", \"userId\", \"parentId\", \"createdAt\", \"updatedAt\", \"uploadPending\", \"uploadRequestId\")\n VALUES ($1, $2, $3, NOW(), NOW(), TRUE, $4)\n RETURNING id, name, \"userId\"::text as user_id, \"createdAt\"::timestamptz as created_at, \"deletedAt\"::timestamptz as deleted_at,\n \"updatedAt\"::timestamptz as updated_at, \"parentId\" as parent_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "parent_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + null, + null, + null, + true + ] + }, + "hash": "4be607458d6cc823fa5a692842b502b405bd0e971be8425d4573846beadb6bf3" +} diff --git a/rust/cloud-storage/.sqlx/query-4beff28bd0fc4ab7fbe74078b14f100a55cf2bb037ec171c3bcc8650edd73548.json b/rust/cloud-storage/.sqlx/query-4beff28bd0fc4ab7fbe74078b14f100a55cf2bb037ec171c3bcc8650edd73548.json new file mode 100644 index 0000000000..966f64c84d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4beff28bd0fc4ab7fbe74078b14f100a55cf2bb037ec171c3bcc8650edd73548.json @@ -0,0 +1,25 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"account_merge_request\" (id, macro_user_id, to_merge_macro_user_id, code, created_at)\n VALUES ($1, $2, $3, $4, NOW())\n RETURNING \"code\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "code", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Uuid", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "4beff28bd0fc4ab7fbe74078b14f100a55cf2bb037ec171c3bcc8650edd73548" +} diff --git a/rust/cloud-storage/.sqlx/query-4c11c2c42479bad0cd549ab31c1dcb90b605b55480a604c4e047c450b5ab433f.json b/rust/cloud-storage/.sqlx/query-4c11c2c42479bad0cd549ab31c1dcb90b605b55480a604c4e047c450b5ab433f.json new file mode 100644 index 0000000000..c5070fa577 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4c11c2c42479bad0cd549ab31c1dcb90b605b55480a604c4e047c450b5ab433f.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Document\" d\n LEFT JOIN \"DocumentText\" dt ON d.id = dt.\"documentId\"\n WHERE d.\"deletedAt\" IS NULL\n AND dt.\"documentId\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "4c11c2c42479bad0cd549ab31c1dcb90b605b55480a604c4e047c450b5ab433f" +} diff --git a/rust/cloud-storage/.sqlx/query-4c8f1c99fe7ca583e05b4ef8aba08d4fdf58135dc3e99ed73381a29f94b8a270.json b/rust/cloud-storage/.sqlx/query-4c8f1c99fe7ca583e05b4ef8aba08d4fdf58135dc3e99ed73381a29f94b8a270.json new file mode 100644 index 0000000000..ca98651009 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4c8f1c99fe7ca583e05b4ef8aba08d4fdf58135dc3e99ed73381a29f94b8a270.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT team_id\n FROM team_user\n WHERE user_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "team_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "4c8f1c99fe7ca583e05b4ef8aba08d4fdf58135dc3e99ed73381a29f94b8a270" +} diff --git a/rust/cloud-storage/.sqlx/query-4c9cd8085118a9ee2076c12a09f4e41c9e9d93550acd5c691de63e313a5c9b54.json b/rust/cloud-storage/.sqlx/query-4c9cd8085118a9ee2076c12a09f4e41c9e9d93550acd5c691de63e313a5c9b54.json new file mode 100644 index 0000000000..3b9dad77be --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4c9cd8085118a9ee2076c12a09f4e41c9e9d93550acd5c691de63e313a5c9b54.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n LOWER(c.email_address) AS \"email!\",\n c.name AS \"name\",\n MIN(m.internal_date_ts) AS \"first_at!\",\n MAX(m.internal_date_ts) AS \"last_at!\"\n FROM email_messages m\n JOIN email_message_recipients r ON r.message_id = m.id\n JOIN email_contacts c ON c.id = r.contact_id\n WHERE m.link_id = $1\n AND m.is_sent = true\n AND m.internal_date_ts IS NOT NULL\n GROUP BY LOWER(c.email_address), c.name\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "first_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "last_at!", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null, + true, + null, + null + ] + }, + "hash": "4c9cd8085118a9ee2076c12a09f4e41c9e9d93550acd5c691de63e313a5c9b54" +} diff --git a/rust/cloud-storage/.sqlx/query-4ca8409d9a2c8bf1634c3b1543e02daa92a5a01f2ad46d8124e0568ce8b17073.json b/rust/cloud-storage/.sqlx/query-4ca8409d9a2c8bf1634c3b1543e02daa92a5a01f2ad46d8124e0568ce8b17073.json new file mode 100644 index 0000000000..e71deba787 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4ca8409d9a2c8bf1634c3b1543e02daa92a5a01f2ad46d8124e0568ce8b17073.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Document\" d\n WHERE d.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "4ca8409d9a2c8bf1634c3b1543e02daa92a5a01f2ad46d8124e0568ce8b17073" +} diff --git a/rust/cloud-storage/.sqlx/query-4cc88f2a38cb0722282ef262adefd9fcb0d4778c5dc308720710e8f5e9995911.json b/rust/cloud-storage/.sqlx/query-4cc88f2a38cb0722282ef262adefd9fcb0d4778c5dc308720710e8f5e9995911.json new file mode 100644 index 0000000000..e243f96402 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4cc88f2a38cb0722282ef262adefd9fcb0d4778c5dc308720710e8f5e9995911.json @@ -0,0 +1,57 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n mr.message_id,\n c.email_address,\n COALESCE(mr.name, c.name) as \"name\",\n c.sfs_photo_url,\n mr.recipient_type as \"recipient_type!: DbRecipientType\"\n FROM email_messages m\n JOIN email_message_recipients mr ON m.id = mr.message_id\n JOIN email_contacts c ON mr.contact_id = c.id\n WHERE m.id = ANY($1)\n ORDER BY mr.message_id, mr.recipient_type\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "sfs_photo_url", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "recipient_type!: DbRecipientType", + "type_info": { + "Custom": { + "name": "email_recipient_type", + "kind": { + "Enum": [ + "TO", + "CC", + "BCC" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + null, + true, + false + ] + }, + "hash": "4cc88f2a38cb0722282ef262adefd9fcb0d4778c5dc308720710e8f5e9995911" +} diff --git a/rust/cloud-storage/.sqlx/query-4d0f38e351a6a9b4a559ae4df808653289e7abb1719b58fd0a4d7e8f6cedb423.json b/rust/cloud-storage/.sqlx/query-4d0f38e351a6a9b4a559ae4df808653289e7abb1719b58fd0a4d7e8f6cedb423.json new file mode 100644 index 0000000000..c04f432a08 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4d0f38e351a6a9b4a559ae4df808653289e7abb1719b58fd0a4d7e8f6cedb423.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"ChatMessage\"\n WHERE id = $1\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "4d0f38e351a6a9b4a559ae4df808653289e7abb1719b58fd0a4d7e8f6cedb423" +} diff --git a/rust/cloud-storage/.sqlx/query-4d4c2b67879a26c0ad31c817024f3e6bec03dc90a97d3082614d72ad35e6f5d7.json b/rust/cloud-storage/.sqlx/query-4d4c2b67879a26c0ad31c817024f3e6bec03dc90a97d3082614d72ad35e6f5d7.json new file mode 100644 index 0000000000..82c45ef9d9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4d4c2b67879a26c0ad31c817024f3e6bec03dc90a97d3082614d72ad35e6f5d7.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO call_records (id, channel_id, room_name, created_by, started_at, ended_at, duration_ms, egress_id, recording_key, preview_url, recording_started_at, share_permission_id, share_with_team)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text", + "Text", + "Timestamptz", + "Timestamptz", + "Int8", + "Text", + "Text", + "Text", + "Timestamptz", + "Text", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "4d4c2b67879a26c0ad31c817024f3e6bec03dc90a97d3082614d72ad35e6f5d7" +} diff --git a/rust/cloud-storage/.sqlx/query-4d82dec72e255478981441dc566b2fc4fc9f5d61726741284b1301af69517705.json b/rust/cloud-storage/.sqlx/query-4d82dec72e255478981441dc566b2fc4fc9f5d61726741284b1301af69517705.json new file mode 100644 index 0000000000..ba05826e24 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4d82dec72e255478981441dc566b2fc4fc9f5d61726741284b1301af69517705.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_backfill_jobs\n SET total_threads = $1, updated_at = now()\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "4d82dec72e255478981441dc566b2fc4fc9f5d61726741284b1301af69517705" +} diff --git a/rust/cloud-storage/.sqlx/query-4dcee20753a8996e6dfab48fc0dcb6ab0ea074976d13639ccc6d6932f79fae13.json b/rust/cloud-storage/.sqlx/query-4dcee20753a8996e6dfab48fc0dcb6ab0ea074976d13639ccc6d6932f79fae13.json new file mode 100644 index 0000000000..c1dc3557e2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4dcee20753a8996e6dfab48fc0dcb6ab0ea074976d13639ccc6d6932f79fae13.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT c.owner\n FROM crm_comment c\n JOIN crm_thread t ON t.id = c.thread_id\n WHERE c.id = $1\n AND c.deleted_at IS NULL\n AND (\n EXISTS (\n SELECT 1 FROM crm_companies co\n WHERE co.id = t.company_id\n AND co.team_id = $2\n AND ($3 OR co.hidden = FALSE)\n )\n OR EXISTS (\n SELECT 1 FROM crm_contacts ct\n JOIN crm_companies co2 ON co2.id = ct.company_id\n WHERE ct.id = t.contact_id\n AND co2.team_id = $2\n AND ($3 OR (ct.hidden = FALSE AND co2.hidden = FALSE))\n )\n )\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "owner", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Bool" + ] + }, + "nullable": [ + false + ] + }, + "hash": "4dcee20753a8996e6dfab48fc0dcb6ab0ea074976d13639ccc6d6932f79fae13" +} diff --git a/rust/cloud-storage/.sqlx/query-4dd84a2e543e14d4ed1655a0895eab7815948fcad38c5ce05925ebc4a5ebea69.json b/rust/cloud-storage/.sqlx/query-4dd84a2e543e14d4ed1655a0895eab7815948fcad38c5ce05925ebc4a5ebea69.json new file mode 100644 index 0000000000..dfc668e9a2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4dd84a2e543e14d4ed1655a0895eab7815948fcad38c5ce05925ebc4a5ebea69.json @@ -0,0 +1,47 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT link_id, message_id, send_time, sent, processing\n FROM email_scheduled_messages\n WHERE link_id = $1 AND message_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "send_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "sent", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "processing", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false + ] + }, + "hash": "4dd84a2e543e14d4ed1655a0895eab7815948fcad38c5ce05925ebc4a5ebea69" +} diff --git a/rust/cloud-storage/.sqlx/query-4e096eb7d3c507e3647685073fba7b3f36ef0e70c887db31f5cc5a8eb8ee1844.json b/rust/cloud-storage/.sqlx/query-4e096eb7d3c507e3647685073fba7b3f36ef0e70c887db31f5cc5a8eb8ee1844.json new file mode 100644 index 0000000000..55fcda1121 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4e096eb7d3c507e3647685073fba7b3f36ef0e70c887db31f5cc5a8eb8ee1844.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM user_notification\n WHERE user_id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "4e096eb7d3c507e3647685073fba7b3f36ef0e70c887db31f5cc5a8eb8ee1844" +} diff --git a/rust/cloud-storage/.sqlx/query-4e188b522b313eaf51caac616fe177abfe97c6ce6291ba8f83148ba02eaead73.json b/rust/cloud-storage/.sqlx/query-4e188b522b313eaf51caac616fe177abfe97c6ce6291ba8f83148ba02eaead73.json new file mode 100644 index 0000000000..6908ba7727 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4e188b522b313eaf51caac616fe177abfe97c6ce6291ba8f83148ba02eaead73.json @@ -0,0 +1,45 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as entity_id,\n d.name,\n regexp_replace(\n d.name,\n $6,\n '\\1',\n 'gi'\n ) as name_highlighted,\n d.\"updatedAt\" as updated_at\n FROM \"Document\" d\n WHERE d.id = ANY($1)\n AND d.\"deletedAt\" IS NULL\n AND d.name ILIKE $2\n AND (\n $4::timestamptz IS NULL\n OR (d.\"updatedAt\", d.id) < ($4, $5)\n )\n ORDER BY d.\"updatedAt\" DESC, d.id DESC\n LIMIT $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name_highlighted", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "TextArray", + "Text", + "Int8", + "Timestamptz", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + null, + false + ] + }, + "hash": "4e188b522b313eaf51caac616fe177abfe97c6ce6291ba8f83148ba02eaead73" +} diff --git a/rust/cloud-storage/.sqlx/query-4e6737a5a777280784037e88ccdda4e6e89dae702e5b50269db6e17265d14643.json b/rust/cloud-storage/.sqlx/query-4e6737a5a777280784037e88ccdda4e6e89dae702e5b50269db6e17265d14643.json new file mode 100644 index 0000000000..df6dc3c263 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4e6737a5a777280784037e88ccdda4e6e89dae702e5b50269db6e17265d14643.json @@ -0,0 +1,66 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n m.channel_id AS \"channel_id: uuid::Uuid\",\n c.name AS \"channel_name?\", -- Option\n m.id AS \"message_id: uuid::Uuid\",\n m.thread_id AS \"thread_id?: uuid::Uuid\",\n m.sender_id AS \"sender_id!\", -- String\n m.content AS \"message_content!\", -- String\n m.created_at AS \"message_created_at!: chrono::DateTime\",\n em.created_at AS \"attachment_created_at!: chrono::DateTime\"\n FROM comms_entity_mentions em\n JOIN comms_messages m ON (em.source_entity_id = m.id::text AND em.source_entity_type = 'message')\n JOIN comms_channels c ON m.channel_id = c.id\n JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE em.entity_type = $1\n AND em.entity_id = $2\n AND cp.user_id = $3\n AND cp.left_at IS NULL\n AND m.deleted_at IS NULL\n ORDER BY em.created_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_name?", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "message_id: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "thread_id?: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "sender_id!", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "message_content!", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "message_created_at!: chrono::DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "attachment_created_at!: chrono::DateTime", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text" + ] + }, + "nullable": [ + false, + true, + false, + true, + false, + false, + false, + false + ] + }, + "hash": "4e6737a5a777280784037e88ccdda4e6e89dae702e5b50269db6e17265d14643" +} diff --git a/rust/cloud-storage/.sqlx/query-4e9e26869da9b5473f0876a70c68dd69f6539902e580bdeaeaabdbf4d72793ef.json b/rust/cloud-storage/.sqlx/query-4e9e26869da9b5473f0876a70c68dd69f6539902e580bdeaeaabdbf4d72793ef.json new file mode 100644 index 0000000000..ad1c3e2279 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4e9e26869da9b5473f0876a70c68dd69f6539902e580bdeaeaabdbf4d72793ef.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Chat\" SET \"projectId\" = NULL WHERE \"id\" = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "4e9e26869da9b5473f0876a70c68dd69f6539902e580bdeaeaabdbf4d72793ef" +} diff --git a/rust/cloud-storage/.sqlx/query-4eb050dbd9d68aa914696bdf5c03315c56e84c969498cb55c34bd93d937dd924.json b/rust/cloud-storage/.sqlx/query-4eb050dbd9d68aa914696bdf5c03315c56e84c969498cb55c34bd93d937dd924.json new file mode 100644 index 0000000000..8629eccbfd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4eb050dbd9d68aa914696bdf5c03315c56e84c969498cb55c34bd93d937dd924.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"macro_user\" WHERE \"id\" = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "4eb050dbd9d68aa914696bdf5c03315c56e84c969498cb55c34bd93d937dd924" +} diff --git a/rust/cloud-storage/.sqlx/query-4eef29ad204776f70531f685f709f4e18f2b4f992d73ad2b608b77869a7856a9.json b/rust/cloud-storage/.sqlx/query-4eef29ad204776f70531f685f709f4e18f2b4f992d73ad2b608b77869a7856a9.json new file mode 100644 index 0000000000..0d82c0646c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4eef29ad204776f70531f685f709f4e18f2b4f992d73ad2b608b77869a7856a9.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n property_definition_id,\n display_order,\n string_value,\n number_value\n FROM property_options\n WHERE property_definition_id = ANY($1)\n ORDER BY display_order\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "property_definition_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "display_order", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "string_value", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "number_value", + "type_info": "Float8" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + true, + true + ] + }, + "hash": "4eef29ad204776f70531f685f709f4e18f2b4f992d73ad2b608b77869a7856a9" +} diff --git a/rust/cloud-storage/.sqlx/query-4fba8b3d9705b745d4e20a4da319ad7cdfe99f883f0e27a402545ce0b3557ed1.json b/rust/cloud-storage/.sqlx/query-4fba8b3d9705b745d4e20a4da319ad7cdfe99f883f0e27a402545ce0b3557ed1.json new file mode 100644 index 0000000000..098f13951c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4fba8b3d9705b745d4e20a4da319ad7cdfe99f883f0e27a402545ce0b3557ed1.json @@ -0,0 +1,173 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.replying_to_id,\n m.provider_history_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n NULL::TEXT as body_text,\n NULL::TEXT as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n JOIN email_links l ON m.link_id = l.id\n WHERE m.id = $1 AND l.fusionauth_user_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 21, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 22, + "name": "body_macro", + "type_info": "Text" + }, + { + "ordinal": 23, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 24, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 25, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + null, + null, + null, + true, + false, + false + ] + }, + "hash": "4fba8b3d9705b745d4e20a4da319ad7cdfe99f883f0e27a402545ce0b3557ed1" +} diff --git a/rust/cloud-storage/.sqlx/query-4fd61bd738465d867065c6cf22fd4c322073f31bf3123cf8504bac3ac225191b.json b/rust/cloud-storage/.sqlx/query-4fd61bd738465d867065c6cf22fd4c322073f31bf3123cf8504bac3ac225191b.json new file mode 100644 index 0000000000..ee973b2f6e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4fd61bd738465d867065c6cf22fd4c322073f31bf3123cf8504bac3ac225191b.json @@ -0,0 +1,173 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.replying_to_id, \n m.provider_history_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n NULL::TEXT as body_text,\n NULL::TEXT as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n WHERE m.provider_id = $1 AND m.link_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 21, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 22, + "name": "body_macro", + "type_info": "Text" + }, + { + "ordinal": 23, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 24, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 25, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + null, + null, + null, + true, + false, + false + ] + }, + "hash": "4fd61bd738465d867065c6cf22fd4c322073f31bf3123cf8504bac3ac225191b" +} diff --git a/rust/cloud-storage/.sqlx/query-4febc8d1902ceb02cc22d1bf9d9f1ebd8a471c3b0e6e4016de97a8fbfd1288b7.json b/rust/cloud-storage/.sqlx/query-4febc8d1902ceb02cc22d1bf9d9f1ebd8a471c3b0e6e4016de97a8fbfd1288b7.json new file mode 100644 index 0000000000..ab86a1c245 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-4febc8d1902ceb02cc22d1bf9d9f1ebd8a471c3b0e6e4016de97a8fbfd1288b7.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentView\" (\"document_id\", \"user_id\", \"created_at\")\n VALUES ($1, $2, NOW())\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "4febc8d1902ceb02cc22d1bf9d9f1ebd8a471c3b0e6e4016de97a8fbfd1288b7" +} diff --git a/rust/cloud-storage/.sqlx/query-500452d6337cfbc2d9a919268021835385045e45c20aaba40ed940cf3f25a07a.json b/rust/cloud-storage/.sqlx/query-500452d6337cfbc2d9a919268021835385045e45c20aaba40ed940cf3f25a07a.json new file mode 100644 index 0000000000..494c00db71 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-500452d6337cfbc2d9a919268021835385045e45c20aaba40ed940cf3f25a07a.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id, \n team_role as \"team_role!: TeamRole\"\n FROM team_user\n WHERE team_id = $1\n AND user_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "team_role!: TeamRole", + "type_info": { + "Custom": { + "name": "team_role", + "kind": { + "Enum": [ + "member", + "admin", + "owner" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "500452d6337cfbc2d9a919268021835385045e45c20aaba40ed940cf3f25a07a" +} diff --git a/rust/cloud-storage/.sqlx/query-500f0b56eb070f7bb2a4ea9a95337f7074464d19fc6646401072914709be353e.json b/rust/cloud-storage/.sqlx/query-500f0b56eb070f7bb2a4ea9a95337f7074464d19fc6646401072914709be353e.json new file mode 100644 index 0000000000..840766dcab --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-500f0b56eb070f7bb2a4ea9a95337f7074464d19fc6646401072914709be353e.json @@ -0,0 +1,172 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.provider_history_id,\n m.replying_to_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n m.body_text as body_text,\n m.body_html_sanitized as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n JOIN email_links l ON m.link_id = l.id\n WHERE m.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 21, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 22, + "name": "body_macro", + "type_info": "Text" + }, + { + "ordinal": 23, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 24, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 25, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + true, + true, + null, + true, + false, + false + ] + }, + "hash": "500f0b56eb070f7bb2a4ea9a95337f7074464d19fc6646401072914709be353e" +} diff --git a/rust/cloud-storage/.sqlx/query-50318d6d13fb931307f2115b33d277b5298c45ed798719e792e722bd30615a95.json b/rust/cloud-storage/.sqlx/query-50318d6d13fb931307f2115b33d277b5298c45ed798719e792e722bd30615a95.json new file mode 100644 index 0000000000..7a4d0490be --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-50318d6d13fb931307f2115b33d277b5298c45ed798719e792e722bd30615a95.json @@ -0,0 +1,73 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, macro_id, fusionauth_user_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at\n FROM email_links\n WHERE macro_id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "provider: _", + "type_info": { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_sync_active", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "50318d6d13fb931307f2115b33d277b5298c45ed798719e792e722bd30615a95" +} diff --git a/rust/cloud-storage/.sqlx/query-504e516996c2c65d7b2d7c47bdc5fbab6644ddd99a4913bc05ffd713f0c4ad5b.json b/rust/cloud-storage/.sqlx/query-504e516996c2c65d7b2d7c47bdc5fbab6644ddd99a4913bc05ffd713f0c4ad5b.json new file mode 100644 index 0000000000..59020de757 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-504e516996c2c65d7b2d7c47bdc5fbab6644ddd99a4913bc05ffd713f0c4ad5b.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE crm_thread\n SET updated_at = now(), metadata = COALESCE($2, metadata)\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "504e516996c2c65d7b2d7c47bdc5fbab6644ddd99a4913bc05ffd713f0c4ad5b" +} diff --git a/rust/cloud-storage/.sqlx/query-506f7fbc61e5c2b0caedcc8ca1af001b1da7b88bcd175929f42b88146d4707f8.json b/rust/cloud-storage/.sqlx/query-506f7fbc61e5c2b0caedcc8ca1af001b1da7b88bcd175929f42b88146d4707f8.json new file mode 100644 index 0000000000..b0dbe81774 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-506f7fbc61e5c2b0caedcc8ca1af001b1da7b88bcd175929f42b88146d4707f8.json @@ -0,0 +1,66 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n a.channel_id AS \"channel_id: uuid::Uuid\",\n c.name AS \"channel_name?\", -- Option\n a.message_id AS \"message_id: uuid::Uuid\",\n m.thread_id AS \"thread_id?: uuid::Uuid\",\n m.sender_id AS \"sender_id!\", -- String\n m.content AS \"message_content!\", -- String\n m.created_at AS \"message_created_at!: chrono::DateTime\",\n a.created_at AS \"attachment_created_at!: chrono::DateTime\"\n FROM comms_attachments a\n JOIN comms_messages m ON a.message_id = m.id\n JOIN comms_channels c ON a.channel_id = c.id\n JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE a.entity_type = $1\n AND a.entity_id = $2\n AND cp.user_id = $3\n AND cp.left_at IS NULL\n AND m.deleted_at IS NULL\n ORDER BY a.created_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_name?", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "message_id: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "thread_id?: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "sender_id!", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "message_content!", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "message_created_at!: chrono::DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "attachment_created_at!: chrono::DateTime", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text" + ] + }, + "nullable": [ + false, + true, + false, + true, + false, + false, + false, + false + ] + }, + "hash": "506f7fbc61e5c2b0caedcc8ca1af001b1da7b88bcd175929f42b88146d4707f8" +} diff --git a/rust/cloud-storage/.sqlx/query-514af45f8facfb915211cc9b0a92991b831dc11f9ab91d92b368340fa0aa8f8f.json b/rust/cloud-storage/.sqlx/query-514af45f8facfb915211cc9b0a92991b831dc11f9ab91d92b368340fa0aa8f8f.json new file mode 100644 index 0000000000..877c7bc78a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-514af45f8facfb915211cc9b0a92991b831dc11f9ab91d92b368340fa0aa8f8f.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"DocumentPermission\"\n WHERE \"sharePermissionId\" = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "514af45f8facfb915211cc9b0a92991b831dc11f9ab91d92b368340fa0aa8f8f" +} diff --git a/rust/cloud-storage/.sqlx/query-5183d95583de1d3aa5cb183c528a2ea768622c3b189ffa6664c15669f7d78b90.json b/rust/cloud-storage/.sqlx/query-5183d95583de1d3aa5cb183c528a2ea768622c3b189ffa6664c15669f7d78b90.json new file mode 100644 index 0000000000..3c5f804ed2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5183d95583de1d3aa5cb183c528a2ea768622c3b189ffa6664c15669f7d78b90.json @@ -0,0 +1,77 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as document_id,\n d.owner as owner,\n d.name as document_name,\n db.id as \"document_version_id!\",\n d.\"fileType\" as \"file_type?\",\n d.\"createdAt\"::timestamptz as created_at,\n d.\"updatedAt\"::timestamptz as updated_at,\n db.bom_parts as \"document_bom?\",\n d.\"projectId\" as \"project_id?\",\n p.name as \"project_name?\"\n FROM\n \"Document\" d\n LEFT JOIN LATERAL (\n SELECT\n b.id,\n (\n SELECT\n json_agg(\n json_build_object(\n 'id', bp.id,\n 'sha', bp.sha,\n 'path', bp.path\n )\n )\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = b.id\n ) as bom_parts\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT\n p.name\n FROM \"Project\" p\n WHERE p.id = d.\"projectId\"\n ) p ON d.\"projectId\" IS NOT NULL\n WHERE d.\"fileType\" = 'docx' AND d.\"deletedAt\" IS NULL AND d.uploaded = true\n ORDER BY d.\"updatedAt\" DESC\n LIMIT $1 OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "document_version_id!", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "file_type?", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "document_bom?", + "type_info": "Json" + }, + { + "ordinal": 8, + "name": "project_id?", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "project_name?", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + null, + null, + null, + true, + false + ] + }, + "hash": "5183d95583de1d3aa5cb183c528a2ea768622c3b189ffa6664c15669f7d78b90" +} diff --git a/rust/cloud-storage/.sqlx/query-51873bdb08381231f01403f4e58bb5f5d73338d8cb9ec96c67fd8d6ea4746970.json b/rust/cloud-storage/.sqlx/query-51873bdb08381231f01403f4e58bb5f5d73338d8cb9ec96c67fd8d6ea4746970.json new file mode 100644 index 0000000000..7d015cf85e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-51873bdb08381231f01403f4e58bb5f5d73338d8cb9ec96c67fd8d6ea4746970.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM \"User\" WHERE id = $1 RETURNING id, email, \"organizationId\" as organization_id", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "email", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "organization_id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true + ] + }, + "hash": "51873bdb08381231f01403f4e58bb5f5d73338d8cb9ec96c67fd8d6ea4746970" +} diff --git a/rust/cloud-storage/.sqlx/query-518eb6a40898a1d2037db11af3e2cfa426a24d03d78ddea8c6c837143bb1d6bf.json b/rust/cloud-storage/.sqlx/query-518eb6a40898a1d2037db11af3e2cfa426a24d03d78ddea8c6c837143bb1d6bf.json new file mode 100644 index 0000000000..44695a2b80 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-518eb6a40898a1d2037db11af3e2cfa426a24d03d78ddea8c6c837143bb1d6bf.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_message_labels\n WHERE label_id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "518eb6a40898a1d2037db11af3e2cfa426a24d03d78ddea8c6c837143bb1d6bf" +} diff --git a/rust/cloud-storage/.sqlx/query-51c9b178186c513e2359c6ae0d9eb291f29d3fe5dca1bfa5ae426aad4a086ccd.json b/rust/cloud-storage/.sqlx/query-51c9b178186c513e2359c6ae0d9eb291f29d3fe5dca1bfa5ae426aad4a086ccd.json new file mode 100644 index 0000000000..d1507c076c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-51c9b178186c513e2359c6ae0d9eb291f29d3fe5dca1bfa5ae426aad4a086ccd.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT source_id AS \"source_id!\", source_type::text AS \"source_type!\"\n FROM github_app_installation\n WHERE id = $1\n ORDER BY source_type, source_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "source_id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "source_type!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + null + ] + }, + "hash": "51c9b178186c513e2359c6ae0d9eb291f29d3fe5dca1bfa5ae426aad4a086ccd" +} diff --git a/rust/cloud-storage/.sqlx/query-52274fa0bcbaf995cd7ccf4025dcae43516d969d93066adf3bea59f64fcce246.json b/rust/cloud-storage/.sqlx/query-52274fa0bcbaf995cd7ccf4025dcae43516d969d93066adf3bea59f64fcce246.json new file mode 100644 index 0000000000..2d58ede92f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-52274fa0bcbaf995cd7ccf4025dcae43516d969d93066adf3bea59f64fcce246.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n \"id\" as \"merge_request_id!\",\n \"to_merge_macro_user_id\" as \"to_merge_macro_user_id!\"\n FROM \"account_merge_request\"\n WHERE \"code\" = $1 AND \"macro_user_id\" = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "merge_request_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "to_merge_macro_user_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "52274fa0bcbaf995cd7ccf4025dcae43516d969d93066adf3bea59f64fcce246" +} diff --git a/rust/cloud-storage/.sqlx/query-523326bd4435e4f15ca5e0cc7f015e99eac0492d7e855375a0389e246c400049.json b/rust/cloud-storage/.sqlx/query-523326bd4435e4f15ca5e0cc7f015e99eac0492d7e855375a0389e246c400049.json new file mode 100644 index 0000000000..167cd55550 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-523326bd4435e4f15ca5e0cc7f015e99eac0492d7e855375a0389e246c400049.json @@ -0,0 +1,128 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH trash_labels AS (\n SELECT id, link_id FROM email_labels WHERE link_id = ANY($1) AND name = 'TRASH'\n ),\n important_labels AS (\n SELECT id, link_id FROM email_labels WHERE link_id = ANY($1) AND name = 'IMPORTANT'\n )\n SELECT\n t.id,\n t.provider_id,\n TRUE AS \"inbox_visible!\",\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN important_labels il ON ml.label_id = il.id\n WHERE m_imp.thread_id = t.id\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Efficiently find and sort ONLY the top N+1 candidate threads.\n -- This subquery is fast as it only touches `threads` and `user_history`.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.is_read,\n t.project_id,\n t.latest_inbound_message_ts AS created_at,\n t.latest_inbound_message_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_inbound_message_ts)\n ELSE t.latest_inbound_message_ts\n END AS effective_ts\n FROM email_threads t\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n t.link_id = ANY($1)\n AND t.inbox_visible = TRUE\n AND t.latest_inbound_message_ts IS NOT NULL\n\n -- The cursor logic is moved inside this subquery for maximum efficiency.\n AND (($3::timestamptz IS NULL) OR (\n -- This CASE must exactly match the one that defines `effective_ts`\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_inbound_message_ts)\n ELSE t.latest_inbound_message_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC -- fall back to updated_at if effective_ts is the same\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find its latest non-trashed message.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name,\n m.is_draft\n FROM email_messages m\n WHERE m.thread_id = t.id\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN trash_labels tl ON ml.label_id = tl.id\n WHERE ml.message_id = m.id\n )\n ORDER BY m.internal_date_ts DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details for the final result set.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n -- Final ordering is preserved because the input `t` is already sorted.\n ORDER BY t.effective_ts DESC, t.updated_at DESC -- fall back to updated_at if effective_ts is the same\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "inbox_visible!", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "sort_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "viewed_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "name?", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "snippet?", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 12, + "name": "is_important!", + "type_info": "Bool" + }, + { + "ordinal": 13, + "name": "sender_email?", + "type_info": "Varchar" + }, + { + "ordinal": 14, + "name": "sender_name?", + "type_info": "Varchar" + }, + { + "ordinal": 15, + "name": "sender_photo_url?", + "type_info": "Text" + }, + { + "ordinal": 16, + "name": "owner_id!", + "type_info": "Text" + }, + { + "ordinal": 17, + "name": "link_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "Int8", + "Timestamptz", + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + true, + null, + false, + null, + true, + true, + true, + false, + true, + true, + false, + null, + false, + null, + true, + false, + false + ] + }, + "hash": "523326bd4435e4f15ca5e0cc7f015e99eac0492d7e855375a0389e246c400049" +} diff --git a/rust/cloud-storage/.sqlx/query-525b9b86055a3dc112adcb8973efb21edf79cf3409c9d1fbcb71c4564b6b453d.json b/rust/cloud-storage/.sqlx/query-525b9b86055a3dc112adcb8973efb21edf79cf3409c9d1fbcb71c4564b6b453d.json new file mode 100644 index 0000000000..57bef9cf37 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-525b9b86055a3dc112adcb8973efb21edf79cf3409c9d1fbcb71c4564b6b453d.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id,\n c.name,\n c.model,\n c.\"userId\" as \"user_id\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.\"projectId\" as \"project_id\",\n c.\"tokenCount\" as \"token_count\",\n c.\"isPersistent\" as \"is_persistent\"\n FROM \"Chat\" c WHERE c.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "model", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "token_count", + "type_info": "Int8" + }, + { + "ordinal": 9, + "name": "is_persistent", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + null, + null, + null, + true, + true, + false + ] + }, + "hash": "525b9b86055a3dc112adcb8973efb21edf79cf3409c9d1fbcb71c4564b6b453d" +} diff --git a/rust/cloud-storage/.sqlx/query-5293063d6203fdce622e3265581cb505e07534de33d0275ed860aea9f6614fc7.json b/rust/cloud-storage/.sqlx/query-5293063d6203fdce622e3265581cb505e07534de33d0275ed860aea9f6614fc7.json new file mode 100644 index 0000000000..b51c26591f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5293063d6203fdce622e3265581cb505e07534de33d0275ed860aea9f6614fc7.json @@ -0,0 +1,145 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n UserAccessibleItems AS (\n SELECT DISTINCT\n ea.entity_id::text as item_id,\n ea.entity_type as item_type\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n ),\n Combined AS (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\", \n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\",\n d.\"projectId\" as \"project_id\",\n NULL as \"is_persistent\",\n di.sha as \"sha\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n d.\"updatedAt\"::timestamptz as \"sort_ts!\",\n CASE\n WHEN dt.sub_type = 'task'\n AND ep_status.values->'value' ? $5\n THEN true\n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL\n END as \"is_completed\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status\n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id\n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $6\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = d.id\n AND uai.item_type = 'document'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = d.id\n AND uh.\"itemType\" = 'document'\n AND uh.\"userId\" = $1\n LEFT JOIN LATERAL (\n SELECT b.id\n FROM \"DocumentBom\" b\n WHERE b.\"documentId\" = d.id\n ORDER BY b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT i.id, i.sha\n FROM \"DocumentInstance\" i\n WHERE i.\"documentId\" = d.id\n ORDER BY i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n WHERE d.\"deletedAt\" IS NULL\n AND d.id = ANY($2::text[])\n\n UNION ALL\n\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at!\",\n c.\"updatedAt\"::timestamptz as \"updated_at!\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n c.\"updatedAt\"::timestamptz as \"sort_ts!\",\n NULL as \"is_completed\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Chat\" c\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = c.id\n AND uai.item_type = 'chat'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = c.id\n AND uh.\"itemType\" = 'chat'\n AND uh.\"userId\" = $1\n WHERE c.\"deletedAt\" IS NULL\n AND c.id = ANY($3::text[])\n\n UNION ALL\n\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at!\",\n p.\"updatedAt\"::timestamptz as \"updated_at!\",\n p.\"parentId\" as \"project_id\",\n NULL as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n p.\"updatedAt\"::timestamptz as \"sort_ts!\",\n NULL as \"is_completed\",\n p.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Project\" p\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = p.id\n AND uai.item_type = 'project'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = p.id\n AND uh.\"itemType\" = 'project'\n AND uh.\"userId\" = $1\n WHERE p.\"deletedAt\" IS NULL\n AND p.id = ANY($4::text[])\n )\n SELECT * \n FROM Combined\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_type!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_version_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "user_id!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "name!", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "is_persistent", + "type_info": "Bool" + }, + { + "ordinal": 13, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 14, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 15, + "name": "viewed_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 16, + "name": "sort_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 17, + "name": "is_completed", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray", + "TextArray", + "TextArray", + "Text", + "Uuid" + ] + }, + "nullable": [ + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null + ] + }, + "hash": "5293063d6203fdce622e3265581cb505e07534de33d0275ed860aea9f6614fc7" +} diff --git a/rust/cloud-storage/.sqlx/query-52bd1907e946a5c7b45c1954491c0d10a911eecd17e12d2c3937dae20ae71bef.json b/rust/cloud-storage/.sqlx/query-52bd1907e946a5c7b45c1954491c0d10a911eecd17e12d2c3937dae20ae71bef.json new file mode 100644 index 0000000000..03329c31cb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-52bd1907e946a5c7b45c1954491c0d10a911eecd17e12d2c3937dae20ae71bef.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Chat\" c\n WHERE c.\"userId\" = $1 and c.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "52bd1907e946a5c7b45c1954491c0d10a911eecd17e12d2c3937dae20ae71bef" +} diff --git a/rust/cloud-storage/.sqlx/query-530dbf9753f99470bd1928f17721031cd3fcee89685f44afc0d0305ec6231093.json b/rust/cloud-storage/.sqlx/query-530dbf9753f99470bd1928f17721031cd3fcee89685f44afc0d0305ec6231093.json new file mode 100644 index 0000000000..dea819c66a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-530dbf9753f99470bd1928f17721031cd3fcee89685f44afc0d0305ec6231093.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n di.id,\n d.uploaded\n FROM \"DocumentInstance\" di\n JOIN \"Document\" d ON di.\"documentId\" = d.id\n WHERE di.\"documentId\" = $1\n ORDER BY di.\"createdAt\" DESC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "uploaded", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "530dbf9753f99470bd1928f17721031cd3fcee89685f44afc0d0305ec6231093" +} diff --git a/rust/cloud-storage/.sqlx/query-532bde51c937e59bf4b6bd5ad735cd58ff2db92684a0c685bad7e8f133521563.json b/rust/cloud-storage/.sqlx/query-532bde51c937e59bf4b6bd5ad735cd58ff2db92684a0c685bad7e8f133521563.json new file mode 100644 index 0000000000..a6d05ec2f1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-532bde51c937e59bf4b6bd5ad735cd58ff2db92684a0c685bad7e8f133521563.json @@ -0,0 +1,38 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT e.id, e.active, e.\"started_at\"::timestamptz as started_at, e.\"ended_at\"::timestamptz as ended_at\n FROM \"Experiment\" e\n WHERE e.active = true\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "active", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "started_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "ended_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + null, + null + ] + }, + "hash": "532bde51c937e59bf4b6bd5ad735cd58ff2db92684a0c685bad7e8f133521563" +} diff --git a/rust/cloud-storage/.sqlx/query-53803816cc7149ffc49cd92a665229df9ec397fa2035c305d00133abeea39358.json b/rust/cloud-storage/.sqlx/query-53803816cc7149ffc49cd92a665229df9ec397fa2035c305d00133abeea39358.json new file mode 100644 index 0000000000..e2c0dec188 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-53803816cc7149ffc49cd92a665229df9ec397fa2035c305d00133abeea39358.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT a.owner, d.owner as document_owner\n FROM \"PdfPlaceableCommentAnchor\" a\n JOIN \"Thread\" t ON a.\"threadId\" = t.id\n JOIN \"Document\" d ON a.\"documentId\" = d.id\n WHERE a.uuid = $1 AND t.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "document_owner", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "53803816cc7149ffc49cd92a665229df9ec397fa2035c305d00133abeea39358" +} diff --git a/rust/cloud-storage/.sqlx/query-54155d1cfe6997b0dfe33cf72d9f3e2a1bf3af9a8fb1487fd32fb3f833641046.json b/rust/cloud-storage/.sqlx/query-54155d1cfe6997b0dfe33cf72d9f3e2a1bf3af9a8fb1487fd32fb3f833641046.json new file mode 100644 index 0000000000..50fcaa7372 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-54155d1cfe6997b0dfe33cf72d9f3e2a1bf3af9a8fb1487fd32fb3f833641046.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT macro_user_id FROM \"User\"\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "54155d1cfe6997b0dfe33cf72d9f3e2a1bf3af9a8fb1487fd32fb3f833641046" +} diff --git a/rust/cloud-storage/.sqlx/query-541d038f1693e63ee6d4626f58580bca194989d88fd991abe2efd2c66d5a5e8e.json b/rust/cloud-storage/.sqlx/query-541d038f1693e63ee6d4626f58580bca194989d88fd991abe2efd2c66d5a5e8e.json new file mode 100644 index 0000000000..bc71f8c000 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-541d038f1693e63ee6d4626f58580bca194989d88fd991abe2efd2c66d5a5e8e.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_messages\n SET\n replying_to_id = $1,\n updated_at = NOW()\n WHERE\n id = $2\n AND link_id = $3\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "541d038f1693e63ee6d4626f58580bca194989d88fd991abe2efd2c66d5a5e8e" +} diff --git a/rust/cloud-storage/.sqlx/query-5429a0ff80ba0e9394eb205bddbb2dc247030b9e6eb3a750e30cdd770bf92fa9.json b/rust/cloud-storage/.sqlx/query-5429a0ff80ba0e9394eb205bddbb2dc247030b9e6eb3a750e30cdd770bf92fa9.json new file mode 100644 index 0000000000..77d591f6f4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5429a0ff80ba0e9394eb205bddbb2dc247030b9e6eb3a750e30cdd770bf92fa9.json @@ -0,0 +1,39 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_channels (id, name, owner_id, org_id, team_id, channel_type)\n VALUES ($1, $2, $3, $4, $5, $6)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Varchar", + "Text", + "Int8", + "Uuid", + { + "Custom": { + "name": "comms_channel_type", + "kind": { + "Enum": [ + "public", + "private", + "direct_message", + "team" + ] + } + } + } + ] + }, + "nullable": [ + false + ] + }, + "hash": "5429a0ff80ba0e9394eb205bddbb2dc247030b9e6eb3a750e30cdd770bf92fa9" +} diff --git a/rust/cloud-storage/.sqlx/query-547e3772bb1def3090b8647fcec5795696c6d02cbabc4619d6c384bfb5bff330.json b/rust/cloud-storage/.sqlx/query-547e3772bb1def3090b8647fcec5795696c6d02cbabc4619d6c384bfb5bff330.json new file mode 100644 index 0000000000..9ddc4e92bd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-547e3772bb1def3090b8647fcec5795696c6d02cbabc4619d6c384bfb5bff330.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM macro_user_links\n WHERE primary_macro_id = $1\n AND child_macro_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "547e3772bb1def3090b8647fcec5795696c6d02cbabc4619d6c384bfb5bff330" +} diff --git a/rust/cloud-storage/.sqlx/query-54880d69ab1555eb66227f63e0e4b3d940d114ee09eaa06916c48da29b8ce62e.json b/rust/cloud-storage/.sqlx/query-54880d69ab1555eb66227f63e0e4b3d940d114ee09eaa06916c48da29b8ce62e.json new file mode 100644 index 0000000000..d410732247 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-54880d69ab1555eb66227f63e0e4b3d940d114ee09eaa06916c48da29b8ce62e.json @@ -0,0 +1,77 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH SingleAttachmentChats AS (\n SELECT\n \"chatId\",\n COUNT(*) as attachment_count\n FROM \"ChatAttachment\"\n GROUP BY \"chatId\"\n HAVING COUNT(*) = 1\n )\n SELECT\n c.id,\n c.name,\n c.\"userId\" as \"user_id\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.model,\n c.\"tokenCount\" as \"token_count\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\"\n FROM \"Chat\" c\n INNER JOIN \"ChatAttachment\" ca ON c.id = ca.\"chatId\"\n INNER JOIN SingleAttachmentChats sac ON c.id = sac.\"chatId\"\n WHERE\n ca.\"entity_id\"::TEXT = $1 AND c.\"userId\" = $2\n AND\n c.\"deletedAt\" IS NULL\n\n ORDER BY c.\"updatedAt\" DESC\n LIMIT 1;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "model", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "token_count", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "is_persistent", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + null, + null, + null, + false, + true, + true, + false + ] + }, + "hash": "54880d69ab1555eb66227f63e0e4b3d940d114ee09eaa06916c48da29b8ce62e" +} diff --git a/rust/cloud-storage/.sqlx/query-54eb040ca9944d83dd7a79c3a6bb5d7c6f8264109d57c825e903233bb7ea22ff.json b/rust/cloud-storage/.sqlx/query-54eb040ca9944d83dd7a79c3a6bb5d7c6f8264109d57c825e903233bb7ea22ff.json new file mode 100644 index 0000000000..cd2311d8f0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-54eb040ca9944d83dd7a79c3a6bb5d7c6f8264109d57c825e903233bb7ea22ff.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"User\"\n SET id = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "54eb040ca9944d83dd7a79c3a6bb5d7c6f8264109d57c825e903233bb7ea22ff" +} diff --git a/rust/cloud-storage/.sqlx/query-5553458fc15f58a3a981b54210e10ebf8de2788f357c3af3932a6516c235271e.json b/rust/cloud-storage/.sqlx/query-5553458fc15f58a3a981b54210e10ebf8de2788f357c3af3932a6516c235271e.json new file mode 100644 index 0000000000..da513430f1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5553458fc15f58a3a981b54210e10ebf8de2788f357c3af3932a6516c235271e.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Experiment\" SET active = false AND ended_at = NOW() WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "5553458fc15f58a3a981b54210e10ebf8de2788f357c3af3932a6516c235271e" +} diff --git a/rust/cloud-storage/.sqlx/query-55776d3a26b7c89897de6d58d17686ac9efbb516589692adcb97ffd1ace56ac9.json b/rust/cloud-storage/.sqlx/query-55776d3a26b7c89897de6d58d17686ac9efbb516589692adcb97ffd1ace56ac9.json new file mode 100644 index 0000000000..f0d020a34b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-55776d3a26b7c89897de6d58d17686ac9efbb516589692adcb97ffd1ace56ac9.json @@ -0,0 +1,21 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO call_transcripts (call_id, segment_id, speaker_id, diarized_speaker_id, content, started_at, ended_at, voice_id, sequence_num)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, (\n SELECT COALESCE(MAX(sequence_num), 0) + 1\n FROM call_transcripts\n WHERE call_id = $1\n ))\n ON CONFLICT (call_id, segment_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Text", + "Text", + "Timestamptz", + "Timestamptz", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "55776d3a26b7c89897de6d58d17686ac9efbb516589692adcb97ffd1ace56ac9" +} diff --git a/rust/cloud-storage/.sqlx/query-56187151cc2545db5e5b43235d9aa3a88303c3508b7218179e27812e3cad7ec2.json b/rust/cloud-storage/.sqlx/query-56187151cc2545db5e5b43235d9aa3a88303c3508b7218179e27812e3cad7ec2.json new file mode 100644 index 0000000000..985e7caf0e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-56187151cc2545db5e5b43235d9aa3a88303c3508b7218179e27812e3cad7ec2.json @@ -0,0 +1,83 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n link_id,\n fusionauth_user_id,\n threads_requested_limit,\n total_threads,\n threads_retrieved_count,\n status as \"status: db::backfill::BackfillJobStatus\",\n created_at,\n updated_at\n FROM email_backfill_jobs\n WHERE link_id = $1\n ORDER BY created_at DESC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "threads_requested_limit", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "total_threads", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "threads_retrieved_count", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "status: db::backfill::BackfillJobStatus", + "type_info": { + "Custom": { + "name": "email_backfill_job_status", + "kind": { + "Enum": [ + "Init", + "InProgress", + "Complete", + "Cancelled", + "Failed" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + false, + true, + false, + false, + false, + false, + false + ] + }, + "hash": "56187151cc2545db5e5b43235d9aa3a88303c3508b7218179e27812e3cad7ec2" +} diff --git a/rust/cloud-storage/.sqlx/query-56322decea30dff649d294afbf0be6a894f1c511b957f6988b966d730d47bc59.json b/rust/cloud-storage/.sqlx/query-56322decea30dff649d294afbf0be6a894f1c511b957f6988b966d730d47bc59.json new file mode 100644 index 0000000000..40327ffc79 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-56322decea30dff649d294afbf0be6a894f1c511b957f6988b966d730d47bc59.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO resolved_message_content (\"messageId\", \"content\")\n VALUES ($1, $2)\n ON CONFLICT (\"messageId\") DO UPDATE SET \"content\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "56322decea30dff649d294afbf0be6a894f1c511b957f6988b966d730d47bc59" +} diff --git a/rust/cloud-storage/.sqlx/query-569440328317c8738d56baf89e528c093cc117a1ff6a8628f3bea4ea860c2dfd.json b/rust/cloud-storage/.sqlx/query-569440328317c8738d56baf89e528c093cc117a1ff6a8628f3bea4ea860c2dfd.json new file mode 100644 index 0000000000..e3d5edd8c0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-569440328317c8738d56baf89e528c093cc117a1ff6a8628f3bea4ea860c2dfd.json @@ -0,0 +1,94 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n a.uuid, \n a.\"threadId\" as thread_id,\n a.page, \n a.red, \n a.green, \n a.blue, \n a.alpha,\n a.type as highlight_type, \n a.text,\n a.\"pageViewportWidth\" as page_viewport_width, \n a.\"pageViewportHeight\" as page_viewport_height, \n a.\"createdAt\"::timestamptz as created_at, \n a.\"updatedAt\"::timestamptz as updated_at\n FROM \"PdfHighlightAnchor\" a\n WHERE a.\"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "page", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "red", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "green", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "blue", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "alpha", + "type_info": "Float8" + }, + { + "ordinal": 7, + "name": "highlight_type", + "type_info": "Int4" + }, + { + "ordinal": 8, + "name": "text", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "page_viewport_width", + "type_info": "Float8" + }, + { + "ordinal": 10, + "name": "page_viewport_height", + "type_info": "Float8" + }, + { + "ordinal": 11, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 12, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + null, + null + ] + }, + "hash": "569440328317c8738d56baf89e528c093cc117a1ff6a8628f3bea4ea860c2dfd" +} diff --git a/rust/cloud-storage/.sqlx/query-56bc98d55555a5605ffe1fb098c61a56fe28b866c4e6684d4208f97a21a7c5d8.json b/rust/cloud-storage/.sqlx/query-56bc98d55555a5605ffe1fb098c61a56fe28b866c4e6684d4208f97a21a7c5d8.json new file mode 100644 index 0000000000..c75072ce00 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-56bc98d55555a5605ffe1fb098c61a56fe28b866c4e6684d4208f97a21a7c5d8.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n SELECT u.user_id, u.item_id, 'chat', NOW(), NOW()\n FROM UNNEST($1::text[], $2::text[]) AS u(item_id, user_id)\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = NOW();\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "56bc98d55555a5605ffe1fb098c61a56fe28b866c4e6684d4208f97a21a7c5d8" +} diff --git a/rust/cloud-storage/.sqlx/query-56bd1e06751e63ed197d0d29b48585d16912c6fd506196d2058ee41c09e71433.json b/rust/cloud-storage/.sqlx/query-56bd1e06751e63ed197d0d29b48585d16912c6fd506196d2058ee41c09e71433.json new file mode 100644 index 0000000000..ccf176175d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-56bd1e06751e63ed197d0d29b48585d16912c6fd506196d2058ee41c09e71433.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n in_progress_email_link (id, macro_user_id, email, created_at)\n VALUES\n ($1, $2, $3, NOW())\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "56bd1e06751e63ed197d0d29b48585d16912c6fd506196d2058ee41c09e71433" +} diff --git a/rust/cloud-storage/.sqlx/query-56f380911d1ece3f1a04ad73ffdf724d132c32f4971d533f7dbe0a42e283ebce.json b/rust/cloud-storage/.sqlx/query-56f380911d1ece3f1a04ad73ffdf724d132c32f4971d533f7dbe0a42e283ebce.json new file mode 100644 index 0000000000..c55fe1a69c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-56f380911d1ece3f1a04ad73ffdf724d132c32f4971d533f7dbe0a42e283ebce.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id\n FROM comms_channels\n WHERE channel_type = 'direct_message'::comms_channel_type\n AND EXISTS (\n SELECT 1\n FROM comms_channel_participants cp\n WHERE cp.channel_id = comms_channels.id\n AND cp.user_id = $1\n )\n AND EXISTS (\n SELECT 1\n FROM comms_channel_participants cp\n WHERE cp.channel_id = comms_channels.id\n AND cp.user_id = $2\n )\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "56f380911d1ece3f1a04ad73ffdf724d132c32f4971d533f7dbe0a42e283ebce" +} diff --git a/rust/cloud-storage/.sqlx/query-573a66f6ce27f28db10933bb330aa7edfb6bc776504942fd6f5ab4302a49a857.json b/rust/cloud-storage/.sqlx/query-573a66f6ce27f28db10933bb330aa7edfb6bc776504942fd6f5ab4302a49a857.json new file mode 100644 index 0000000000..3d3519dd4d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-573a66f6ce27f28db10933bb330aa7edfb6bc776504942fd6f5ab4302a49a857.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE call_records\n SET recording_started_at = $2\n WHERE egress_id = $1\n AND recording_started_at IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Timestamptz" + ] + }, + "nullable": [] + }, + "hash": "573a66f6ce27f28db10933bb330aa7edfb6bc776504942fd6f5ab4302a49a857" +} diff --git a/rust/cloud-storage/.sqlx/query-575a01f5f6907c1586c226426b338c649fa27b433650b735c685e60ad9435a4b.json b/rust/cloud-storage/.sqlx/query-575a01f5f6907c1586c226426b338c649fa27b433650b735c685e60ad9435a4b.json new file mode 100644 index 0000000000..389dd19f0b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-575a01f5f6907c1586c226426b338c649fa27b433650b735c685e60ad9435a4b.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id\n FROM\n \"Document\" d\n WHERE\n d.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "575a01f5f6907c1586c226426b338c649fa27b433650b735c685e60ad9435a4b" +} diff --git a/rust/cloud-storage/.sqlx/query-5766ebb8dbd1ad5d06624c7e715e3d2e68f8539e835552e8c8ca0d562adbbefe.json b/rust/cloud-storage/.sqlx/query-5766ebb8dbd1ad5d06624c7e715e3d2e68f8539e835552e8c8ca0d562adbbefe.json new file mode 100644 index 0000000000..15af8c6d02 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5766ebb8dbd1ad5d06624c7e715e3d2e68f8539e835552e8c8ca0d562adbbefe.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT bp.sha\n FROM \"BomPart\" bp\n JOIN \"DocumentBom\" db ON bp.\"documentBomId\" = db.id\n WHERE db.\"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "sha", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "5766ebb8dbd1ad5d06624c7e715e3d2e68f8539e835552e8c8ca0d562adbbefe" +} diff --git a/rust/cloud-storage/.sqlx/query-57fc603adf83fd7c07968425c98f9a57924573692cf0529ad021b6eef00ce99e.json b/rust/cloud-storage/.sqlx/query-57fc603adf83fd7c07968425c98f9a57924573692cf0529ad021b6eef00ce99e.json new file mode 100644 index 0000000000..27b7d76a6f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-57fc603adf83fd7c07968425c98f9a57924573692cf0529ad021b6eef00ce99e.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChatMessage\" (\"id\", \"chatId\", \"content\", \"role\", \"model\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Jsonb", + "Text", + "Text", + "Timestamp", + "Timestamp" + ] + }, + "nullable": [ + false + ] + }, + "hash": "57fc603adf83fd7c07968425c98f9a57924573692cf0529ad021b6eef00ce99e" +} diff --git a/rust/cloud-storage/.sqlx/query-582f4f2d5a5e9c72835d0a043f743a94d927a08a81b8687714a96bd52a94cfcf.json b/rust/cloud-storage/.sqlx/query-582f4f2d5a5e9c72835d0a043f743a94d927a08a81b8687714a96bd52a94cfcf.json new file mode 100644 index 0000000000..3c62d246ab --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-582f4f2d5a5e9c72835d0a043f743a94d927a08a81b8687714a96bd52a94cfcf.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, thread_id, \"order\", owner, sender, text, metadata,\n created_at, updated_at, deleted_at\n FROM crm_comment\n WHERE thread_id = ANY($1) AND deleted_at IS NULL\n ORDER BY created_at ASC, id ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "order", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "sender", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "text", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + true, + false, + true, + false, + true, + false, + false, + true + ] + }, + "hash": "582f4f2d5a5e9c72835d0a043f743a94d927a08a81b8687714a96bd52a94cfcf" +} diff --git a/rust/cloud-storage/.sqlx/query-58443a6571e2b390002d7a3ba3954182467bb638a6d399b3ea8212d1a026d4fd.json b/rust/cloud-storage/.sqlx/query-58443a6571e2b390002d7a3ba3954182467bb638a6d399b3ea8212d1a026d4fd.json new file mode 100644 index 0000000000..41e02b32b7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-58443a6571e2b390002d7a3ba3954182467bb638a6d399b3ea8212d1a026d4fd.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE contacts_backfill_outbox SET applied_at = now() WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [] + }, + "hash": "58443a6571e2b390002d7a3ba3954182467bb638a6d399b3ea8212d1a026d4fd" +} diff --git a/rust/cloud-storage/.sqlx/query-584a3f488f9149430d13e21a9bf1bef7da249de88d145a2925832425785250f8.json b/rust/cloud-storage/.sqlx/query-584a3f488f9149430d13e21a9bf1bef7da249de88d145a2925832425785250f8.json new file mode 100644 index 0000000000..b6ea64eede --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-584a3f488f9149430d13e21a9bf1bef7da249de88d145a2925832425785250f8.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n LENGTH(REGEXP_REPLACE(d.\"content\", '\\s', '', 'g')) AS content_length\n FROM\n \"DocumentText\" d\n WHERE\n d.\"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "content_length", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "584a3f488f9149430d13e21a9bf1bef7da249de88d145a2925832425785250f8" +} diff --git a/rust/cloud-storage/.sqlx/query-587ab2cbf540d6f98236ca8cc3c098a0efa439c0ccefa93c46971a0f2fe7efcf.json b/rust/cloud-storage/.sqlx/query-587ab2cbf540d6f98236ca8cc3c098a0efa439c0ccefa93c46971a0f2fe7efcf.json new file mode 100644 index 0000000000..6fa7775825 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-587ab2cbf540d6f98236ca8cc3c098a0efa439c0ccefa93c46971a0f2fe7efcf.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, team_id, email\n FROM team_invite\n WHERE team_id = $1\n AND email = ANY($2::text[])\n AND last_sent_at < NOW() - INTERVAL '5 minutes'\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "team_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "email", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "587ab2cbf540d6f98236ca8cc3c098a0efa439c0ccefa93c46971a0f2fe7efcf" +} diff --git a/rust/cloud-storage/.sqlx/query-58a665360907b8fc412e9f8dcb73696b517ecdd60243bf27c9564c7b969f1143.json b/rust/cloud-storage/.sqlx/query-58a665360907b8fc412e9f8dcb73696b517ecdd60243bf27c9564c7b969f1143.json new file mode 100644 index 0000000000..a506603753 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-58a665360907b8fc412e9f8dcb73696b517ecdd60243bf27c9564c7b969f1143.json @@ -0,0 +1,74 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT a.id, a.channel_id, a.message_id, m.sender_id,\n a.entity_type, a.entity_id,\n a.width AS \"width?\", a.height AS \"height?\", a.created_at\n FROM comms_attachments a\n JOIN comms_messages m ON m.id = a.message_id\n WHERE a.channel_id = $1\n AND m.deleted_at IS NULL\n AND ($2::timestamptz IS NULL OR (a.created_at, a.id) < ($2, $3))\n AND ($5::bool IS NULL\n OR ($5 = true AND a.entity_type LIKE 'static/%')\n OR ($5 = false AND a.entity_type NOT LIKE 'static/%'))\n ORDER BY a.created_at DESC, a.id DESC\n LIMIT $4\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "entity_type", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "entity_id", + "type_info": "Varchar" + }, + { + "ordinal": 6, + "name": "width?", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "height?", + "type_info": "Int4" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Timestamptz", + "Uuid", + "Int8", + "Bool" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + false + ] + }, + "hash": "58a665360907b8fc412e9f8dcb73696b517ecdd60243bf27c9564c7b969f1143" +} diff --git a/rust/cloud-storage/.sqlx/query-58b8b566779518776b13cabdb3498ac55b426b0493e769ea607618db7e246a71.json b/rust/cloud-storage/.sqlx/query-58b8b566779518776b13cabdb3498ac55b426b0493e769ea607618db7e246a71.json new file mode 100644 index 0000000000..2a84c80297 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-58b8b566779518776b13cabdb3498ac55b426b0493e769ea607618db7e246a71.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_scheduled_messages (\n link_id, message_id, send_time, sent,\n created_at, updated_at\n )\n VALUES ($1, $2, $3, $4, NOW(), NOW())\n ON CONFLICT (link_id, message_id) DO UPDATE SET\n send_time = EXCLUDED.send_time,\n sent = EXCLUDED.sent,\n updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Timestamptz", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "58b8b566779518776b13cabdb3498ac55b426b0493e769ea607618db7e246a71" +} diff --git a/rust/cloud-storage/.sqlx/query-58bcc36d5e748a63f9f35516f0c0ace37f77dd6806bf7f26211b3faa0fa84422.json b/rust/cloud-storage/.sqlx/query-58bcc36d5e748a63f9f35516f0c0ace37f77dd6806bf7f26211b3faa0fa84422.json new file mode 100644 index 0000000000..34a8fe34a1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-58bcc36d5e748a63f9f35516f0c0ace37f77dd6806bf7f26211b3faa0fa84422.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id\n FROM macro_user\n WHERE username = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "58bcc36d5e748a63f9f35516f0c0ace37f77dd6806bf7f26211b3faa0fa84422" +} diff --git a/rust/cloud-storage/.sqlx/query-58bf14acad4a08a6fa2da18e244676169f0bc6f606b04b1e8e3080fe95717b41.json b/rust/cloud-storage/.sqlx/query-58bf14acad4a08a6fa2da18e244676169f0bc6f606b04b1e8e3080fe95717b41.json new file mode 100644 index 0000000000..2a861ab825 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-58bf14acad4a08a6fa2da18e244676169f0bc6f606b04b1e8e3080fe95717b41.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"deletedAt\" as deleted_at FROM \"Project\" WHERE \"id\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "deleted_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true + ] + }, + "hash": "58bf14acad4a08a6fa2da18e244676169f0bc6f606b04b1e8e3080fe95717b41" +} diff --git a/rust/cloud-storage/.sqlx/query-5904887b6e8f4db0d2bd73b6e2921530de25c237c7e369b43a60ed7c28958fb8.json b/rust/cloud-storage/.sqlx/query-5904887b6e8f4db0d2bd73b6e2921530de25c237c7e369b43a60ed7c28958fb8.json new file mode 100644 index 0000000000..db2b1c4b96 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5904887b6e8f4db0d2bd73b6e2921530de25c237c7e369b43a60ed7c28958fb8.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n sp.id as id\n FROM\n \"EmailThreadPermission\" tp\n JOIN \"SharePermission\" sp ON tp.\"sharePermissionId\" = sp.id\n WHERE\n tp.\"threadId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "5904887b6e8f4db0d2bd73b6e2921530de25c237c7e369b43a60ed7c28958fb8" +} diff --git a/rust/cloud-storage/.sqlx/query-5915728325fe5163ae5f18a99350e0cb5153d368eceb75d03b4cf1adfd1f58bf.json b/rust/cloud-storage/.sqlx/query-5915728325fe5163ae5f18a99350e0cb5153d368eceb75d03b4cf1adfd1f58bf.json new file mode 100644 index 0000000000..514e8d9770 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5915728325fe5163ae5f18a99350e0cb5153d368eceb75d03b4cf1adfd1f58bf.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n \"publicAccessLevel\" as \"access_level!\"\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"ChatPermission\" WHERE \"chatId\" = $1\n )\n\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "access_level!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true + ] + }, + "hash": "5915728325fe5163ae5f18a99350e0cb5153d368eceb75d03b4cf1adfd1f58bf" +} diff --git a/rust/cloud-storage/.sqlx/query-5929a15919ba9b705c47c77ccc0ac1d7893590a8513c5d2019793598704f64fb.json b/rust/cloud-storage/.sqlx/query-5929a15919ba9b705c47c77ccc0ac1d7893590a8513c5d2019793598704f64fb.json new file mode 100644 index 0000000000..7d59021fcd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5929a15919ba9b705c47c77ccc0ac1d7893590a8513c5d2019793598704f64fb.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.\"id\" as \"chat_id\",\n m.id as \"message_id\",\n c.\"userId\" as \"user_id\",\n m.\"createdAt\" as \"created_at\",\n m.\"updatedAt\" as \"updated_at\"\n FROM\n \"ChatMessage\" m\n JOIN\n \"Chat\" c on c.\"id\" = m.\"chatId\"\n WHERE\n c.\"userId\" = ANY($1)\n AND (\n $3::bool IS NULL\n OR ($3 AND c.\"deletedAt\" IS NOT NULL)\n OR (NOT $3 AND c.\"deletedAt\" IS NULL)\n )\n AND ($4::timestamptz IS NULL OR m.\"updatedAt\" >= $4)\n AND ($5::timestamptz IS NULL OR m.\"updatedAt\" < $5)\n AND (\n $6::timestamptz IS NULL\n OR (m.\"updatedAt\", m.id) > ($6, $7::text)\n )\n ORDER BY m.\"updatedAt\" ASC, m.id ASC\n LIMIT $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "chat_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "TextArray", + "Int8", + "Bool", + "Timestamptz", + "Timestamptz", + "Timestamptz", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false + ] + }, + "hash": "5929a15919ba9b705c47c77ccc0ac1d7893590a8513c5d2019793598704f64fb" +} diff --git a/rust/cloud-storage/.sqlx/query-594849eb57f03099052b5415a963968dd31da940638917a96ab12dfc5a98bfa4.json b/rust/cloud-storage/.sqlx/query-594849eb57f03099052b5415a963968dd31da940638917a96ab12dfc5a98bfa4.json new file mode 100644 index 0000000000..c06c14d875 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-594849eb57f03099052b5415a963968dd31da940638917a96ab12dfc5a98bfa4.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, macro_id, fusionauth_user_id as \"fusionauth_user_id: Uuid\", github_username, github_user_id, created_at, updated_at\n FROM github_links\n WHERE github_user_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "github_username", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "github_user_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "594849eb57f03099052b5415a963968dd31da940638917a96ab12dfc5a98bfa4" +} diff --git a/rust/cloud-storage/.sqlx/query-5959ff0d2410e3f2599a53bc1bf0de19c2d6e90cb030f64dccf965a0515b467e.json b/rust/cloud-storage/.sqlx/query-5959ff0d2410e3f2599a53bc1bf0de19c2d6e90cb030f64dccf965a0515b467e.json new file mode 100644 index 0000000000..0d532ee4ad --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5959ff0d2410e3f2599a53bc1bf0de19c2d6e90cb030f64dccf965a0515b467e.json @@ -0,0 +1,106 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\",\n d.\"projectId\" as \"project_id\",\n NULL as \"is_persistent\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n CASE \n WHEN dt.sub_type = 'task' \n AND ep_status.values->'value' ? $2\n THEN true \n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL \n END as \"is_completed\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status \n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id \n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $3\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n WHERE d.owner = $1 AND d.\"deletedAt\" IS NOT NULL\n UNION ALL\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sub_type\",\n NULL as \"is_completed\"\n FROM \"Chat\" c\n WHERE c.\"userId\" = $1 AND c.\"deletedAt\" IS NOT NULL\n UNION ALL\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at\",\n p.\"updatedAt\"::timestamptz as \"updated_at\",\n p.\"deletedAt\"::timestamptz as \"deleted_at\",\n p.\"parentId\" as \"project_id\",\n NULL as \"is_persistent\",\n NULL as \"sub_type\",\n NULL as \"is_completed\"\n FROM \"Project\" p\n WHERE p.\"userId\" = $1 AND p.\"deletedAt\" IS NOT NULL\n ORDER BY deleted_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_type!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_version_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "user_id!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "name!", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "is_persistent", + "type_info": "Bool" + }, + { + "ordinal": 11, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 12, + "name": "is_completed", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Uuid" + ] + }, + "nullable": [ + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null + ] + }, + "hash": "5959ff0d2410e3f2599a53bc1bf0de19c2d6e90cb030f64dccf965a0515b467e" +} diff --git a/rust/cloud-storage/.sqlx/query-59eb39577b1b566ef0a95f74f75904a62689388c0b28b77a02946952e6aa8b36.json b/rust/cloud-storage/.sqlx/query-59eb39577b1b566ef0a95f74f75904a62689388c0b28b77a02946952e6aa8b36.json new file mode 100644 index 0000000000..bf8b77e46c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-59eb39577b1b566ef0a95f74f75904a62689388c0b28b77a02946952e6aa8b36.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_messages m\n SET\n is_starred = $1,\n updated_at = NOW()\n WHERE\n m.id = ANY($2)\n AND m.link_id = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bool", + "UuidArray", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "59eb39577b1b566ef0a95f74f75904a62689388c0b28b77a02946952e6aa8b36" +} diff --git a/rust/cloud-storage/.sqlx/query-59ed63c0cb97189af71b12a68e7a516b7122cb0462db7ecc569b2e55a6e5057f.json b/rust/cloud-storage/.sqlx/query-59ed63c0cb97189af71b12a68e7a516b7122cb0462db7ecc569b2e55a6e5057f.json new file mode 100644 index 0000000000..9a379e32b6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-59ed63c0cb97189af71b12a68e7a516b7122cb0462db7ecc569b2e55a6e5057f.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n input.domain AS \"domain!\",\n (d.id IS NOT NULL) AS \"exists!\",\n COALESCE(c.hidden, FALSE) AS \"company_hidden!\",\n COALESCE(c.email_sync, FALSE) AS \"email_sync!\"\n FROM UNNEST($2::text[]) WITH ORDINALITY AS input(domain, ord)\n LEFT JOIN crm_domains d\n ON d.team_id = $1 AND LOWER(d.domain) = input.domain\n LEFT JOIN crm_companies c\n ON c.id = d.company_id\n ORDER BY input.ord\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "domain!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "exists!", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "company_hidden!", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "email_sync!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [ + null, + null, + null, + null + ] + }, + "hash": "59ed63c0cb97189af71b12a68e7a516b7122cb0462db7ecc569b2e55a6e5057f" +} diff --git a/rust/cloud-storage/.sqlx/query-5a1016dee1c30860cc21fed65aa3a7f7f3c37e866d38c2ab99cfeb2fe940b2c8.json b/rust/cloud-storage/.sqlx/query-5a1016dee1c30860cc21fed65aa3a7f7f3c37e866d38c2ab99cfeb2fe940b2c8.json new file mode 100644 index 0000000000..4a5f27b20e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5a1016dee1c30860cc21fed65aa3a7f7f3c37e866d38c2ab99cfeb2fe940b2c8.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n p.id\n FROM\n \"Project\" p\n WHERE\n p.id = ANY($1)\n AND p.\"userId\" = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "5a1016dee1c30860cc21fed65aa3a7f7f3c37e866d38c2ab99cfeb2fe940b2c8" +} diff --git a/rust/cloud-storage/.sqlx/query-5a175ba3589c494d31510ec831a37d0febf04a956ff09e0a57665211118e876a.json b/rust/cloud-storage/.sqlx/query-5a175ba3589c494d31510ec831a37d0febf04a956ff09e0a57665211118e876a.json new file mode 100644 index 0000000000..cd933c59fc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5a175ba3589c494d31510ec831a37d0febf04a956ff09e0a57665211118e876a.json @@ -0,0 +1,19 @@ +{ + "db_name": "PostgreSQL", + "query": "INSERT INTO saved_view (id, user_id, name, config, created_at, updated_at) \n VALUES ($1, $2, $3, $4, $5, $6)", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Jsonb", + "Timestamptz", + "Timestamptz" + ] + }, + "nullable": [] + }, + "hash": "5a175ba3589c494d31510ec831a37d0febf04a956ff09e0a57665211118e876a" +} diff --git a/rust/cloud-storage/.sqlx/query-5a45cbeeb6fa756b256688f6c4e05be4abae89c4eb3c5532a96b91f3d07e232f.json b/rust/cloud-storage/.sqlx/query-5a45cbeeb6fa756b256688f6c4e05be4abae89c4eb3c5532a96b91f3d07e232f.json new file mode 100644 index 0000000000..e76379715c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5a45cbeeb6fa756b256688f6c4e05be4abae89c4eb3c5532a96b91f3d07e232f.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT link_id, message_id, send_time, sent, processing\n FROM email_scheduled_messages\n WHERE message_id = $1 and sent = false\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "send_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "sent", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "processing", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false + ] + }, + "hash": "5a45cbeeb6fa756b256688f6c4e05be4abae89c4eb3c5532a96b91f3d07e232f" +} diff --git a/rust/cloud-storage/.sqlx/query-5b17a30f841372cce9989af409baf993e24bfe90d3a3553f6851b3e92c8540eb.json b/rust/cloud-storage/.sqlx/query-5b17a30f841372cce9989af409baf993e24bfe90d3a3553f6851b3e92c8540eb.json new file mode 100644 index 0000000000..113b9e269a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5b17a30f841372cce9989af409baf993e24bfe90d3a3553f6851b3e92c8540eb.json @@ -0,0 +1,63 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n entity_id,\n source_id,\n source_type as \"source_type:EntityAccessSourceType\",\n access_level as \"access_level:AccessLevel\"\n FROM entity_access\n WHERE entity_id = ANY($1) AND entity_type = 'project' AND granted_from_project_id IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "source_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "source_type:EntityAccessSourceType", + "type_info": { + "Custom": { + "name": "entity_access_source_type", + "kind": { + "Enum": [ + "channel", + "team", + "user" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "access_level:AccessLevel", + "type_info": { + "Custom": { + "name": "\"AccessLevel\"", + "kind": { + "Enum": [ + "view", + "comment", + "edit", + "owner" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + false + ] + }, + "hash": "5b17a30f841372cce9989af409baf993e24bfe90d3a3553f6851b3e92c8540eb" +} diff --git a/rust/cloud-storage/.sqlx/query-5b5a3e0954cb8130b507b73e771624fa3af4166de80e72dbcae524f63af9ae2e.json b/rust/cloud-storage/.sqlx/query-5b5a3e0954cb8130b507b73e771624fa3af4166de80e72dbcae524f63af9ae2e.json new file mode 100644 index 0000000000..18f74966db --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5b5a3e0954cb8130b507b73e771624fa3af4166de80e72dbcae524f63af9ae2e.json @@ -0,0 +1,69 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n email,\n team_id,\n team_role as \"team_role!: TeamRole\",\n invited_by,\n created_at as \"created_at!: chrono::DateTime\",\n last_sent_at as \"last_sent_at!: chrono::DateTime\"\n FROM team_invite\n WHERE team_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "team_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "team_role!: TeamRole", + "type_info": { + "Custom": { + "name": "team_role", + "kind": { + "Enum": [ + "member", + "admin", + "owner" + ] + } + } + } + }, + { + "ordinal": 4, + "name": "invited_by", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "created_at!: chrono::DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 6, + "name": "last_sent_at!: chrono::DateTime", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "5b5a3e0954cb8130b507b73e771624fa3af4166de80e72dbcae524f63af9ae2e" +} diff --git a/rust/cloud-storage/.sqlx/query-5b8af25b1f47229f74c98541bbd200ba0582eaece5a30939ed5527bc05970795.json b/rust/cloud-storage/.sqlx/query-5b8af25b1f47229f74c98541bbd200ba0582eaece5a30939ed5527bc05970795.json new file mode 100644 index 0000000000..8ae9384b70 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5b8af25b1f47229f74c98541bbd200ba0582eaece5a30939ed5527bc05970795.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n bt.id AS token_id,\n bt.bot_id,\n bt.token_hash,\n bt.token_prefix,\n bt.label,\n bt.last_used_at,\n bt.expires_at,\n bt.revoked_at,\n bt.created_at,\n b.kind\n FROM bot_tokens bt\n JOIN bots b ON b.id = bt.bot_id\n WHERE bt.token_prefix = $1\n AND b.deleted_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "token_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "bot_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "token_hash", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "token_prefix", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "label", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "last_used_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "expires_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "revoked_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "kind", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "5b8af25b1f47229f74c98541bbd200ba0582eaece5a30939ed5527bc05970795" +} diff --git a/rust/cloud-storage/.sqlx/query-5bb9c628efd6afd6b7858e11b0f470fdaf0bbd407265fabd04e1201cd3754809.json b/rust/cloud-storage/.sqlx/query-5bb9c628efd6afd6b7858e11b0f470fdaf0bbd407265fabd04e1201cd3754809.json new file mode 100644 index 0000000000..5c4bb33e1d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5bb9c628efd6afd6b7858e11b0f470fdaf0bbd407265fabd04e1201cd3754809.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n CASE\n WHEN mui.profile_picture IS NOT NULL AND mui.profile_picture != ''\n THEN mui.profile_picture\n ELSE NULL\n END AS \"profile_picture_url?: String\",\n NULLIF(TRIM(CONCAT_WS(' ', NULLIF(first_name, 'N/A'), NULLIF(last_name, 'N/A'))), '') AS \"display_name?: String\"\n FROM macro_user_info mui\n JOIN \"User\" u ON u.macro_user_id = mui.macro_user_id\n WHERE u.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "profile_picture_url?: String", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "display_name?: String", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null, + null + ] + }, + "hash": "5bb9c628efd6afd6b7858e11b0f470fdaf0bbd407265fabd04e1201cd3754809" +} diff --git a/rust/cloud-storage/.sqlx/query-5c110b698a00004a548556064f3ec7f96170613378e2fc37f78f2585a26f91f0.json b/rust/cloud-storage/.sqlx/query-5c110b698a00004a548556064f3ec7f96170613378e2fc37f78f2585a26f91f0.json new file mode 100644 index 0000000000..ab05ec9386 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5c110b698a00004a548556064f3ec7f96170613378e2fc37f78f2585a26f91f0.json @@ -0,0 +1,30 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n -- Get all entities the user has access to via entity_access\n UserAccessibleEntities AS (\n SELECT DISTINCT\n ea.entity_id,\n ea.entity_type\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n AND ($2::text IS NULL OR ea.entity_type = $2)\n ),\n -- Filter out deleted items and optionally exclude owned\n FilteredItems AS (\n SELECT uae.entity_id::text as item_id, uae.entity_type as item_type\n FROM UserAccessibleEntities uae\n LEFT JOIN \"Document\" d ON uae.entity_type = 'document' AND uae.entity_id::text = d.id\n LEFT JOIN \"Chat\" c ON uae.entity_type = 'chat' AND uae.entity_id::text = c.id\n LEFT JOIN \"Project\" p ON uae.entity_type = 'project' AND uae.entity_id::text = p.id\n WHERE\n (uae.entity_type = 'document' AND d.\"deletedAt\" IS NULL\n AND ($3 = false OR d.owner != $1)) OR\n (uae.entity_type = 'chat' AND c.\"deletedAt\" IS NULL\n AND ($3 = false OR c.\"userId\" != $1)) OR\n (uae.entity_type = 'project' AND p.\"deletedAt\" IS NULL\n AND ($3 = false OR p.\"userId\" != $1))\n )\n SELECT item_id as \"item_id!\", item_type as \"item_type!\" FROM FilteredItems\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "item_type!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Bool" + ] + }, + "nullable": [ + null, + false + ] + }, + "hash": "5c110b698a00004a548556064f3ec7f96170613378e2fc37f78f2585a26f91f0" +} diff --git a/rust/cloud-storage/.sqlx/query-5c138b3279b9ec08049316d52887064c46d9799c3d1282237646ec295890b2f7.json b/rust/cloud-storage/.sqlx/query-5c138b3279b9ec08049316d52887064c46d9799c3d1282237646ec295890b2f7.json new file mode 100644 index 0000000000..47d617747d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5c138b3279b9ec08049316d52887064c46d9799c3d1282237646ec295890b2f7.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"UploadJob\" SET \"documentId\" = $1 WHERE \"jobId\" = $2;\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "5c138b3279b9ec08049316d52887064c46d9799c3d1282237646ec295890b2f7" +} diff --git a/rust/cloud-storage/.sqlx/query-5c7aee79058a9904924fdd338d6823a3b0caf86fa2ff09ea307703a57ed72c68.json b/rust/cloud-storage/.sqlx/query-5c7aee79058a9904924fdd338d6823a3b0caf86fa2ff09ea307703a57ed72c68.json new file mode 100644 index 0000000000..452c6fa17c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5c7aee79058a9904924fdd338d6823a3b0caf86fa2ff09ea307703a57ed72c68.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_activity (id, user_id, channel_id, interacted_at)\n VALUES ($1, $2, $3, NOW())\n ON CONFLICT (user_id, channel_id) DO UPDATE\n SET interacted_at = NOW(), updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "5c7aee79058a9904924fdd338d6823a3b0caf86fa2ff09ea307703a57ed72c68" +} diff --git a/rust/cloud-storage/.sqlx/query-5ca006bf302d626774ecb05adde9c5bd7f594804d634f2d805ef47f997b270df.json b/rust/cloud-storage/.sqlx/query-5ca006bf302d626774ecb05adde9c5bd7f594804d634f2d805ef47f997b270df.json new file mode 100644 index 0000000000..daa8c66b98 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5ca006bf302d626774ecb05adde9c5bd7f594804d634f2d805ef47f997b270df.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Project\"\n WHERE id = ANY($1)", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "5ca006bf302d626774ecb05adde9c5bd7f594804d634f2d805ef47f997b270df" +} diff --git a/rust/cloud-storage/.sqlx/query-5cf744cd176688700ea98da0351a8c39369e808fdcb9ae39bb8e31ef99bbf3e8.json b/rust/cloud-storage/.sqlx/query-5cf744cd176688700ea98da0351a8c39369e808fdcb9ae39bb8e31ef99bbf3e8.json new file mode 100644 index 0000000000..28507e9701 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5cf744cd176688700ea98da0351a8c39369e808fdcb9ae39bb8e31ef99bbf3e8.json @@ -0,0 +1,66 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Thread\" t\n SET \"updatedAt\" = NOW(), \"metadata\" = $3\n WHERE t.\"documentId\" = $1 AND t.\"deletedAt\" IS NULL AND t.id = $2\n RETURNING\n t.id as thread_id, \n t.resolved, \n t.\"documentId\" as document_id, \n t.\"createdAt\"::timestamptz as created_at, \n t.\"updatedAt\"::timestamptz as updated_at, \n t.\"deletedAt\"::timestamptz as deleted_at, \n t.metadata, \n t.owner\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "resolved", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "owner", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Int8", + "Jsonb" + ] + }, + "nullable": [ + false, + false, + false, + null, + null, + null, + true, + false + ] + }, + "hash": "5cf744cd176688700ea98da0351a8c39369e808fdcb9ae39bb8e31ef99bbf3e8" +} diff --git a/rust/cloud-storage/.sqlx/query-5d7c176f88f6883ffdd41a43969a101f26817ebd80c68dbeffe7c3226ab67a41.json b/rust/cloud-storage/.sqlx/query-5d7c176f88f6883ffdd41a43969a101f26817ebd80c68dbeffe7c3226ab67a41.json new file mode 100644 index 0000000000..0010b2933a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5d7c176f88f6883ffdd41a43969a101f26817ebd80c68dbeffe7c3226ab67a41.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO call_record_participants (call_record_id, user_id, joined_at, left_at)\n SELECT $1, user_id, joined_at, left_at\n FROM call_participants\n WHERE call_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "5d7c176f88f6883ffdd41a43969a101f26817ebd80c68dbeffe7c3226ab67a41" +} diff --git a/rust/cloud-storage/.sqlx/query-5d922b5d0478e241a8b0bb3062a61448366cff0f2db4b3bade0294bf0e4a9bf0.json b/rust/cloud-storage/.sqlx/query-5d922b5d0478e241a8b0bb3062a61448366cff0f2db4b3bade0294bf0e4a9bf0.json new file mode 100644 index 0000000000..8627106f3b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5d922b5d0478e241a8b0bb3062a61448366cff0f2db4b3bade0294bf0e4a9bf0.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT name\n FROM \"Chat\"\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "5d922b5d0478e241a8b0bb3062a61448366cff0f2db4b3bade0294bf0e4a9bf0" +} diff --git a/rust/cloud-storage/.sqlx/query-5dc0e1bcbf170bd9bbf24c739411500b574a43db370a9c995599ae8aaca20f23.json b/rust/cloud-storage/.sqlx/query-5dc0e1bcbf170bd9bbf24c739411500b574a43db370a9c995599ae8aaca20f23.json new file mode 100644 index 0000000000..5301e22ea0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5dc0e1bcbf170bd9bbf24c739411500b574a43db370a9c995599ae8aaca20f23.json @@ -0,0 +1,71 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n channel_id,\n thread_id,\n sender_id,\n content,\n created_at,\n updated_at,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages\n WHERE id = $1 AND channel_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "edited_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + true, + false, + false, + false, + false, + null, + null + ] + }, + "hash": "5dc0e1bcbf170bd9bbf24c739411500b574a43db370a9c995599ae8aaca20f23" +} diff --git a/rust/cloud-storage/.sqlx/query-5df7eb0451abdb0810c1329807dab9213313858eceaea2015c5e6d584d2f168d.json b/rust/cloud-storage/.sqlx/query-5df7eb0451abdb0810c1329807dab9213313858eceaea2015c5e6d584d2f168d.json new file mode 100644 index 0000000000..cf67130e20 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5df7eb0451abdb0810c1329807dab9213313858eceaea2015c5e6d584d2f168d.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_user_history (link_id, thread_id, created_at, updated_at)\n VALUES ($1, $2, NOW(), NOW())\n ON CONFLICT (link_id, thread_id)\n DO UPDATE SET\n updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "5df7eb0451abdb0810c1329807dab9213313858eceaea2015c5e6d584d2f168d" +} diff --git a/rust/cloud-storage/.sqlx/query-5e4e9cc4a9c2a48dcd4e3988d5dbe7b95b9ceab66d44b0a0158ae65aedd79d02.json b/rust/cloud-storage/.sqlx/query-5e4e9cc4a9c2a48dcd4e3988d5dbe7b95b9ceab66d44b0a0158ae65aedd79d02.json new file mode 100644 index 0000000000..c255288f22 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5e4e9cc4a9c2a48dcd4e3988d5dbe7b95b9ceab66d44b0a0158ae65aedd79d02.json @@ -0,0 +1,95 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE scheduled_action\n SET name = $1,\n schedule = $2,\n kind = $3,\n timezone = $4,\n task = $5,\n next_run_at = $6,\n enabled = $7,\n updated_at = now()\n WHERE id = $8\n RETURNING id, owner, name, schedule, kind, timezone, task, claimed, created_at, updated_at, next_run_at, enabled\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "schedule", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "kind", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "timezone", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "task", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "claimed", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "next_run_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "enabled", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Text", + "Jsonb", + "Timestamptz", + "Bool", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false + ] + }, + "hash": "5e4e9cc4a9c2a48dcd4e3988d5dbe7b95b9ceab66d44b0a0158ae65aedd79d02" +} diff --git a/rust/cloud-storage/.sqlx/query-5e5f447067de6cef4513c80eae341ba63241b13c30a3413e83f0206497a5591a.json b/rust/cloud-storage/.sqlx/query-5e5f447067de6cef4513c80eae341ba63241b13c30a3413e83f0206497a5591a.json new file mode 100644 index 0000000000..a24328f55e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5e5f447067de6cef4513c80eae341ba63241b13c30a3413e83f0206497a5591a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*) as count\n FROM \"BomPart\"\n WHERE sha = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "5e5f447067de6cef4513c80eae341ba63241b13c30a3413e83f0206497a5591a" +} diff --git a/rust/cloud-storage/.sqlx/query-5eabbc475e918d8ff312b3c8a4197f5cbc314f1462ba6368aa297ff3758f5e61.json b/rust/cloud-storage/.sqlx/query-5eabbc475e918d8ff312b3c8a4197f5cbc314f1462ba6368aa297ff3758f5e61.json new file mode 100644 index 0000000000..525c2a1b1d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5eabbc475e918d8ff312b3c8a4197f5cbc314f1462ba6368aa297ff3758f5e61.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO notification_email_sent (user_id)\n VALUES ($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "5eabbc475e918d8ff312b3c8a4197f5cbc314f1462ba6368aa297ff3758f5e61" +} diff --git a/rust/cloud-storage/.sqlx/query-5ec52bf99ec6fbfa8759ae070b48113cdb5f9a4526c72be1fcce6b3bb2e88d2a.json b/rust/cloud-storage/.sqlx/query-5ec52bf99ec6fbfa8759ae070b48113cdb5f9a4526c72be1fcce6b3bb2e88d2a.json new file mode 100644 index 0000000000..1a727dbbb9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5ec52bf99ec6fbfa8759ae070b48113cdb5f9a4526c72be1fcce6b3bb2e88d2a.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM notification\n WHERE event_item_id = $1 AND event_item_type = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "5ec52bf99ec6fbfa8759ae070b48113cdb5f9a4526c72be1fcce6b3bb2e88d2a" +} diff --git a/rust/cloud-storage/.sqlx/query-5ee7a600e71709918f23db0066f39b2a7a87880e5a9c6aa565ac85e0efdde85d.json b/rust/cloud-storage/.sqlx/query-5ee7a600e71709918f23db0066f39b2a7a87880e5a9c6aa565ac85e0efdde85d.json new file mode 100644 index 0000000000..db49ce7734 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5ee7a600e71709918f23db0066f39b2a7a87880e5a9c6aa565ac85e0efdde85d.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT SUM(ead.size)::BIGINT\n FROM email_attachments_drafts ead\n JOIN email_messages m ON ead.draft_id = m.id\n WHERE ead.draft_id = $1 AND m.link_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "sum", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "5ee7a600e71709918f23db0066f39b2a7a87880e5a9c6aa565ac85e0efdde85d" +} diff --git a/rust/cloud-storage/.sqlx/query-5f05ad6ca76854ac7e9257b63a5ce27e9f8c6a5ba43888d9e357b10d95e0f6f2.json b/rust/cloud-storage/.sqlx/query-5f05ad6ca76854ac7e9257b63a5ce27e9f8c6a5ba43888d9e357b10d95e0f6f2.json new file mode 100644 index 0000000000..964ba5a296 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5f05ad6ca76854ac7e9257b63a5ce27e9f8c6a5ba43888d9e357b10d95e0f6f2.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n di.sha\n FROM\n \"DocumentInstance\" di\n WHERE di.\"documentId\" = $1 AND di.id = $2\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "sha", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "5f05ad6ca76854ac7e9257b63a5ce27e9f8c6a5ba43888d9e357b10d95e0f6f2" +} diff --git a/rust/cloud-storage/.sqlx/query-5f8bb3fa254adef0d6b582d2d964d9f77f55d10e070be80de74d22e18ba8a7d4.json b/rust/cloud-storage/.sqlx/query-5f8bb3fa254adef0d6b582d2d964d9f77f55d10e070be80de74d22e18ba8a7d4.json new file mode 100644 index 0000000000..318dfc48ff --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5f8bb3fa254adef0d6b582d2d964d9f77f55d10e070be80de74d22e18ba8a7d4.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT mui.profile_picture\n FROM macro_user_info mui\n JOIN \"User\" u ON mui.macro_user_id = u.macro_user_id\n WHERE u.id = $1 AND mui.profile_picture IS NOT NULL\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "profile_picture", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true + ] + }, + "hash": "5f8bb3fa254adef0d6b582d2d964d9f77f55d10e070be80de74d22e18ba8a7d4" +} diff --git a/rust/cloud-storage/.sqlx/query-5f8f702012590c04c79b43fdb82d0252976b275c608a3eb96e3043a1a02d452f.json b/rust/cloud-storage/.sqlx/query-5f8f702012590c04c79b43fdb82d0252976b275c608a3eb96e3043a1a02d452f.json new file mode 100644 index 0000000000..f34fbaf789 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5f8f702012590c04c79b43fdb82d0252976b275c608a3eb96e3043a1a02d452f.json @@ -0,0 +1,47 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id,\n d.name,\n d.owner,\n d.\"fileType\" as \"file_type!\",\n di.id as \"document_version_id?\"\n FROM\n \"Document\" d\n LEFT JOIN \"DocumentText\" dt ON d.id = dt.\"documentId\"\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" ASC\n LIMIT 1\n ) di ON true\n WHERE\n d.\"deletedAt\" IS NULL\n AND dt.\"documentId\" IS NULL\n AND d.\"fileType\" IS NOT NULL\n ORDER BY d.\"createdAt\" DESC\n LIMIT $1 OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "file_type!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "document_version_id?", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + true, + false + ] + }, + "hash": "5f8f702012590c04c79b43fdb82d0252976b275c608a3eb96e3043a1a02d452f" +} diff --git a/rust/cloud-storage/.sqlx/query-5f9f23e45c696db3baa3b172efb66ba931aeb9036344782bd4a5e277df2c7ce2.json b/rust/cloud-storage/.sqlx/query-5f9f23e45c696db3baa3b172efb66ba931aeb9036344782bd4a5e277df2c7ce2.json new file mode 100644 index 0000000000..026cb1931b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5f9f23e45c696db3baa3b172efb66ba931aeb9036344782bd4a5e277df2c7ce2.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.content\n FROM\n \"DocumentText\" d\n WHERE\n d.\"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "content", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "5f9f23e45c696db3baa3b172efb66ba931aeb9036344782bd4a5e277df2c7ce2" +} diff --git a/rust/cloud-storage/.sqlx/query-5fabf029c6dd06505963dab2b60eccb8ea77088f535970dbcf5f80d57a9a4c5b.json b/rust/cloud-storage/.sqlx/query-5fabf029c6dd06505963dab2b60eccb8ea77088f535970dbcf5f80d57a9a4c5b.json new file mode 100644 index 0000000000..c853ae04b7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5fabf029c6dd06505963dab2b60eccb8ea77088f535970dbcf5f80d57a9a4c5b.json @@ -0,0 +1,110 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n id,\n organization_id,\n user_id,\n display_name,\n data_type as \"data_type: DataType\",\n is_multi_select,\n specific_entity_type as \"specific_entity_type: Option\",\n created_at,\n updated_at,\n is_system\n FROM property_definitions\n WHERE id = $1\n AND is_system = FALSE\n AND (\n user_id = $2\n OR ($3::int IS NOT NULL AND organization_id = $3)\n )\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "organization_id", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "display_name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "data_type: DataType", + "type_info": { + "Custom": { + "name": "property_data_type", + "kind": { + "Enum": [ + "BOOLEAN", + "DATE", + "NUMBER", + "STRING", + "SELECT_NUMBER", + "SELECT_STRING", + "ENTITY", + "LINK" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_multi_select", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "specific_entity_type: Option", + "type_info": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "is_system", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Int4" + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + false, + true, + false, + false, + false + ] + }, + "hash": "5fabf029c6dd06505963dab2b60eccb8ea77088f535970dbcf5f80d57a9a4c5b" +} diff --git a/rust/cloud-storage/.sqlx/query-5fc28ed3d53550bec9f1d5fdd1c330f4678e3d3d44f1369bdd0b31f21600fdb1.json b/rust/cloud-storage/.sqlx/query-5fc28ed3d53550bec9f1d5fdd1c330f4678e3d3d44f1369bdd0b31f21600fdb1.json new file mode 100644 index 0000000000..fcde9acfef --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5fc28ed3d53550bec9f1d5fdd1c330f4678e3d3d44f1369bdd0b31f21600fdb1.json @@ -0,0 +1,128 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH spam_labels AS (\n SELECT id, link_id FROM email_labels WHERE link_id = ANY($1) AND name = 'SPAM'\n ),\n trash_labels AS (\n SELECT id, link_id FROM email_labels WHERE link_id = ANY($1) AND name = 'TRASH'\n ),\n important_labels AS (\n SELECT id, link_id FROM email_labels WHERE link_id = ANY($1) AND name = 'IMPORTANT'\n )\n SELECT\n t.id,\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN important_labels il ON ml.label_id = il.id\n WHERE m_imp.thread_id = t.id\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Efficiently find, sort, and limit the top N+1 threads.\n -- This subquery only touches `threads` and `user_history`, making it very fast.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.inbox_visible,\n t.is_read,\n t.project_id,\n t.latest_non_spam_message_ts AS created_at,\n t.latest_non_spam_message_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_non_spam_message_ts)\n ELSE t.latest_non_spam_message_ts\n END AS effective_ts\n FROM email_threads t\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n t.link_id = ANY($1)\n AND t.latest_non_spam_message_ts IS NOT NULL\n\n -- Cursor logic is moved inside for maximum efficiency\n AND (($3::timestamptz IS NULL) OR (\n -- This CASE must exactly match the one that defines `effective_ts`\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_non_spam_message_ts)\n ELSE t.latest_non_spam_message_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find its latest non-SPAM/TRASH message.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.is_draft,\n m.from_contact_id,\n m.from_name\n FROM email_messages m\n WHERE m.thread_id = t.id\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN spam_labels sl ON ml.label_id = sl.id\n WHERE ml.message_id = m.id\n )\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN trash_labels tl ON ml.label_id = tl.id\n WHERE ml.message_id = m.id\n )\n ORDER BY m.internal_date_ts DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details for the final result set.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n ORDER BY t.effective_ts DESC, t.updated_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "inbox_visible", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "sort_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "viewed_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "name?", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "snippet?", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 12, + "name": "is_important!", + "type_info": "Bool" + }, + { + "ordinal": 13, + "name": "sender_email?", + "type_info": "Varchar" + }, + { + "ordinal": 14, + "name": "sender_name?", + "type_info": "Varchar" + }, + { + "ordinal": 15, + "name": "sender_photo_url?", + "type_info": "Text" + }, + { + "ordinal": 16, + "name": "owner_id!", + "type_info": "Text" + }, + { + "ordinal": 17, + "name": "link_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "Int8", + "Timestamptz", + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + true, + false, + false, + null, + true, + true, + true, + false, + true, + true, + false, + null, + false, + null, + true, + false, + false + ] + }, + "hash": "5fc28ed3d53550bec9f1d5fdd1c330f4678e3d3d44f1369bdd0b31f21600fdb1" +} diff --git a/rust/cloud-storage/.sqlx/query-5fd1abfdae31c22ce5c71a9c3e9607566b99dbd819d7bca5a88e62fac00098d4.json b/rust/cloud-storage/.sqlx/query-5fd1abfdae31c22ce5c71a9c3e9607566b99dbd819d7bca5a88e62fac00098d4.json new file mode 100644 index 0000000000..ad058d2085 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5fd1abfdae31c22ce5c71a9c3e9607566b99dbd819d7bca5a88e62fac00098d4.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE notification\n SET apns_collapse_key = $2\n WHERE id = $1\n RETURNING\n event_item_id,\n event_item_type,\n notification_event_type,\n apns_collapse_key as \"apns_collapse_key!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "event_item_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "event_item_type", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "notification_event_type", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "apns_collapse_key!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true + ] + }, + "hash": "5fd1abfdae31c22ce5c71a9c3e9607566b99dbd819d7bca5a88e62fac00098d4" +} diff --git a/rust/cloud-storage/.sqlx/query-5fd401a3c1bd6de73881967420cd5056b6e87465a3e8c7bcde2db81b75ba2f57.json b/rust/cloud-storage/.sqlx/query-5fd401a3c1bd6de73881967420cd5056b6e87465a3e8c7bcde2db81b75ba2f57.json new file mode 100644 index 0000000000..de122edc97 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5fd401a3c1bd6de73881967420cd5056b6e87465a3e8c7bcde2db81b75ba2f57.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM foreign_entity\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "5fd401a3c1bd6de73881967420cd5056b6e87465a3e8c7bcde2db81b75ba2f57" +} diff --git a/rust/cloud-storage/.sqlx/query-5ff5a0e3731dc62354f69e26961fee699c6de82cfa14ba2a403486731366d664.json b/rust/cloud-storage/.sqlx/query-5ff5a0e3731dc62354f69e26961fee699c6de82cfa14ba2a403486731366d664.json new file mode 100644 index 0000000000..e22db21cde --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5ff5a0e3731dc62354f69e26961fee699c6de82cfa14ba2a403486731366d664.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT r.emoji, r.user_id, r.created_at\n FROM comms_reactions r\n JOIN comms_messages m ON m.id = r.message_id\n WHERE r.message_id = $1 AND m.channel_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "emoji", + "type_info": "Varchar" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "5ff5a0e3731dc62354f69e26961fee699c6de82cfa14ba2a403486731366d664" +} diff --git a/rust/cloud-storage/.sqlx/query-5ffee439386fd24fee2bfa20caa76b882f5be1d44a2a06a71783418fc5ef381b.json b/rust/cloud-storage/.sqlx/query-5ffee439386fd24fee2bfa20caa76b882f5be1d44a2a06a71783418fc5ef381b.json new file mode 100644 index 0000000000..ac050656e7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-5ffee439386fd24fee2bfa20caa76b882f5be1d44a2a06a71783418fc5ef381b.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n SELECT $1, $2, u.user_id, 'user', $3\n FROM UNNEST($4::text[]) as u(user_id)\n ON CONFLICT (entity_id, entity_type, source_id, source_type)\n WHERE granted_from_project_id IS NULL\n AND access_level != 'owner' -- this prevents us from overriding the owner user\n DO UPDATE SET access_level = EXCLUDED.access_level, updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + { + "Custom": { + "name": "\"AccessLevel\"", + "kind": { + "Enum": [ + "view", + "comment", + "edit", + "owner" + ] + } + } + }, + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "5ffee439386fd24fee2bfa20caa76b882f5be1d44a2a06a71783418fc5ef381b" +} diff --git a/rust/cloud-storage/.sqlx/query-601165c041981d75e53661a10ffd67a55ae4e7f2cf8bdde6ad1c834196934cf4.json b/rust/cloud-storage/.sqlx/query-601165c041981d75e53661a10ffd67a55ae4e7f2cf8bdde6ad1c834196934cf4.json new file mode 100644 index 0000000000..684abe4cf8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-601165c041981d75e53661a10ffd67a55ae4e7f2cf8bdde6ad1c834196934cf4.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM macro_user WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "601165c041981d75e53661a10ffd67a55ae4e7f2cf8bdde6ad1c834196934cf4" +} diff --git a/rust/cloud-storage/.sqlx/query-60160128531d4bd143edb6e3af105954c5f749b5a76592d8ba8bd78d3ed410cc.json b/rust/cloud-storage/.sqlx/query-60160128531d4bd143edb6e3af105954c5f749b5a76592d8ba8bd78d3ed410cc.json new file mode 100644 index 0000000000..07556c0356 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-60160128531d4bd143edb6e3af105954c5f749b5a76592d8ba8bd78d3ed410cc.json @@ -0,0 +1,47 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id, url, server_name, credentials, enabled\n FROM mcp_servers\n WHERE user_id = $1 AND url = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "url", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "server_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "credentials", + "type_info": "Bytea" + }, + { + "ordinal": 4, + "name": "enabled", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + false + ] + }, + "hash": "60160128531d4bd143edb6e3af105954c5f749b5a76592d8ba8bd78d3ed410cc" +} diff --git a/rust/cloud-storage/.sqlx/query-6038d459d2d8e60479180f5b8a756380bda195f4769b6420e601ed147a9439f9.json b/rust/cloud-storage/.sqlx/query-6038d459d2d8e60479180f5b8a756380bda195f4769b6420e601ed147a9439f9.json new file mode 100644 index 0000000000..7f19805b0c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6038d459d2d8e60479180f5b8a756380bda195f4769b6420e601ed147a9439f9.json @@ -0,0 +1,71 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.\"id\" as \"item_id!\",\n c.created_at as \"created_at!\",\n c.updated_at as \"updated_at!\",\n uh.viewed_at as \"viewed_at?\",\n uh.interacted_at as \"interacted_at?\",\n c.owner_id as \"user_id\",\n c.channel_type AS \"channel_type: ChannelType\"\n FROM\n comms_channels c\n LEFT JOIN\n comms_activity uh ON uh.channel_id = c.id\n AND uh.user_id = $1\n WHERE\n c.id = ANY($2)\n ORDER BY\n c.updated_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "viewed_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "interacted_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "channel_type: ChannelType", + "type_info": { + "Custom": { + "name": "comms_channel_type", + "kind": { + "Enum": [ + "public", + "private", + "direct_message", + "team" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Text", + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + false, + false + ] + }, + "hash": "6038d459d2d8e60479180f5b8a756380bda195f4769b6420e601ed147a9439f9" +} diff --git a/rust/cloud-storage/.sqlx/query-60707c986f365c7b49d1938285b601338c1d98e45b630d1a3e1622fb16ad58b6.json b/rust/cloud-storage/.sqlx/query-60707c986f365c7b49d1938285b601338c1d98e45b630d1a3e1622fb16ad58b6.json new file mode 100644 index 0000000000..395a3e1776 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-60707c986f365c7b49d1938285b601338c1d98e45b630d1a3e1622fb16ad58b6.json @@ -0,0 +1,59 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id,\n m.link_id,\n m.thread_id,\n m.provider_thread_id,\n m.headers_jsonb,\n m.is_sent,\n m.is_draft\n FROM email_messages m\n WHERE m.link_id = $1\n AND m.is_draft = true\n AND jsonb_path_exists(\n m.headers_jsonb,\n '$[*] ? (@.\"Macro-In-Reply-To\" == $macro_uuid)'::jsonpath,\n jsonb_build_object('macro_uuid', $2::text)\n )\n ORDER BY m.created_at DESC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 5, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "is_draft", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + false, + false + ] + }, + "hash": "60707c986f365c7b49d1938285b601338c1d98e45b630d1a3e1622fb16ad58b6" +} diff --git a/rust/cloud-storage/.sqlx/query-607eecc4c046c7bae3bdcdc4e20a5bfa78673bf04979c01365b9e9a35398125f.json b/rust/cloud-storage/.sqlx/query-607eecc4c046c7bae3bdcdc4e20a5bfa78673bf04979c01365b9e9a35398125f.json new file mode 100644 index 0000000000..29844bb1d6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-607eecc4c046c7bae3bdcdc4e20a5bfa78673bf04979c01365b9e9a35398125f.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"sharePermissionId\" as \"share_permission_id!\"\n FROM \"EmailThreadPermission\"\n WHERE \"threadId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "607eecc4c046c7bae3bdcdc4e20a5bfa78673bf04979c01365b9e9a35398125f" +} diff --git a/rust/cloud-storage/.sqlx/query-609f0f7ffb41618435bfabd82f782666220cf9bf24918ba7c7b9fce1fcd5783e.json b/rust/cloud-storage/.sqlx/query-609f0f7ffb41618435bfabd82f782666220cf9bf24918ba7c7b9fce1fcd5783e.json new file mode 100644 index 0000000000..aceea5d3e6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-609f0f7ffb41618435bfabd82f782666220cf9bf24918ba7c7b9fce1fcd5783e.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH per_speaker AS (\n SELECT\n u.macro_user_id,\n COUNT(*) AS total_segments,\n COUNT(t.diarized_speaker_id) AS diarized_segments,\n COUNT(DISTINCT t.diarized_speaker_id) AS distinct_diarized_speaker_ids,\n ARRAY_AGG(DISTINCT t.voice_id) FILTER (WHERE t.voice_id IS NOT NULL) AS voice_ids,\n MIN(t.sequence_num) AS first_sequence_num\n FROM call_record_transcripts t\n JOIN \"User\" u\n ON u.id = t.speaker_id\n AND u.macro_user_id IS NOT NULL\n WHERE t.call_record_id = $1\n GROUP BY t.speaker_id, u.macro_user_id\n )\n SELECT macro_user_id AS \"macro_user_id!\", voices.voice_id AS \"voice_id!\"\n FROM per_speaker\n CROSS JOIN LATERAL UNNEST(voice_ids) AS voices(voice_id)\n WHERE total_segments = diarized_segments\n AND distinct_diarized_speaker_ids = 1\n ORDER BY first_sequence_num ASC, voices.voice_id ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "voice_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + null + ] + }, + "hash": "609f0f7ffb41618435bfabd82f782666220cf9bf24918ba7c7b9fce1fcd5783e" +} diff --git a/rust/cloud-storage/.sqlx/query-60d9e2a257fd628f345cb615e9d6d201ca5190bdbca1c90001a98c46b789771f.json b/rust/cloud-storage/.sqlx/query-60d9e2a257fd628f345cb615e9d6d201ca5190bdbca1c90001a98c46b789771f.json new file mode 100644 index 0000000000..287c0eb3ce --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-60d9e2a257fd628f345cb615e9d6d201ca5190bdbca1c90001a98c46b789771f.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT schedule, timezone\n FROM scheduled_action\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "schedule", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "timezone", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "60d9e2a257fd628f345cb615e9d6d201ca5190bdbca1c90001a98c46b789771f" +} diff --git a/rust/cloud-storage/.sqlx/query-6107da3c9e3018aed3dce2c0a29baa584754659223dc45b3adbf30959b7f739e.json b/rust/cloud-storage/.sqlx/query-6107da3c9e3018aed3dce2c0a29baa584754659223dc45b3adbf30959b7f739e.json new file mode 100644 index 0000000000..70975b0a69 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6107da3c9e3018aed3dce2c0a29baa584754659223dc45b3adbf30959b7f739e.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"SharePermission\"\n WHERE id IN (\n SELECT \"sharePermissionId\"\n FROM \"ChatPermission\"\n WHERE \"chatId\" = ANY($1)\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "6107da3c9e3018aed3dce2c0a29baa584754659223dc45b3adbf30959b7f739e" +} diff --git a/rust/cloud-storage/.sqlx/query-61246005cb69889a67ac46d2032f4fe9c1da7b19594f1b7dc59f2ed0a613dec1.json b/rust/cloud-storage/.sqlx/query-61246005cb69889a67ac46d2032f4fe9c1da7b19594f1b7dc59f2ed0a613dec1.json new file mode 100644 index 0000000000..ccd0aadea5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-61246005cb69889a67ac46d2032f4fe9c1da7b19594f1b7dc59f2ed0a613dec1.json @@ -0,0 +1,74 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_messages (id, channel_id, sender_id, content, thread_id)\n VALUES ($1, $2, $3, $4, $5)\n RETURNING\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at as \"edited_at: chrono::DateTime\",\n deleted_at as \"deleted_at: chrono::DateTime\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "edited_at: chrono::DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 8, + "name": "deleted_at: chrono::DateTime", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text", + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + true + ] + }, + "hash": "61246005cb69889a67ac46d2032f4fe9c1da7b19594f1b7dc59f2ed0a613dec1" +} diff --git a/rust/cloud-storage/.sqlx/query-614ef7fa61ce3e4521e8923ebe706ae249491210d011843f13d67214f65565c3.json b/rust/cloud-storage/.sqlx/query-614ef7fa61ce3e4521e8923ebe706ae249491210d011843f13d67214f65565c3.json new file mode 100644 index 0000000000..989dd359c2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-614ef7fa61ce3e4521e8923ebe706ae249491210d011843f13d67214f65565c3.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_threads (id, provider_id, link_id, inbox_visible, is_read, latest_inbound_message_ts,\n latest_outbound_message_ts, latest_non_spam_message_ts)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n ON CONFLICT (link_id, provider_id) WHERE provider_id IS NOT NULL DO UPDATE\n SET\n latest_inbound_message_ts = EXCLUDED.latest_inbound_message_ts,\n updated_at = NOW()\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Uuid", + "Bool", + "Bool", + "Timestamptz", + "Timestamptz", + "Timestamptz" + ] + }, + "nullable": [ + false + ] + }, + "hash": "614ef7fa61ce3e4521e8923ebe706ae249491210d011843f13d67214f65565c3" +} diff --git a/rust/cloud-storage/.sqlx/query-6177b5abe20800c5fbfb07f78f44f933169f5ee39129b4bd6fa372311cdc15bb.json b/rust/cloud-storage/.sqlx/query-6177b5abe20800c5fbfb07f78f44f933169f5ee39129b4bd6fa372311cdc15bb.json new file mode 100644 index 0000000000..bcd3092856 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6177b5abe20800c5fbfb07f78f44f933169f5ee39129b4bd6fa372311cdc15bb.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_channel_participants (channel_id, user_id, role, left_at)\n VALUES ($1, $2, 'member'::comms_participant_role, NULL)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "6177b5abe20800c5fbfb07f78f44f933169f5ee39129b4bd6fa372311cdc15bb" +} diff --git a/rust/cloud-storage/.sqlx/query-61d663d08e05ea919df584b273c67e2d99c3981222a87e823892706e4b9354ac.json b/rust/cloud-storage/.sqlx/query-61d663d08e05ea919df584b273c67e2d99c3981222a87e823892706e4b9354ac.json new file mode 100644 index 0000000000..a25b42db28 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-61d663d08e05ea919df584b273c67e2d99c3981222a87e823892706e4b9354ac.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE crm_companies\n SET updated_at = now(),\n first_interaction = CASE\n WHEN $4 THEN LEAST(first_interaction, $2)\n ELSE first_interaction\n END,\n last_interaction = GREATEST(last_interaction, $3)\n WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Timestamptz", + "Timestamptz", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "61d663d08e05ea919df584b273c67e2d99c3981222a87e823892706e4b9354ac" +} diff --git a/rust/cloud-storage/.sqlx/query-61e82a1be0d1352b8a1147bbff2dc3bd8e945b75380f112bb1118491b3d03f96.json b/rust/cloud-storage/.sqlx/query-61e82a1be0d1352b8a1147bbff2dc3bd8e945b75380f112bb1118491b3d03f96.json new file mode 100644 index 0000000000..d8e19e46a0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-61e82a1be0d1352b8a1147bbff2dc3bd8e945b75380f112bb1118491b3d03f96.json @@ -0,0 +1,50 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO team_invite (id, team_id, email, team_role, invited_by, created_at, last_sent_at)\n SELECT\n t.id,\n $1::uuid,\n t.email,\n $2,\n $3::text,\n NOW(),\n NOW()\n FROM UNNEST($4::uuid[], $5::text[], $6::text[]) AS t(id, email, user_id)\n WHERE NOT EXISTS (\n SELECT 1 FROM team_invite ti\n WHERE ti.team_id = $1 AND ti.email = t.email\n )\n AND NOT EXISTS (\n SELECT 1 FROM team_user tu\n WHERE tu.team_id = $1 AND tu.user_id = t.user_id\n )\n RETURNING id, team_id, email\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "team_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "email", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + { + "Custom": { + "name": "team_role", + "kind": { + "Enum": [ + "member", + "admin", + "owner" + ] + } + } + }, + "Text", + "UuidArray", + "TextArray", + "TextArray" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "61e82a1be0d1352b8a1147bbff2dc3bd8e945b75380f112bb1118491b3d03f96" +} diff --git a/rust/cloud-storage/.sqlx/query-6206a64301c4a62de624c6cb0db3c1053c050c7529496a73e3cf74d728f5b6ff.json b/rust/cloud-storage/.sqlx/query-6206a64301c4a62de624c6cb0db3c1053c050c7529496a73e3cf74d728f5b6ff.json new file mode 100644 index 0000000000..0dc7579362 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6206a64301c4a62de624c6cb0db3c1053c050c7529496a73e3cf74d728f5b6ff.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"RolesOnUsers\" (\"userId\", \"roleId\")\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "6206a64301c4a62de624c6cb0db3c1053c050c7529496a73e3cf74d728f5b6ff" +} diff --git a/rust/cloud-storage/.sqlx/query-621186dcec072b603a5f3d7b9e987a1638589d539c60d9dc5c2ab0865ff062d6.json b/rust/cloud-storage/.sqlx/query-621186dcec072b603a5f3d7b9e987a1638589d539c60d9dc5c2ab0865ff062d6.json new file mode 100644 index 0000000000..d0a749ebd2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-621186dcec072b603a5f3d7b9e987a1638589d539c60d9dc5c2ab0865ff062d6.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id FROM user_mute_notification\n WHERE user_id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "621186dcec072b603a5f3d7b9e987a1638589d539c60d9dc5c2ab0865ff062d6" +} diff --git a/rust/cloud-storage/.sqlx/query-625ee33d48768e369ee1fe3abe27811ad04313b1aa31f4b51abe5fd3bf569674.json b/rust/cloud-storage/.sqlx/query-625ee33d48768e369ee1fe3abe27811ad04313b1aa31f4b51abe5fd3bf569674.json new file mode 100644 index 0000000000..d374c2f79f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-625ee33d48768e369ee1fe3abe27811ad04313b1aa31f4b51abe5fd3bf569674.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM user_notification_type_preference\n WHERE user_id = $1 AND notification_event_type = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "625ee33d48768e369ee1fe3abe27811ad04313b1aa31f4b51abe5fd3bf569674" +} diff --git a/rust/cloud-storage/.sqlx/query-62e6fee27bdd5c6fb4d7d7037977655784e36ba1b3285b607ff59d9d88829f7a.json b/rust/cloud-storage/.sqlx/query-62e6fee27bdd5c6fb4d7d7037977655784e36ba1b3285b607ff59d9d88829f7a.json new file mode 100644 index 0000000000..ab0474981a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-62e6fee27bdd5c6fb4d7d7037977655784e36ba1b3285b607ff59d9d88829f7a.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM github_app_installation\n WHERE source_id = $1\n AND source_type = 'team'::github_app_installation_source_type\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "62e6fee27bdd5c6fb4d7d7037977655784e36ba1b3285b607ff59d9d88829f7a" +} diff --git a/rust/cloud-storage/.sqlx/query-6343ce39e05b97056a1e0f7d24f929f7aac2269af2ec0830f98558045826576f.json b/rust/cloud-storage/.sqlx/query-6343ce39e05b97056a1e0f7d24f929f7aac2269af2ec0830f98558045826576f.json new file mode 100644 index 0000000000..c06bc55385 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6343ce39e05b97056a1e0f7d24f929f7aac2269af2ec0830f98558045826576f.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT content\n FROM \"ChatMessage\"\n WHERE \"id\" = $1 AND \"chatId\" = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "content", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "6343ce39e05b97056a1e0f7d24f929f7aac2269af2ec0830f98558045826576f" +} diff --git a/rust/cloud-storage/.sqlx/query-63492b018803ce26db5891964a0f52f37d2f54bd8243265c6561f4423af8617c.json b/rust/cloud-storage/.sqlx/query-63492b018803ce26db5891964a0f52f37d2f54bd8243265c6561f4423af8617c.json new file mode 100644 index 0000000000..6d97183829 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-63492b018803ce26db5891964a0f52f37d2f54bd8243265c6561f4423af8617c.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO entity_properties (id, entity_id, entity_type, property_definition_id, values)\n SELECT \n u.id,\n u.entity_id,\n 'TASK'::property_entity_type,\n u.property_definition_id,\n NULL\n FROM UNNEST(\n $1::UUID[],\n $2::TEXT[],\n $3::UUID[]\n ) AS u(id, entity_id, property_definition_id)\n ON CONFLICT (entity_id, entity_type, property_definition_id)\n DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "TextArray", + "UuidArray" + ] + }, + "nullable": [] + }, + "hash": "63492b018803ce26db5891964a0f52f37d2f54bd8243265c6561f4423af8617c" +} diff --git a/rust/cloud-storage/.sqlx/query-638409c05db350cedd85b28991817b43793526453437ac01d9d20df52ff87ced.json b/rust/cloud-storage/.sqlx/query-638409c05db350cedd85b28991817b43793526453437ac01d9d20df52ff87ced.json new file mode 100644 index 0000000000..b36019aa97 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-638409c05db350cedd85b28991817b43793526453437ac01d9d20df52ff87ced.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n \"userId\" as user_id\n FROM\n \"Project\"\n WHERE\n \"deletedAt\" IS NULL\n ORDER BY\n \"createdAt\" DESC\n LIMIT $1 OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "638409c05db350cedd85b28991817b43793526453437ac01d9d20df52ff87ced" +} diff --git a/rust/cloud-storage/.sqlx/query-63a478f0ae0ec6d9e9cb4c3de55a880b859bc61f745087e067f6b05e6878cc04.json b/rust/cloud-storage/.sqlx/query-63a478f0ae0ec6d9e9cb4c3de55a880b859bc61f745087e067f6b05e6878cc04.json new file mode 100644 index 0000000000..31007ad5b4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-63a478f0ae0ec6d9e9cb4c3de55a880b859bc61f745087e067f6b05e6878cc04.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"organizationId\" as id\n FROM \"OrganizationIT\"\n WHERE \"email\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "63a478f0ae0ec6d9e9cb4c3de55a880b859bc61f745087e067f6b05e6878cc04" +} diff --git a/rust/cloud-storage/.sqlx/query-63a5819e9b22bf76402a3afcdfb6bc6cd3a96d84e15909c85c8e6ec4a8b69e42.json b/rust/cloud-storage/.sqlx/query-63a5819e9b22bf76402a3afcdfb6bc6cd3a96d84e15909c85c8e6ec4a8b69e42.json new file mode 100644 index 0000000000..ac6c699e55 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-63a5819e9b22bf76402a3afcdfb6bc6cd3a96d84e15909c85c8e6ec4a8b69e42.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO user_mute_notification (user_id) VALUES ($1)\n ON CONFLICT (user_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "63a5819e9b22bf76402a3afcdfb6bc6cd3a96d84e15909c85c8e6ec4a8b69e42" +} diff --git a/rust/cloud-storage/.sqlx/query-63b8a0bc87e00d95ca046f0602a14ef73e9c8ebffb19a40ed7e059004d9bdb9a.json b/rust/cloud-storage/.sqlx/query-63b8a0bc87e00d95ca046f0602a14ef73e9c8ebffb19a40ed7e059004d9bdb9a.json new file mode 100644 index 0000000000..2e97e18d29 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-63b8a0bc87e00d95ca046f0602a14ef73e9c8ebffb19a40ed7e059004d9bdb9a.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM comms_channel_participants\n WHERE user_id = $2\n AND channel_id IN (\n SELECT id FROM comms_channels WHERE team_id = $1\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "63b8a0bc87e00d95ca046f0602a14ef73e9c8ebffb19a40ed7e059004d9bdb9a" +} diff --git a/rust/cloud-storage/.sqlx/query-63ca13cc79c27b5267ebbf53491b657ca7671e1ab9d1a4691372693a9f9a4ff8.json b/rust/cloud-storage/.sqlx/query-63ca13cc79c27b5267ebbf53491b657ca7671e1ab9d1a4691372693a9f9a4ff8.json new file mode 100644 index 0000000000..a110bb67c6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-63ca13cc79c27b5267ebbf53491b657ca7671e1ab9d1a4691372693a9f9a4ff8.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT cp.user_id\n FROM comms_channel_participants cp\n WHERE cp.channel_id = $1 AND cp.left_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "63ca13cc79c27b5267ebbf53491b657ca7671e1ab9d1a4691372693a9f9a4ff8" +} diff --git a/rust/cloud-storage/.sqlx/query-63eecd3605682482786210e65ac14cd04b67b741bac7bac67471bcfe21205d80.json b/rust/cloud-storage/.sqlx/query-63eecd3605682482786210e65ac14cd04b67b741bac7bac67471bcfe21205d80.json new file mode 100644 index 0000000000..8437d9133a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-63eecd3605682482786210e65ac14cd04b67b741bac7bac67471bcfe21205d80.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n eaf.attachment_id,\n eaf.message_id AS draft_id,\n ea.provider_attachment_id,\n orig_msg.provider_id AS \"message_provider_id!\",\n ea.filename,\n ea.mime_type,\n ea.size_bytes\n FROM email_attachments_fwd eaf\n JOIN email_attachments ea ON eaf.attachment_id = ea.id\n JOIN email_messages orig_msg ON ea.message_id = orig_msg.id\n WHERE eaf.message_id = ANY($1)\n ORDER BY eaf.message_id, ea.filename ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "attachment_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "draft_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_attachment_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "message_provider_id!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "filename", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "mime_type", + "type_info": "Varchar" + }, + { + "ordinal": 6, + "name": "size_bytes", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true + ] + }, + "hash": "63eecd3605682482786210e65ac14cd04b67b741bac7bac67471bcfe21205d80" +} diff --git a/rust/cloud-storage/.sqlx/query-6405181c054f5b865e4dafb1a665d33e0f3cdd3a3bab22f0fd1eb5e71c46a935.json b/rust/cloud-storage/.sqlx/query-6405181c054f5b865e4dafb1a665d33e0f3cdd3a3bab22f0fd1eb5e71c46a935.json new file mode 100644 index 0000000000..03bae7e074 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6405181c054f5b865e4dafb1a665d33e0f3cdd3a3bab22f0fd1eb5e71c46a935.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO macro_user_info (macro_user_id, industry, title, first_name, last_name, profile_picture, profile_picture_hash)\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n ON CONFLICT (macro_user_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Text", + "Text", + "Text", + "Varchar" + ] + }, + "nullable": [] + }, + "hash": "6405181c054f5b865e4dafb1a665d33e0f3cdd3a3bab22f0fd1eb5e71c46a935" +} diff --git a/rust/cloud-storage/.sqlx/query-64335bf8a0c673f907b40511dc568f1cd36c04d98b98016eaed27a98622c05c4.json b/rust/cloud-storage/.sqlx/query-64335bf8a0c673f907b40511dc568f1cd36c04d98b98016eaed27a98622c05c4.json new file mode 100644 index 0000000000..3760d059dc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-64335bf8a0c673f907b40511dc568f1cd36c04d98b98016eaed27a98622c05c4.json @@ -0,0 +1,59 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id,\n m.link_id,\n m.thread_id,\n m.provider_thread_id,\n m.headers_jsonb,\n m.is_sent,\n m.is_draft\n FROM email_messages m\n WHERE m.id = $1 AND m.link_id = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 5, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "is_draft", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + false, + false + ] + }, + "hash": "64335bf8a0c673f907b40511dc568f1cd36c04d98b98016eaed27a98622c05c4" +} diff --git a/rust/cloud-storage/.sqlx/query-643b149e8a3c616d39850f156f37cdc1a007500afdc7c8e232a59a8b60824962.json b/rust/cloud-storage/.sqlx/query-643b149e8a3c616d39850f156f37cdc1a007500afdc7c8e232a59a8b60824962.json new file mode 100644 index 0000000000..70b89288cf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-643b149e8a3c616d39850f156f37cdc1a007500afdc7c8e232a59a8b60824962.json @@ -0,0 +1,57 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n channel_id,\n user_id,\n role AS \"role: ParticipantRole\",\n joined_at,\n left_at::timestamptz AS \"left_at?\"\n FROM comms_channel_participants\n WHERE channel_id = $1 AND left_at IS NULL\n ORDER BY joined_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "role: ParticipantRole", + "type_info": { + "Custom": { + "name": "comms_participant_role", + "kind": { + "Enum": [ + "owner", + "admin", + "member" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "joined_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "left_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + true + ] + }, + "hash": "643b149e8a3c616d39850f156f37cdc1a007500afdc7c8e232a59a8b60824962" +} diff --git a/rust/cloud-storage/.sqlx/query-64407ed474bb1ea2930c431fad30657cfa6d5e400247cbf304a3d28cde13c39d.json b/rust/cloud-storage/.sqlx/query-64407ed474bb1ea2930c431fad30657cfa6d5e400247cbf304a3d28cde13c39d.json new file mode 100644 index 0000000000..388d284af5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-64407ed474bb1ea2930c431fad30657cfa6d5e400247cbf304a3d28cde13c39d.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.email\n FROM\n \"User\" u\n LIMIT $1 OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "64407ed474bb1ea2930c431fad30657cfa6d5e400247cbf304a3d28cde13c39d" +} diff --git a/rust/cloud-storage/.sqlx/query-6450fb466802ad93f651d24054fd250abab1fda9e01dfd44d7e02e53f107816f.json b/rust/cloud-storage/.sqlx/query-6450fb466802ad93f651d24054fd250abab1fda9e01dfd44d7e02e53f107816f.json new file mode 100644 index 0000000000..63509f18c0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6450fb466802ad93f651d24054fd250abab1fda9e01dfd44d7e02e53f107816f.json @@ -0,0 +1,89 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, owner, name, schedule, kind, timezone, task, claimed, created_at, updated_at, next_run_at, enabled\n FROM scheduled_action\n WHERE enabled\n AND (claimed IS NULL OR claimed < $1)\n ORDER BY next_run_at ASC\n LIMIT $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "schedule", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "kind", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "timezone", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "task", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "claimed", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "next_run_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "enabled", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Timestamptz", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false + ] + }, + "hash": "6450fb466802ad93f651d24054fd250abab1fda9e01dfd44d7e02e53f107816f" +} diff --git a/rust/cloud-storage/.sqlx/query-64d3a59468f973251be473a78180d6178a8fbdfe21983501c6baf4ce30cbe5d2.json b/rust/cloud-storage/.sqlx/query-64d3a59468f973251be473a78180d6178a8fbdfe21983501c6baf4ce30cbe5d2.json new file mode 100644 index 0000000000..1336af405e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-64d3a59468f973251be473a78180d6178a8fbdfe21983501c6baf4ce30cbe5d2.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"SharePermission\"\n WHERE \"id\" = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "64d3a59468f973251be473a78180d6178a8fbdfe21983501c6baf4ce30cbe5d2" +} diff --git a/rust/cloud-storage/.sqlx/query-650ab172f8fa2dd93e941fc49ce22a86ce4333805799488d1c37df47d928ddc2.json b/rust/cloud-storage/.sqlx/query-650ab172f8fa2dd93e941fc49ce22a86ce4333805799488d1c37df47d928ddc2.json new file mode 100644 index 0000000000..7a14f8736e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-650ab172f8fa2dd93e941fc49ce22a86ce4333805799488d1c37df47d928ddc2.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentBom\" (\"documentId\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $2)\n RETURNING id, \"createdAt\"::timestamptz as \"created_at\", \"updatedAt\"::timestamptz as \"updated_at\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Timestamp" + ] + }, + "nullable": [ + false, + null, + null + ] + }, + "hash": "650ab172f8fa2dd93e941fc49ce22a86ce4333805799488d1c37df47d928ddc2" +} diff --git a/rust/cloud-storage/.sqlx/query-65312be3e9b6d4bb6debf39d7fe4f0abbb105b8fb03e44c12f7241fc52b022d4.json b/rust/cloud-storage/.sqlx/query-65312be3e9b6d4bb6debf39d7fe4f0abbb105b8fb03e44c12f7241fc52b022d4.json new file mode 100644 index 0000000000..b03cf39b93 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-65312be3e9b6d4bb6debf39d7fe4f0abbb105b8fb03e44c12f7241fc52b022d4.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id as \"id\",\n c.name as \"name\",\n c.\"projectId\" as \"project_id\",\n c.\"userId\" as \"user_id\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Chat\" c\n WHERE\n c.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true, + false, + null + ] + }, + "hash": "65312be3e9b6d4bb6debf39d7fe4f0abbb105b8fb03e44c12f7241fc52b022d4" +} diff --git a/rust/cloud-storage/.sqlx/query-654e58c390f6a8935cd310d596202b9b2036019140bb0da9d2f033cdba2289f3.json b/rust/cloud-storage/.sqlx/query-654e58c390f6a8935cd310d596202b9b2036019140bb0da9d2f033cdba2289f3.json new file mode 100644 index 0000000000..4b5337dcfa --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-654e58c390f6a8935cd310d596202b9b2036019140bb0da9d2f033cdba2289f3.json @@ -0,0 +1,36 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n ct.id AS contact_id,\n co.id AS company_id,\n co.email_sync AS \"email_sync!\"\n FROM crm_contacts ct\n JOIN crm_companies co ON co.id = ct.company_id\n JOIN crm_domains d ON d.company_id = co.id\n WHERE co.team_id = $1\n AND LOWER(ct.email) = $2\n AND LOWER(d.domain) = $3\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "company_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "email_sync!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "654e58c390f6a8935cd310d596202b9b2036019140bb0da9d2f033cdba2289f3" +} diff --git a/rust/cloud-storage/.sqlx/query-65818d5e257f9e76534f4ac3414f98f24d1991cacd53b806e81746c16144cc83.json b/rust/cloud-storage/.sqlx/query-65818d5e257f9e76534f4ac3414f98f24d1991cacd53b806e81746c16144cc83.json new file mode 100644 index 0000000000..05a8dc4343 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-65818d5e257f9e76534f4ac3414f98f24d1991cacd53b806e81746c16144cc83.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Pin\" WHERE \"pinnedItemId\" = $1 AND \"pinnedItemType\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "65818d5e257f9e76534f4ac3414f98f24d1991cacd53b806e81746c16144cc83" +} diff --git a/rust/cloud-storage/.sqlx/query-65af936c2ba7200bb57024fb52cd27fbb4ac3a6b655e5dc2c11ea4c802587214.json b/rust/cloud-storage/.sqlx/query-65af936c2ba7200bb57024fb52cd27fbb4ac3a6b655e5dc2c11ea4c802587214.json new file mode 100644 index 0000000000..9e5261243d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-65af936c2ba7200bb57024fb52cd27fbb4ac3a6b655e5dc2c11ea4c802587214.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id as \"document_id\"\n FROM\n \"Document\"\n WHERE\n \"deletedAt\" IS NULL\n ORDER BY\n \"createdAt\" ASC\n LIMIT $1\n OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "65af936c2ba7200bb57024fb52cd27fbb4ac3a6b655e5dc2c11ea4c802587214" +} diff --git a/rust/cloud-storage/.sqlx/query-65d1dc0e96a4a41d52387f43fe08cea15b4124517eeed1d24ab006dd33e409e1.json b/rust/cloud-storage/.sqlx/query-65d1dc0e96a4a41d52387f43fe08cea15b4124517eeed1d24ab006dd33e409e1.json new file mode 100644 index 0000000000..0ce7460420 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-65d1dc0e96a4a41d52387f43fe08cea15b4124517eeed1d24ab006dd33e409e1.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM crm_contact_sources cs\n USING crm_contacts ct, crm_companies co\n WHERE cs.contact_id = ct.id\n AND ct.company_id = co.id\n AND co.team_id = $1\n AND cs.link_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "65d1dc0e96a4a41d52387f43fe08cea15b4124517eeed1d24ab006dd33e409e1" +} diff --git a/rust/cloud-storage/.sqlx/query-65d9a861790a256c2ce832e94358efde2c37d0ddcb6fa557b800cb442f7ba10e.json b/rust/cloud-storage/.sqlx/query-65d9a861790a256c2ce832e94358efde2c37d0ddcb6fa557b800cb442f7ba10e.json new file mode 100644 index 0000000000..3280603281 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-65d9a861790a256c2ce832e94358efde2c37d0ddcb6fa557b800cb442f7ba10e.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM email_threads WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "65d9a861790a256c2ce832e94358efde2c37d0ddcb6fa557b800cb442f7ba10e" +} diff --git a/rust/cloud-storage/.sqlx/query-65fbbdc4a8b2ac4be0283f4297875cb62de647cebc07d42b93e58f35fb34e7bd.json b/rust/cloud-storage/.sqlx/query-65fbbdc4a8b2ac4be0283f4297875cb62de647cebc07d42b93e58f35fb34e7bd.json new file mode 100644 index 0000000000..729e87f57f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-65fbbdc4a8b2ac4be0283f4297875cb62de647cebc07d42b93e58f35fb34e7bd.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT ea.id, ea.message_id, ea.provider_attachment_id, ea.filename, ea.mime_type, ea.size_bytes, ea.content_id, eas.sfs_id as \"sfs_id?\", ea.created_at\n FROM email_attachments ea LEFT JOIN email_attachments_sfs eas on ea.id = eas.attachment_id\n WHERE message_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_attachment_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "filename", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "mime_type", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "size_bytes", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "content_id", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "sfs_id?", + "type_info": "Uuid" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "65fbbdc4a8b2ac4be0283f4297875cb62de647cebc07d42b93e58f35fb34e7bd" +} diff --git a/rust/cloud-storage/.sqlx/query-660327b68f707d334f921f00cca0ab2977e09a30aa82b70b78e51c4a0877f229.json b/rust/cloud-storage/.sqlx/query-660327b68f707d334f921f00cca0ab2977e09a30aa82b70b78e51c4a0877f229.json new file mode 100644 index 0000000000..d5a1752e44 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-660327b68f707d334f921f00cca0ab2977e09a30aa82b70b78e51c4a0877f229.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id as message_id,\n c.id,\n c.link_id,\n c.email_address,\n COALESCE(m.from_name, c.name) as \"name\",\n c.original_photo_url,\n c.sfs_photo_url,\n c.created_at,\n c.updated_at\n FROM email_messages m\n INNER JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.id = ANY($1)\n AND m.from_contact_id IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "original_photo_url", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "sfs_photo_url", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + false, + null, + true, + true, + false, + false + ] + }, + "hash": "660327b68f707d334f921f00cca0ab2977e09a30aa82b70b78e51c4a0877f229" +} diff --git a/rust/cloud-storage/.sqlx/query-66106766fa34cf3660615011a75f7640171d9adbb9f95962db83d979d02cc2d5.json b/rust/cloud-storage/.sqlx/query-66106766fa34cf3660615011a75f7640171d9adbb9f95962db83d979d02cc2d5.json new file mode 100644 index 0000000000..ad286ad459 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-66106766fa34cf3660615011a75f7640171d9adbb9f95962db83d979d02cc2d5.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentBom\" (\"documentId\")\n VALUES ($1)\n RETURNING id, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + null, + null + ] + }, + "hash": "66106766fa34cf3660615011a75f7640171d9adbb9f95962db83d979d02cc2d5" +} diff --git a/rust/cloud-storage/.sqlx/query-663a12ade5ccf4613703c0ad368772673560741961c20f5c401b59b5c5f6027d.json b/rust/cloud-storage/.sqlx/query-663a12ade5ccf4613703c0ad368772673560741961c20f5c401b59b5c5f6027d.json new file mode 100644 index 0000000000..565892f3ba --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-663a12ade5ccf4613703c0ad368772673560741961c20f5c401b59b5c5f6027d.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"ChatMessage\"\n WHERE id = $1\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "663a12ade5ccf4613703c0ad368772673560741961c20f5c401b59b5c5f6027d" +} diff --git a/rust/cloud-storage/.sqlx/query-6656045ae486ab93f763edc9734b18f0867a279705c7f5a91775754f3cfbe83c.json b/rust/cloud-storage/.sqlx/query-6656045ae486ab93f763edc9734b18f0867a279705c7f5a91775754f3cfbe83c.json new file mode 100644 index 0000000000..1537df5b97 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6656045ae486ab93f763edc9734b18f0867a279705c7f5a91775754f3cfbe83c.json @@ -0,0 +1,71 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id AS \"id!\", thread_id AS \"thread_id!\", sender_id AS \"sender_id!\",\n content AS \"content!\", created_at AS \"created_at!\", updated_at AS \"updated_at!\",\n edited_at::timestamptz AS \"edited_at?\",\n reply_count AS \"reply_count!\", latest_reply_at AS \"latest_reply_at?\"\n FROM (\n SELECT\n r.id,\n r.thread_id,\n r.sender_id,\n r.content,\n r.created_at,\n r.updated_at,\n r.edited_at,\n COUNT(*) OVER (PARTITION BY r.thread_id) AS reply_count,\n MAX(r.created_at) OVER (PARTITION BY r.thread_id)::timestamptz AS latest_reply_at,\n ROW_NUMBER() OVER (\n PARTITION BY r.thread_id\n ORDER BY r.created_at ASC, r.id ASC\n ) AS rn\n FROM comms_messages r\n WHERE r.thread_id = ANY($1) AND r.deleted_at IS NULL\n ) sub\n WHERE rn <= $2\n ORDER BY thread_id, created_at ASC, id ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "thread_id!", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "edited_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "reply_count!", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "latest_reply_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "Int8" + ] + }, + "nullable": [ + false, + true, + false, + false, + false, + false, + null, + null, + null + ] + }, + "hash": "6656045ae486ab93f763edc9734b18f0867a279705c7f5a91775754f3cfbe83c" +} diff --git a/rust/cloud-storage/.sqlx/query-666ad2a732546aa9a48262eeaeba037263a6ef8f1daf5eb8ee95ee50ad97f3c0.json b/rust/cloud-storage/.sqlx/query-666ad2a732546aa9a48262eeaeba037263a6ef8f1daf5eb8ee95ee50ad97f3c0.json new file mode 100644 index 0000000000..6614498635 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-666ad2a732546aa9a48262eeaeba037263a6ef8f1daf5eb8ee95ee50ad97f3c0.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Chat\" SET \"projectId\" = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "666ad2a732546aa9a48262eeaeba037263a6ef8f1daf5eb8ee95ee50ad97f3c0" +} diff --git a/rust/cloud-storage/.sqlx/query-66db94821f8946fd3494e1ae5df52425ff06f3bdc9bf008414db8301161d1f4f.json b/rust/cloud-storage/.sqlx/query-66db94821f8946fd3494e1ae5df52425ff06f3bdc9bf008414db8301161d1f4f.json new file mode 100644 index 0000000000..4e6df68b0f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-66db94821f8946fd3494e1ae5df52425ff06f3bdc9bf008414db8301161d1f4f.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.name,\n d.\"fileType\" as \"file_type!\"\n FROM\n \"Document\" d\n WHERE\n d.id = $1 AND d.\"fileType\" IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "file_type!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "66db94821f8946fd3494e1ae5df52425ff06f3bdc9bf008414db8301161d1f4f" +} diff --git a/rust/cloud-storage/.sqlx/query-67255839adc83c0e1dfba11289811d0e6c269464a8506f0ec29db94b7841a038.json b/rust/cloud-storage/.sqlx/query-67255839adc83c0e1dfba11289811d0e6c269464a8506f0ec29db94b7841a038.json new file mode 100644 index 0000000000..38af92f8da --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-67255839adc83c0e1dfba11289811d0e6c269464a8506f0ec29db94b7841a038.json @@ -0,0 +1,88 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n b.id,\n b.kind,\n b.owner_user_id,\n b.team_id,\n b.name,\n b.handle,\n b.description,\n b.avatar_url,\n b.created_by,\n b.created_at,\n b.updated_at,\n b.deleted_at\n FROM bots b\n JOIN comms_channel_participants cp\n ON cp.user_id = ('bot|' || b.id::text)\n WHERE cp.channel_id = $1\n AND cp.left_at IS NULL\n AND b.deleted_at IS NULL\n ORDER BY b.created_at ASC, b.id ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "kind", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "team_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "handle", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "description", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "avatar_url", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "created_by", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true + ] + }, + "hash": "67255839adc83c0e1dfba11289811d0e6c269464a8506f0ec29db94b7841a038" +} diff --git a/rust/cloud-storage/.sqlx/query-679af359cf0fccd5b687fe58ece3b1052fe8c636b986fb6f59f67fcfd08fce38.json b/rust/cloud-storage/.sqlx/query-679af359cf0fccd5b687fe58ece3b1052fe8c636b986fb6f59f67fcfd08fce38.json new file mode 100644 index 0000000000..02e4d8a7ad --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-679af359cf0fccd5b687fe58ece3b1052fe8c636b986fb6f59f67fcfd08fce38.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE \"Chat\" SET \"projectId\"=$2 WHERE \"id\"=$1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "679af359cf0fccd5b687fe58ece3b1052fe8c636b986fb6f59f67fcfd08fce38" +} diff --git a/rust/cloud-storage/.sqlx/query-679d0dd86957b91b759135cf9fc7314630cfd377b004a8c1dfedbf5764137ebd.json b/rust/cloud-storage/.sqlx/query-679d0dd86957b91b759135cf9fc7314630cfd377b004a8c1dfedbf5764137ebd.json new file mode 100644 index 0000000000..1bc2f8db8f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-679d0dd86957b91b759135cf9fc7314630cfd377b004a8c1dfedbf5764137ebd.json @@ -0,0 +1,54 @@ +{ + "db_name": "PostgreSQL", + "query": "INSERT INTO email_filters (link_id, email_address, is_important)\n VALUES ($1, $2, $3)\n ON CONFLICT (link_id, lower(email_address)) WHERE email_address IS NOT NULL\n DO UPDATE SET is_important = EXCLUDED.is_important\n RETURNING id, link_id, email_address, email_domain, is_important, created_at", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "email_domain", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "is_important", + "type_info": "Bool" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Varchar", + "Bool" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + false + ] + }, + "hash": "679d0dd86957b91b759135cf9fc7314630cfd377b004a8c1dfedbf5764137ebd" +} diff --git a/rust/cloud-storage/.sqlx/query-67d6061e983a68f7c75c0272885bb866cacda011d43947e9dd29e0ec60f42d2b.json b/rust/cloud-storage/.sqlx/query-67d6061e983a68f7c75c0272885bb866cacda011d43947e9dd29e0ec60f42d2b.json new file mode 100644 index 0000000000..d83f78a498 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-67d6061e983a68f7c75c0272885bb866cacda011d43947e9dd29e0ec60f42d2b.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"id\", \"stripeCustomerId\" as \"stripe_customer_id?\"\n FROM \"User\"\n WHERE \"email\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "stripe_customer_id?", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "67d6061e983a68f7c75c0272885bb866cacda011d43947e9dd29e0ec60f42d2b" +} diff --git a/rust/cloud-storage/.sqlx/query-68374c56646f19df2212ced86e1ab0010e207e54ef3453edc0df2180a5e402ba.json b/rust/cloud-storage/.sqlx/query-68374c56646f19df2212ced86e1ab0010e207e54ef3453edc0df2180a5e402ba.json new file mode 100644 index 0000000000..017a2449e4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-68374c56646f19df2212ced86e1ab0010e207e54ef3453edc0df2180a5e402ba.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO channel_notification_email_sent (channel_id, user_id)\n SELECT $1, u FROM UNNEST($2::text[]) AS u\n ON CONFLICT (channel_id, user_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "68374c56646f19df2212ced86e1ab0010e207e54ef3453edc0df2180a5e402ba" +} diff --git a/rust/cloud-storage/.sqlx/query-68ab26135b27913a38d7670c8c1a304b0d9676ba2fb8cd7ac3e9c9906e5726d7.json b/rust/cloud-storage/.sqlx/query-68ab26135b27913a38d7670c8c1a304b0d9676ba2fb8cd7ac3e9c9906e5726d7.json new file mode 100644 index 0000000000..60b912d427 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-68ab26135b27913a38d7670c8c1a304b0d9676ba2fb8cd7ac3e9c9906e5726d7.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM \"Document\" WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "68ab26135b27913a38d7670c8c1a304b0d9676ba2fb8cd7ac3e9c9906e5726d7" +} diff --git a/rust/cloud-storage/.sqlx/query-68ad8e75246fed44a1e258483299257bc04def00c6417bee80f7816d1a085578.json b/rust/cloud-storage/.sqlx/query-68ad8e75246fed44a1e258483299257bc04def00c6417bee80f7816d1a085578.json new file mode 100644 index 0000000000..ae58693603 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-68ad8e75246fed44a1e258483299257bc04def00c6417bee80f7816d1a085578.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT id, user_id, name, config, created_at, updated_at FROM saved_view WHERE user_id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "config", + "type_info": "Jsonb" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false + ] + }, + "hash": "68ad8e75246fed44a1e258483299257bc04def00c6417bee80f7816d1a085578" +} diff --git a/rust/cloud-storage/.sqlx/query-691f6d6cfbd8bd9e7bd3e141231efe90a96a9ba79d142abbcd4846b3400dfa57.json b/rust/cloud-storage/.sqlx/query-691f6d6cfbd8bd9e7bd3e141231efe90a96a9ba79d142abbcd4846b3400dfa57.json new file mode 100644 index 0000000000..dd55647733 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-691f6d6cfbd8bd9e7bd3e141231efe90a96a9ba79d142abbcd4846b3400dfa57.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO macro_user_voice (macro_user_id, voice_id)\n VALUES ($1, $2)\n ON CONFLICT (macro_user_id, voice_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "691f6d6cfbd8bd9e7bd3e141231efe90a96a9ba79d142abbcd4846b3400dfa57" +} diff --git a/rust/cloud-storage/.sqlx/query-6925ae890683c9b94bc1f89f1d8fbe0b72aafdd053092bbbd4b1f918d3e194e2.json b/rust/cloud-storage/.sqlx/query-6925ae890683c9b94bc1f89f1d8fbe0b72aafdd053092bbbd4b1f918d3e194e2.json new file mode 100644 index 0000000000..21c0c2a5d1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6925ae890683c9b94bc1f89f1d8fbe0b72aafdd053092bbbd4b1f918d3e194e2.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"RolesOnUsers\" (\"userId\", \"roleId\")\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "6925ae890683c9b94bc1f89f1d8fbe0b72aafdd053092bbbd4b1f918d3e194e2" +} diff --git a/rust/cloud-storage/.sqlx/query-69de5e91294da24e3c0c22ff7cbb156ec4433cb228a034aed09e059ef005e92e.json b/rust/cloud-storage/.sqlx/query-69de5e91294da24e3c0c22ff7cbb156ec4433cb228a034aed09e059ef005e92e.json new file mode 100644 index 0000000000..cdecd21b19 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-69de5e91294da24e3c0c22ff7cbb156ec4433cb228a034aed09e059ef005e92e.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE user_notification\n SET done = $3\n WHERE user_id = $1\n AND notification_id = ANY($2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "UuidArray", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "69de5e91294da24e3c0c22ff7cbb156ec4433cb228a034aed09e059ef005e92e" +} diff --git a/rust/cloud-storage/.sqlx/query-6a9de1564f16007df9f5758baad9f9d5c22ca624f08f29bed7fe9e265288eba9.json b/rust/cloud-storage/.sqlx/query-6a9de1564f16007df9f5758baad9f9d5c22ca624f08f29bed7fe9e265288eba9.json new file mode 100644 index 0000000000..80b721af4a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6a9de1564f16007df9f5758baad9f9d5c22ca624f08f29bed7fe9e265288eba9.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE task_duplicate_match\n SET status = 'dismissed',\n dismissed_by = $3,\n dismissed_at = NOW(),\n updated_at = NOW()\n WHERE id = $1\n AND (task_id = $2 OR duplicate_task_id = $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "6a9de1564f16007df9f5758baad9f9d5c22ca624f08f29bed7fe9e265288eba9" +} diff --git a/rust/cloud-storage/.sqlx/query-6aa68cd66ced924e43b012c317e1efe33721073350ae49882e066ac544bbb995.json b/rust/cloud-storage/.sqlx/query-6aa68cd66ced924e43b012c317e1efe33721073350ae49882e066ac544bbb995.json new file mode 100644 index 0000000000..d29fdf9117 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6aa68cd66ced924e43b012c317e1efe33721073350ae49882e066ac544bbb995.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_links_history\n SET deleted_at = NOW(),\n deletion_reason = $2\n WHERE link_id = $1\n AND deleted_at IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "6aa68cd66ced924e43b012c317e1efe33721073350ae49882e066ac544bbb995" +} diff --git a/rust/cloud-storage/.sqlx/query-6ac0f229f06980ddbc62f5f5056b7996d92d842e88d386cb0b65fb11468cdc57.json b/rust/cloud-storage/.sqlx/query-6ac0f229f06980ddbc62f5f5056b7996d92d842e88d386cb0b65fb11468cdc57.json new file mode 100644 index 0000000000..c1dc3cfe3e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6ac0f229f06980ddbc62f5f5056b7996d92d842e88d386cb0b65fb11468cdc57.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"PdfHighlightAnchor\"\n SET \"deletedAt\" = NOW()\n WHERE uuid = $1 AND \"deletedAt\" IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "6ac0f229f06980ddbc62f5f5056b7996d92d842e88d386cb0b65fb11468cdc57" +} diff --git a/rust/cloud-storage/.sqlx/query-6b5a41c0c33c20537ef484ad312d80da7dfa7251e2333f8981e2a76f40e623c2.json b/rust/cloud-storage/.sqlx/query-6b5a41c0c33c20537ef484ad312d80da7dfa7251e2333f8981e2a76f40e623c2.json new file mode 100644 index 0000000000..9cd4ca4c09 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6b5a41c0c33c20537ef484ad312d80da7dfa7251e2333f8981e2a76f40e623c2.json @@ -0,0 +1,32 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id as \"link_id\"\n FROM email_links\n WHERE\n is_sync_active = TRUE\n AND provider = $1\n AND (abs(hashtext(id::text)) % 24) = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "link_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + }, + "Int4" + ] + }, + "nullable": [ + false + ] + }, + "hash": "6b5a41c0c33c20537ef484ad312d80da7dfa7251e2333f8981e2a76f40e623c2" +} diff --git a/rust/cloud-storage/.sqlx/query-6b5d1c6cd2318d630632681a46fc22d2c1075924eb4c5089bd81b1f3b72e0455.json b/rust/cloud-storage/.sqlx/query-6b5d1c6cd2318d630632681a46fc22d2c1075924eb4c5089bd81b1f3b72e0455.json new file mode 100644 index 0000000000..639f950925 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6b5d1c6cd2318d630632681a46fc22d2c1075924eb4c5089bd81b1f3b72e0455.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO in_progress_user_link (id, macro_user_id)\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "6b5d1c6cd2318d630632681a46fc22d2c1075924eb4c5089bd81b1f3b72e0455" +} diff --git a/rust/cloud-storage/.sqlx/query-6b7094e2eaf150972507f937e120984ee4911e974d0bcc78248c022d44fa20f1.json b/rust/cloud-storage/.sqlx/query-6b7094e2eaf150972507f937e120984ee4911e974d0bcc78248c022d44fa20f1.json new file mode 100644 index 0000000000..396f195c48 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6b7094e2eaf150972507f937e120984ee4911e974d0bcc78248c022d44fa20f1.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"sharePermissionId\" as id FROM \"ChatPermission\" WHERE \"chatId\" = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "6b7094e2eaf150972507f937e120984ee4911e974d0bcc78248c022d44fa20f1" +} diff --git a/rust/cloud-storage/.sqlx/query-6b9cf167af68aad294c96f81d6bc995ead4fd6f968ef17176a770ffa46b44f64.json b/rust/cloud-storage/.sqlx/query-6b9cf167af68aad294c96f81d6bc995ead4fd6f968ef17176a770ffa46b44f64.json new file mode 100644 index 0000000000..531266f154 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6b9cf167af68aad294c96f81d6bc995ead4fd6f968ef17176a770ffa46b44f64.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS (\n SELECT 1\n FROM comms_channel_participants\n WHERE channel_id = $1\n AND user_id = $2\n AND role IN (\n 'admin'::comms_participant_role,\n 'owner'::comms_participant_role\n )\n ) AS \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "6b9cf167af68aad294c96f81d6bc995ead4fd6f968ef17176a770ffa46b44f64" +} diff --git a/rust/cloud-storage/.sqlx/query-6bb0523c1a1fec5d2d8600d1d18e7156eebd31e6d39dd4b9f6bbb397bd8a5f56.json b/rust/cloud-storage/.sqlx/query-6bb0523c1a1fec5d2d8600d1d18e7156eebd31e6d39dd4b9f6bbb397bd8a5f56.json new file mode 100644 index 0000000000..261784e01a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6bb0523c1a1fec5d2d8600d1d18e7156eebd31e6d39dd4b9f6bbb397bd8a5f56.json @@ -0,0 +1,57 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n user_id,\n channel_id,\n joined_at,\n left_at::timestamptz AS \"left_at?\",\n role AS \"role: ParticipantRole\"\n FROM comms_channel_participants\n WHERE channel_id = $1 AND left_at IS NULL\n ORDER BY joined_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "joined_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "left_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "role: ParticipantRole", + "type_info": { + "Custom": { + "name": "comms_participant_role", + "kind": { + "Enum": [ + "owner", + "admin", + "member" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + true, + false + ] + }, + "hash": "6bb0523c1a1fec5d2d8600d1d18e7156eebd31e6d39dd4b9f6bbb397bd8a5f56" +} diff --git a/rust/cloud-storage/.sqlx/query-6c022c7b1e5e5faf6f388528436453738aa66c36c46313ca18c7570b406553f6.json b/rust/cloud-storage/.sqlx/query-6c022c7b1e5e5faf6f388528436453738aa66c36c46313ca18c7570b406553f6.json new file mode 100644 index 0000000000..2f59f37298 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6c022c7b1e5e5faf6f388528436453738aa66c36c46313ca18c7570b406553f6.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_threads\n SET\n inbox_visible = $1,\n is_read = $2,\n latest_inbound_message_ts = $3,\n latest_outbound_message_ts = $4,\n latest_non_spam_message_ts = $5,\n updated_at = NOW()\n WHERE\n id = $6 AND\n link_id = $7\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bool", + "Bool", + "Timestamptz", + "Timestamptz", + "Timestamptz", + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "6c022c7b1e5e5faf6f388528436453738aa66c36c46313ca18c7570b406553f6" +} diff --git a/rust/cloud-storage/.sqlx/query-6c7eb689e2b36b5f9d73ebb66746c36ad70078feb62d295e33506f317fe07bb1.json b/rust/cloud-storage/.sqlx/query-6c7eb689e2b36b5f9d73ebb66746c36ad70078feb62d295e33506f317fe07bb1.json new file mode 100644 index 0000000000..4a2b3313e7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6c7eb689e2b36b5f9d73ebb66746c36ad70078feb62d295e33506f317fe07bb1.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM notification_user_device_registration\n WHERE device_endpoint = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "6c7eb689e2b36b5f9d73ebb66746c36ad70078feb62d295e33506f317fe07bb1" +} diff --git a/rust/cloud-storage/.sqlx/query-6c8ac695bf54550d865d143ee7a01a65dc6bad54ef3c3462f7bf5727f9ab3a42.json b/rust/cloud-storage/.sqlx/query-6c8ac695bf54550d865d143ee7a01a65dc6bad54ef3c3462f7bf5727f9ab3a42.json new file mode 100644 index 0000000000..b3228c70bf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6c8ac695bf54550d865d143ee7a01a65dc6bad54ef3c3462f7bf5727f9ab3a42.json @@ -0,0 +1,47 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id,\n d.\"owner\",\n d.name,\n d.\"fileType\" as \"file_type!\",\n di.id as \"document_version_id?\"\n FROM\n \"Document\" d\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" ASC\n LIMIT 1\n ) di ON true\n WHERE\n d.\"deletedAt\" IS NULL\n AND d.\"fileType\" IS NOT NULL\n ORDER BY d.\"createdAt\" DESC\n LIMIT $1 OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "file_type!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "document_version_id?", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + true, + false + ] + }, + "hash": "6c8ac695bf54550d865d143ee7a01a65dc6bad54ef3c3462f7bf5727f9ab3a42" +} diff --git a/rust/cloud-storage/.sqlx/query-6ca4be786e151f81e8e7d6b13ada596369e6a42d1371b871c7739e2dc0ff0b11.json b/rust/cloud-storage/.sqlx/query-6ca4be786e151f81e8e7d6b13ada596369e6a42d1371b871c7739e2dc0ff0b11.json new file mode 100644 index 0000000000..1a27c4b4be --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6ca4be786e151f81e8e7d6b13ada596369e6a42d1371b871c7739e2dc0ff0b11.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Chat\" SET \"name\" = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "6ca4be786e151f81e8e7d6b13ada596369e6a42d1371b871c7739e2dc0ff0b11" +} diff --git a/rust/cloud-storage/.sqlx/query-6cde7e3ff4993fc1a8ed1ae8b9d0cb0d1dde7ec2707d52d5d2211d5569d0a949.json b/rust/cloud-storage/.sqlx/query-6cde7e3ff4993fc1a8ed1ae8b9d0cb0d1dde7ec2707d52d5d2211d5569d0a949.json new file mode 100644 index 0000000000..1a4d8c724e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6cde7e3ff4993fc1a8ed1ae8b9d0cb0d1dde7ec2707d52d5d2211d5569d0a949.json @@ -0,0 +1,32 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT id, comms_channel_id, user_ids\n FROM contacts_backfill_outbox\n WHERE applied_at IS NULL\n ORDER BY id", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "comms_channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "user_ids", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "6cde7e3ff4993fc1a8ed1ae8b9d0cb0d1dde7ec2707d52d5d2211d5569d0a949" +} diff --git a/rust/cloud-storage/.sqlx/query-6ce3b9755eb7d0e6eff85dfb08d9ca5ab3dffaa6794fe78612b94389ee90e3b4.json b/rust/cloud-storage/.sqlx/query-6ce3b9755eb7d0e6eff85dfb08d9ca5ab3dffaa6794fe78612b94389ee90e3b4.json new file mode 100644 index 0000000000..15267a7827 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6ce3b9755eb7d0e6eff85dfb08d9ca5ab3dffaa6794fe78612b94389ee90e3b4.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as document_id\n FROM\n \"Document\" d\n WHERE\n d.owner = $1 AND d.\"deletedAt\" IS NULL AND d.\"fileType\" = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "6ce3b9755eb7d0e6eff85dfb08d9ca5ab3dffaa6794fe78612b94389ee90e3b4" +} diff --git a/rust/cloud-storage/.sqlx/query-6ce4faf9e5f20226d7e2fad64816fe432ac1128af2df592077c848e75009509d.json b/rust/cloud-storage/.sqlx/query-6ce4faf9e5f20226d7e2fad64816fe432ac1128af2df592077c848e75009509d.json new file mode 100644 index 0000000000..8022a373f9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6ce4faf9e5f20226d7e2fad64816fe432ac1128af2df592077c848e75009509d.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE \"Chat\" SET \"deletedAt\" = NOW() WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "6ce4faf9e5f20226d7e2fad64816fe432ac1128af2df592077c848e75009509d" +} diff --git a/rust/cloud-storage/.sqlx/query-6d419ad1a1c53be5ee3edf5667c55489e99232e1dbd25cbb3f31746b4b9614ab.json b/rust/cloud-storage/.sqlx/query-6d419ad1a1c53be5ee3edf5667c55489e99232e1dbd25cbb3f31746b4b9614ab.json new file mode 100644 index 0000000000..6c45bc7756 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6d419ad1a1c53be5ee3edf5667c55489e99232e1dbd25cbb3f31746b4b9614ab.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Pin\" WHERE \"pinnedItemId\" = $1 AND \"pinnedItemType\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "6d419ad1a1c53be5ee3edf5667c55489e99232e1dbd25cbb3f31746b4b9614ab" +} diff --git a/rust/cloud-storage/.sqlx/query-6dd441191ae20b764a7b3e66633b9f9e666235381e20631e0ed08d095a29507e.json b/rust/cloud-storage/.sqlx/query-6dd441191ae20b764a7b3e66633b9f9e666235381e20631e0ed08d095a29507e.json new file mode 100644 index 0000000000..da7a35be6f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6dd441191ae20b764a7b3e66633b9f9e666235381e20631e0ed08d095a29507e.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS (\n SELECT 1 FROM crm_comment\n WHERE thread_id = $1 AND deleted_at IS NULL\n ) AS \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "6dd441191ae20b764a7b3e66633b9f9e666235381e20631e0ed08d095a29507e" +} diff --git a/rust/cloud-storage/.sqlx/query-6dde3a5ced431932d021e43180e45071efd36c3088dab4feada6254bc1aa41f2.json b/rust/cloud-storage/.sqlx/query-6dde3a5ced431932d021e43180e45071efd36c3088dab4feada6254bc1aa41f2.json new file mode 100644 index 0000000000..b996369a66 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6dde3a5ced431932d021e43180e45071efd36c3088dab4feada6254bc1aa41f2.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS(\n SELECT 1\n FROM macro_user_links\n WHERE primary_macro_id = $1\n AND child_macro_id = $2\n ) AS \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "6dde3a5ced431932d021e43180e45071efd36c3088dab4feada6254bc1aa41f2" +} diff --git a/rust/cloud-storage/.sqlx/query-6ddfc76d4a95ab81c18c930d8c08c51813d41f72f734271c538bd3e5377e2a4c.json b/rust/cloud-storage/.sqlx/query-6ddfc76d4a95ab81c18c930d8c08c51813d41f72f734271c538bd3e5377e2a4c.json new file mode 100644 index 0000000000..6cf849fd5c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6ddfc76d4a95ab81c18c930d8c08c51813d41f72f734271c538bd3e5377e2a4c.json @@ -0,0 +1,53 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n em.source_entity_type,\n em.source_entity_id,\n em.entity_type,\n em.entity_id,\n em.user_id,\n em.created_at\n FROM comms_entity_mentions em\n WHERE em.entity_type = $1\n AND em.entity_id = $2\n AND em.source_entity_type != 'message'\n ORDER BY em.created_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "source_entity_type", + "type_info": "Varchar" + }, + { + "ordinal": 1, + "name": "source_entity_id", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "entity_type", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "entity_id", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "user_id", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + false + ] + }, + "hash": "6ddfc76d4a95ab81c18c930d8c08c51813d41f72f734271c538bd3e5377e2a4c" +} diff --git a/rust/cloud-storage/.sqlx/query-6e755ab9205277781336779cc7c41346b3432771aa29162272624e4bed3e54e5.json b/rust/cloud-storage/.sqlx/query-6e755ab9205277781336779cc7c41346b3432771aa29162272624e4bed3e54e5.json new file mode 100644 index 0000000000..4e92123853 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6e755ab9205277781336779cc7c41346b3432771aa29162272624e4bed3e54e5.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT d.\"documentId\" as \"document_id\"\n FROM \"DocumentText\" as d\n WHERE d.\"documentId\" = ANY($1)\n AND d.\"tokenCount\" > 0\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "6e755ab9205277781336779cc7c41346b3432771aa29162272624e4bed3e54e5" +} diff --git a/rust/cloud-storage/.sqlx/query-6e98cffdfa6200686281b3c2c540f07f517dca38e8a70bad08b4b655cb1cd550.json b/rust/cloud-storage/.sqlx/query-6e98cffdfa6200686281b3c2c540f07f517dca38e8a70bad08b4b655cb1cd550.json new file mode 100644 index 0000000000..b666e9c736 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6e98cffdfa6200686281b3c2c540f07f517dca38e8a70bad08b4b655cb1cd550.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO github_app_installation (id, source_id, source_type)\n SELECT $1::text, source_id, source_type::github_app_installation_source_type\n FROM UNNEST($2::text[], $3::text[])\n AS source_rows(source_id, source_type)\n ON CONFLICT (id, source_id, source_type) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "6e98cffdfa6200686281b3c2c540f07f517dca38e8a70bad08b4b655cb1cd550" +} diff --git a/rust/cloud-storage/.sqlx/query-6ea5fe0c08693b233361460d1a1b46168b4bf9848d252242a06569301144a4f6.json b/rust/cloud-storage/.sqlx/query-6ea5fe0c08693b233361460d1a1b46168b4bf9848d252242a06569301144a4f6.json new file mode 100644 index 0000000000..2f6283b3bf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6ea5fe0c08693b233361460d1a1b46168b4bf9848d252242a06569301144a4f6.json @@ -0,0 +1,56 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as \"document_id\",\n d.owner,\n d.name as \"document_name\",\n d.\"fileType\" as \"file_type\",\n dst.sub_type as \"sub_type?: DocumentSubType\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dst ON dst.document_id = d.id\n WHERE d.id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + false + ] + }, + "hash": "6ea5fe0c08693b233361460d1a1b46168b4bf9848d252242a06569301144a4f6" +} diff --git a/rust/cloud-storage/.sqlx/query-6f84ce5949c02518f69930a6a30b78c285f0440e2c5157d1ef2ee614cc2105f3.json b/rust/cloud-storage/.sqlx/query-6f84ce5949c02518f69930a6a30b78c285f0440e2c5157d1ef2ee614cc2105f3.json new file mode 100644 index 0000000000..030f8c2f2f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6f84ce5949c02518f69930a6a30b78c285f0440e2c5157d1ef2ee614cc2105f3.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id\n FROM email_labels\n WHERE link_id = $1 AND provider_label_id = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "6f84ce5949c02518f69930a6a30b78c285f0440e2c5157d1ef2ee614cc2105f3" +} diff --git a/rust/cloud-storage/.sqlx/query-6f9c55c52025db2dbe4b76be30d2ca5c95970ef6ad421ec0f5fbe89bea212ff5.json b/rust/cloud-storage/.sqlx/query-6f9c55c52025db2dbe4b76be30d2ca5c95970ef6ad421ec0f5fbe89bea212ff5.json new file mode 100644 index 0000000000..0d25c6312d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6f9c55c52025db2dbe4b76be30d2ca5c95970ef6ad421ec0f5fbe89bea212ff5.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS (\n SELECT 1\n FROM task_duplicate_match\n WHERE id = $1\n AND (task_id = $2 OR duplicate_task_id = $2)\n )\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "6f9c55c52025db2dbe4b76be30d2ca5c95970ef6ad421ec0f5fbe89bea212ff5" +} diff --git a/rust/cloud-storage/.sqlx/query-6ff2b4ae4df25f6fe125338e274f4149fe8829da208e8689ccd7e2154e8d7136.json b/rust/cloud-storage/.sqlx/query-6ff2b4ae4df25f6fe125338e274f4149fe8829da208e8689ccd7e2154e8d7136.json new file mode 100644 index 0000000000..8d0fb607f9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-6ff2b4ae4df25f6fe125338e274f4149fe8829da208e8689ccd7e2154e8d7136.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id as \"comment_id!\",\n c.\"threadId\" as \"thread_id!\",\n c.owner as \"owner!\",\n c.sender,\n c.text as \"text!\",\n c.metadata,\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.order\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n WHERE t.\"documentId\" = $1\n AND t.\"deletedAt\" IS NULL\n AND c.\"deletedAt\" IS NULL\n ORDER BY c.\"createdAt\" ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "comment_id!", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "thread_id!", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "owner!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "sender", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "text!", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "order", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + true, + null, + null, + null, + true + ] + }, + "hash": "6ff2b4ae4df25f6fe125338e274f4149fe8829da208e8689ccd7e2154e8d7136" +} diff --git a/rust/cloud-storage/.sqlx/query-704f8353c3a52412d8cbab60b9b32edf0d811d09c54b66522e38366cdefd98a6.json b/rust/cloud-storage/.sqlx/query-704f8353c3a52412d8cbab60b9b32edf0d811d09c54b66522e38366cdefd98a6.json new file mode 100644 index 0000000000..65a9a6fecc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-704f8353c3a52412d8cbab60b9b32edf0d811d09c54b66522e38366cdefd98a6.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_attachments_sfs (id, attachment_id, sfs_id)\n VALUES ($1, $2, $3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "704f8353c3a52412d8cbab60b9b32edf0d811d09c54b66522e38366cdefd98a6" +} diff --git a/rust/cloud-storage/.sqlx/query-706da2cb5edbf06f5304e87bed3866c7a6ba7f2a405b174a238623f5e496886c.json b/rust/cloud-storage/.sqlx/query-706da2cb5edbf06f5304e87bed3866c7a6ba7f2a405b174a238623f5e496886c.json new file mode 100644 index 0000000000..c729246c07 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-706da2cb5edbf06f5304e87bed3866c7a6ba7f2a405b174a238623f5e496886c.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM comms_entity_mentions\n WHERE source_entity_id = ANY($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "706da2cb5edbf06f5304e87bed3866c7a6ba7f2a405b174a238623f5e496886c" +} diff --git a/rust/cloud-storage/.sqlx/query-7078d46dbcbe1c4201bcb4f63d98400d28bde0e2c3af5211a83a01165f751029.json b/rust/cloud-storage/.sqlx/query-7078d46dbcbe1c4201bcb4f63d98400d28bde0e2c3af5211a83a01165f751029.json new file mode 100644 index 0000000000..b7e5230b4c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7078d46dbcbe1c4201bcb4f63d98400d28bde0e2c3af5211a83a01165f751029.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM entity_access\n WHERE (source_id = ANY($1) AND source_type = 'channel')\n AND (entity_id = ANY($2) OR granted_from_project_id = ANY($3))\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "UuidArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "7078d46dbcbe1c4201bcb4f63d98400d28bde0e2c3af5211a83a01165f751029" +} diff --git a/rust/cloud-storage/.sqlx/query-70f12c0591fd0f66402ffc3720a5f5f7c6116cd761471bd5e03f528bf32effa5.json b/rust/cloud-storage/.sqlx/query-70f12c0591fd0f66402ffc3720a5f5f7c6116cd761471bd5e03f528bf32effa5.json new file mode 100644 index 0000000000..020d3dd88c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-70f12c0591fd0f66402ffc3720a5f5f7c6116cd761471bd5e03f528bf32effa5.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"sharePermissionId\" as id FROM \"DocumentPermission\" WHERE \"documentId\" = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "70f12c0591fd0f66402ffc3720a5f5f7c6116cd761471bd5e03f528bf32effa5" +} diff --git a/rust/cloud-storage/.sqlx/query-714f0e8d34476dcc43f7ee64ea1a429f9420fe1403f56b6c472640efd43451ce.json b/rust/cloud-storage/.sqlx/query-714f0e8d34476dcc43f7ee64ea1a429f9420fe1403f56b6c472640efd43451ce.json new file mode 100644 index 0000000000..5fa3db5f43 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-714f0e8d34476dcc43f7ee64ea1a429f9420fe1403f56b6c472640efd43451ce.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_messages m\n SET\n is_starred = $1,\n updated_at = NOW()\n FROM email_links l\n WHERE\n m.id = ANY($2)\n AND m.link_id = l.id\n AND l.fusionauth_user_id = $3\n RETURNING m.id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Bool", + "UuidArray", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "714f0e8d34476dcc43f7ee64ea1a429f9420fe1403f56b6c472640efd43451ce" +} diff --git a/rust/cloud-storage/.sqlx/query-71b68b23ef028192231dd2129f4f8671f0af53a90629efe34f6f4e13ba227e91.json b/rust/cloud-storage/.sqlx/query-71b68b23ef028192231dd2129f4f8671f0af53a90629efe34f6f4e13ba227e91.json new file mode 100644 index 0000000000..51ac02ab79 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-71b68b23ef028192231dd2129f4f8671f0af53a90629efe34f6f4e13ba227e91.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n bp.sha as sha,\n bp.path as path,\n bp.id as id\n FROM \"BomPart\" bp\n JOIN \"DocumentBom\" db ON bp.\"documentBomId\" = db.id\n WHERE db.\"documentId\" = ANY($1);\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "path", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "71b68b23ef028192231dd2129f4f8671f0af53a90629efe34f6f4e13ba227e91" +} diff --git a/rust/cloud-storage/.sqlx/query-71b975abc8c63ea8116cd8944e99d46e5747660807a30564921bc371ddd1338d.json b/rust/cloud-storage/.sqlx/query-71b975abc8c63ea8116cd8944e99d46e5747660807a30564921bc371ddd1338d.json new file mode 100644 index 0000000000..2dc1809409 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-71b975abc8c63ea8116cd8944e99d46e5747660807a30564921bc371ddd1338d.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ItemLastAccessed\" (\"item_id\", \"item_type\", \"last_accessed\")\n VALUES ($1, $2, $3)\n ON CONFLICT (\"item_id\", \"item_type\") DO UPDATE\n SET \"last_accessed\" = $3;\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Timestamp" + ] + }, + "nullable": [] + }, + "hash": "71b975abc8c63ea8116cd8944e99d46e5747660807a30564921bc371ddd1338d" +} diff --git a/rust/cloud-storage/.sqlx/query-71f0916419e122c5dba653bdc23114987bb800ba14658efaac7cafd0c16672c8.json b/rust/cloud-storage/.sqlx/query-71f0916419e122c5dba653bdc23114987bb800ba14658efaac7cafd0c16672c8.json new file mode 100644 index 0000000000..51e00bbc86 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-71f0916419e122c5dba653bdc23114987bb800ba14658efaac7cafd0c16672c8.json @@ -0,0 +1,39 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id, \n team_role as \"team_role!: TeamRole\"\n FROM team_user\n WHERE team_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "team_role!: TeamRole", + "type_info": { + "Custom": { + "name": "team_role", + "kind": { + "Enum": [ + "member", + "admin", + "owner" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "71f0916419e122c5dba653bdc23114987bb800ba14658efaac7cafd0c16672c8" +} diff --git a/rust/cloud-storage/.sqlx/query-720246c9399231f60479aa8c51bee2054d9f2cf9789f913e0f9cd65b9a93de79.json b/rust/cloud-storage/.sqlx/query-720246c9399231f60479aa8c51bee2054d9f2cf9789f913e0f9cd65b9a93de79.json new file mode 100644 index 0000000000..49663920d1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-720246c9399231f60479aa8c51bee2054d9f2cf9789f913e0f9cd65b9a93de79.json @@ -0,0 +1,60 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_activity (\n id,\n user_id,\n channel_id,\n interacted_at\n )\n VALUES (\n $1, $2, $3, NOW()\n )\n ON CONFLICT (user_id, channel_id) DO UPDATE\n SET\n interacted_at = NOW(),\n updated_at = NOW()\n RETURNING\n id as \"id!: Uuid\",\n user_id as \"user_id!: String\",\n channel_id as \"channel_id!: Uuid\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\",\n viewed_at as \"viewed_at?: DateTime\",\n interacted_at as \"interacted_at?: DateTime\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id!: String", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "channel_id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "created_at!: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "updated_at!: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "viewed_at?: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 6, + "name": "interacted_at?: DateTime", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + true + ] + }, + "hash": "720246c9399231f60479aa8c51bee2054d9f2cf9789f913e0f9cd65b9a93de79" +} diff --git a/rust/cloud-storage/.sqlx/query-7245eb3c102f3a7d4ef12b37137ff6f2ff306ed1c8b69388a0f7fbdff9d9bc74.json b/rust/cloud-storage/.sqlx/query-7245eb3c102f3a7d4ef12b37137ff6f2ff306ed1c8b69388a0f7fbdff9d9bc74.json new file mode 100644 index 0000000000..54390322a3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7245eb3c102f3a7d4ef12b37137ff6f2ff306ed1c8b69388a0f7fbdff9d9bc74.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO team_memory (id, team_id, memory)\n VALUES ($1, $2, $3)\n ON CONFLICT (team_id) DO UPDATE\n SET memory = EXCLUDED.memory,\n updated_at = NOW()\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "7245eb3c102f3a7d4ef12b37137ff6f2ff306ed1c8b69388a0f7fbdff9d9bc74" +} diff --git a/rust/cloud-storage/.sqlx/query-725db444624bc6b4df387c7f45d750328437c7732e147e15818a269bb63be183.json b/rust/cloud-storage/.sqlx/query-725db444624bc6b4df387c7f45d750328437c7732e147e15818a269bb63be183.json new file mode 100644 index 0000000000..743945260d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-725db444624bc6b4df387c7f45d750328437c7732e147e15818a269bb63be183.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"OrganizationRetentionPolicy\"\n WHERE \"organization_id\" = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [] + }, + "hash": "725db444624bc6b4df387c7f45d750328437c7732e147e15818a269bb63be183" +} diff --git a/rust/cloud-storage/.sqlx/query-72c4ec37d0b5c963e6061e040ab7184e2e6623e487afc52358f77f57d236a255.json b/rust/cloud-storage/.sqlx/query-72c4ec37d0b5c963e6061e040ab7184e2e6623e487afc52358f77f57d236a255.json new file mode 100644 index 0000000000..c4a9e7a6ed --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-72c4ec37d0b5c963e6061e040ab7184e2e6623e487afc52358f77f57d236a255.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM \"UserHistory\" WHERE \"itemId\" = $1 AND \"itemType\" = 'chat'", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "72c4ec37d0b5c963e6061e040ab7184e2e6623e487afc52358f77f57d236a255" +} diff --git a/rust/cloud-storage/.sqlx/query-732141210551d42218ce027266c6dfa3dd1f0ddb2c37493ed1235fe488073d89.json b/rust/cloud-storage/.sqlx/query-732141210551d42218ce027266c6dfa3dd1f0ddb2c37493ed1235fe488073d89.json new file mode 100644 index 0000000000..ea49b9c1cd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-732141210551d42218ce027266c6dfa3dd1f0ddb2c37493ed1235fe488073d89.json @@ -0,0 +1,108 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n id,\n organization_id,\n user_id,\n display_name,\n data_type as \"data_type: DataType\",\n is_multi_select,\n specific_entity_type as \"specific_entity_type: Option\",\n created_at,\n updated_at,\n is_system\n FROM property_definitions\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "organization_id", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "display_name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "data_type: DataType", + "type_info": { + "Custom": { + "name": "property_data_type", + "kind": { + "Enum": [ + "BOOLEAN", + "DATE", + "NUMBER", + "STRING", + "SELECT_NUMBER", + "SELECT_STRING", + "ENTITY", + "LINK" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_multi_select", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "specific_entity_type: Option", + "type_info": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "is_system", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + false, + true, + false, + false, + false + ] + }, + "hash": "732141210551d42218ce027266c6dfa3dd1f0ddb2c37493ed1235fe488073d89" +} diff --git a/rust/cloud-storage/.sqlx/query-7335b4f26cdbd5ad240545c4231cc1d34d10eda3212c0dcbd92db0ed61e86ec4.json b/rust/cloud-storage/.sqlx/query-7335b4f26cdbd5ad240545c4231cc1d34d10eda3212c0dcbd92db0ed61e86ec4.json new file mode 100644 index 0000000000..06337d4c3e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7335b4f26cdbd5ad240545c4231cc1d34d10eda3212c0dcbd92db0ed61e86ec4.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Document\" SET \"documentFamilyId\" = $1 WHERE id = $2;\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Text" + ] + }, + "nullable": [] + }, + "hash": "7335b4f26cdbd5ad240545c4231cc1d34d10eda3212c0dcbd92db0ed61e86ec4" +} diff --git a/rust/cloud-storage/.sqlx/query-733e693b7231777ab430290d378ba45d608cf5aa1d39c692c93fe06a5593f312.json b/rust/cloud-storage/.sqlx/query-733e693b7231777ab430290d378ba45d608cf5aa1d39c692c93fe06a5593f312.json new file mode 100644 index 0000000000..a0d715326d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-733e693b7231777ab430290d378ba45d608cf5aa1d39c692c93fe06a5593f312.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n ca.id,\n ca.\"entity_type\" as \"attachment_type: AttachmentType\",\n ca.\"entity_id\"::TEXT as \"attachment_id!\",\n ca.\"chatId\" as \"chat_id\",\n ca.\"messageId\" as \"message_id\"\n FROM\n \"ChatAttachment\" ca\n WHERE\n ca.\"id\" = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "attachment_type: AttachmentType", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "attachment_id!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "chat_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "message_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + null, + true, + true + ] + }, + "hash": "733e693b7231777ab430290d378ba45d608cf5aa1d39c692c93fe06a5593f312" +} diff --git a/rust/cloud-storage/.sqlx/query-7346e8f6a04f0e2d0b0c3b711afc10673c7756fda2cce9fe8619d68d92219a88.json b/rust/cloud-storage/.sqlx/query-7346e8f6a04f0e2d0b0c3b711afc10673c7756fda2cce9fe8619d68d92219a88.json new file mode 100644 index 0000000000..c52083e7eb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7346e8f6a04f0e2d0b0c3b711afc10673c7756fda2cce9fe8619d68d92219a88.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n sp.id as id\n FROM\n \"ProjectPermission\" pp\n JOIN \"SharePermission\" sp ON pp.\"sharePermissionId\" = sp.id\n WHERE\n pp.\"projectId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "7346e8f6a04f0e2d0b0c3b711afc10673c7756fda2cce9fe8619d68d92219a88" +} diff --git a/rust/cloud-storage/.sqlx/query-7385a803bf786406cafdce24628f9cca114fa5fe46b7bb0de469135f54dcd710.json b/rust/cloud-storage/.sqlx/query-7385a803bf786406cafdce24628f9cca114fa5fe46b7bb0de469135f54dcd710.json new file mode 100644 index 0000000000..9cce76e686 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7385a803bf786406cafdce24628f9cca114fa5fe46b7bb0de469135f54dcd710.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id\n FROM\n \"Document\" d\n WHERE\n d.id = ANY($1)\n AND d.\"projectId\" = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "7385a803bf786406cafdce24628f9cca114fa5fe46b7bb0de469135f54dcd710" +} diff --git a/rust/cloud-storage/.sqlx/query-73c67fbf678e1479d528adcc5bea7da3261d0a04e24cc16f96ec9f2dea3b2e98.json b/rust/cloud-storage/.sqlx/query-73c67fbf678e1479d528adcc5bea7da3261d0a04e24cc16f96ec9f2dea3b2e98.json new file mode 100644 index 0000000000..65459bcefd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-73c67fbf678e1479d528adcc5bea7da3261d0a04e24cc16f96ec9f2dea3b2e98.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id\n FROM \"User\"\n WHERE email = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "73c67fbf678e1479d528adcc5bea7da3261d0a04e24cc16f96ec9f2dea3b2e98" +} diff --git a/rust/cloud-storage/.sqlx/query-73f91a13989edcfbeec5d67e465506a77077406116f58821f9c1b38b855fb995.json b/rust/cloud-storage/.sqlx/query-73f91a13989edcfbeec5d67e465506a77077406116f58821f9c1b38b855fb995.json new file mode 100644 index 0000000000..5cc6cddba4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-73f91a13989edcfbeec5d67e465506a77077406116f58821f9c1b38b855fb995.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"stripeCustomerId\" as \"stripe_customer_id?\"\n FROM \"User\"\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "stripe_customer_id?", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true + ] + }, + "hash": "73f91a13989edcfbeec5d67e465506a77077406116f58821f9c1b38b855fb995" +} diff --git a/rust/cloud-storage/.sqlx/query-74132c6b056f693ac364bd5d70a40d81ccd384ffc21881d7c162895cb7d11647.json b/rust/cloud-storage/.sqlx/query-74132c6b056f693ac364bd5d70a40d81ccd384ffc21881d7c162895cb7d11647.json new file mode 100644 index 0000000000..eddca4f0fd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-74132c6b056f693ac364bd5d70a40d81ccd384ffc21881d7c162895cb7d11647.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, email_address\n FROM email_contacts\n WHERE link_id = $1 AND email_address = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email_address", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "74132c6b056f693ac364bd5d70a40d81ccd384ffc21881d7c162895cb7d11647" +} diff --git a/rust/cloud-storage/.sqlx/query-745780ca3e0e26284050ac92cd3c90f9a796ec770c53cbee32660ed867c138a4.json b/rust/cloud-storage/.sqlx/query-745780ca3e0e26284050ac92cd3c90f9a796ec770c53cbee32660ed867c138a4.json new file mode 100644 index 0000000000..12c74e21a2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-745780ca3e0e26284050ac92cd3c90f9a796ec770c53cbee32660ed867c138a4.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT c.id\n FROM crm_companies c\n JOIN crm_domains d ON d.company_id = c.id\n WHERE c.team_id = $1\n AND LOWER(d.domain) = $2\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "745780ca3e0e26284050ac92cd3c90f9a796ec770c53cbee32660ed867c138a4" +} diff --git a/rust/cloud-storage/.sqlx/query-74d33764e454fb9ab4f2775974462d6fdb092bffc720d929de5e7b50ecef5139.json b/rust/cloud-storage/.sqlx/query-74d33764e454fb9ab4f2775974462d6fdb092bffc720d929de5e7b50ecef5139.json new file mode 100644 index 0000000000..34382e8725 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-74d33764e454fb9ab4f2775974462d6fdb092bffc720d929de5e7b50ecef5139.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, apns_collapse_key as \"apns_collapse_key!: String\"\n FROM notification\n WHERE id = ANY($1) AND apns_collapse_key IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "apns_collapse_key!: String", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "74d33764e454fb9ab4f2775974462d6fdb092bffc720d929de5e7b50ecef5139" +} diff --git a/rust/cloud-storage/.sqlx/query-74e411c5bdc9a4ee3f96bf4b09fd3506f32146eb21d6714d60136850e9d849bf.json b/rust/cloud-storage/.sqlx/query-74e411c5bdc9a4ee3f96bf4b09fd3506f32146eb21d6714d60136850e9d849bf.json new file mode 100644 index 0000000000..9eee57760e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-74e411c5bdc9a4ee3f96bf4b09fd3506f32146eb21d6714d60136850e9d849bf.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_contacts\n SET name = data.name, updated_at = now()\n FROM (SELECT unnest($1::uuid[]) as id, unnest($2::text[]) as name) as data\n WHERE email_contacts.id = data.id\n AND email_contacts.name IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "74e411c5bdc9a4ee3f96bf4b09fd3506f32146eb21d6714d60136850e9d849bf" +} diff --git a/rust/cloud-storage/.sqlx/query-751f836dc8f78c330387456dd68a8803972c7b3e2b6a2b95c27f15068bed2ca5.json b/rust/cloud-storage/.sqlx/query-751f836dc8f78c330387456dd68a8803972c7b3e2b6a2b95c27f15068bed2ca5.json new file mode 100644 index 0000000000..a784094d72 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-751f836dc8f78c330387456dd68a8803972c7b3e2b6a2b95c27f15068bed2ca5.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT pg_advisory_xact_lock(hashtextextended($1, 0))", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "pg_advisory_xact_lock", + "type_info": "Void" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "751f836dc8f78c330387456dd68a8803972c7b3e2b6a2b95c27f15068bed2ca5" +} diff --git a/rust/cloud-storage/.sqlx/query-75843bf211e0811b398d636fe6c8b05005afb77be95bc434a924e53c17cd6033.json b/rust/cloud-storage/.sqlx/query-75843bf211e0811b398d636fe6c8b05005afb77be95bc434a924e53c17cd6033.json new file mode 100644 index 0000000000..67426125ba --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-75843bf211e0811b398d636fe6c8b05005afb77be95bc434a924e53c17cd6033.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT tp.\"sharePermissionId\" as \"share_permission_id!\"\n FROM \"EmailThreadPermission\" tp\n WHERE tp.\"threadId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "75843bf211e0811b398d636fe6c8b05005afb77be95bc434a924e53c17cd6033" +} diff --git a/rust/cloud-storage/.sqlx/query-758f208ea073a48e9be9919a0dce43648c19b5a092049b7cb0a6382e931371a1.json b/rust/cloud-storage/.sqlx/query-758f208ea073a48e9be9919a0dce43648c19b5a092049b7cb0a6382e931371a1.json new file mode 100644 index 0000000000..0084440a91 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-758f208ea073a48e9be9919a0dce43648c19b5a092049b7cb0a6382e931371a1.json @@ -0,0 +1,12 @@ +{ + "db_name": "PostgreSQL", + "query": "SET LOCAL hnsw.iterative_scan = relaxed_order", + "describe": { + "columns": [], + "parameters": { + "Left": [] + }, + "nullable": [] + }, + "hash": "758f208ea073a48e9be9919a0dce43648c19b5a092049b7cb0a6382e931371a1" +} diff --git a/rust/cloud-storage/.sqlx/query-75f7c645bd7640d085b759c4246f683ccf76c634d71337d35d1a8b7004f31c35.json b/rust/cloud-storage/.sqlx/query-75f7c645bd7640d085b759c4246f683ccf76c634d71337d35d1a8b7004f31c35.json new file mode 100644 index 0000000000..721336c9fe --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-75f7c645bd7640d085b759c4246f683ccf76c634d71337d35d1a8b7004f31c35.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentInstance\" (\"documentId\", \"sha\")\n VALUES ($1, $2)\n RETURNING id, sha, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + null, + null + ] + }, + "hash": "75f7c645bd7640d085b759c4246f683ccf76c634d71337d35d1a8b7004f31c35" +} diff --git a/rust/cloud-storage/.sqlx/query-76096541f7696b2035acdb51754b4f783e345db19b32a815bbf68652121da947.json b/rust/cloud-storage/.sqlx/query-76096541f7696b2035acdb51754b4f783e345db19b32a815bbf68652121da947.json new file mode 100644 index 0000000000..a489813ed4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-76096541f7696b2035acdb51754b4f783e345db19b32a815bbf68652121da947.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM \"User\" WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "76096541f7696b2035acdb51754b4f783e345db19b32a815bbf68652121da947" +} diff --git a/rust/cloud-storage/.sqlx/query-7617f808df94ffe77c8195a911ee6b230a21fe9935e099d1310d244248ca253a.json b/rust/cloud-storage/.sqlx/query-7617f808df94ffe77c8195a911ee6b230a21fe9935e099d1310d244248ca253a.json new file mode 100644 index 0000000000..655495fb29 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7617f808df94ffe77c8195a911ee6b230a21fe9935e099d1310d244248ca253a.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT c.id\n FROM comms_channels c\n INNER JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n AND c.id = ANY($2::uuid[])\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text", + "UuidArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "7617f808df94ffe77c8195a911ee6b230a21fe9935e099d1310d244248ca253a" +} diff --git a/rust/cloud-storage/.sqlx/query-765650cab2b1a1d1abe6ca406438bf48968cebebc7316b87b192d649e096cd67.json b/rust/cloud-storage/.sqlx/query-765650cab2b1a1d1abe6ca406438bf48968cebebc7316b87b192d649e096cd67.json new file mode 100644 index 0000000000..a8e7326c35 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-765650cab2b1a1d1abe6ca406438bf48968cebebc7316b87b192d649e096cd67.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id FROM user_notification_item_unsubscribe\n WHERE item_id = $1 AND user_id = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "765650cab2b1a1d1abe6ca406438bf48968cebebc7316b87b192d649e096cd67" +} diff --git a/rust/cloud-storage/.sqlx/query-7671b43028d90ea50536fbcd10ee0c1625c2e66de29cdf080f66832e62e07e76.json b/rust/cloud-storage/.sqlx/query-7671b43028d90ea50536fbcd10ee0c1625c2e66de29cdf080f66832e62e07e76.json new file mode 100644 index 0000000000..33c4519459 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7671b43028d90ea50536fbcd10ee0c1625c2e66de29cdf080f66832e62e07e76.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Chat\" SET \"deletedAt\" = $2 WHERE id = ANY($1);\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "Timestamp" + ] + }, + "nullable": [] + }, + "hash": "7671b43028d90ea50536fbcd10ee0c1625c2e66de29cdf080f66832e62e07e76" +} diff --git a/rust/cloud-storage/.sqlx/query-76caf706a1f0846ad3a7075878e941a9293a5eeeb1de3900c3c39386d5dc57c0.json b/rust/cloud-storage/.sqlx/query-76caf706a1f0846ad3a7075878e941a9293a5eeeb1de3900c3c39386d5dc57c0.json new file mode 100644 index 0000000000..8f83e9a7d1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-76caf706a1f0846ad3a7075878e941a9293a5eeeb1de3900c3c39386d5dc57c0.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT macro_user_id, first_name, last_name FROM macro_user_info WHERE macro_user_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "first_name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "last_name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + true + ] + }, + "hash": "76caf706a1f0846ad3a7075878e941a9293a5eeeb1de3900c3c39386d5dc57c0" +} diff --git a/rust/cloud-storage/.sqlx/query-76e487efe2d8f383ac8e7688892624be4d81662c6f82f6aa16ba2e752dcabd94.json b/rust/cloud-storage/.sqlx/query-76e487efe2d8f383ac8e7688892624be4d81662c6f82f6aa16ba2e752dcabd94.json new file mode 100644 index 0000000000..4d075c448f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-76e487efe2d8f383ac8e7688892624be4d81662c6f82f6aa16ba2e752dcabd94.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT bp.sha\n FROM \"BomPart\" bp\n JOIN \"DocumentBom\" db ON bp.\"documentBomId\" = db.id\n WHERE db.\"documentId\" = $1\n AND db.id = (\n SELECT db_inner.id\n FROM \"DocumentBom\" db_inner\n WHERE db_inner.\"documentId\" = $1\n ORDER BY db_inner.\"updatedAt\" DESC\n LIMIT 1\n )\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "sha", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "76e487efe2d8f383ac8e7688892624be4d81662c6f82f6aa16ba2e752dcabd94" +} diff --git a/rust/cloud-storage/.sqlx/query-76ebe39d39b36dc8c0d0f4d7741856a320bd22a3962cf1ccec2c930a56ed6a26.json b/rust/cloud-storage/.sqlx/query-76ebe39d39b36dc8c0d0f4d7741856a320bd22a3962cf1ccec2c930a56ed6a26.json new file mode 100644 index 0000000000..45fd98094d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-76ebe39d39b36dc8c0d0f4d7741856a320bd22a3962cf1ccec2c930a56ed6a26.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT resolved as is_resolved\n FROM \"Thread\"\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "is_resolved", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "76ebe39d39b36dc8c0d0f4d7741856a320bd22a3962cf1ccec2c930a56ed6a26" +} diff --git a/rust/cloud-storage/.sqlx/query-76f6793eaead8c4f3a2aa4b02ad573beda79b93bfd874acc1b2059cbe041d8a3.json b/rust/cloud-storage/.sqlx/query-76f6793eaead8c4f3a2aa4b02ad573beda79b93bfd874acc1b2059cbe041d8a3.json new file mode 100644 index 0000000000..23986dc09f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-76f6793eaead8c4f3a2aa4b02ad573beda79b93bfd874acc1b2059cbe041d8a3.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO github_pr_tasks (id, github_key, task_id)\n SELECT * FROM UNNEST($1::uuid[], $2::text[], $3::text[])\n ON CONFLICT (github_key, task_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "76f6793eaead8c4f3a2aa4b02ad573beda79b93bfd874acc1b2059cbe041d8a3" +} diff --git a/rust/cloud-storage/.sqlx/query-7704391a443f1375ebd231197c4c21c7843eea381e396a3c688b390ced89620a.json b/rust/cloud-storage/.sqlx/query-7704391a443f1375ebd231197c4c21c7843eea381e396a3c688b390ced89620a.json new file mode 100644 index 0000000000..e973ff399b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7704391a443f1375ebd231197c4c21c7843eea381e396a3c688b390ced89620a.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id as id,\n c.name as name,\n c.\"userId\" as user_id,\n c.model as \"model?\",\n c.\"projectId\" as \"project_id?\",\n c.\"tokenCount\" as token_count,\n c.\"createdAt\"::timestamptz as created_at,\n c.\"updatedAt\"::timestamptz as updated_at,\n c.\"deletedAt\"::timestamptz as deleted_at,\n c.\"isPersistent\" as is_persistent\n FROM\n \"Chat\" c\n WHERE c.\"projectId\" = $1 AND c.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "model?", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "project_id?", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "token_count", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "is_persistent", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + true, + null, + null, + null, + false + ] + }, + "hash": "7704391a443f1375ebd231197c4c21c7843eea381e396a3c688b390ced89620a" +} diff --git a/rust/cloud-storage/.sqlx/query-770f2133b4f487b783e3d34bce0ebde1405e003a2d84d25542e8a11c7895be18.json b/rust/cloud-storage/.sqlx/query-770f2133b4f487b783e3d34bce0ebde1405e003a2d84d25542e8a11c7895be18.json new file mode 100644 index 0000000000..07f0e307eb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-770f2133b4f487b783e3d34bce0ebde1405e003a2d84d25542e8a11c7895be18.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT t.id, l.macro_id\n FROM email_threads t\n JOIN email_links l ON t.link_id = l.id\n ORDER BY t.latest_inbound_message_ts DESC NULLS LAST\n LIMIT $1 OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "770f2133b4f487b783e3d34bce0ebde1405e003a2d84d25542e8a11c7895be18" +} diff --git a/rust/cloud-storage/.sqlx/query-7725b1095e9fdc3e8879840bf3480aae302752bce224b1e69dcb3f2a9c1cef5b.json b/rust/cloud-storage/.sqlx/query-7725b1095e9fdc3e8879840bf3480aae302752bce224b1e69dcb3f2a9c1cef5b.json new file mode 100644 index 0000000000..56e0353361 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7725b1095e9fdc3e8879840bf3480aae302752bce224b1e69dcb3f2a9c1cef5b.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO macro_user_email_verification (macro_user_id, email, is_verified)\n VALUES ($1, $2, true)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "7725b1095e9fdc3e8879840bf3480aae302752bce224b1e69dcb3f2a9c1cef5b" +} diff --git a/rust/cloud-storage/.sqlx/query-775a3c1e4a6365516cc07a60cdfe1913f1fa8606bdb384b8e697cb5c723cf40b.json b/rust/cloud-storage/.sqlx/query-775a3c1e4a6365516cc07a60cdfe1913f1fa8606bdb384b8e697cb5c723cf40b.json new file mode 100644 index 0000000000..5c4142face --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-775a3c1e4a6365516cc07a60cdfe1913f1fa8606bdb384b8e697cb5c723cf40b.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT access_level FROM (\n -- Source 1: entity_access source_id match\n SELECT\n access_level::text FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'email_thread'\n AND source_id = ANY($2)\n\n UNION ALL\n -- Source 2: items share permission\n SELECT\n \"publicAccessLevel\"::text AS access_level\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"EmailThreadPermission\" WHERE \"threadId\" = $3\n )\n ) AS combined_access\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "access_level", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "775a3c1e4a6365516cc07a60cdfe1913f1fa8606bdb384b8e697cb5c723cf40b" +} diff --git a/rust/cloud-storage/.sqlx/query-77a3b4ac298457a9c06b145d60a00127619bcfe56c969e69c03c98e7b2d975f9.json b/rust/cloud-storage/.sqlx/query-77a3b4ac298457a9c06b145d60a00127619bcfe56c969e69c03c98e7b2d975f9.json new file mode 100644 index 0000000000..c07a0bcdf7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-77a3b4ac298457a9c06b145d60a00127619bcfe56c969e69c03c98e7b2d975f9.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS(\n SELECT 1 FROM call_participants\n WHERE call_id = $1 AND user_id = $2 AND left_at IS NULL\n ) as \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "77a3b4ac298457a9c06b145d60a00127619bcfe56c969e69c03c98e7b2d975f9" +} diff --git a/rust/cloud-storage/.sqlx/query-77b9642e3ce72202c80aacda76790b7a1e1eee80d0b7388c2ad68e8ce5a996c7.json b/rust/cloud-storage/.sqlx/query-77b9642e3ce72202c80aacda76790b7a1e1eee80d0b7388c2ad68e8ce5a996c7.json new file mode 100644 index 0000000000..ce6db4c49c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-77b9642e3ce72202c80aacda76790b7a1e1eee80d0b7388c2ad68e8ce5a996c7.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT created_by as \"created_by!\"\n FROM (\n SELECT created_by FROM calls WHERE id = $1\n UNION ALL\n SELECT created_by FROM call_records WHERE id = $1\n ) t\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "created_by!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "77b9642e3ce72202c80aacda76790b7a1e1eee80d0b7388c2ad68e8ce5a996c7" +} diff --git a/rust/cloud-storage/.sqlx/query-77fae7a910ecfe9c5eeaf4c37a334398757d8e7959cd237df7e4947fb75aa56f.json b/rust/cloud-storage/.sqlx/query-77fae7a910ecfe9c5eeaf4c37a334398757d8e7959cd237df7e4947fb75aa56f.json new file mode 100644 index 0000000000..5226fe888d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-77fae7a910ecfe9c5eeaf4c37a334398757d8e7959cd237df7e4947fb75aa56f.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE calls\n SET share_with_team = NOT share_with_team\n WHERE id = $1\n RETURNING share_with_team, channel_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_with_team", + "type_info": "Bool" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "77fae7a910ecfe9c5eeaf4c37a334398757d8e7959cd237df7e4947fb75aa56f" +} diff --git a/rust/cloud-storage/.sqlx/query-77ff9385b1d74c036dde9f03404de53c3002b45bbe4e800fd2edf3c09f7625cc.json b/rust/cloud-storage/.sqlx/query-77ff9385b1d74c036dde9f03404de53c3002b45bbe4e800fd2edf3c09f7625cc.json new file mode 100644 index 0000000000..e2694fd100 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-77ff9385b1d74c036dde9f03404de53c3002b45bbe4e800fd2edf3c09f7625cc.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT COUNT(*) as \"count\" FROM \"User\" WHERE \"organizationId\" = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + null + ] + }, + "hash": "77ff9385b1d74c036dde9f03404de53c3002b45bbe4e800fd2edf3c09f7625cc" +} diff --git a/rust/cloud-storage/.sqlx/query-783fb2d2833135d5bf8aa7eb5983b773d4b7c9b508388987155815d8c7e1db3b.json b/rust/cloud-storage/.sqlx/query-783fb2d2833135d5bf8aa7eb5983b773d4b7c9b508388987155815d8c7e1db3b.json new file mode 100644 index 0000000000..3377919e1e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-783fb2d2833135d5bf8aa7eb5983b773d4b7c9b508388987155815d8c7e1db3b.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, name, channel_type AS \"channel_type: ChannelType\", org_id, team_id\n FROM comms_channels\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "channel_type: ChannelType", + "type_info": { + "Custom": { + "name": "comms_channel_type", + "kind": { + "Enum": [ + "public", + "private", + "direct_message", + "team" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "org_id", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "team_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + false, + true, + true + ] + }, + "hash": "783fb2d2833135d5bf8aa7eb5983b773d4b7c9b508388987155815d8c7e1db3b" +} diff --git a/rust/cloud-storage/.sqlx/query-784bba91ffa42d509389120cd4d680c75ad890e4fdf4b9c0b9d88ff07abc23a4.json b/rust/cloud-storage/.sqlx/query-784bba91ffa42d509389120cd4d680c75ad890e4fdf4b9c0b9d88ff07abc23a4.json new file mode 100644 index 0000000000..837ced431a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-784bba91ffa42d509389120cd4d680c75ad890e4fdf4b9c0b9d88ff07abc23a4.json @@ -0,0 +1,173 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.replying_to_id,\n m.provider_history_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n NULL::TEXT as body_text,\n NULL::TEXT as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n JOIN email_links l ON m.link_id = l.id\n WHERE m.id = ANY($1) AND l.fusionauth_user_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 21, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 22, + "name": "body_macro", + "type_info": "Text" + }, + { + "ordinal": 23, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 24, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 25, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "Text" + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + null, + null, + null, + true, + false, + false + ] + }, + "hash": "784bba91ffa42d509389120cd4d680c75ad890e4fdf4b9c0b9d88ff07abc23a4" +} diff --git a/rust/cloud-storage/.sqlx/query-78d6d53824fefc526411d2a0ff9d70f665ebe35943b7246ff5e6e3f801183cef.json b/rust/cloud-storage/.sqlx/query-78d6d53824fefc526411d2a0ff9d70f665ebe35943b7246ff5e6e3f801183cef.json new file mode 100644 index 0000000000..b5606178ca --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-78d6d53824fefc526411d2a0ff9d70f665ebe35943b7246ff5e6e3f801183cef.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE call_participants\n SET left_at = now()\n WHERE call_id = $1 AND user_id = $2 AND left_at IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "78d6d53824fefc526411d2a0ff9d70f665ebe35943b7246ff5e6e3f801183cef" +} diff --git a/rust/cloud-storage/.sqlx/query-78f1cf9da464937604c1a2d5115c014cab9de72bd88605ff47a316baa2c7acc2.json b/rust/cloud-storage/.sqlx/query-78f1cf9da464937604c1a2d5115c014cab9de72bd88605ff47a316baa2c7acc2.json new file mode 100644 index 0000000000..9e6f7f8877 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-78f1cf9da464937604c1a2d5115c014cab9de72bd88605ff47a316baa2c7acc2.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT d.device_endpoint\n FROM notification_user_device_registration d\n WHERE d.device_token = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "device_endpoint", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "78f1cf9da464937604c1a2d5115c014cab9de72bd88605ff47a316baa2c7acc2" +} diff --git a/rust/cloud-storage/.sqlx/query-799422134794f3c4b9c5867b136262c2f639f313f14fd56da967a74d91aa1c88.json b/rust/cloud-storage/.sqlx/query-799422134794f3c4b9c5867b136262c2f639f313f14fd56da967a74d91aa1c88.json new file mode 100644 index 0000000000..8f474872bd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-799422134794f3c4b9c5867b136262c2f639f313f14fd56da967a74d91aa1c88.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO github_links (id, macro_id, fusionauth_user_id, github_username, github_user_id, created_at, updated_at)\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Uuid", + "Varchar", + "Text", + "Timestamptz", + "Timestamptz" + ] + }, + "nullable": [] + }, + "hash": "799422134794f3c4b9c5867b136262c2f639f313f14fd56da967a74d91aa1c88" +} diff --git a/rust/cloud-storage/.sqlx/query-79ac6b0966afc0c5472e3d5589e940bf0d6d2c4280e69b09b4f7c8839b5ad658.json b/rust/cloud-storage/.sqlx/query-79ac6b0966afc0c5472e3d5589e940bf0d6d2c4280e69b09b4f7c8839b5ad658.json new file mode 100644 index 0000000000..4b480ba3d9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-79ac6b0966afc0c5472e3d5589e940bf0d6d2c4280e69b09b4f7c8839b5ad658.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n name,\n model,\n \"userId\" as \"user_id\",\n \"createdAt\"::timestamptz as \"created_at\",\n \"updatedAt\"::timestamptz as \"updated_at\",\n \"deletedAt\"::timestamptz as \"deleted_at\",\n \"projectId\" as \"project_id\",\n \"tokenCount\" as \"token_count\",\n \"isPersistent\" as \"is_persistent\"\n FROM \"Chat\"\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "model", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "token_count", + "type_info": "Int8" + }, + { + "ordinal": 9, + "name": "is_persistent", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + null, + null, + null, + true, + true, + false + ] + }, + "hash": "79ac6b0966afc0c5472e3d5589e940bf0d6d2c4280e69b09b4f7c8839b5ad658" +} diff --git a/rust/cloud-storage/.sqlx/query-79bc5e3d91f3713ddb29cf42590eca0703771ea550311dfe651cc4cc063d34db.json b/rust/cloud-storage/.sqlx/query-79bc5e3d91f3713ddb29cf42590eca0703771ea550311dfe651cc4cc063d34db.json new file mode 100644 index 0000000000..fdeb62938d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-79bc5e3d91f3713ddb29cf42590eca0703771ea550311dfe651cc4cc063d34db.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT LOWER(domain) AS \"domain!\"\n FROM crm_domains\n WHERE company_id = $1 AND team_id = $2\n ORDER BY LOWER(domain) ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "domain!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "79bc5e3d91f3713ddb29cf42590eca0703771ea550311dfe651cc4cc063d34db" +} diff --git a/rust/cloud-storage/.sqlx/query-79c6974496c155f372a458d21240a09730630660ae75e8f6e5cfd8f5ba0ceb4e.json b/rust/cloud-storage/.sqlx/query-79c6974496c155f372a458d21240a09730630660ae75e8f6e5cfd8f5ba0ceb4e.json new file mode 100644 index 0000000000..06f69bc198 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-79c6974496c155f372a458d21240a09730630660ae75e8f6e5cfd8f5ba0ceb4e.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"SharePermission\" (\"isPublic\", \"publicAccessLevel\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, NOW(), NOW())\n RETURNING id, \"isPublic\" as is_public, \"publicAccessLevel\" as public_access_level;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "is_public", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "public_access_level", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Bool", + "Text" + ] + }, + "nullable": [ + false, + false, + true + ] + }, + "hash": "79c6974496c155f372a458d21240a09730630660ae75e8f6e5cfd8f5ba0ceb4e" +} diff --git a/rust/cloud-storage/.sqlx/query-79edd9ca0d31434d5d7a4db78a6b3f8eb316ff51e1099e40611ba77f5c048828.json b/rust/cloud-storage/.sqlx/query-79edd9ca0d31434d5d7a4db78a6b3f8eb316ff51e1099e40611ba77f5c048828.json new file mode 100644 index 0000000000..2cef855296 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-79edd9ca0d31434d5d7a4db78a6b3f8eb316ff51e1099e40611ba77f5c048828.json @@ -0,0 +1,119 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text AS source_id\n FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text AS source_id\n FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1 AS source_id\n ),\n visible_calls AS (\n SELECT\n c.id AS call_id,\n c.channel_id,\n c.room_name,\n c.created_by,\n c.created_at AS started_at,\n NULL::timestamptz AS ended_at,\n NULL::bigint AS duration_ms,\n c.egress_id,\n c.recording_key,\n c.preview_url,\n c.recording_started_at,\n NULL::text AS custom_name,\n NULL::text AS summary,\n c.share_with_team,\n true AS is_active,\n CASE\n WHEN EXISTS (\n SELECT 1 FROM call_participants cp\n WHERE cp.call_id = c.id AND cp.user_id = $1\n ) THEN 'ATTENDED'::text\n WHEN EXISTS (\n SELECT 1 FROM comms_channel_participants ccp\n WHERE ccp.channel_id = c.channel_id\n AND ccp.user_id = $1\n AND ccp.left_at IS NULL\n ) THEN 'MISSED'::text\n ELSE 'UNATTENDED'::text\n END AS status\n FROM calls c\n WHERE EXISTS (\n SELECT 1 FROM entity_access ea\n JOIN user_source_ids u ON u.source_id = ea.source_id\n WHERE ea.entity_id = c.id\n AND ea.entity_type = 'call'\n )\n AND ($3::bool IS FALSE OR c.channel_id = ANY($4))\n AND ($5::bool IS FALSE OR c.id = ANY($6))\n UNION ALL\n SELECT\n cr.id AS call_id,\n cr.channel_id,\n cr.room_name,\n cr.created_by,\n cr.started_at,\n cr.ended_at,\n cr.duration_ms,\n cr.egress_id,\n cr.recording_key,\n cr.preview_url,\n cr.recording_started_at,\n cr.custom_name,\n cr.summary,\n cr.share_with_team,\n false AS is_active,\n CASE\n WHEN EXISTS (\n SELECT 1 FROM call_record_participants crp\n WHERE crp.call_record_id = cr.id AND crp.user_id = $1\n ) THEN 'ATTENDED'::text\n WHEN EXISTS (\n SELECT 1 FROM comms_channel_participants ccp\n WHERE ccp.channel_id = cr.channel_id\n AND ccp.user_id = $1\n AND ccp.left_at IS NULL\n ) THEN 'MISSED'::text\n ELSE 'UNATTENDED'::text\n END AS status\n FROM call_records cr\n WHERE EXISTS (\n SELECT 1 FROM entity_access ea\n JOIN user_source_ids u ON u.source_id = ea.source_id\n WHERE ea.entity_id = cr.id\n AND ea.entity_type = 'call'\n )\n AND ($3::bool IS FALSE OR cr.channel_id = ANY($4))\n AND ($5::bool IS FALSE OR cr.id = ANY($6))\n )\n SELECT\n call_id as \"call_id!\",\n channel_id as \"channel_id!\",\n room_name as \"room_name!\",\n created_by as \"created_by!\",\n started_at as \"started_at!\",\n ended_at,\n duration_ms,\n egress_id,\n recording_key,\n preview_url,\n recording_started_at,\n custom_name,\n summary,\n share_with_team as \"share_with_team!\",\n is_active as \"is_active!\",\n status as \"status!\"\n FROM visible_calls\n WHERE ($7::bool IS FALSE OR status = ANY($8::text[]))\n ORDER BY \"started_at!\" DESC\n LIMIT $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "call_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id!", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "room_name!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_by!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "started_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "ended_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "duration_ms", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "egress_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "recording_key", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "preview_url", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "recording_started_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "custom_name", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "summary", + "type_info": "Text" + }, + { + "ordinal": 13, + "name": "share_with_team!", + "type_info": "Bool" + }, + { + "ordinal": 14, + "name": "is_active!", + "type_info": "Bool" + }, + { + "ordinal": 15, + "name": "status!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Int8", + "Bool", + "UuidArray", + "Bool", + "UuidArray", + "Bool", + "TextArray" + ] + }, + "nullable": [ + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null + ] + }, + "hash": "79edd9ca0d31434d5d7a4db78a6b3f8eb316ff51e1099e40611ba77f5c048828" +} diff --git a/rust/cloud-storage/.sqlx/query-7a04573d80958eb5b841e520136db80173119aacbab82f50a4a1ae468aaada65.json b/rust/cloud-storage/.sqlx/query-7a04573d80958eb5b841e520136db80173119aacbab82f50a4a1ae468aaada65.json new file mode 100644 index 0000000000..d692f301d5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7a04573d80958eb5b841e520136db80173119aacbab82f50a4a1ae468aaada65.json @@ -0,0 +1,71 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE comms_messages\n SET content = '', updated_at = NOW(), deleted_at = NOW()\n WHERE id = $1 AND channel_id = $2\n RETURNING\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "edited_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + null, + null + ] + }, + "hash": "7a04573d80958eb5b841e520136db80173119aacbab82f50a4a1ae468aaada65" +} diff --git a/rust/cloud-storage/.sqlx/query-7a97bb0e12628cc97e6e2555cf246cf0339ffbcece51c12635989df120793dfb.json b/rust/cloud-storage/.sqlx/query-7a97bb0e12628cc97e6e2555cf246cf0339ffbcece51c12635989df120793dfb.json new file mode 100644 index 0000000000..167982651f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7a97bb0e12628cc97e6e2555cf246cf0339ffbcece51c12635989df120793dfb.json @@ -0,0 +1,77 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n a.id, a.message_id, a.provider_attachment_id, \n a.filename, a.mime_type, a.size_bytes, \n a.content_id, eas.sfs_id as \"sfs_id?\", a.created_at, m.provider_id as \"message_provider_id!\"\n FROM email_attachments a\n JOIN email_messages m ON a.message_id = m.id\n LEFT JOIN email_attachments_sfs eas ON a.id = eas.attachment_id\n WHERE a.id = $1 AND m.link_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_attachment_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "filename", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "mime_type", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "size_bytes", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "content_id", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "sfs_id?", + "type_info": "Uuid" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "message_provider_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + false, + false, + true + ] + }, + "hash": "7a97bb0e12628cc97e6e2555cf246cf0339ffbcece51c12635989df120793dfb" +} diff --git a/rust/cloud-storage/.sqlx/query-7ae5368ee01e670dcc9804096f3d3e9dcab6dcebcb601bfb1ed190dbda0ff37f.json b/rust/cloud-storage/.sqlx/query-7ae5368ee01e670dcc9804096f3d3e9dcab6dcebcb601bfb1ed190dbda0ff37f.json new file mode 100644 index 0000000000..a33e79f60e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7ae5368ee01e670dcc9804096f3d3e9dcab6dcebcb601bfb1ed190dbda0ff37f.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO entity_properties (id, entity_id, entity_type, property_definition_id, values)\n VALUES ($1, $2, $3, $4, $5)\n ON CONFLICT (entity_id, entity_type, property_definition_id) \n DO UPDATE SET \n values = EXCLUDED.values,\n updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + }, + "Uuid", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "7ae5368ee01e670dcc9804096f3d3e9dcab6dcebcb601bfb1ed190dbda0ff37f" +} diff --git a/rust/cloud-storage/.sqlx/query-7aee0251787584d5ae4c7b01fc06562ccabe8d554bb4013b3970ddd3f10fc364.json b/rust/cloud-storage/.sqlx/query-7aee0251787584d5ae4c7b01fc06562ccabe8d554bb4013b3970ddd3f10fc364.json new file mode 100644 index 0000000000..dcc7e4820a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7aee0251787584d5ae4c7b01fc06562ccabe8d554bb4013b3970ddd3f10fc364.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT 'document' as \"item_type!\", \"documentId\" as \"item_id!\", \"sharePermissionId\" as \"share_permission_id!\"\n FROM \"DocumentPermission\"\n WHERE \"sharePermissionId\" = ANY($1)\n UNION ALL\n SELECT 'chat' as \"item_type!\", \"chatId\" as \"item_id!\", \"sharePermissionId\" as \"share_permission_id!\"\n FROM \"ChatPermission\"\n WHERE \"sharePermissionId\" = ANY($1)\n UNION ALL\n SELECT 'project' as \"item_type!\", \"projectId\" as \"item_id!\", \"sharePermissionId\" as \"share_permission_id!\"\n FROM \"ProjectPermission\"\n WHERE \"sharePermissionId\" = ANY($1)\n UNION ALL\n SELECT 'thread' as \"item_type!\", \"threadId\" as \"item_id!\", \"sharePermissionId\" as \"share_permission_id!\"\n FROM \"EmailThreadPermission\"\n WHERE \"sharePermissionId\" = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_type!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "item_id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "share_permission_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + null, + null, + null + ] + }, + "hash": "7aee0251787584d5ae4c7b01fc06562ccabe8d554bb4013b3970ddd3f10fc364" +} diff --git a/rust/cloud-storage/.sqlx/query-7b34f011e0ff7320e6a43825cace039b37662cf51a607ad905f758c508aa5049.json b/rust/cloud-storage/.sqlx/query-7b34f011e0ff7320e6a43825cace039b37662cf51a607ad905f758c508aa5049.json new file mode 100644 index 0000000000..a26e1d5521 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7b34f011e0ff7320e6a43825cace039b37662cf51a607ad905f758c508aa5049.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT seat_count\n FROM team\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "seat_count", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "7b34f011e0ff7320e6a43825cace039b37662cf51a607ad905f758c508aa5049" +} diff --git a/rust/cloud-storage/.sqlx/query-7b3d997c28cd0c99fc7b710e47f9bc1ac1a63e950ae4446a7c748ac067b7c8cc.json b/rust/cloud-storage/.sqlx/query-7b3d997c28cd0c99fc7b710e47f9bc1ac1a63e950ae4446a7c748ac067b7c8cc.json new file mode 100644 index 0000000000..7180ec9acf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7b3d997c28cd0c99fc7b710e47f9bc1ac1a63e950ae4446a7c748ac067b7c8cc.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT t.id\n FROM email_threads t\n JOIN email_links l ON t.link_id = l.id\n WHERE l.fusionauth_user_id = $1\n ORDER BY t.latest_inbound_message_ts DESC NULLS LAST\n LIMIT $2 OFFSET $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text", + "Int8", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "7b3d997c28cd0c99fc7b710e47f9bc1ac1a63e950ae4446a7c748ac067b7c8cc" +} diff --git a/rust/cloud-storage/.sqlx/query-7b57355357a891761f608fc4d7ad472b901c087890909de9a068d6bc1ba0eb7a.json b/rust/cloud-storage/.sqlx/query-7b57355357a891761f608fc4d7ad472b901c087890909de9a068d6bc1ba0eb7a.json new file mode 100644 index 0000000000..fa801927c7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7b57355357a891761f608fc4d7ad472b901c087890909de9a068d6bc1ba0eb7a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.email\n FROM\n \"User\" u\n WHERE\n u.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "7b57355357a891761f608fc4d7ad472b901c087890909de9a068d6bc1ba0eb7a" +} diff --git a/rust/cloud-storage/.sqlx/query-7b747964b75e86cda7393af6cd483d86a7214baaa710e8a527e1dd77ab8274b6.json b/rust/cloud-storage/.sqlx/query-7b747964b75e86cda7393af6cd483d86a7214baaa710e8a527e1dd77ab8274b6.json new file mode 100644 index 0000000000..e2226076d5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7b747964b75e86cda7393af6cd483d86a7214baaa710e8a527e1dd77ab8274b6.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Chat\" SET \"updatedAt\" = NOW()\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "7b747964b75e86cda7393af6cd483d86a7214baaa710e8a527e1dd77ab8274b6" +} diff --git a/rust/cloud-storage/.sqlx/query-7bb408bf30aecce0065dcfcf07da69efaab69905bb6b97d5d57ad591ff8c2006.json b/rust/cloud-storage/.sqlx/query-7bb408bf30aecce0065dcfcf07da69efaab69905bb6b97d5d57ad591ff8c2006.json new file mode 100644 index 0000000000..59735d180a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7bb408bf30aecce0065dcfcf07da69efaab69905bb6b97d5d57ad591ff8c2006.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"account_merge_request\"\n WHERE \"id\" = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "7bb408bf30aecce0065dcfcf07da69efaab69905bb6b97d5d57ad591ff8c2006" +} diff --git a/rust/cloud-storage/.sqlx/query-7bdcbf27b9edb2a2efc0e30c83230f6400385b295a50b48776985089d6ae3c84.json b/rust/cloud-storage/.sqlx/query-7bdcbf27b9edb2a2efc0e30c83230f6400385b295a50b48776985089d6ae3c84.json new file mode 100644 index 0000000000..ee23701453 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7bdcbf27b9edb2a2efc0e30c83230f6400385b295a50b48776985089d6ae3c84.json @@ -0,0 +1,73 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id as \"id!\", macro_id as \"macro_id!\",\n fusionauth_user_id as \"fusionauth_user_id!\",\n email_address as \"email_address!\",\n provider as \"provider!: _\",\n is_sync_active as \"is_sync_active!\",\n created_at as \"created_at!\",\n updated_at as \"updated_at!\"\n FROM (\n SELECT el.id, el.macro_id, el.fusionauth_user_id, el.email_address,\n el.provider, el.is_sync_active, el.created_at, el.updated_at\n FROM email_links el\n WHERE el.macro_id = $1\n UNION\n SELECT el.id, el.macro_id, el.fusionauth_user_id, el.email_address,\n el.provider, el.is_sync_active, el.created_at, el.updated_at\n FROM email_links el\n JOIN macro_user_links mul ON el.macro_id = mul.child_macro_id\n WHERE mul.primary_macro_id = $1\n ) AS combined\n ORDER BY created_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "email_address!", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "provider!: _", + "type_info": { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_sync_active!", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at!", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null, + null, + null, + null, + null, + null, + null, + null + ] + }, + "hash": "7bdcbf27b9edb2a2efc0e30c83230f6400385b295a50b48776985089d6ae3c84" +} diff --git a/rust/cloud-storage/.sqlx/query-7c0b9d645a85e30577377e4d8c8a8f976e86c6251e12517a2b1e14d525e09198.json b/rust/cloud-storage/.sqlx/query-7c0b9d645a85e30577377e4d8c8a8f976e86c6251e12517a2b1e14d525e09198.json new file mode 100644 index 0000000000..721b0038f2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7c0b9d645a85e30577377e4d8c8a8f976e86c6251e12517a2b1e14d525e09198.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id, notification_event_type\n FROM user_notification_type_preference\n WHERE user_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "notification_event_type", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "7c0b9d645a85e30577377e4d8c8a8f976e86c6251e12517a2b1e14d525e09198" +} diff --git a/rust/cloud-storage/.sqlx/query-7c4cd009982b182b18927dc5671aad059a55440c2de73c818ef28d6cf08acf80.json b/rust/cloud-storage/.sqlx/query-7c4cd009982b182b18927dc5671aad059a55440c2de73c818ef28d6cf08acf80.json new file mode 100644 index 0000000000..d51bf18635 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7c4cd009982b182b18927dc5671aad059a55440c2de73c818ef28d6cf08acf80.json @@ -0,0 +1,19 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Document\" (id, owner, name, \"fileType\", \"projectId\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, $5, $6, $6)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Text", + "Text", + "Timestamp" + ] + }, + "nullable": [] + }, + "hash": "7c4cd009982b182b18927dc5671aad059a55440c2de73c818ef28d6cf08acf80" +} diff --git a/rust/cloud-storage/.sqlx/query-7ccdaab5873129437c98581ac37eb4148255b83e18fad15349d06c54040fd6cc.json b/rust/cloud-storage/.sqlx/query-7ccdaab5873129437c98581ac37eb4148255b83e18fad15349d06c54040fd6cc.json new file mode 100644 index 0000000000..a166680895 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7ccdaab5873129437c98581ac37eb4148255b83e18fad15349d06c54040fd6cc.json @@ -0,0 +1,21 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO notification (id, notification_event_type, event_item_id, event_item_type, service_sender, metadata, sender_id, apns_collapse_key)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n ON CONFLICT (id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Varchar", + "Text", + "Text", + "Text", + "Jsonb", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "7ccdaab5873129437c98581ac37eb4148255b83e18fad15349d06c54040fd6cc" +} diff --git a/rust/cloud-storage/.sqlx/query-7ce336a58021f98fbb7c87b42ed827d0aee69ec593e923e41d2545b75d1def37.json b/rust/cloud-storage/.sqlx/query-7ce336a58021f98fbb7c87b42ed827d0aee69ec593e923e41d2545b75d1def37.json new file mode 100644 index 0000000000..373d36db6e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7ce336a58021f98fbb7c87b42ed827d0aee69ec593e923e41d2545b75d1def37.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"UploadJob\" SET \"documentId\" = $1 WHERE \"jobId\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "7ce336a58021f98fbb7c87b42ed827d0aee69ec593e923e41d2545b75d1def37" +} diff --git a/rust/cloud-storage/.sqlx/query-7d2487e2e00482505b104e5386377e939dd85a9090b3d89d71bb495b2ba7cca9.json b/rust/cloud-storage/.sqlx/query-7d2487e2e00482505b104e5386377e939dd85a9090b3d89d71bb495b2ba7cca9.json new file mode 100644 index 0000000000..88476d02eb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7d2487e2e00482505b104e5386377e939dd85a9090b3d89d71bb495b2ba7cca9.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Document\" SET \"deletedAt\" = NULL WHERE id = ANY($1);\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "7d2487e2e00482505b104e5386377e939dd85a9090b3d89d71bb495b2ba7cca9" +} diff --git a/rust/cloud-storage/.sqlx/query-7d4385b8207bd320c290edc420c68c86028ac0ecb586a78fe55438f5e13b9106.json b/rust/cloud-storage/.sqlx/query-7d4385b8207bd320c290edc420c68c86028ac0ecb586a78fe55438f5e13b9106.json new file mode 100644 index 0000000000..a63d6d21d2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7d4385b8207bd320c290edc420c68c86028ac0ecb586a78fe55438f5e13b9106.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_channel_participants (channel_id, user_id, role, joined_at)\n SELECT cc.id, $2, 'member'::comms_participant_role, NOW()\n FROM comms_channels cc\n WHERE cc.team_id = $1\n ON CONFLICT (channel_id, user_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "7d4385b8207bd320c290edc420c68c86028ac0ecb586a78fe55438f5e13b9106" +} diff --git a/rust/cloud-storage/.sqlx/query-7d5fe2bfe9751516c5e9b4315c74138f065c6c9b2a92c0de4d048dc72fdfe369.json b/rust/cloud-storage/.sqlx/query-7d5fe2bfe9751516c5e9b4315c74138f065c6c9b2a92c0de4d048dc72fdfe369.json new file mode 100644 index 0000000000..ad3cf25985 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7d5fe2bfe9751516c5e9b4315c74138f065c6c9b2a92c0de4d048dc72fdfe369.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, $4)\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = $4\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Timestamp" + ] + }, + "nullable": [] + }, + "hash": "7d5fe2bfe9751516c5e9b4315c74138f065c6c9b2a92c0de4d048dc72fdfe369" +} diff --git a/rust/cloud-storage/.sqlx/query-7d904128ec24b17b4f1b25a2084b42476455160ba50f8e599a47acca06484cd7.json b/rust/cloud-storage/.sqlx/query-7d904128ec24b17b4f1b25a2084b42476455160ba50f8e599a47acca06484cd7.json new file mode 100644 index 0000000000..c79d9c592c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7d904128ec24b17b4f1b25a2084b42476455160ba50f8e599a47acca06484cd7.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n n.event_item_id,\n n.event_item_type,\n n.notification_event_type,\n n.apns_collapse_key\n FROM notification n\n WHERE n.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "event_item_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "event_item_type", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "notification_event_type", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "apns_collapse_key", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + true + ] + }, + "hash": "7d904128ec24b17b4f1b25a2084b42476455160ba50f8e599a47acca06484cd7" +} diff --git a/rust/cloud-storage/.sqlx/query-7da22b0b109d1caac6384294fafaef3148e80824e023ddee78473fbae17720de.json b/rust/cloud-storage/.sqlx/query-7da22b0b109d1caac6384294fafaef3148e80824e023ddee78473fbae17720de.json new file mode 100644 index 0000000000..25e38f7bcd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7da22b0b109d1caac6384294fafaef3148e80824e023ddee78473fbae17720de.json @@ -0,0 +1,71 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n cr.id AS \"call_id!\",\n cr.channel_id AS \"channel_id!\",\n cr.created_by AS \"created_by!\",\n cr.started_at AS \"started_at!\",\n cr.ended_at AS \"ended_at!\",\n cr.duration_ms AS \"duration_ms!\",\n cr.custom_name AS \"custom_name?\",\n EXISTS (\n SELECT 1 FROM call_record_participants crp\n WHERE crp.call_record_id = cr.id AND crp.user_id = $2\n ) AS \"attended!\",\n CASE\n WHEN EXISTS (\n SELECT 1 FROM call_record_participants crp\n WHERE crp.call_record_id = cr.id AND crp.user_id = $2\n ) THEN 'ATTENDED'\n WHEN EXISTS (\n SELECT 1 FROM comms_channel_participants ccp\n WHERE ccp.channel_id = cr.channel_id\n AND ccp.user_id = $2\n AND ccp.left_at IS NULL\n ) THEN 'MISSED'\n ELSE 'UNATTENDED'\n END AS \"status!\"\n FROM call_records cr\n WHERE cr.id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "call_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id!", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "created_by!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "started_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "ended_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "duration_ms!", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "custom_name?", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "attended!", + "type_info": "Bool" + }, + { + "ordinal": 8, + "name": "status!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + null, + null + ] + }, + "hash": "7da22b0b109d1caac6384294fafaef3148e80824e023ddee78473fbae17720de" +} diff --git a/rust/cloud-storage/.sqlx/query-7e076694e17fe7c86e7a948ab72e4a2a56f301223b62413247ac15bd5fef29c5.json b/rust/cloud-storage/.sqlx/query-7e076694e17fe7c86e7a948ab72e4a2a56f301223b62413247ac15bd5fef29c5.json new file mode 100644 index 0000000000..35ccaa385e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7e076694e17fe7c86e7a948ab72e4a2a56f301223b62413247ac15bd5fef29c5.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"document_email\" (document_id, email_attachment_id)\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "7e076694e17fe7c86e7a948ab72e4a2a56f301223b62413247ac15bd5fef29c5" +} diff --git a/rust/cloud-storage/.sqlx/query-7eaa606441665fa4dca3077c6b3c02e8c4a0d136a40149829b96dff878897108.json b/rust/cloud-storage/.sqlx/query-7eaa606441665fa4dca3077c6b3c02e8c4a0d136a40149829b96dff878897108.json new file mode 100644 index 0000000000..dd685835c4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7eaa606441665fa4dca3077c6b3c02e8c4a0d136a40149829b96dff878897108.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO mobile_welcome_email (email)\n VALUES ($1)\n ON CONFLICT (email) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "7eaa606441665fa4dca3077c6b3c02e8c4a0d136a40149829b96dff878897108" +} diff --git a/rust/cloud-storage/.sqlx/query-7ee9ba5adfac304c7ac930943538ecca7428b1054d451fb2f8973cf9c11caf45.json b/rust/cloud-storage/.sqlx/query-7ee9ba5adfac304c7ac930943538ecca7428b1054d451fb2f8973cf9c11caf45.json new file mode 100644 index 0000000000..fbdbdf128a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7ee9ba5adfac304c7ac930943538ecca7428b1054d451fb2f8973cf9c11caf45.json @@ -0,0 +1,118 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH input_ids AS (\n SELECT UNNEST($1::uuid[]) AS channel_id\n )\n SELECT\n i.channel_id AS \"channel_id!\",\n l.message_id AS \"l_message_id?: uuid::Uuid\",\n l.thread_id AS \"l_thread_id?: uuid::Uuid\",\n l.sender_id AS \"l_sender_id?: String\",\n l.content AS \"l_content?: String\",\n l.created_at AS \"l_created_at?: chrono::DateTime\",\n l.updated_at AS \"l_updated_at?: chrono::DateTime\",\n l.deleted_at AS \"l_deleted_at?: chrono::DateTime\",\n l.mentions AS \"l_mentions?: Vec\",\n n.message_id AS \"n_message_id?: uuid::Uuid\",\n n.thread_id AS \"n_thread_id?: uuid::Uuid\",\n n.sender_id AS \"n_sender_id?: String\",\n n.content AS \"n_content?: String\",\n n.created_at AS \"n_created_at?: chrono::DateTime\",\n n.updated_at AS \"n_updated_at?: chrono::DateTime\",\n n.deleted_at AS \"n_deleted_at?: chrono::DateTime\",\n n.mentions AS \"n_mentions?: Vec\"\n FROM input_ids i\n LEFT JOIN LATERAL (\n SELECT\n m.id AS message_id,\n m.thread_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.deleted_at::timestamptz AS deleted_at,\n COALESCE(\n ARRAY(\n SELECT entity_type || ':' || entity_id\n FROM comms_entity_mentions em\n WHERE em.source_entity_type = 'message'\n AND em.source_entity_id = m.id::text\n ),\n '{}'::text[]\n ) AS mentions\n FROM comms_messages m\n WHERE m.channel_id = i.channel_id\n AND m.deleted_at IS NULL\n ORDER BY m.created_at DESC\n LIMIT 1\n ) l ON TRUE\n LEFT JOIN LATERAL (\n SELECT\n m.id AS message_id,\n m.thread_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.deleted_at::timestamptz AS deleted_at,\n COALESCE(\n ARRAY(\n SELECT entity_type || ':' || entity_id\n FROM comms_entity_mentions em\n WHERE em.source_entity_type = 'message'\n AND em.source_entity_id = m.id::text\n ),\n '{}'::text[]\n ) AS mentions\n FROM comms_messages m\n WHERE m.channel_id = i.channel_id\n AND m.deleted_at IS NULL\n AND m.thread_id IS NULL\n ORDER BY m.created_at DESC\n LIMIT 1\n ) n ON TRUE\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "l_message_id?: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "l_thread_id?: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "l_sender_id?: String", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "l_content?: String", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "l_created_at?: chrono::DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "l_updated_at?: chrono::DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "l_deleted_at?: chrono::DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "l_mentions?: Vec", + "type_info": "TextArray" + }, + { + "ordinal": 9, + "name": "n_message_id?: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 10, + "name": "n_thread_id?: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 11, + "name": "n_sender_id?: String", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "n_content?: String", + "type_info": "Text" + }, + { + "ordinal": 13, + "name": "n_created_at?: chrono::DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 14, + "name": "n_updated_at?: chrono::DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "n_deleted_at?: chrono::DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 16, + "name": "n_mentions?: Vec", + "type_info": "TextArray" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + null, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true + ] + }, + "hash": "7ee9ba5adfac304c7ac930943538ecca7428b1054d451fb2f8973cf9c11caf45" +} diff --git a/rust/cloud-storage/.sqlx/query-7f5d80a93c34a98c84c86f6dd678139fbab4c5bf559090a45d79384bcef71a43.json b/rust/cloud-storage/.sqlx/query-7f5d80a93c34a98c84c86f6dd678139fbab4c5bf559090a45d79384bcef71a43.json new file mode 100644 index 0000000000..699c743a02 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7f5d80a93c34a98c84c86f6dd678139fbab4c5bf559090a45d79384bcef71a43.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Project\"\n WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "7f5d80a93c34a98c84c86f6dd678139fbab4c5bf559090a45d79384bcef71a43" +} diff --git a/rust/cloud-storage/.sqlx/query-7f8601bd8c738ab2e656f22c009f7c6599dd2dd0de63c92a772d6638bec6ef77.json b/rust/cloud-storage/.sqlx/query-7f8601bd8c738ab2e656f22c009f7c6599dd2dd0de63c92a772d6638bec6ef77.json new file mode 100644 index 0000000000..1c2c59c1b8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7f8601bd8c738ab2e656f22c009f7c6599dd2dd0de63c92a772d6638bec6ef77.json @@ -0,0 +1,172 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n provider_id,\n global_id,\n thread_id,\n provider_thread_id,\n replying_to_id,\n link_id,\n provider_history_id,\n internal_date_ts,\n snippet,\n size_estimate,\n subject,\n from_name,\n from_contact_id,\n sent_at,\n has_attachments,\n is_read,\n is_starred,\n is_sent,\n is_draft,\n headers_jsonb,\n created_at,\n updated_at,\n body_text as body_text,\n body_html_sanitized as body_html_sanitized,\n NULL::TEXT as body_macro\n FROM email_messages\n WHERE thread_id = ANY($1)\n ORDER BY internal_date_ts DESC NULLS LAST\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 6, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 21, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 22, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 23, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 24, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 25, + "name": "body_macro", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + true, + false, + false, + true, + true, + null + ] + }, + "hash": "7f8601bd8c738ab2e656f22c009f7c6599dd2dd0de63c92a772d6638bec6ef77" +} diff --git a/rust/cloud-storage/.sqlx/query-7fa9eb6f3b050e679afd93120744ba5f2cfd3a341111c1fc757ae75f50134d7f.json b/rust/cloud-storage/.sqlx/query-7fa9eb6f3b050e679afd93120744ba5f2cfd3a341111c1fc757ae75f50134d7f.json new file mode 100644 index 0000000000..19d34e2042 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7fa9eb6f3b050e679afd93120744ba5f2cfd3a341111c1fc757ae75f50134d7f.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT source, destination\n FROM email_sfs_mappings\n WHERE source = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "source", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "destination", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "7fa9eb6f3b050e679afd93120744ba5f2cfd3a341111c1fc757ae75f50134d7f" +} diff --git a/rust/cloud-storage/.sqlx/query-7fb579182c5ebbf4516b104b3f4b5956f4d84fb449358a83393d0491d712f44f.json b/rust/cloud-storage/.sqlx/query-7fb579182c5ebbf4516b104b3f4b5956f4d84fb449358a83393d0491d712f44f.json new file mode 100644 index 0000000000..9c89dd91e5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7fb579182c5ebbf4516b104b3f4b5956f4d84fb449358a83393d0491d712f44f.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n LOWER(c.email_address) AS \"email!\",\n c.name AS \"name\",\n MIN(m.internal_date_ts) AS \"first_at!\",\n MAX(m.internal_date_ts) AS \"last_at!\"\n FROM email_messages m\n JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.link_id = $1\n AND m.is_sent = false\n AND m.from_contact_id IS NOT NULL\n AND m.internal_date_ts IS NOT NULL\n GROUP BY LOWER(c.email_address), c.name\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "first_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "last_at!", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null, + true, + null, + null + ] + }, + "hash": "7fb579182c5ebbf4516b104b3f4b5956f4d84fb449358a83393d0491d712f44f" +} diff --git a/rust/cloud-storage/.sqlx/query-7fc9da48b6c62ab0db6327e300eb80eafcff34b2d5d13621a688883acc3db154.json b/rust/cloud-storage/.sqlx/query-7fc9da48b6c62ab0db6327e300eb80eafcff34b2d5d13621a688883acc3db154.json new file mode 100644 index 0000000000..f8b30182d4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-7fc9da48b6c62ab0db6327e300eb80eafcff34b2d5d13621a688883acc3db154.json @@ -0,0 +1,129 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as \"document_id\",\n d.owner as \"owner\",\n d.name as \"document_name\",\n COALESCE(di.id, db.id) as \"document_version_id!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"fileType\" as \"file_type\",\n db.bom_parts as \"document_bom?\",\n di.modification_data as \"modification_data?\",\n d.\"projectId\" as \"project_id\",\n p.name as \"project_name?\",\n di.sha as \"sha?\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.sha,\n i.\"createdAt\",\n (\n SELECT\n imod.\"modificationData\"\n FROM\n \"DocumentInstanceModificationData\" imod\n WHERE\n imod.\"documentInstanceId\" = i.id\n ) as modification_data,\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n AND\n i.id = $2\n ) di ON true\n LEFT JOIN LATERAL (\n SELECT\n b.id,\n (\n SELECT\n json_agg(\n json_build_object(\n 'id', bp.id,\n 'sha', bp.sha,\n 'path', bp.path\n )\n )\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = b.id\n ) as bom_parts\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n AND\n b.id = $2\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n p.name\n FROM \"Project\" p\n WHERE p.id = d.\"projectId\"\n ) p ON d.\"projectId\" IS NOT NULL\n WHERE\n d.id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "document_version_id!", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "document_bom?", + "type_info": "Json" + }, + { + "ordinal": 11, + "name": "modification_data?", + "type_info": "Jsonb" + }, + { + "ordinal": 12, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 13, + "name": "project_name?", + "type_info": "Text" + }, + { + "ordinal": 14, + "name": "sha?", + "type_info": "Text" + }, + { + "ordinal": 15, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 16, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + null, + true, + true, + true, + null, + null, + true, + null, + null, + true, + false, + false, + false, + null + ] + }, + "hash": "7fc9da48b6c62ab0db6327e300eb80eafcff34b2d5d13621a688883acc3db154" +} diff --git a/rust/cloud-storage/.sqlx/query-8038c7f88cea547f6ed9e7d8d8e3b547ad7f8880f4e695bc037ccc7ca8493f82.json b/rust/cloud-storage/.sqlx/query-8038c7f88cea547f6ed9e7d8d8e3b547ad7f8880f4e695bc037ccc7ca8493f82.json new file mode 100644 index 0000000000..e8811731fa --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8038c7f88cea547f6ed9e7d8d8e3b547ad7f8880f4e695bc037ccc7ca8493f82.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n \"content\"\n FROM \"DocumentProcessResult\"\n WHERE \"documentId\" = $1 AND \"jobType\" = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "content", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "8038c7f88cea547f6ed9e7d8d8e3b547ad7f8880f4e695bc037ccc7ca8493f82" +} diff --git a/rust/cloud-storage/.sqlx/query-805150c1a22fe4cee95588606be11c6419a2e25f66201dfefc8a87a586150d26.json b/rust/cloud-storage/.sqlx/query-805150c1a22fe4cee95588606be11c6419a2e25f66201dfefc8a87a586150d26.json new file mode 100644 index 0000000000..1211597670 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-805150c1a22fe4cee95588606be11c6419a2e25f66201dfefc8a87a586150d26.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT values->'value'->0->>'entity_id' as \"parent_id\"\n FROM entity_properties\n WHERE entity_id = $1\n AND entity_type = 'TASK'\n AND property_definition_id = $2\n AND values IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "parent_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "805150c1a22fe4cee95588606be11c6419a2e25f66201dfefc8a87a586150d26" +} diff --git a/rust/cloud-storage/.sqlx/query-80d20d5b664dbbb320a52bf47f134534f93906716e415c54b6e3b30834973bc7.json b/rust/cloud-storage/.sqlx/query-80d20d5b664dbbb320a52bf47f134534f93906716e415c54b6e3b30834973bc7.json new file mode 100644 index 0000000000..8d3011486c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-80d20d5b664dbbb320a52bf47f134534f93906716e415c54b6e3b30834973bc7.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT owner, \"deletedAt\" as deleted_at FROM \"Document\" WHERE id=$1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "deleted_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "80d20d5b664dbbb320a52bf47f134534f93906716e415c54b6e3b30834973bc7" +} diff --git a/rust/cloud-storage/.sqlx/query-8147aab2de8747d607d38b11d39c62991540fc188b1c70f3c40a8a12f4908071.json b/rust/cloud-storage/.sqlx/query-8147aab2de8747d607d38b11d39c62991540fc188b1c70f3c40a8a12f4908071.json new file mode 100644 index 0000000000..e294b94dc9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8147aab2de8747d607d38b11d39c62991540fc188b1c70f3c40a8a12f4908071.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT name FROM \"Project\" WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "8147aab2de8747d607d38b11d39c62991540fc188b1c70f3c40a8a12f4908071" +} diff --git a/rust/cloud-storage/.sqlx/query-82329af5032380193f6774277bf662f7a68651a2375e36b9923a6bf7fec71426.json b/rust/cloud-storage/.sqlx/query-82329af5032380193f6774277bf662f7a68651a2375e36b9923a6bf7fec71426.json new file mode 100644 index 0000000000..ff952f5055 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-82329af5032380193f6774277bf662f7a68651a2375e36b9923a6bf7fec71426.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.\"organizationId\" as organization_id\n FROM\n \"User\" u\n WHERE\n u.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "organization_id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true + ] + }, + "hash": "82329af5032380193f6774277bf662f7a68651a2375e36b9923a6bf7fec71426" +} diff --git a/rust/cloud-storage/.sqlx/query-8238816f3d6e5b374b83023a799251d28c15592d8b50959c331bbc2ba45ceaea.json b/rust/cloud-storage/.sqlx/query-8238816f3d6e5b374b83023a799251d28c15592d8b50959c331bbc2ba45ceaea.json new file mode 100644 index 0000000000..80302fe8d7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8238816f3d6e5b374b83023a799251d28c15592d8b50959c331bbc2ba45ceaea.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as document_id\n FROM\n \"Document\" d\n WHERE\n d.owner = $1 AND d.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "8238816f3d6e5b374b83023a799251d28c15592d8b50959c331bbc2ba45ceaea" +} diff --git a/rust/cloud-storage/.sqlx/query-827b998f442f5f6cb6ff85dc35f01c5782128a4cb9a020e22ab83a24a6c2b4f5.json b/rust/cloud-storage/.sqlx/query-827b998f442f5f6cb6ff85dc35f01c5782128a4cb9a020e22ab83a24a6c2b4f5.json new file mode 100644 index 0000000000..d172804854 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-827b998f442f5f6cb6ff85dc35f01c5782128a4cb9a020e22ab83a24a6c2b4f5.json @@ -0,0 +1,110 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n id,\n organization_id,\n user_id,\n display_name,\n data_type as \"data_type: DataType\",\n is_multi_select,\n specific_entity_type as \"specific_entity_type: Option\",\n created_at,\n updated_at,\n is_system\n FROM property_definitions\n WHERE \n ($3 AND is_system)\n OR (\n ($1::int IS NOT NULL AND organization_id = $1) \n OR ($2::text IS NOT NULL AND user_id = $2)\n )\n ORDER BY LOWER(display_name) ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "organization_id", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "display_name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "data_type: DataType", + "type_info": { + "Custom": { + "name": "property_data_type", + "kind": { + "Enum": [ + "BOOLEAN", + "DATE", + "NUMBER", + "STRING", + "SELECT_NUMBER", + "SELECT_STRING", + "ENTITY", + "LINK" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_multi_select", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "specific_entity_type: Option", + "type_info": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "is_system", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int4", + "Text", + "Bool" + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + false, + true, + false, + false, + false + ] + }, + "hash": "827b998f442f5f6cb6ff85dc35f01c5782128a4cb9a020e22ab83a24a6c2b4f5" +} diff --git a/rust/cloud-storage/.sqlx/query-827d839ae763a24c7faac855046d760a9d51f927e073bd9b2f07c690882fac03.json b/rust/cloud-storage/.sqlx/query-827d839ae763a24c7faac855046d760a9d51f927e073bd9b2f07c690882fac03.json new file mode 100644 index 0000000000..dea09841c7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-827d839ae763a24c7faac855046d760a9d51f927e073bd9b2f07c690882fac03.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, name, avatar_url\n FROM bots\n WHERE id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "avatar_url", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + true + ] + }, + "hash": "827d839ae763a24c7faac855046d760a9d51f927e073bd9b2f07c690882fac03" +} diff --git a/rust/cloud-storage/.sqlx/query-8284a5f2fb0c00c676f11b91457b8338692087d259f3c0dc0975b6b2053a7b45.json b/rust/cloud-storage/.sqlx/query-8284a5f2fb0c00c676f11b91457b8338692087d259f3c0dc0975b6b2053a7b45.json new file mode 100644 index 0000000000..42aa0d66c3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8284a5f2fb0c00c676f11b91457b8338692087d259f3c0dc0975b6b2053a7b45.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH updated AS (\n UPDATE user_notification\n SET seen_at = NOW()\n WHERE user_id = $1 AND notification_id = ANY($2) AND deleted_at IS NULL\n RETURNING notification_id, done, seen_at::timestamptz as viewed_at\n )\n SELECT\n updated.notification_id,\n updated.done,\n updated.viewed_at,\n NOW()::timestamptz as \"updated_at!\"\n FROM updated\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "notification_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "done", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "viewed_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "updated_at!", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "UuidArray" + ] + }, + "nullable": [ + false, + false, + null, + null + ] + }, + "hash": "8284a5f2fb0c00c676f11b91457b8338692087d259f3c0dc0975b6b2053a7b45" +} diff --git a/rust/cloud-storage/.sqlx/query-8334abc3fffa33d4b93704f039d5cd78bb02fa8505c3ba8111d1c9e17ffd93d8.json b/rust/cloud-storage/.sqlx/query-8334abc3fffa33d4b93704f039d5cd78bb02fa8505c3ba8111d1c9e17ffd93d8.json new file mode 100644 index 0000000000..5446721266 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8334abc3fffa33d4b93704f039d5cd78bb02fa8505c3ba8111d1c9e17ffd93d8.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n c.id as comment_id, \n c.\"threadId\" as thread_id, \n c.owner, \n c.sender, \n c.text, \n c.metadata, \n c.\"createdAt\"::timestamptz as created_at, \n c.\"updatedAt\"::timestamptz as updated_at, \n c.\"deletedAt\"::timestamptz as deleted_at, \n c.order\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n WHERE c.\"threadId\" = $1\n AND c.\"deletedAt\" IS NULL\n AND t.\"deletedAt\" IS NULL\n ORDER BY c.\"createdAt\" ASC \n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "comment_id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "sender", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "text", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "order", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + true, + null, + null, + null, + true + ] + }, + "hash": "8334abc3fffa33d4b93704f039d5cd78bb02fa8505c3ba8111d1c9e17ffd93d8" +} diff --git a/rust/cloud-storage/.sqlx/query-833f7916c7445825f248eac09769afd4b4971b517b12e578ec2f534038609572.json b/rust/cloud-storage/.sqlx/query-833f7916c7445825f248eac09769afd4b4971b517b12e578ec2f534038609572.json new file mode 100644 index 0000000000..8b6519505d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-833f7916c7445825f248eac09769afd4b4971b517b12e578ec2f534038609572.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $2 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $2\n UNION ALL\n SELECT $2\n )\n SELECT\n chat_id,\n access_level\n FROM (\n -- Source 1: entity_access for chats\n SELECT\n ea.entity_id::text as chat_id,\n ea.access_level::text as access_level\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n AND ea.entity_id = ANY(SELECT id::uuid FROM \"Chat\" WHERE id = ANY($1) AND \"deletedAt\" IS NULL)\n AND ea.entity_type = 'chat'\n UNION ALL\n -- Source 2: Direct chat public permissions\n SELECT\n c.id as chat_id,\n sp.\"publicAccessLevel\" as access_level\n FROM \"Chat\" c\n JOIN \"ChatPermission\" cp ON cp.\"chatId\" = c.id\n JOIN \"SharePermission\" sp ON sp.id = cp.\"sharePermissionId\"\n AND sp.\"isPublic\" = true\n AND sp.\"publicAccessLevel\" IS NOT NULL\n WHERE c.id = ANY($1) AND c.\"deletedAt\" IS NULL\n ) as all_levels\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "chat_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "access_level", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray", + "Text" + ] + }, + "nullable": [ + null, + null + ] + }, + "hash": "833f7916c7445825f248eac09769afd4b4971b517b12e578ec2f534038609572" +} diff --git a/rust/cloud-storage/.sqlx/query-8359035e915d0949500ede9f520fb3ea45d1766256ee45b0c5967618301b2ea6.json b/rust/cloud-storage/.sqlx/query-8359035e915d0949500ede9f520fb3ea45d1766256ee45b0c5967618301b2ea6.json new file mode 100644 index 0000000000..fe47607402 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8359035e915d0949500ede9f520fb3ea45d1766256ee45b0c5967618301b2ea6.json @@ -0,0 +1,83 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n link_id,\n fusionauth_user_id,\n threads_requested_limit,\n total_threads,\n threads_retrieved_count,\n status as \"status: db::backfill::BackfillJobStatus\",\n created_at,\n updated_at\n FROM email_backfill_jobs\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "threads_requested_limit", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "total_threads", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "threads_retrieved_count", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "status: db::backfill::BackfillJobStatus", + "type_info": { + "Custom": { + "name": "email_backfill_job_status", + "kind": { + "Enum": [ + "Init", + "InProgress", + "Complete", + "Cancelled", + "Failed" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + false, + true, + false, + false, + false, + false, + false + ] + }, + "hash": "8359035e915d0949500ede9f520fb3ea45d1766256ee45b0c5967618301b2ea6" +} diff --git a/rust/cloud-storage/.sqlx/query-836ce70023dde942fb6c49c76901919d486794aef06d9296b91c7f13ad846d1c.json b/rust/cloud-storage/.sqlx/query-836ce70023dde942fb6c49c76901919d486794aef06d9296b91c7f13ad846d1c.json new file mode 100644 index 0000000000..4cb45741c1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-836ce70023dde942fb6c49c76901919d486794aef06d9296b91c7f13ad846d1c.json @@ -0,0 +1,128 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n t.id,\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n (\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m_imp.thread_id = t.id\n AND l.name = 'IMPORTANT'\n AND l.link_id = t.link_id\n )\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Find the latest starred timestamp for each thread, calculate the\n -- effective sort key, then sort and limit the results.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.inbox_visible,\n t.is_read,\n t.project_id,\n lspt.latest_starred_ts AS created_at,\n lspt.latest_starred_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, lspt.latest_starred_ts)\n ELSE lspt.latest_starred_ts\n END AS effective_ts\n FROM (\n -- This sub-subquery efficiently finds the latest starred timestamp for every thread.\n SELECT m.thread_id, MAX(m.internal_date_ts) as latest_starred_ts\n FROM email_messages m\n WHERE m.link_id = ANY($1) AND m.is_starred = TRUE\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id AND l.name = 'TRASH' AND l.link_id = m.link_id\n )\n GROUP BY m.thread_id\n ) lspt\n JOIN email_threads t ON lspt.thread_id = t.id\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n (($3::timestamptz IS NULL) OR (\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, lspt.latest_starred_ts)\n ELSE lspt.latest_starred_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find the full details of its latest starred message.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name,\n m.is_draft\n FROM email_messages m\n WHERE m.thread_id = t.id\n AND m.is_starred = TRUE\n AND m.is_draft = FALSE\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id AND l.name = 'TRASH' AND l.link_id = t.link_id\n )\n ORDER BY m.internal_date_ts DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n ORDER BY t.effective_ts DESC, t.updated_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "inbox_visible", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "sort_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "viewed_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "name?", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "snippet?", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 12, + "name": "is_important!", + "type_info": "Bool" + }, + { + "ordinal": 13, + "name": "sender_email?", + "type_info": "Varchar" + }, + { + "ordinal": 14, + "name": "sender_name?", + "type_info": "Varchar" + }, + { + "ordinal": 15, + "name": "sender_photo_url?", + "type_info": "Text" + }, + { + "ordinal": 16, + "name": "owner_id!", + "type_info": "Text" + }, + { + "ordinal": 17, + "name": "link_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "Int8", + "Timestamptz", + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + true, + false, + false, + null, + null, + null, + true, + false, + true, + true, + false, + null, + false, + null, + true, + false, + false + ] + }, + "hash": "836ce70023dde942fb6c49c76901919d486794aef06d9296b91c7f13ad846d1c" +} diff --git a/rust/cloud-storage/.sqlx/query-83c56e766513141232e2552b51f710814de9a258724b40796328784a5239ea5f.json b/rust/cloud-storage/.sqlx/query-83c56e766513141232e2552b51f710814de9a258724b40796328784a5239ea5f.json new file mode 100644 index 0000000000..c2298b3f0e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-83c56e766513141232e2552b51f710814de9a258724b40796328784a5239ea5f.json @@ -0,0 +1,60 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_activity (\n id,\n user_id,\n channel_id,\n viewed_at\n )\n VALUES (\n $1, $2, $3, NOW()\n )\n ON CONFLICT (user_id, channel_id) DO UPDATE\n SET\n viewed_at = NOW(),\n updated_at = NOW()\n RETURNING\n id as \"id!: Uuid\",\n user_id as \"user_id!: String\",\n channel_id as \"channel_id!: Uuid\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\",\n viewed_at as \"viewed_at?: DateTime\",\n interacted_at as \"interacted_at?: DateTime\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id!: String", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "channel_id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "created_at!: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "updated_at!: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "viewed_at?: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 6, + "name": "interacted_at?: DateTime", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + true + ] + }, + "hash": "83c56e766513141232e2552b51f710814de9a258724b40796328784a5239ea5f" +} diff --git a/rust/cloud-storage/.sqlx/query-83dea9ffef9207e919ec708a6570c6f4090dbdbbb9f5f609edbad91becbc1bb4.json b/rust/cloud-storage/.sqlx/query-83dea9ffef9207e919ec708a6570c6f4090dbdbbb9f5f609edbad91becbc1bb4.json new file mode 100644 index 0000000000..1290218ff1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-83dea9ffef9207e919ec708a6570c6f4090dbdbbb9f5f609edbad91becbc1bb4.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT project_id\n FROM email_threads\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "project_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + true + ] + }, + "hash": "83dea9ffef9207e919ec708a6570c6f4090dbdbbb9f5f609edbad91becbc1bb4" +} diff --git a/rust/cloud-storage/.sqlx/query-84bcc8595057c11bf854c4ecefc2abb2b0d392b7f098fdedac066a67d4dfd7d9.json b/rust/cloud-storage/.sqlx/query-84bcc8595057c11bf854c4ecefc2abb2b0d392b7f098fdedac066a67d4dfd7d9.json new file mode 100644 index 0000000000..cebd9aa412 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-84bcc8595057c11bf854c4ecefc2abb2b0d392b7f098fdedac066a67d4dfd7d9.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.\"id\" as \"chat_id\"\n FROM\n \"Chat\" c\n WHERE\n c.\"userId\" = $1 AND c.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "chat_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "84bcc8595057c11bf854c4ecefc2abb2b0d392b7f098fdedac066a67d4dfd7d9" +} diff --git a/rust/cloud-storage/.sqlx/query-84e1db53f1407e16ed5e2fccf64ecb7a7493b1a1df0b372b460170154a49a509.json b/rust/cloud-storage/.sqlx/query-84e1db53f1407e16ed5e2fccf64ecb7a7493b1a1df0b372b460170154a49a509.json new file mode 100644 index 0000000000..aeffc58687 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-84e1db53f1407e16ed5e2fccf64ecb7a7493b1a1df0b372b460170154a49a509.json @@ -0,0 +1,66 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Thread\" AS t \n (\"owner\", \"documentId\", \"createdAt\", \"updatedAt\", \"metadata\")\n VALUES ($1, $2, NOW(), NOW(), $3)\n RETURNING\n t.id as thread_id, \n t.resolved, \n t.\"documentId\" as document_id, \n t.\"createdAt\"::timestamptz as created_at, \n t.\"updatedAt\"::timestamptz as updated_at, \n t.\"deletedAt\"::timestamptz as deleted_at, \n t.metadata, \n t.owner\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "resolved", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "owner", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Jsonb" + ] + }, + "nullable": [ + false, + false, + false, + null, + null, + null, + true, + false + ] + }, + "hash": "84e1db53f1407e16ed5e2fccf64ecb7a7493b1a1df0b372b460170154a49a509" +} diff --git a/rust/cloud-storage/.sqlx/query-850ac15de719742dcee861fed5d0199ded6efb032bc7e2daaca06013bb130e9b.json b/rust/cloud-storage/.sqlx/query-850ac15de719742dcee861fed5d0199ded6efb032bc7e2daaca06013bb130e9b.json new file mode 100644 index 0000000000..1b2535f9bf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-850ac15de719742dcee861fed5d0199ded6efb032bc7e2daaca06013bb130e9b.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n bp.id as id,\n bp.sha as sha,\n bp.path as path\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "path", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "850ac15de719742dcee861fed5d0199ded6efb032bc7e2daaca06013bb130e9b" +} diff --git a/rust/cloud-storage/.sqlx/query-850d9317ed6b8e21fbb7602beaf6b8c05f43739f31587aa63e57dbfd0093ab1d.json b/rust/cloud-storage/.sqlx/query-850d9317ed6b8e21fbb7602beaf6b8c05f43739f31587aa63e57dbfd0093ab1d.json new file mode 100644 index 0000000000..03e8dd41b0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-850d9317ed6b8e21fbb7602beaf6b8c05f43739f31587aa63e57dbfd0093ab1d.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l.id AS \"link_id!\"\n FROM\n public.email_links l\n LEFT JOIN\n public.email_user_history h ON l.id = h.link_id\n WHERE\n l.macro_id NOT LIKE '%@macro.com'\n AND l.created_at < NOW() - (make_interval(days => $1))\n GROUP BY\n l.id\n HAVING\n COUNT(h.link_id) = 0\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "link_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false + ] + }, + "hash": "850d9317ed6b8e21fbb7602beaf6b8c05f43739f31587aa63e57dbfd0093ab1d" +} diff --git a/rust/cloud-storage/.sqlx/query-85423841a8e715417d2e6c4c210b096a1aedea8c4bb63029e0024bce1e5029f9.json b/rust/cloud-storage/.sqlx/query-85423841a8e715417d2e6c4c210b096a1aedea8c4bb63029e0024bce1e5029f9.json new file mode 100644 index 0000000000..ee245078e2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-85423841a8e715417d2e6c4c210b096a1aedea8c4bb63029e0024bce1e5029f9.json @@ -0,0 +1,45 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n p.id as entity_id,\n p.name,\n regexp_replace(\n p.name,\n $6,\n '\\1',\n 'gi'\n ) as name_highlighted,\n p.\"updatedAt\" as updated_at\n FROM \"Project\" p\n WHERE p.id = ANY($1)\n AND p.\"deletedAt\" IS NULL\n AND p.name ILIKE $2\n AND (\n $4::timestamptz IS NULL\n OR (p.\"updatedAt\", p.id) < ($4, $5)\n )\n ORDER BY p.\"updatedAt\" DESC, p.id DESC\n LIMIT $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name_highlighted", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "TextArray", + "Text", + "Int8", + "Timestamptz", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + null, + false + ] + }, + "hash": "85423841a8e715417d2e6c4c210b096a1aedea8c4bb63029e0024bce1e5029f9" +} diff --git a/rust/cloud-storage/.sqlx/query-8659923b989f123cadb88ede932614c820d21950e32ab2f6092c78dfb5e77aae.json b/rust/cloud-storage/.sqlx/query-8659923b989f123cadb88ede932614c820d21950e32ab2f6092c78dfb5e77aae.json new file mode 100644 index 0000000000..c3928937a6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8659923b989f123cadb88ede932614c820d21950e32ab2f6092c78dfb5e77aae.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"RolesOnUsers\"\n WHERE \"userId\" = $1 AND \"roleId\" IN (SELECT unnest($2::text[]))\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "8659923b989f123cadb88ede932614c820d21950e32ab2f6092c78dfb5e77aae" +} diff --git a/rust/cloud-storage/.sqlx/query-869087208a0e921c85a4de60ef9037f0121d673203126052c384ccca95d472db.json b/rust/cloud-storage/.sqlx/query-869087208a0e921c85a4de60ef9037f0121d673203126052c384ccca95d472db.json new file mode 100644 index 0000000000..e67077cf7b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-869087208a0e921c85a4de60ef9037f0121d673203126052c384ccca95d472db.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT cp.\"sharePermissionId\" as \"share_permission_id!\"\n FROM \"ChatPermission\" cp\n WHERE cp.\"chatId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "869087208a0e921c85a4de60ef9037f0121d673203126052c384ccca95d472db" +} diff --git a/rust/cloud-storage/.sqlx/query-869cd93b000ff26b2c872e5822ab4adb80d18fdc595352afa30159ac3eb864bc.json b/rust/cloud-storage/.sqlx/query-869cd93b000ff26b2c872e5822ab4adb80d18fdc595352afa30159ac3eb864bc.json new file mode 100644 index 0000000000..7d754d3f07 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-869cd93b000ff26b2c872e5822ab4adb80d18fdc595352afa30159ac3eb864bc.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Chat\" SET \"model\" = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "869cd93b000ff26b2c872e5822ab4adb80d18fdc595352afa30159ac3eb864bc" +} diff --git a/rust/cloud-storage/.sqlx/query-86c882f1999ad9c5b87e684ae17a1c1307846848b1b1bd40ee02438ada43052f.json b/rust/cloud-storage/.sqlx/query-86c882f1999ad9c5b87e684ae17a1c1307846848b1b1bd40ee02438ada43052f.json new file mode 100644 index 0000000000..6d3290429d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-86c882f1999ad9c5b87e684ae17a1c1307846848b1b1bd40ee02438ada43052f.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO macro_user_info (macro_user_id, profile_picture, profile_picture_hash)\n VALUES ($1, $2, $3)\n ON CONFLICT (macro_user_id)\n DO UPDATE SET \n profile_picture = EXCLUDED.profile_picture,\n profile_picture_hash = EXCLUDED.profile_picture_hash\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Varchar" + ] + }, + "nullable": [] + }, + "hash": "86c882f1999ad9c5b87e684ae17a1c1307846848b1b1bd40ee02438ada43052f" +} diff --git a/rust/cloud-storage/.sqlx/query-86eee52e30e4168f4a7f319d1dcaa59144a5b3269120df892f161c74b5fe7436.json b/rust/cloud-storage/.sqlx/query-86eee52e30e4168f4a7f319d1dcaa59144a5b3269120df892f161c74b5fe7436.json new file mode 100644 index 0000000000..eab49b91f7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-86eee52e30e4168f4a7f319d1dcaa59144a5b3269120df892f161c74b5fe7436.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE user_notification\n SET sent = true\n WHERE notification_id = $1 AND user_id = ANY($2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "86eee52e30e4168f4a7f319d1dcaa59144a5b3269120df892f161c74b5fe7436" +} diff --git a/rust/cloud-storage/.sqlx/query-8706eea9749b2b5fb7b7c9c155a90b3e0b6f09bc06968eb94e36d0c55c6b0822.json b/rust/cloud-storage/.sqlx/query-8706eea9749b2b5fb7b7c9c155a90b3e0b6f09bc06968eb94e36d0c55c6b0822.json new file mode 100644 index 0000000000..1bc6e42abc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8706eea9749b2b5fb7b7c9c155a90b3e0b6f09bc06968eb94e36d0c55c6b0822.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM notification_email_unsubscribe WHERE email = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "8706eea9749b2b5fb7b7c9c155a90b3e0b6f09bc06968eb94e36d0c55c6b0822" +} diff --git a/rust/cloud-storage/.sqlx/query-8717ae7a285b36ee3b82b3688a274b9734ecd81e4e1e1d0f7a1fc3a7d2c2c053.json b/rust/cloud-storage/.sqlx/query-8717ae7a285b36ee3b82b3688a274b9734ecd81e4e1e1d0f7a1fc3a7d2c2c053.json new file mode 100644 index 0000000000..9685f5f4fb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8717ae7a285b36ee3b82b3688a274b9734ecd81e4e1e1d0f7a1fc3a7d2c2c053.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n ru.\"roleId\" as role_id\n FROM \"RolesOnUsers\" ru\n WHERE ru.\"userId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "role_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "8717ae7a285b36ee3b82b3688a274b9734ecd81e4e1e1d0f7a1fc3a7d2c2c053" +} diff --git a/rust/cloud-storage/.sqlx/query-8733fe389d5f98dd34fe87d42e680e664655853aab4646cc5e889f48c5511aa1.json b/rust/cloud-storage/.sqlx/query-8733fe389d5f98dd34fe87d42e680e664655853aab4646cc5e889f48c5511aa1.json new file mode 100644 index 0000000000..687224c45b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8733fe389d5f98dd34fe87d42e680e664655853aab4646cc5e889f48c5511aa1.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"macro_user_email_verification\" (\"macro_user_id\", \"email\", \"is_verified\")\n VALUES ($1, $2, $3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "8733fe389d5f98dd34fe87d42e680e664655853aab4646cc5e889f48c5511aa1" +} diff --git a/rust/cloud-storage/.sqlx/query-8748bb91363013514f0b55046bc8a1917acb27181343384b86c0a9cc750013bc.json b/rust/cloud-storage/.sqlx/query-8748bb91363013514f0b55046bc8a1917acb27181343384b86c0a9cc750013bc.json new file mode 100644 index 0000000000..a865c2bad6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8748bb91363013514f0b55046bc8a1917acb27181343384b86c0a9cc750013bc.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_backfill_jobs\n SET threads_retrieved_count = threads_retrieved_count + $1, updated_at = now()\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "8748bb91363013514f0b55046bc8a1917acb27181343384b86c0a9cc750013bc" +} diff --git a/rust/cloud-storage/.sqlx/query-874a0c4d1f171a6b97f75dd0e0c2df35b86bb10ef4bb518fb4594fe81d282606.json b/rust/cloud-storage/.sqlx/query-874a0c4d1f171a6b97f75dd0e0c2df35b86bb10ef4bb518fb4594fe81d282606.json new file mode 100644 index 0000000000..a40a259e15 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-874a0c4d1f171a6b97f75dd0e0c2df35b86bb10ef4bb518fb4594fe81d282606.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n db.id\n FROM \"DocumentBom\" db\n JOIN \"Document\" d ON db.\"documentId\" = d.id\n WHERE db.\"documentId\" = $1\n ORDER BY db.\"createdAt\" DESC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "874a0c4d1f171a6b97f75dd0e0c2df35b86bb10ef4bb518fb4594fe81d282606" +} diff --git a/rust/cloud-storage/.sqlx/query-87e0c17146266f40e2f76a27c0e60bd057a7efe02fe027f9514cc8fbdba2159b.json b/rust/cloud-storage/.sqlx/query-87e0c17146266f40e2f76a27c0e60bd057a7efe02fe027f9514cc8fbdba2159b.json new file mode 100644 index 0000000000..e8401c2e59 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-87e0c17146266f40e2f76a27c0e60bd057a7efe02fe027f9514cc8fbdba2159b.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id as message_id,\n c.email_address,\n COALESCE(m.from_name, c.name) as \"name\",\n c.sfs_photo_url\n FROM email_messages m\n INNER JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.id = ANY($1)\n AND m.from_contact_id IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "sfs_photo_url", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + null, + true + ] + }, + "hash": "87e0c17146266f40e2f76a27c0e60bd057a7efe02fe027f9514cc8fbdba2159b" +} diff --git a/rust/cloud-storage/.sqlx/query-87eec4033f46191de7f443e2f1ab2bf5e342b790423e98d6c62ba29a1a434d85.json b/rust/cloud-storage/.sqlx/query-87eec4033f46191de7f443e2f1ab2bf5e342b790423e98d6c62ba29a1a434d85.json new file mode 100644 index 0000000000..e1050f8af8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-87eec4033f46191de7f443e2f1ab2bf5e342b790423e98d6c62ba29a1a434d85.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id FROM \"Chat\" WHERE \"userId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "87eec4033f46191de7f443e2f1ab2bf5e342b790423e98d6c62ba29a1a434d85" +} diff --git a/rust/cloud-storage/.sqlx/query-888ef7d64ac87598ecb72012cfd89a38a749efb40b4e033f4525fcf03755c2de.json b/rust/cloud-storage/.sqlx/query-888ef7d64ac87598ecb72012cfd89a38a749efb40b4e033f4525fcf03755c2de.json new file mode 100644 index 0000000000..0968929d90 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-888ef7d64ac87598ecb72012cfd89a38a749efb40b4e033f4525fcf03755c2de.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM email_attachments WHERE message_id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "888ef7d64ac87598ecb72012cfd89a38a749efb40b4e033f4525fcf03755c2de" +} diff --git a/rust/cloud-storage/.sqlx/query-88cb2c1126909dabe0cc1846ca2733ab98724d4b89d409fa770209d4d7627654.json b/rust/cloud-storage/.sqlx/query-88cb2c1126909dabe0cc1846ca2733ab98724d4b89d409fa770209d4d7627654.json new file mode 100644 index 0000000000..566b687721 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-88cb2c1126909dabe0cc1846ca2733ab98724d4b89d409fa770209d4d7627654.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_message_recipients (message_id, contact_id, name, recipient_type)\n SELECT * FROM unnest($1::uuid[], $2::uuid[], $3::text[], $4::email_recipient_type[])\n ON CONFLICT (message_id, contact_id, recipient_type) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "UuidArray", + "TextArray", + { + "Custom": { + "name": "email_recipient_type[]", + "kind": { + "Array": { + "Custom": { + "name": "email_recipient_type", + "kind": { + "Enum": [ + "TO", + "CC", + "BCC" + ] + } + } + } + } + } + } + ] + }, + "nullable": [] + }, + "hash": "88cb2c1126909dabe0cc1846ca2733ab98724d4b89d409fa770209d4d7627654" +} diff --git a/rust/cloud-storage/.sqlx/query-88e09c541b42bddb46449241492a7dc2d2ca72f9fc3d55a412460a0d8231555e.json b/rust/cloud-storage/.sqlx/query-88e09c541b42bddb46449241492a7dc2d2ca72f9fc3d55a412460a0d8231555e.json new file mode 100644 index 0000000000..59638b0311 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-88e09c541b42bddb46449241492a7dc2d2ca72f9fc3d55a412460a0d8231555e.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT voice_id FROM macro_user_voice WHERE macro_user_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "voice_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "88e09c541b42bddb46449241492a7dc2d2ca72f9fc3d55a412460a0d8231555e" +} diff --git a/rust/cloud-storage/.sqlx/query-88eef0eafe13e4e4f3c0f9c0792cb7e8e2f73c4f87ca77a32c64d99ac28a4b12.json b/rust/cloud-storage/.sqlx/query-88eef0eafe13e4e4f3c0f9c0792cb7e8e2f73c4f87ca77a32c64d99ac28a4b12.json new file mode 100644 index 0000000000..7c59ecbefe --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-88eef0eafe13e4e4f3c0f9c0792cb7e8e2f73c4f87ca77a32c64d99ac28a4b12.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT u.id AS user_profile_id, mui.first_name, mui.last_name\n FROM macro_user_info mui\n JOIN \"User\" u ON mui.macro_user_id = u.macro_user_id\n WHERE u.id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_profile_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "first_name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "last_name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + true, + true + ] + }, + "hash": "88eef0eafe13e4e4f3c0f9c0792cb7e8e2f73c4f87ca77a32c64d99ac28a4b12" +} diff --git a/rust/cloud-storage/.sqlx/query-89004da6bcdd66bccd56ed64402d82dc4fb489cccaf5ca647c5a9403fa760ce9.json b/rust/cloud-storage/.sqlx/query-89004da6bcdd66bccd56ed64402d82dc4fb489cccaf5ca647c5a9403fa760ce9.json new file mode 100644 index 0000000000..a989abc850 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-89004da6bcdd66bccd56ed64402d82dc4fb489cccaf5ca647c5a9403fa760ce9.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT pg_try_advisory_xact_lock($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "pg_try_advisory_xact_lock", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + null + ] + }, + "hash": "89004da6bcdd66bccd56ed64402d82dc4fb489cccaf5ca647c5a9403fa760ce9" +} diff --git a/rust/cloud-storage/.sqlx/query-893d51b6860bdb3deaf125dcb831a29eb711f46fa9f28cf211136eb4361b87bc.json b/rust/cloud-storage/.sqlx/query-893d51b6860bdb3deaf125dcb831a29eb711f46fa9f28cf211136eb4361b87bc.json new file mode 100644 index 0000000000..52a73057e2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-893d51b6860bdb3deaf125dcb831a29eb711f46fa9f28cf211136eb4361b87bc.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO promoted_shared_mailboxes (macro_id)\n VALUES ($1)\n ON CONFLICT (macro_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "893d51b6860bdb3deaf125dcb831a29eb711f46fa9f28cf211136eb4361b87bc" +} diff --git a/rust/cloud-storage/.sqlx/query-8942100b50a073f4f95b37246d355dc8b17c5a105492901ad72da89438ec6601.json b/rust/cloud-storage/.sqlx/query-8942100b50a073f4f95b37246d355dc8b17c5a105492901ad72da89438ec6601.json new file mode 100644 index 0000000000..8a954a7761 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8942100b50a073f4f95b37246d355dc8b17c5a105492901ad72da89438ec6601.json @@ -0,0 +1,36 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_links (id, macro_id, fusionauth_user_id, email_address, provider, is_sync_active)\n VALUES ($1, $2, $3, $4, $5, $6)\n ON CONFLICT (fusionauth_user_id, email_address, provider) \n DO UPDATE SET \n is_sync_active = EXCLUDED.is_sync_active,\n updated_at = NOW()\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Varchar", + { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + }, + "Bool" + ] + }, + "nullable": [ + false + ] + }, + "hash": "8942100b50a073f4f95b37246d355dc8b17c5a105492901ad72da89438ec6601" +} diff --git a/rust/cloud-storage/.sqlx/query-894b2bdfc3046722023572c4b37870258288ab2b3125c4f31dec62d916f0b64a.json b/rust/cloud-storage/.sqlx/query-894b2bdfc3046722023572c4b37870258288ab2b3125c4f31dec62d916f0b64a.json new file mode 100644 index 0000000000..d6e3ef0406 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-894b2bdfc3046722023572c4b37870258288ab2b3125c4f31dec62d916f0b64a.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n rp.\"roleId\" AS role_id,\n rp.\"permissionId\" AS permission_id\n FROM\n \"User\" u\n INNER JOIN\n \"RolesOnUsers\" ru ON u.id = ru.\"userId\"\n INNER JOIN\n \"RolesOnPermissions\" rp ON ru.\"roleId\" = rp.\"roleId\"\n WHERE\n u.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "role_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "permission_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "894b2bdfc3046722023572c4b37870258288ab2b3125c4f31dec62d916f0b64a" +} diff --git a/rust/cloud-storage/.sqlx/query-896b6aa18d1cbdf28df4b24758813d0327649d0b807a60928142de0d6a2ce5e8.json b/rust/cloud-storage/.sqlx/query-896b6aa18d1cbdf28df4b24758813d0327649d0b807a60928142de0d6a2ce5e8.json new file mode 100644 index 0000000000..2e3dd4d309 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-896b6aa18d1cbdf28df4b24758813d0327649d0b807a60928142de0d6a2ce5e8.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m\n JOIN email_message_recipients r ON r.message_id = m.id\n JOIN email_contacts c ON c.id = r.contact_id\n WHERE m.link_id = $1\n AND m.is_sent = true\n AND LOWER(c.email_address) = $2\n UNION ALL\n SELECT 1\n FROM email_messages m\n JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.link_id = $1\n AND m.is_sent = false\n AND LOWER(c.email_address) = $2\n LIMIT 1\n ) AS \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "896b6aa18d1cbdf28df4b24758813d0327649d0b807a60928142de0d6a2ce5e8" +} diff --git a/rust/cloud-storage/.sqlx/query-89a884bd52b26e8aaed865bb4f8916be18a81bc149bfb4cc170586f707de7cc3.json b/rust/cloud-storage/.sqlx/query-89a884bd52b26e8aaed865bb4f8916be18a81bc149bfb4cc170586f707de7cc3.json new file mode 100644 index 0000000000..8811cf4519 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-89a884bd52b26e8aaed865bb4f8916be18a81bc149bfb4cc170586f707de7cc3.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE call_record_transcripts AS t\n SET custom_speaker = u.custom_speaker\n FROM UNNEST($1::uuid[], $2::text[]) AS u(transcript_id, custom_speaker)\n WHERE t.id = u.transcript_id\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "89a884bd52b26e8aaed865bb4f8916be18a81bc149bfb4cc170586f707de7cc3" +} diff --git a/rust/cloud-storage/.sqlx/query-89b618eb18b7ae1ab21e40391daea7da6a544800e931142ac88d413aaed73653.json b/rust/cloud-storage/.sqlx/query-89b618eb18b7ae1ab21e40391daea7da6a544800e931142ac88d413aaed73653.json new file mode 100644 index 0000000000..0a50dad356 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-89b618eb18b7ae1ab21e40391daea7da6a544800e931142ac88d413aaed73653.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Document\" d\n WHERE d.\"fileType\" = 'docx' AND d.\"deletedAt\" IS NULL AND d.uploaded = true\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "89b618eb18b7ae1ab21e40391daea7da6a544800e931142ac88d413aaed73653" +} diff --git a/rust/cloud-storage/.sqlx/query-89fac636d8ad3699c72ad57a4a5f2bf9211061274491815b8af4c634e62cee06.json b/rust/cloud-storage/.sqlx/query-89fac636d8ad3699c72ad57a4a5f2bf9211061274491815b8af4c634e62cee06.json new file mode 100644 index 0000000000..75964adfc9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-89fac636d8ad3699c72ad57a4a5f2bf9211061274491815b8af4c634e62cee06.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE task_duplicate_match\n SET status = 'dismissed', updated_at = NOW()\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "89fac636d8ad3699c72ad57a4a5f2bf9211061274491815b8af4c634e62cee06" +} diff --git a/rust/cloud-storage/.sqlx/query-8a09a252705dac4a5d37461d81354c02f0776d151ed57da06713a6a0d7185392.json b/rust/cloud-storage/.sqlx/query-8a09a252705dac4a5d37461d81354c02f0776d151ed57da06713a6a0d7185392.json new file mode 100644 index 0000000000..184bdca121 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8a09a252705dac4a5d37461d81354c02f0776d151ed57da06713a6a0d7185392.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"SharePermission\" sp\n USING \"DocumentPermission\" dp \n WHERE dp.\"sharePermissionId\" = sp.id\n AND dp.\"documentId\" = ANY($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "8a09a252705dac4a5d37461d81354c02f0776d151ed57da06713a6a0d7185392" +} diff --git a/rust/cloud-storage/.sqlx/query-8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2.json b/rust/cloud-storage/.sqlx/query-8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2.json new file mode 100644 index 0000000000..fa7032f3fb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2.json @@ -0,0 +1,64 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, segment_id, speaker_id, diarized_speaker_id, content, started_at, ended_at, sequence_num\n FROM call_transcripts\n WHERE call_id = $1\n ORDER BY sequence_num ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "segment_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "speaker_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "diarized_speaker_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "started_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "ended_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "sequence_num", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false, + true, + false + ] + }, + "hash": "8a0e545eabb0a82a436eff39cf37a956514fd084748105272d9915b515d0ebd2" +} diff --git a/rust/cloud-storage/.sqlx/query-8a1debc8a93f83a63f33dfd12a1eb8f707e99f0a207a9b34f27848ab362a7bff.json b/rust/cloud-storage/.sqlx/query-8a1debc8a93f83a63f33dfd12a1eb8f707e99f0a207a9b34f27848ab362a7bff.json new file mode 100644 index 0000000000..d389ea18d1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8a1debc8a93f83a63f33dfd12a1eb8f707e99f0a207a9b34f27848ab362a7bff.json @@ -0,0 +1,83 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, macro_id, fusionauth_user_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at\n FROM email_links\n WHERE email_address = $1 AND provider = $2\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "provider: _", + "type_info": { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_sync_active", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "8a1debc8a93f83a63f33dfd12a1eb8f707e99f0a207a9b34f27848ab362a7bff" +} diff --git a/rust/cloud-storage/.sqlx/query-8a219d75e22ca3b14ed3bfc1fbf218e2e69f540f69d0ab223170a52ac92af43c.json b/rust/cloud-storage/.sqlx/query-8a219d75e22ca3b14ed3bfc1fbf218e2e69f540f69d0ab223170a52ac92af43c.json new file mode 100644 index 0000000000..83e2f46e9a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8a219d75e22ca3b14ed3bfc1fbf218e2e69f540f69d0ab223170a52ac92af43c.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO frecency_aggregates (\n entity_id,\n entity_type,\n user_id,\n event_count,\n frecency_score,\n first_event,\n recent_events\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n ON CONFLICT (user_id, entity_type, entity_id)\n DO UPDATE SET\n event_count = EXCLUDED.event_count,\n frecency_score = EXCLUDED.frecency_score,\n recent_events = EXCLUDED.recent_events\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Int4", + "Float8", + "Timestamptz", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "8a219d75e22ca3b14ed3bfc1fbf218e2e69f540f69d0ab223170a52ac92af43c" +} diff --git a/rust/cloud-storage/.sqlx/query-8a4688fb6685c28f7fc9f48487b2fe1ce97205a1574fcedd7e87596c63d6dab0.json b/rust/cloud-storage/.sqlx/query-8a4688fb6685c28f7fc9f48487b2fe1ce97205a1574fcedd7e87596c63d6dab0.json new file mode 100644 index 0000000000..a41d940fca --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8a4688fb6685c28f7fc9f48487b2fe1ce97205a1574fcedd7e87596c63d6dab0.json @@ -0,0 +1,62 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT c.owner, t.id as thread_id, d.owner as document_owner, d.id as document_id, ta.\"anchorId\" as \"anchor_id?\", ta.\"anchorTableName\" as \"anchor_table_name?: AnchorTableName\"\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n JOIN \"Document\" d ON t.\"documentId\" = d.id\n LEFT JOIN \"ThreadAnchor\" ta ON ta.\"threadId\" = t.id\n WHERE c.id = $1 AND c.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "document_owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "anchor_id?", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "anchor_table_name?: AnchorTableName", + "type_info": { + "Custom": { + "name": "anchor_table_name", + "kind": { + "Enum": [ + "PdfPlaceableCommentAnchor", + "PdfHighlightAnchor" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false + ] + }, + "hash": "8a4688fb6685c28f7fc9f48487b2fe1ce97205a1574fcedd7e87596c63d6dab0" +} diff --git a/rust/cloud-storage/.sqlx/query-8ace9a37af485ba737647968d2f36d64a890e17f75447b5b7bc743347d16a91b.json b/rust/cloud-storage/.sqlx/query-8ace9a37af485ba737647968d2f36d64a890e17f75447b5b7bc743347d16a91b.json new file mode 100644 index 0000000000..40e75fe1ac --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8ace9a37af485ba737647968d2f36d64a890e17f75447b5b7bc743347d16a91b.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_threads\n SET\n provider_id = $1,\n updated_at = NOW()\n WHERE\n id = $2 AND\n link_id = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "8ace9a37af485ba737647968d2f36d64a890e17f75447b5b7bc743347d16a91b" +} diff --git a/rust/cloud-storage/.sqlx/query-8ad8fb713125453e2416a6a4992c01f32d29696d130e0e1f46599273575bcb02.json b/rust/cloud-storage/.sqlx/query-8ad8fb713125453e2416a6a4992c01f32d29696d130e0e1f46599273575bcb02.json new file mode 100644 index 0000000000..f697fc82ae --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8ad8fb713125453e2416a6a4992c01f32d29696d130e0e1f46599273575bcb02.json @@ -0,0 +1,95 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l.id,\n l.link_id,\n l.provider_label_id,\n l.name,\n l.created_at,\n l.message_list_visibility as \"message_list_visibility: _\",\n l.label_list_visibility as \"label_list_visibility: _\",\n l.type as \"type_: _\"\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = $1\n ORDER BY l.name\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_label_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "message_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_message_list_visibility_enum", + "kind": { + "Enum": [ + "Show", + "Hide" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "label_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_label_list_visibility_enum", + "kind": { + "Enum": [ + "LabelShow", + "LabelShowIfUnread", + "LabelHide" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "type_: _", + "type_info": { + "Custom": { + "name": "email_label_type_enum", + "kind": { + "Enum": [ + "System", + "User" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "8ad8fb713125453e2416a6a4992c01f32d29696d130e0e1f46599273575bcb02" +} diff --git a/rust/cloud-storage/.sqlx/query-8ada8f1fc3affb75cda0d8c749204d8c58ec09f88682ed2e5ec0ea26605cba2b.json b/rust/cloud-storage/.sqlx/query-8ada8f1fc3affb75cda0d8c749204d8c58ec09f88682ed2e5ec0ea26605cba2b.json new file mode 100644 index 0000000000..d21e5679b6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8ada8f1fc3affb75cda0d8c749204d8c58ec09f88682ed2e5ec0ea26605cba2b.json @@ -0,0 +1,77 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT t.id, t.provider_id, t.link_id, t.inbox_visible, t.is_read,\n t.latest_inbound_message_ts, t.latest_outbound_message_ts,\n t.latest_non_spam_message_ts, t.created_at, t.updated_at\n FROM email_threads t\n WHERE t.id = $1 AND t.link_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "inbox_visible", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 5, + "name": "latest_inbound_message_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "latest_outbound_message_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "latest_non_spam_message_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + true, + false, + false, + false, + true, + true, + true, + false, + false + ] + }, + "hash": "8ada8f1fc3affb75cda0d8c749204d8c58ec09f88682ed2e5ec0ea26605cba2b" +} diff --git a/rust/cloud-storage/.sqlx/query-8af0c4dcb1957927aef3afb489b879fc666056bef965cfce73149d446b4c71bd.json b/rust/cloud-storage/.sqlx/query-8af0c4dcb1957927aef3afb489b879fc666056bef965cfce73149d446b4c71bd.json new file mode 100644 index 0000000000..1b652bcf7d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8af0c4dcb1957927aef3afb489b879fc666056bef965cfce73149d446b4c71bd.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChatAttachment\" (\"entity_type\", \"entity_id\", \"chatId\")\n VALUES ($1, $2, $3)\n RETURNING id;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "8af0c4dcb1957927aef3afb489b879fc666056bef965cfce73149d446b4c71bd" +} diff --git a/rust/cloud-storage/.sqlx/query-8b7993e0c49a8c1b1fb9449770a500362b483bcea23aec896bfaf9e67fd6dc95.json b/rust/cloud-storage/.sqlx/query-8b7993e0c49a8c1b1fb9449770a500362b483bcea23aec896bfaf9e67fd6dc95.json new file mode 100644 index 0000000000..646f2cc8b7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8b7993e0c49a8c1b1fb9449770a500362b483bcea23aec896bfaf9e67fd6dc95.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n p.id\n FROM\n \"Project\" p\n WHERE\n p.\"parentId\" = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "8b7993e0c49a8c1b1fb9449770a500362b483bcea23aec896bfaf9e67fd6dc95" +} diff --git a/rust/cloud-storage/.sqlx/query-8b7c148e88c11c3a2ba484c8ada918bf6497d8ec2339d9173904a7532b2b0052.json b/rust/cloud-storage/.sqlx/query-8b7c148e88c11c3a2ba484c8ada918bf6497d8ec2339d9173904a7532b2b0052.json new file mode 100644 index 0000000000..46fe53d17b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8b7c148e88c11c3a2ba484c8ada918bf6497d8ec2339d9173904a7532b2b0052.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM crm_companies co\n WHERE co.team_id = $1\n AND co.email_sync = TRUE\n AND NOT EXISTS (\n SELECT 1 FROM crm_contacts WHERE company_id = co.id\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "8b7c148e88c11c3a2ba484c8ada918bf6497d8ec2339d9173904a7532b2b0052" +} diff --git a/rust/cloud-storage/.sqlx/query-8b7e81c3b4f31c86100de517e1978a1879039b7230aa83df18f583106c97a18f.json b/rust/cloud-storage/.sqlx/query-8b7e81c3b4f31c86100de517e1978a1879039b7230aa83df18f583106c97a18f.json new file mode 100644 index 0000000000..cb673d055d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8b7e81c3b4f31c86100de517e1978a1879039b7230aa83df18f583106c97a18f.json @@ -0,0 +1,130 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH UserHistories AS (\n SELECT\n h.\"itemId\" as item_id,\n h.\"itemType\" as item_type\n FROM \"UserHistory\" h\n WHERE h.\"userId\" = $1\n ), Combined AS (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"projectId\" as \"project_id\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\",\n NULL as \"is_persistent\",\n di.sha as \"sha\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n CASE \n WHEN dt.sub_type = 'task' \n AND ep_status.values->'value' ? $2\n THEN true \n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL \n END as \"is_completed\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status \n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id \n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $3\n INNER JOIN UserHistories uh ON uh.item_id = d.id AND uh.item_type = 'document'\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.\"documentId\",\n i.\"sha\",\n i.\"createdAt\",\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n UNION ALL\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"projectId\" as \"project_id\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n NULL as \"is_completed\"\n FROM \"Chat\" c\n INNER JOIN UserHistories uh ON uh.item_id = c.id AND uh.item_type = 'chat'\n UNION ALL\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at\",\n p.\"updatedAt\"::timestamptz as \"updated_at\",\n p.\"parentId\" as \"project_id\",\n p.\"deletedAt\"::timestamptz as \"deleted_at\",\n NULL as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n NULL as \"is_completed\"\n FROM \"Project\" p\n INNER JOIN UserHistories uh ON uh.item_id = p.id AND uh.item_type = 'project'\n )\n SELECT * FROM Combined\n ORDER BY updated_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_type!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_version_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "user_id!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "name!", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 13, + "name": "is_persistent", + "type_info": "Bool" + }, + { + "ordinal": 14, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 15, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 16, + "name": "is_completed", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Uuid" + ] + }, + "nullable": [ + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null + ] + }, + "hash": "8b7e81c3b4f31c86100de517e1978a1879039b7230aa83df18f583106c97a18f" +} diff --git a/rust/cloud-storage/.sqlx/query-8b8194993cc2ec93b2db6104da98fe3569d973d3d2a3f723c70414c04cc574ef.json b/rust/cloud-storage/.sqlx/query-8b8194993cc2ec93b2db6104da98fe3569d973d3d2a3f723c70414c04cc574ef.json new file mode 100644 index 0000000000..e065f0dc6a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8b8194993cc2ec93b2db6104da98fe3569d973d3d2a3f723c70414c04cc574ef.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_attachments_fwd (message_id, attachment_id)\n SELECT $1, $2\n FROM email_messages m\n WHERE m.id = $1 AND m.link_id = $3\n ON CONFLICT DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "8b8194993cc2ec93b2db6104da98fe3569d973d3d2a3f723c70414c04cc574ef" +} diff --git a/rust/cloud-storage/.sqlx/query-8bca1bc084d24daf8db19d8fc04301467f257fbc1bde2a018fe9efb1e6728cd3.json b/rust/cloud-storage/.sqlx/query-8bca1bc084d24daf8db19d8fc04301467f257fbc1bde2a018fe9efb1e6728cd3.json new file mode 100644 index 0000000000..20d8eb1130 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8bca1bc084d24daf8db19d8fc04301467f257fbc1bde2a018fe9efb1e6728cd3.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"UserDocumentViewLocation\" (user_id, document_id, location)\n VALUES ($1, $2, $3)\n ON CONFLICT (user_id, document_id) \n DO UPDATE SET location = EXCLUDED.location, updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "8bca1bc084d24daf8db19d8fc04301467f257fbc1bde2a018fe9efb1e6728cd3" +} diff --git a/rust/cloud-storage/.sqlx/query-8c9bf0696a9b0a0e1cab142290ecf2858a32311a07bca8ea0bb9f54ea507f8e3.json b/rust/cloud-storage/.sqlx/query-8c9bf0696a9b0a0e1cab142290ecf2858a32311a07bca8ea0bb9f54ea507f8e3.json new file mode 100644 index 0000000000..548c314aac --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8c9bf0696a9b0a0e1cab142290ecf2858a32311a07bca8ea0bb9f54ea507f8e3.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT id FROM \"Project\" WHERE \"parentId\" = $1 AND \"deletedAt\" IS NULL", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "8c9bf0696a9b0a0e1cab142290ecf2858a32311a07bca8ea0bb9f54ea507f8e3" +} diff --git a/rust/cloud-storage/.sqlx/query-8cab0f54798d95a0549e022187648a7e8ad714623a8a2fe32c785ddb27937eae.json b/rust/cloud-storage/.sqlx/query-8cab0f54798d95a0549e022187648a7e8ad714623a8a2fe32c785ddb27937eae.json new file mode 100644 index 0000000000..d742c4ba27 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8cab0f54798d95a0549e022187648a7e8ad714623a8a2fe32c785ddb27937eae.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"sharePermissionId\" as share_permission_id\n FROM \"ChatPermission\"\n WHERE \"chatId\"=$1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "8cab0f54798d95a0549e022187648a7e8ad714623a8a2fe32c785ddb27937eae" +} diff --git a/rust/cloud-storage/.sqlx/query-8cc1aa2163c9650b121037b241370b154ad229bcf9280c54e5975914d1c6fc78.json b/rust/cloud-storage/.sqlx/query-8cc1aa2163c9650b121037b241370b154ad229bcf9280c54e5975914d1c6fc78.json new file mode 100644 index 0000000000..ed15384636 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8cc1aa2163c9650b121037b241370b154ad229bcf9280c54e5975914d1c6fc78.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n user_id\n FROM comms_channel_participants\n WHERE channel_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "8cc1aa2163c9650b121037b241370b154ad229bcf9280c54e5975914d1c6fc78" +} diff --git a/rust/cloud-storage/.sqlx/query-8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911.json b/rust/cloud-storage/.sqlx/query-8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911.json new file mode 100644 index 0000000000..505a2bd912 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE entity_properties\n SET values = $2\n WHERE entity_id = $1\n AND property_definition_id = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Jsonb", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "8d21bf0aa4c20589a55cf5777aa9c658fdacea4d0d0c7070aded12cccd373911" +} diff --git a/rust/cloud-storage/.sqlx/query-8d25b1711e2c00fe92b1921e1c2ee17e311301f88b1550dbff4eb41b6e12db13.json b/rust/cloud-storage/.sqlx/query-8d25b1711e2c00fe92b1921e1c2ee17e311301f88b1550dbff4eb41b6e12db13.json new file mode 100644 index 0000000000..9623da14ab --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8d25b1711e2c00fe92b1921e1c2ee17e311301f88b1550dbff4eb41b6e12db13.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.\"id\" as \"user_id\",\n u.\"email\" as \"email\",\n u.\"stripeCustomerId\" as \"stripe_customer_id?\",\n u.\"name\" as name,\n u.\"tutorialComplete\" as tutorial_complete,\n u.\"group\" as \"group?\",\n u.\"hasChromeExt\" as has_chrome_ext,\n u.\"aiDataConsent\" as ai_data_consent,\n mu.has_trialed as has_trialed,\n u.macro_user_id as \"macro_user_id\"\n FROM \"User\" u\n JOIN \"macro_user\" mu ON u.macro_user_id = mu.id\n WHERE u.\"id\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "email", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "stripe_customer_id?", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "tutorial_complete", + "type_info": "Bool" + }, + { + "ordinal": 5, + "name": "group?", + "type_info": "Varchar" + }, + { + "ordinal": 6, + "name": "has_chrome_ext", + "type_info": "Bool" + }, + { + "ordinal": 7, + "name": "ai_data_consent", + "type_info": "Bool" + }, + { + "ordinal": 8, + "name": "has_trialed", + "type_info": "Bool" + }, + { + "ordinal": 9, + "name": "macro_user_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + true, + false, + false, + false, + false + ] + }, + "hash": "8d25b1711e2c00fe92b1921e1c2ee17e311301f88b1550dbff4eb41b6e12db13" +} diff --git a/rust/cloud-storage/.sqlx/query-8d3fe39f31059bd0a830f027fbb9aa2089b8ab3ea0cf3fbe3b35d6f17be9b355.json b/rust/cloud-storage/.sqlx/query-8d3fe39f31059bd0a830f027fbb9aa2089b8ab3ea0cf3fbe3b35d6f17be9b355.json new file mode 100644 index 0000000000..cbf6c51799 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8d3fe39f31059bd0a830f027fbb9aa2089b8ab3ea0cf3fbe3b35d6f17be9b355.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT channel_id, user_id, created_at\n FROM channel_notification_email_sent\n WHERE channel_id = $1\n AND user_id = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "created_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "8d3fe39f31059bd0a830f027fbb9aa2089b8ab3ea0cf3fbe3b35d6f17be9b355" +} diff --git a/rust/cloud-storage/.sqlx/query-8d5ffbdd5be9b1031c7da47bc2d4bcbee35802a575387ef081a09031b42f7de9.json b/rust/cloud-storage/.sqlx/query-8d5ffbdd5be9b1031c7da47bc2d4bcbee35802a575387ef081a09031b42f7de9.json new file mode 100644 index 0000000000..4860272b0d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8d5ffbdd5be9b1031c7da47bc2d4bcbee35802a575387ef081a09031b42f7de9.json @@ -0,0 +1,85 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n ep.property_definition_id,\n pd.display_name,\n pd.data_type as \"data_type: DataType\",\n pd.is_multi_select,\n pd.is_system,\n ep.values as \"values: serde_json::Value\"\n FROM entity_properties ep\n INNER JOIN property_definitions pd ON pd.id = ep.property_definition_id\n WHERE ep.entity_id = $1\n AND ep.entity_type = $2\n ORDER BY LOWER(pd.display_name)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "property_definition_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "display_name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "data_type: DataType", + "type_info": { + "Custom": { + "name": "property_data_type", + "kind": { + "Enum": [ + "BOOLEAN", + "DATE", + "NUMBER", + "STRING", + "SELECT_NUMBER", + "SELECT_STRING", + "ENTITY", + "LINK" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "is_multi_select", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "is_system", + "type_info": "Bool" + }, + { + "ordinal": 5, + "name": "values: serde_json::Value", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Text", + { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true + ] + }, + "hash": "8d5ffbdd5be9b1031c7da47bc2d4bcbee35802a575387ef081a09031b42f7de9" +} diff --git a/rust/cloud-storage/.sqlx/query-8d8e2f6bf38b4b18f2b47c282a351aee78b249f6d66133c572c39a7ca8e11024.json b/rust/cloud-storage/.sqlx/query-8d8e2f6bf38b4b18f2b47c282a351aee78b249f6d66133c572c39a7ca8e11024.json new file mode 100644 index 0000000000..4163a5425a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8d8e2f6bf38b4b18f2b47c282a351aee78b249f6d66133c572c39a7ca8e11024.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_messages\n WHERE id = $1 AND thread_id = $2 AND is_draft = true AND is_sent = false\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "8d8e2f6bf38b4b18f2b47c282a351aee78b249f6d66133c572c39a7ca8e11024" +} diff --git a/rust/cloud-storage/.sqlx/query-8da326cb4addb18bca0e08c8728c86a1aa898bcf344fe913db7ee5c47dfde47c.json b/rust/cloud-storage/.sqlx/query-8da326cb4addb18bca0e08c8728c86a1aa898bcf344fe913db7ee5c47dfde47c.json new file mode 100644 index 0000000000..bda502d199 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8da326cb4addb18bca0e08c8728c86a1aa898bcf344fe913db7ee5c47dfde47c.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT c.id\n FROM \"Chat\" c\n WHERE c.\"deletedAt\" IS NOT NULL AND c.\"deletedAt\" <= $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Timestamp" + ] + }, + "nullable": [ + false + ] + }, + "hash": "8da326cb4addb18bca0e08c8728c86a1aa898bcf344fe913db7ee5c47dfde47c" +} diff --git a/rust/cloud-storage/.sqlx/query-8e239c46742a642923b5367a73cfcc0f253c96269afb634301ed6d207c206107.json b/rust/cloud-storage/.sqlx/query-8e239c46742a642923b5367a73cfcc0f253c96269afb634301ed6d207c206107.json new file mode 100644 index 0000000000..312e1983df --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8e239c46742a642923b5367a73cfcc0f253c96269afb634301ed6d207c206107.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM user_notification_item_unsubscribe\n WHERE user_id = $1 AND item_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "8e239c46742a642923b5367a73cfcc0f253c96269afb634301ed6d207c206107" +} diff --git a/rust/cloud-storage/.sqlx/query-8e916c1355943f5a5d48d153bdf82e453c82b6a4c279973b2f7c0c631ffeff12.json b/rust/cloud-storage/.sqlx/query-8e916c1355943f5a5d48d153bdf82e453c82b6a4c279973b2f7c0c631ffeff12.json new file mode 100644 index 0000000000..829fc1e846 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8e916c1355943f5a5d48d153bdf82e453c82b6a4c279973b2f7c0c631ffeff12.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n o.name as name,\n orp.retention_days as \"retention_days?\"\n FROM \"Organization\" o\n LEFT JOIN \"OrganizationRetentionPolicy\" orp ON o.id = orp.organization_id\n WHERE o.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "retention_days?", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "8e916c1355943f5a5d48d153bdf82e453c82b6a4c279973b2f7c0c631ffeff12" +} diff --git a/rust/cloud-storage/.sqlx/query-8ea09698a4333b2b2d97f16423008a172b5a030ede2b8528a103397a6dc4a42e.json b/rust/cloud-storage/.sqlx/query-8ea09698a4333b2b2d97f16423008a172b5a030ede2b8528a103397a6dc4a42e.json new file mode 100644 index 0000000000..e33956234c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8ea09698a4333b2b2d97f16423008a172b5a030ede2b8528a103397a6dc4a42e.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentBom\" (\"documentId\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $2)\n RETURNING id, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Timestamp" + ] + }, + "nullable": [ + false, + null, + null + ] + }, + "hash": "8ea09698a4333b2b2d97f16423008a172b5a030ede2b8528a103397a6dc4a42e" +} diff --git a/rust/cloud-storage/.sqlx/query-8ed522f5a19f1f7d136ed0fc5c4c57f4af547d21eb2f6c78c9e2335f4fcd64c2.json b/rust/cloud-storage/.sqlx/query-8ed522f5a19f1f7d136ed0fc5c4c57f4af547d21eb2f6c78c9e2335f4fcd64c2.json new file mode 100644 index 0000000000..130425a41e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8ed522f5a19f1f7d136ed0fc5c4c57f4af547d21eb2f6c78c9e2335f4fcd64c2.json @@ -0,0 +1,63 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_entity_mentions (id, source_entity_type, source_entity_id, entity_type, entity_id, user_id)\n VALUES ($1, $2, $3, $4, $5, $6)\n RETURNING id, source_entity_type, source_entity_id, entity_type, entity_id, user_id, created_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "source_entity_type", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "source_entity_id", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "entity_type", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "entity_id", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "user_id", + "type_info": "Varchar" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Varchar", + "Varchar", + "Varchar", + "Varchar", + "Varchar" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + false + ] + }, + "hash": "8ed522f5a19f1f7d136ed0fc5c4c57f4af547d21eb2f6c78c9e2335f4fcd64c2" +} diff --git a/rust/cloud-storage/.sqlx/query-8f57f79c4318149ab611e764372c035d54880fcc3d80b41bd5d255245e94263e.json b/rust/cloud-storage/.sqlx/query-8f57f79c4318149ab611e764372c035d54880fcc3d80b41bd5d255245e94263e.json new file mode 100644 index 0000000000..58b3d745cf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8f57f79c4318149ab611e764372c035d54880fcc3d80b41bd5d255245e94263e.json @@ -0,0 +1,82 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, channel_id, room_name, created_by, created_at, egress_id, recording_key, preview_url, recording_started_at, share_permission_id, share_with_team\n FROM calls\n WHERE id = $1\n FOR UPDATE\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "room_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_by", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "egress_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "recording_key", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "preview_url", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "recording_started_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "share_permission_id", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "share_with_team", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "8f57f79c4318149ab611e764372c035d54880fcc3d80b41bd5d255245e94263e" +} diff --git a/rust/cloud-storage/.sqlx/query-8fc112d6aeef9c2a223351d2b80947769f26aafbebb3a1b0c759f5246fcca507.json b/rust/cloud-storage/.sqlx/query-8fc112d6aeef9c2a223351d2b80947769f26aafbebb3a1b0c759f5246fcca507.json new file mode 100644 index 0000000000..55b8ca5614 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8fc112d6aeef9c2a223351d2b80947769f26aafbebb3a1b0c759f5246fcca507.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT access_level::text\n FROM entity_access\n WHERE source_id = ANY(ARRAY(\n SELECT cp.channel_id::text FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ))\n AND entity_id = $2\n AND entity_type = 'chat'\n ORDER BY\n CASE access_level::text\n WHEN 'owner' THEN 4\n WHEN 'edit' THEN 3\n WHEN 'comment' THEN 2\n WHEN 'view' THEN 1\n ELSE 0\n END DESC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "access_level", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "8fc112d6aeef9c2a223351d2b80947769f26aafbebb3a1b0c759f5246fcca507" +} diff --git a/rust/cloud-storage/.sqlx/query-8fdd4afe0b260c02acea8a052a6fe39d6ad21150fc2f1049548c724516b9210b.json b/rust/cloud-storage/.sqlx/query-8fdd4afe0b260c02acea8a052a6fe39d6ad21150fc2f1049548c724516b9210b.json new file mode 100644 index 0000000000..0305c903f5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8fdd4afe0b260c02acea8a052a6fe39d6ad21150fc2f1049548c724516b9210b.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_message_labels\n WHERE message_id = $1\n AND label_id NOT IN (\n SELECT UNNEST($2::uuid[])\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "UuidArray" + ] + }, + "nullable": [] + }, + "hash": "8fdd4afe0b260c02acea8a052a6fe39d6ad21150fc2f1049548c724516b9210b" +} diff --git a/rust/cloud-storage/.sqlx/query-8feeae34466cca17ffaacbf1bbe635362915023e2457fe6bb676c05c5d6f9ee2.json b/rust/cloud-storage/.sqlx/query-8feeae34466cca17ffaacbf1bbe635362915023e2457fe6bb676c05c5d6f9ee2.json new file mode 100644 index 0000000000..847b224564 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-8feeae34466cca17ffaacbf1bbe635362915023e2457fe6bb676c05c5d6f9ee2.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT channel_id\n FROM channel_notification_email_sent\n WHERE user_id = $1\n AND channel_id = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text", + "UuidArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "8feeae34466cca17ffaacbf1bbe635362915023e2457fe6bb676c05c5d6f9ee2" +} diff --git a/rust/cloud-storage/.sqlx/query-9021780763850e636cf944f6171ce2253c39d7532a38bcda72c8a6da965310f9.json b/rust/cloud-storage/.sqlx/query-9021780763850e636cf944f6171ce2253c39d7532a38bcda72c8a6da965310f9.json new file mode 100644 index 0000000000..215156fa55 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9021780763850e636cf944f6171ce2253c39d7532a38bcda72c8a6da965310f9.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"content\"\n FROM resolved_message_content\n WHERE \"messageId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "content", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "9021780763850e636cf944f6171ce2253c39d7532a38bcda72c8a6da965310f9" +} diff --git a/rust/cloud-storage/.sqlx/query-90832c95920a9b40329509f4ee611f765a6c10025c1b519f4a5d76ccfd64fb75.json b/rust/cloud-storage/.sqlx/query-90832c95920a9b40329509f4ee611f765a6c10025c1b519f4a5d76ccfd64fb75.json new file mode 100644 index 0000000000..696addd983 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-90832c95920a9b40329509f4ee611f765a6c10025c1b519f4a5d76ccfd64fb75.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n VALUES ($1, 'document', $2, 'team', $3)\n ON CONFLICT DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + { + "Custom": { + "name": "\"AccessLevel\"", + "kind": { + "Enum": [ + "view", + "comment", + "edit", + "owner" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "90832c95920a9b40329509f4ee611f765a6c10025c1b519f4a5d76ccfd64fb75" +} diff --git a/rust/cloud-storage/.sqlx/query-908627bdd27f344ce26c501bb7431b621173c04bfda9678021360817c3f25103.json b/rust/cloud-storage/.sqlx/query-908627bdd27f344ce26c501bb7431b621173c04bfda9678021360817c3f25103.json new file mode 100644 index 0000000000..ad59b616b1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-908627bdd27f344ce26c501bb7431b621173c04bfda9678021360817c3f25103.json @@ -0,0 +1,95 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id as \"channel_id\",\n c.name as \"name\",\n c.channel_type AS \"channel_type: ChannelType\",\n c.org_id as \"org_id\",\n m.id as \"message_id\",\n m.thread_id as \"thread_id\",\n m.sender_id as \"sender_id\",\n m.content as \"content\",\n m.created_at as \"created_at\",\n m.updated_at as \"updated_at\",\n m.deleted_at::timestamptz as \"deleted_at\"\n FROM\n comms_messages m\n JOIN\n comms_channels c on c.\"id\" = m.\"channel_id\"\n WHERE\n m.id = $1\n AND c.id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "channel_type: ChannelType", + "type_info": { + "Custom": { + "name": "comms_channel_type", + "kind": { + "Enum": [ + "public", + "private", + "direct_message", + "team" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "org_id", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 6, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + true, + false, + true, + false, + true, + false, + false, + false, + false, + null + ] + }, + "hash": "908627bdd27f344ce26c501bb7431b621173c04bfda9678021360817c3f25103" +} diff --git a/rust/cloud-storage/.sqlx/query-9096710139da4a36b9a11809a30b65ae3b712a0b659b63e366e5f485b8630951.json b/rust/cloud-storage/.sqlx/query-9096710139da4a36b9a11809a30b65ae3b712a0b659b63e366e5f485b8630951.json new file mode 100644 index 0000000000..ce58f8d552 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9096710139da4a36b9a11809a30b65ae3b712a0b659b63e366e5f485b8630951.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"SharePermission\" (\"id\", \"isPublic\",\"publicAccessLevel\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, NOW(), NOW())\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Bool", + "Text" + ] + }, + "nullable": [] + }, + "hash": "9096710139da4a36b9a11809a30b65ae3b712a0b659b63e366e5f485b8630951" +} diff --git a/rust/cloud-storage/.sqlx/query-90d75cee091fe17362db20b9d855e6c8e8d204599eb1ee4d576b9a913aca0b41.json b/rust/cloud-storage/.sqlx/query-90d75cee091fe17362db20b9d855e6c8e8d204599eb1ee4d576b9a913aca0b41.json new file mode 100644 index 0000000000..ebd0d84d18 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-90d75cee091fe17362db20b9d855e6c8e8d204599eb1ee4d576b9a913aca0b41.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Comment\"\n SET \"deletedAt\" = NOW()\n WHERE \"threadId\" = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [] + }, + "hash": "90d75cee091fe17362db20b9d855e6c8e8d204599eb1ee4d576b9a913aca0b41" +} diff --git a/rust/cloud-storage/.sqlx/query-90fce55ca239e5642b63e553f9492913cced9a2c8a5eac4f07a4f56e621512ee.json b/rust/cloud-storage/.sqlx/query-90fce55ca239e5642b63e553f9492913cced9a2c8a5eac4f07a4f56e621512ee.json new file mode 100644 index 0000000000..ed32ff45ed --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-90fce55ca239e5642b63e553f9492913cced9a2c8a5eac4f07a4f56e621512ee.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM email_messages WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "90fce55ca239e5642b63e553f9492913cced9a2c8a5eac4f07a4f56e621512ee" +} diff --git a/rust/cloud-storage/.sqlx/query-91368040542b31a69ae76bfc12b127970920fb761ec08d3303bffc94402b984e.json b/rust/cloud-storage/.sqlx/query-91368040542b31a69ae76bfc12b127970920fb761ec08d3303bffc94402b984e.json new file mode 100644 index 0000000000..f0c34eccbd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-91368040542b31a69ae76bfc12b127970920fb761ec08d3303bffc94402b984e.json @@ -0,0 +1,53 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as document_id,\n d.owner as owner,\n d.\"fileType\" as \"file_type!\",\n COALESCE(db.id, di.id, dipdf.id) as \"document_version_id!\",\n d.\"updatedAt\"::timestamptz as \"updated_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dst ON dst.document_id = d.id\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"updatedAt\" ASC\n LIMIT 1\n ) dipdf ON d.\"fileType\" = 'pdf'\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" DESC\n LIMIT 1\n ) di ON d.\"fileType\" IS DISTINCT FROM 'docx' AND d.\"fileType\" IS DISTINCT FROM 'pdf'\n WHERE\n d.\"fileType\" IS NOT NULL\n AND ($3::text[] IS NULL OR d.\"fileType\" = ANY($3))\n AND ($4::text IS NULL OR dst.sub_type::text = $4)\n AND ($5::timestamptz IS NULL OR d.\"updatedAt\" >= $5)\n AND ($6::timestamptz IS NULL OR d.\"updatedAt\" < $6)\n AND (\n $7::bool IS NULL\n OR ($7 AND d.\"deletedAt\" IS NOT NULL)\n OR (NOT $7 AND d.\"deletedAt\" IS NULL)\n )\n AND (\n $2::timestamptz IS NULL\n OR (d.\"updatedAt\", d.id) > ($2, $8::text)\n )\n ORDER BY d.\"updatedAt\" ASC, d.id ASC\n LIMIT $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "file_type!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "document_version_id!", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Int8", + "Timestamptz", + "TextArray", + "Text", + "Timestamptz", + "Timestamptz", + "Bool", + "Text" + ] + }, + "nullable": [ + false, + false, + true, + null, + null + ] + }, + "hash": "91368040542b31a69ae76bfc12b127970920fb761ec08d3303bffc94402b984e" +} diff --git a/rust/cloud-storage/.sqlx/query-915c50350c5513c6e1ba12eae31520046ac0e7e882d9c5ec76a3578ae4bc7d50.json b/rust/cloud-storage/.sqlx/query-915c50350c5513c6e1ba12eae31520046ac0e7e882d9c5ec76a3578ae4bc7d50.json new file mode 100644 index 0000000000..0a2c18aa63 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-915c50350c5513c6e1ba12eae31520046ac0e7e882d9c5ec76a3578ae4bc7d50.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT \"userId\" as user_id, \"deletedAt\" as deleted_at FROM \"Project\" WHERE id=$1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "deleted_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "915c50350c5513c6e1ba12eae31520046ac0e7e882d9c5ec76a3578ae4bc7d50" +} diff --git a/rust/cloud-storage/.sqlx/query-9173d68221d7b73f7a1e3ec0632ab9ae6a9269c950b45897a5e64c14cd00e117.json b/rust/cloud-storage/.sqlx/query-9173d68221d7b73f7a1e3ec0632ab9ae6a9269c950b45897a5e64c14cd00e117.json new file mode 100644 index 0000000000..81a258d19e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9173d68221d7b73f7a1e3ec0632ab9ae6a9269c950b45897a5e64c14cd00e117.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id\n FROM \"OrganizationRetentionPolicy\"\n WHERE organization_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false + ] + }, + "hash": "9173d68221d7b73f7a1e3ec0632ab9ae6a9269c950b45897a5e64c14cd00e117" +} diff --git a/rust/cloud-storage/.sqlx/query-91badd3aa8d3cc89c16ae8013b20eb521625862f180e9bc75096de5573436928.json b/rust/cloud-storage/.sqlx/query-91badd3aa8d3cc89c16ae8013b20eb521625862f180e9bc75096de5573436928.json new file mode 100644 index 0000000000..da286915f0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-91badd3aa8d3cc89c16ae8013b20eb521625862f180e9bc75096de5573436928.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentFamily\" (\"rootDocumentId\")\n VALUES ($1)\n RETURNING id;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "91badd3aa8d3cc89c16ae8013b20eb521625862f180e9bc75096de5573436928" +} diff --git a/rust/cloud-storage/.sqlx/query-91bfe5ec5b5f8eadaa5a149987c59081daf7cd5fb66aa4d8299f39c96e402d80.json b/rust/cloud-storage/.sqlx/query-91bfe5ec5b5f8eadaa5a149987c59081daf7cd5fb66aa4d8299f39c96e402d80.json new file mode 100644 index 0000000000..b887c7eb0f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-91bfe5ec5b5f8eadaa5a149987c59081daf7cd5fb66aa4d8299f39c96e402d80.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT t.name,\n ARRAY_REMOVE(ARRAY_AGG(tu.user_id), NULL) as \"member_ids!\"\n FROM team t\n LEFT JOIN team_user tu ON tu.team_id = t.id\n WHERE t.id = $1\n GROUP BY t.id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "member_ids!", + "type_info": "TextArray" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + null + ] + }, + "hash": "91bfe5ec5b5f8eadaa5a149987c59081daf7cd5fb66aa4d8299f39c96e402d80" +} diff --git a/rust/cloud-storage/.sqlx/query-91e974129e2c983925d29dabf73c8ae86c6f090cbfd28f22cd952756950a94db.json b/rust/cloud-storage/.sqlx/query-91e974129e2c983925d29dabf73c8ae86c6f090cbfd28f22cd952756950a94db.json new file mode 100644 index 0000000000..806760a2c8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-91e974129e2c983925d29dabf73c8ae86c6f090cbfd28f22cd952756950a94db.json @@ -0,0 +1,74 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_messages (id, channel_id, sender_id, content, thread_id)\n VALUES ($1, $2, $3, $4, $5)\n RETURNING\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at as \"edited_at: chrono::DateTime\",\n deleted_at as \"deleted_at: chrono::DateTime\" \n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "edited_at: chrono::DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 8, + "name": "deleted_at: chrono::DateTime", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text", + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + true + ] + }, + "hash": "91e974129e2c983925d29dabf73c8ae86c6f090cbfd28f22cd952756950a94db" +} diff --git a/rust/cloud-storage/.sqlx/query-922f058d237b9ffe46e13677ce2e6c4f4b39b7ae7b8b4dd248f54714d842a08e.json b/rust/cloud-storage/.sqlx/query-922f058d237b9ffe46e13677ce2e6c4f4b39b7ae7b8b4dd248f54714d842a08e.json new file mode 100644 index 0000000000..0fd14fd3e9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-922f058d237b9ffe46e13677ce2e6c4f4b39b7ae7b8b4dd248f54714d842a08e.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n eaf.message_id as draft_id,\n eaf.attachment_id,\n ea.provider_attachment_id,\n orig_msg.provider_id as \"message_provider_id!\",\n ea.filename,\n ea.mime_type,\n ea.size_bytes\n FROM email_attachments_fwd eaf\n JOIN email_attachments ea ON eaf.attachment_id = ea.id\n JOIN email_messages orig_msg ON ea.message_id = orig_msg.id\n WHERE eaf.message_id = ANY($1)\n ORDER BY eaf.message_id, ea.filename ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "draft_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "attachment_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_attachment_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "message_provider_id!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "filename", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "mime_type", + "type_info": "Varchar" + }, + { + "ordinal": 6, + "name": "size_bytes", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true + ] + }, + "hash": "922f058d237b9ffe46e13677ce2e6c4f4b39b7ae7b8b4dd248f54714d842a08e" +} diff --git a/rust/cloud-storage/.sqlx/query-92b33fffecd9a49fed7c74fe6994932e4d2123e0721a86c2b2fb691a32b92054.json b/rust/cloud-storage/.sqlx/query-92b33fffecd9a49fed7c74fe6994932e4d2123e0721a86c2b2fb691a32b92054.json new file mode 100644 index 0000000000..467edfdf44 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-92b33fffecd9a49fed7c74fe6994932e4d2123e0721a86c2b2fb691a32b92054.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_channel_participants (channel_id, user_id, role, left_at)\n VALUES ($1, $2, 'member'::comms_participant_role, NULL)\n ON CONFLICT (channel_id, user_id)\n DO UPDATE SET role = 'member'::comms_participant_role,\n left_at = NULL,\n joined_at = now()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "92b33fffecd9a49fed7c74fe6994932e4d2123e0721a86c2b2fb691a32b92054" +} diff --git a/rust/cloud-storage/.sqlx/query-92e2916a16d165600f457c778ac3db9ae11c6625c948798e19ca19da4a30f3c1.json b/rust/cloud-storage/.sqlx/query-92e2916a16d165600f457c778ac3db9ae11c6625c948798e19ca19da4a30f3c1.json new file mode 100644 index 0000000000..f2a02380a7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-92e2916a16d165600f457c778ac3db9ae11c6625c948798e19ca19da4a30f3c1.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.content as \"content\",\n c.name as \"name\",\n m.role as \"role\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"ChatMessage\" m\n JOIN\n \"Chat\" c on c.\"id\" = m.\"chatId\"\n WHERE\n m.id = $1 AND m.\"chatId\" = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "content", + "type_info": "Jsonb" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "role", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + null + ] + }, + "hash": "92e2916a16d165600f457c778ac3db9ae11c6625c948798e19ca19da4a30f3c1" +} diff --git a/rust/cloud-storage/.sqlx/query-92edc80110af7b96f7f908989461a4abb11652671a95454969369a0484ed9239.json b/rust/cloud-storage/.sqlx/query-92edc80110af7b96f7f908989461a4abb11652671a95454969369a0484ed9239.json new file mode 100644 index 0000000000..a8520fdfd0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-92edc80110af7b96f7f908989461a4abb11652671a95454969369a0484ed9239.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO notification_message_receipt (message_id, user_id, notification_id)\n VALUES ($1, $2, $3)\n ON CONFLICT (message_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "92edc80110af7b96f7f908989461a4abb11652671a95454969369a0484ed9239" +} diff --git a/rust/cloud-storage/.sqlx/query-935031443597f0e3057ef41537c2baa9efd886c9ed75aabbf05e9cc43636d319.json b/rust/cloud-storage/.sqlx/query-935031443597f0e3057ef41537c2baa9efd886c9ed75aabbf05e9cc43636d319.json new file mode 100644 index 0000000000..10a2e0a032 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-935031443597f0e3057ef41537c2baa9efd886c9ed75aabbf05e9cc43636d319.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"SharePermission\" sp\n USING \"ChatPermission\" cp \n WHERE cp.\"sharePermissionId\" = sp.id\n AND cp.\"chatId\" = ANY($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "935031443597f0e3057ef41537c2baa9efd886c9ed75aabbf05e9cc43636d319" +} diff --git a/rust/cloud-storage/.sqlx/query-93df91392a72cc298609b453dc95621e7690af924a1af7bb4748dc704ed8897d.json b/rust/cloud-storage/.sqlx/query-93df91392a72cc298609b453dc95621e7690af924a1af7bb4748dc704ed8897d.json new file mode 100644 index 0000000000..aedc40a8c4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-93df91392a72cc298609b453dc95621e7690af924a1af7bb4748dc704ed8897d.json @@ -0,0 +1,59 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT ead.id, ead.draft_id, ead.file_name, ead.content_type, ead.sha, ead.size, ead.s3_key\n FROM email_attachments_drafts ead\n JOIN email_messages m ON ead.draft_id = m.id\n WHERE ead.draft_id = $1 AND m.link_id = $2\n ORDER BY ead.file_name ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "draft_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "file_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content_type", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "size", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "s3_key", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "93df91392a72cc298609b453dc95621e7690af924a1af7bb4748dc704ed8897d" +} diff --git a/rust/cloud-storage/.sqlx/query-93e41cb92c91a9a26ffbff42116d4311ca4e2ed8e7ff939912a65e045a49c939.json b/rust/cloud-storage/.sqlx/query-93e41cb92c91a9a26ffbff42116d4311ca4e2ed8e7ff939912a65e045a49c939.json new file mode 100644 index 0000000000..f40c6cda0a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-93e41cb92c91a9a26ffbff42116d4311ca4e2ed8e7ff939912a65e045a49c939.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT c.id, c.channel_id\n FROM call_participants cp\n JOIN calls c ON c.id = cp.call_id\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "93e41cb92c91a9a26ffbff42116d4311ca4e2ed8e7ff939912a65e045a49c939" +} diff --git a/rust/cloud-storage/.sqlx/query-93edad49b012cc8119b969091ba78ee6d16600fb11697445001c661e49bf48f4.json b/rust/cloud-storage/.sqlx/query-93edad49b012cc8119b969091ba78ee6d16600fb11697445001c661e49bf48f4.json new file mode 100644 index 0000000000..949ae7ef8b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-93edad49b012cc8119b969091ba78ee6d16600fb11697445001c661e49bf48f4.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ProjectPermission\" (\"projectId\", \"sharePermissionId\")\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "93edad49b012cc8119b969091ba78ee6d16600fb11697445001c661e49bf48f4" +} diff --git a/rust/cloud-storage/.sqlx/query-940e7b0eb134ebfeff080733ed64ee795af7afc2cf14a910b0baf5838c4284e6.json b/rust/cloud-storage/.sqlx/query-940e7b0eb134ebfeff080733ed64ee795af7afc2cf14a910b0baf5838c4284e6.json new file mode 100644 index 0000000000..0856672b4f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-940e7b0eb134ebfeff080733ed64ee795af7afc2cf14a910b0baf5838c4284e6.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT u.id as user_profile_id, mui.first_name, mui.last_name\n FROM macro_user_info mui\n JOIN \"User\" u ON mui.macro_user_id = u.macro_user_id\n WHERE u.id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_profile_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "first_name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "last_name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + true, + true + ] + }, + "hash": "940e7b0eb134ebfeff080733ed64ee795af7afc2cf14a910b0baf5838c4284e6" +} diff --git a/rust/cloud-storage/.sqlx/query-9460f97a5fe2c0ddb08e81f8ded812694d0f7408053c49c3e58ecca561d67c64.json b/rust/cloud-storage/.sqlx/query-9460f97a5fe2c0ddb08e81f8ded812694d0f7408053c49c3e58ecca561d67c64.json new file mode 100644 index 0000000000..b26f50c7f4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9460f97a5fe2c0ddb08e81f8ded812694d0f7408053c49c3e58ecca561d67c64.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id as entity_id,\n c.name,\n regexp_replace(\n c.name,\n $7,\n '\\1',\n 'gi'\n ) as name_highlighted,\n c.\"updatedAt\" as updated_at\n FROM \"Chat\" c\n WHERE (c.\"userId\" = $1 OR c.id = ANY($2))\n AND c.\"deletedAt\" IS NULL\n AND c.name ILIKE $3\n AND (\n $5::timestamptz IS NULL\n OR (c.\"updatedAt\", c.id) < ($5, $6)\n )\n ORDER BY c.\"updatedAt\" DESC, c.id DESC\n LIMIT $4\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name_highlighted", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray", + "Text", + "Int8", + "Timestamptz", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + null, + false + ] + }, + "hash": "9460f97a5fe2c0ddb08e81f8ded812694d0f7408053c49c3e58ecca561d67c64" +} diff --git a/rust/cloud-storage/.sqlx/query-94762871e427a2adfd8fcf6f2655d567f40a1b54a6186e0aa064be0f18212c98.json b/rust/cloud-storage/.sqlx/query-94762871e427a2adfd8fcf6f2655d567f40a1b54a6186e0aa064be0f18212c98.json new file mode 100644 index 0000000000..1afc4b89dc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-94762871e427a2adfd8fcf6f2655d567f40a1b54a6186e0aa064be0f18212c98.json @@ -0,0 +1,95 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO scheduled_action (owner, name, schedule, kind, timezone, task, next_run_at, enabled)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n RETURNING id, owner, name, schedule, kind, timezone, task, claimed, created_at, updated_at, next_run_at, enabled\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "schedule", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "kind", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "timezone", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "task", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "claimed", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "next_run_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "enabled", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Text", + "Text", + "Jsonb", + "Timestamptz", + "Bool" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false + ] + }, + "hash": "94762871e427a2adfd8fcf6f2655d567f40a1b54a6186e0aa064be0f18212c98" +} diff --git a/rust/cloud-storage/.sqlx/query-94a1d6338c8e2da84429da7a79f7dcf0a962feb7832aab9fc4bd50613f742b59.json b/rust/cloud-storage/.sqlx/query-94a1d6338c8e2da84429da7a79f7dcf0a962feb7832aab9fc4bd50613f742b59.json new file mode 100644 index 0000000000..f6156312ba --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-94a1d6338c8e2da84429da7a79f7dcf0a962feb7832aab9fc4bd50613f742b59.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT share_permission_id as \"share_permission_id!\"\n FROM (\n SELECT share_permission_id FROM calls WHERE id = $1\n UNION ALL\n SELECT share_permission_id FROM call_records WHERE id = $1\n ) t\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "94a1d6338c8e2da84429da7a79f7dcf0a962feb7832aab9fc4bd50613f742b59" +} diff --git a/rust/cloud-storage/.sqlx/query-94c019227741f6c4fe8411454cb7c0a3a97e5594c29f11fa893238656e161ff1.json b/rust/cloud-storage/.sqlx/query-94c019227741f6c4fe8411454cb7c0a3a97e5594c29f11fa893238656e161ff1.json new file mode 100644 index 0000000000..4035617965 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-94c019227741f6c4fe8411454cb7c0a3a97e5594c29f11fa893238656e161ff1.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE user_notification\n SET deleted_at = NOW()\n WHERE user_id = $1 AND notification_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "94c019227741f6c4fe8411454cb7c0a3a97e5594c29f11fa893238656e161ff1" +} diff --git a/rust/cloud-storage/.sqlx/query-95a8a0117d0bbc25adf4dc08cf0cec40eaa0faddb4490ad14ae9cc6c4d922256.json b/rust/cloud-storage/.sqlx/query-95a8a0117d0bbc25adf4dc08cf0cec40eaa0faddb4490ad14ae9cc6c4d922256.json new file mode 100644 index 0000000000..8db9a4bf0c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-95a8a0117d0bbc25adf4dc08cf0cec40eaa0faddb4490ad14ae9cc6c4d922256.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Experiment\" (id)\n VALUES ($1)\n RETURNING id, active, \"started_at\"::timestamptz as started_at, \"ended_at\"::timestamptz as ended_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "active", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "started_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "ended_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + null, + null + ] + }, + "hash": "95a8a0117d0bbc25adf4dc08cf0cec40eaa0faddb4490ad14ae9cc6c4d922256" +} diff --git a/rust/cloud-storage/.sqlx/query-95c5d4f79e729713642efcda97838eddd466c0ec2ec9f96ae2be185ef9ff1547.json b/rust/cloud-storage/.sqlx/query-95c5d4f79e729713642efcda97838eddd466c0ec2ec9f96ae2be185ef9ff1547.json new file mode 100644 index 0000000000..94b5b88dd8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-95c5d4f79e729713642efcda97838eddd466c0ec2ec9f96ae2be185ef9ff1547.json @@ -0,0 +1,73 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, fusionauth_user_id, macro_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at\n FROM email_links\n WHERE fusionauth_user_id = $1\n ORDER BY created_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "provider: _", + "type_info": { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_sync_active", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "95c5d4f79e729713642efcda97838eddd466c0ec2ec9f96ae2be185ef9ff1547" +} diff --git a/rust/cloud-storage/.sqlx/query-95dda7d94d399b451c4ba4a78ed6809895c255a103ca296451cbfe6c99833e8f.json b/rust/cloud-storage/.sqlx/query-95dda7d94d399b451c4ba4a78ed6809895c255a103ca296451cbfe6c99833e8f.json new file mode 100644 index 0000000000..e4c1284d23 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-95dda7d94d399b451c4ba4a78ed6809895c255a103ca296451cbfe6c99833e8f.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"document_email\" (document_id, email_attachment_id)\n VALUES ($1, $2) \n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "95dda7d94d399b451c4ba4a78ed6809895c255a103ca296451cbfe6c99833e8f" +} diff --git a/rust/cloud-storage/.sqlx/query-966aa67009ff8376169045428a87b81c8ff478ddd1d7116a626d9a7d4bdc0297.json b/rust/cloud-storage/.sqlx/query-966aa67009ff8376169045428a87b81c8ff478ddd1d7116a626d9a7d4bdc0297.json new file mode 100644 index 0000000000..e2fdbe28a3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-966aa67009ff8376169045428a87b81c8ff478ddd1d7116a626d9a7d4bdc0297.json @@ -0,0 +1,173 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n provider_id,\n global_id,\n thread_id,\n provider_thread_id,\n replying_to_id,\n link_id,\n provider_history_id,\n internal_date_ts,\n snippet,\n size_estimate,\n subject,\n from_name,\n from_contact_id,\n sent_at,\n has_attachments,\n is_read,\n is_starred,\n is_sent,\n is_draft,\n headers_jsonb,\n created_at,\n updated_at,\n -- No body attributes\n NULL as \"body_text?\",\n NULL as \"body_html_sanitized?\",\n NULL as \"body_macro?\"\n FROM email_messages\n WHERE thread_id = $1 and link_id = $2\n ORDER BY internal_date_ts DESC NULLS LAST\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 6, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 21, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 22, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 23, + "name": "body_text?", + "type_info": "Text" + }, + { + "ordinal": 24, + "name": "body_html_sanitized?", + "type_info": "Text" + }, + { + "ordinal": 25, + "name": "body_macro?", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + true, + false, + false, + null, + null, + null + ] + }, + "hash": "966aa67009ff8376169045428a87b81c8ff478ddd1d7116a626d9a7d4bdc0297" +} diff --git a/rust/cloud-storage/.sqlx/query-9676374e780121fbb6724ac51d9c742deb835c1e2c5a23390501ef95bc0f12cd.json b/rust/cloud-storage/.sqlx/query-9676374e780121fbb6724ac51d9c742deb835c1e2c5a23390501ef95bc0f12cd.json new file mode 100644 index 0000000000..678dc0399c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9676374e780121fbb6724ac51d9c742deb835c1e2c5a23390501ef95bc0f12cd.json @@ -0,0 +1,118 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n ph.uuid, \n ph.\"documentId\" as document_id,\n ph.owner, \n ph.\"threadId\" as thread_id, \n ph.page, \n ph.red,\n ph.green, \n ph.blue, \n ph.alpha, \n ph.type as highlight_type, \n ph.text, \n ph.\"pageViewportWidth\" as page_viewport_width, \n ph.\"pageViewportHeight\" as page_viewport_height, \n ph.\"createdAt\"::timestamptz as created_at, \n ph.\"updatedAt\"::timestamptz as updated_at, \n ph.\"deletedAt\"::timestamptz as deleted_at, \n array_agg((phr.id, phr.top, phr.left, phr.width, phr.height)) as \"highlight_rects!: Vec\"\n FROM \"PdfHighlightAnchor\" ph\n JOIN \"PdfHighlightRect\" phr ON ph.uuid = phr.\"pdfHighlightAnchorId\"\n WHERE ph.uuid = $1\n GROUP BY ph.uuid, ph.owner, ph.\"threadId\", ph.page, ph.red, ph.green, ph.blue, ph.alpha, ph.type, ph.text, ph.\"pageViewportWidth\", ph.\"pageViewportHeight\", ph.\"createdAt\", ph.\"updatedAt\", ph.\"deletedAt\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "page", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "red", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "green", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "blue", + "type_info": "Int4" + }, + { + "ordinal": 8, + "name": "alpha", + "type_info": "Float8" + }, + { + "ordinal": 9, + "name": "highlight_type", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "text", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "page_viewport_width", + "type_info": "Float8" + }, + { + "ordinal": 12, + "name": "page_viewport_height", + "type_info": "Float8" + }, + { + "ordinal": 13, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 14, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 16, + "name": "highlight_rects!: Vec", + "type_info": "RecordArray" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + null, + null, + null, + null + ] + }, + "hash": "9676374e780121fbb6724ac51d9c742deb835c1e2c5a23390501ef95bc0f12cd" +} diff --git a/rust/cloud-storage/.sqlx/query-96813c302ddd0c88c30ca845c668dcc47089bf02ae5dbf0f15eb0be64395d09f.json b/rust/cloud-storage/.sqlx/query-96813c302ddd0c88c30ca845c668dcc47089bf02ae5dbf0f15eb0be64395d09f.json new file mode 100644 index 0000000000..10a698064c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-96813c302ddd0c88c30ca845c668dcc47089bf02ae5dbf0f15eb0be64395d09f.json @@ -0,0 +1,36 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"PdfHighlightAnchor\" (\n \"uuid\", \"documentId\", \"owner\", \"page\", \"red\", \"green\", \"blue\", \"alpha\", \n \"type\", \"text\", \"pageViewportWidth\", \"pageViewportHeight\", \n \"threadId\", \"createdAt\", \"updatedAt\"\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15)\n RETURNING uuid\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "uuid", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Int4", + "Int4", + "Int4", + "Int4", + "Float8", + "Int4", + "Text", + "Float8", + "Float8", + "Int8", + "Timestamp", + "Timestamp" + ] + }, + "nullable": [ + false + ] + }, + "hash": "96813c302ddd0c88c30ca845c668dcc47089bf02ae5dbf0f15eb0be64395d09f" +} diff --git a/rust/cloud-storage/.sqlx/query-96a2c0a064e56b4fd812c2768403fc086f4518149772d661222d54592df920d3.json b/rust/cloud-storage/.sqlx/query-96a2c0a064e56b4fd812c2768403fc086f4518149772d661222d54592df920d3.json new file mode 100644 index 0000000000..f884197d2e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-96a2c0a064e56b4fd812c2768403fc086f4518149772d661222d54592df920d3.json @@ -0,0 +1,25 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO document_sub_type (document_id, sub_type)\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "96a2c0a064e56b4fd812c2768403fc086f4518149772d661222d54592df920d3" +} diff --git a/rust/cloud-storage/.sqlx/query-96b75da06aef543dc7d626c98501bd176b609bdab2f96a13e2d035510a72eebb.json b/rust/cloud-storage/.sqlx/query-96b75da06aef543dc7d626c98501bd176b609bdab2f96a13e2d035510a72eebb.json new file mode 100644 index 0000000000..c170856c4b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-96b75da06aef543dc7d626c98501bd176b609bdab2f96a13e2d035510a72eebb.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Comment\" (\"threadId\", \"owner\", \"sender\", \"text\", \"createdAt\", \"updatedAt\", \"order\")\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8", + "Text", + "Text", + "Text", + "Timestamp", + "Timestamp", + "Int4" + ] + }, + "nullable": [ + false + ] + }, + "hash": "96b75da06aef543dc7d626c98501bd176b609bdab2f96a13e2d035510a72eebb" +} diff --git a/rust/cloud-storage/.sqlx/query-9728f991ee1e5bff78e52700ce2c4d2d8e8113701d39452faa3147bb18974926.json b/rust/cloud-storage/.sqlx/query-9728f991ee1e5bff78e52700ce2c4d2d8e8113701d39452faa3147bb18974926.json new file mode 100644 index 0000000000..efdf6f8f33 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9728f991ee1e5bff78e52700ce2c4d2d8e8113701d39452faa3147bb18974926.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE crm_contacts ct\n SET hidden = $3\n FROM crm_companies co\n WHERE ct.id = $1\n AND ct.company_id = co.id\n AND co.team_id = $2\n RETURNING ct.id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Bool" + ] + }, + "nullable": [ + false + ] + }, + "hash": "9728f991ee1e5bff78e52700ce2c4d2d8e8113701d39452faa3147bb18974926" +} diff --git a/rust/cloud-storage/.sqlx/query-973904cf0ce82830a1a4db5d5ef93577a02892254df31144b5df44bdc5b58381.json b/rust/cloud-storage/.sqlx/query-973904cf0ce82830a1a4db5d5ef93577a02892254df31144b5df44bdc5b58381.json new file mode 100644 index 0000000000..b166df2fe9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-973904cf0ce82830a1a4db5d5ef93577a02892254df31144b5df44bdc5b58381.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n ca.id,\n ca.\"entity_type\" as \"attachment_type: AttachmentType\",\n ca.\"entity_id\"::TEXT as \"attachment_id!\",\n ca.\"chatId\" as \"chat_id\",\n ca.\"messageId\" as \"message_id\"\n FROM\n \"ChatAttachment\" ca\n WHERE\n ca.\"messageId\" = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "attachment_type: AttachmentType", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "attachment_id!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "chat_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "message_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + null, + true, + true + ] + }, + "hash": "973904cf0ce82830a1a4db5d5ef93577a02892254df31144b5df44bdc5b58381" +} diff --git a/rust/cloud-storage/.sqlx/query-980f95d4b95f6a981b86bdbdda30b4b5ee7ee34505f206d0a6861cec41ef589a.json b/rust/cloud-storage/.sqlx/query-980f95d4b95f6a981b86bdbdda30b4b5ee7ee34505f206d0a6861cec41ef589a.json new file mode 100644 index 0000000000..4145c5fb82 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-980f95d4b95f6a981b86bdbdda30b4b5ee7ee34505f206d0a6861cec41ef589a.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n p.id,\n p.name,\n p.\"userId\" as user_id,\n p.\"parentId\" as parent_id,\n p.\"createdAt\"::timestamptz as created_at,\n p.\"updatedAt\"::timestamptz as updated_at,\n p.\"uploadRequestId\" as upload_request_id\n FROM \"Project\" p\n WHERE p.\"userId\" = $1 AND p.\"deletedAt\" IS NULL AND p.\"uploadPending\" = true AND p.\"parentId\" IS NULL\n ORDER BY p.\"updatedAt\" DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "parent_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "upload_request_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + null, + null, + true + ] + }, + "hash": "980f95d4b95f6a981b86bdbdda30b4b5ee7ee34505f206d0a6861cec41ef589a" +} diff --git a/rust/cloud-storage/.sqlx/query-98923878d16c2d5d2594120fe481fdeb1b2ff97c69fe26b5a09c82d393ce4010.json b/rust/cloud-storage/.sqlx/query-98923878d16c2d5d2594120fe481fdeb1b2ff97c69fe26b5a09c82d393ce4010.json new file mode 100644 index 0000000000..d193eb4c34 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-98923878d16c2d5d2594120fe481fdeb1b2ff97c69fe26b5a09c82d393ce4010.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT d.device_endpoint\n FROM notification_user_device_registration d\n WHERE d.user_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "device_endpoint", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "98923878d16c2d5d2594120fe481fdeb1b2ff97c69fe26b5a09c82d393ce4010" +} diff --git a/rust/cloud-storage/.sqlx/query-989e8adb9e267d1400ad5cb3e0e4b3d4a434de5c66f3cbcadedc4c6f20769ade.json b/rust/cloud-storage/.sqlx/query-989e8adb9e267d1400ad5cb3e0e4b3d4a434de5c66f3cbcadedc4c6f20769ade.json new file mode 100644 index 0000000000..bad2cb0d0e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-989e8adb9e267d1400ad5cb3e0e4b3d4a434de5c66f3cbcadedc4c6f20769ade.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"SharePermission\" WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "989e8adb9e267d1400ad5cb3e0e4b3d4a434de5c66f3cbcadedc4c6f20769ade" +} diff --git a/rust/cloud-storage/.sqlx/query-98a5db6c9f4cdfa6f855406ad26a11600e5f84094b73f3ce359c48e60b6921be.json b/rust/cloud-storage/.sqlx/query-98a5db6c9f4cdfa6f855406ad26a11600e5f84094b73f3ce359c48e60b6921be.json new file mode 100644 index 0000000000..936333e4c9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-98a5db6c9f4cdfa6f855406ad26a11600e5f84094b73f3ce359c48e60b6921be.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT t.id\n FROM crm_comment c\n JOIN crm_thread t ON t.id = c.thread_id\n WHERE c.id = $1\n AND c.deleted_at IS NULL\n AND (\n EXISTS (\n SELECT 1 FROM crm_companies co\n WHERE co.id = t.company_id\n AND co.team_id = $2\n AND ($3 OR co.hidden = FALSE)\n )\n OR EXISTS (\n SELECT 1 FROM crm_contacts ct\n JOIN crm_companies co2 ON co2.id = ct.company_id\n WHERE ct.id = t.contact_id\n AND co2.team_id = $2\n AND ($3 OR (ct.hidden = FALSE AND co2.hidden = FALSE))\n )\n )\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Bool" + ] + }, + "nullable": [ + false + ] + }, + "hash": "98a5db6c9f4cdfa6f855406ad26a11600e5f84094b73f3ce359c48e60b6921be" +} diff --git a/rust/cloud-storage/.sqlx/query-9921d35717a5c93783e3db8c1fd380459c4400902f4c3c86e3e2650613321a70.json b/rust/cloud-storage/.sqlx/query-9921d35717a5c93783e3db8c1fd380459c4400902f4c3c86e3e2650613321a70.json new file mode 100644 index 0000000000..75bc1d69a3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9921d35717a5c93783e3db8c1fd380459c4400902f4c3c86e3e2650613321a70.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE call_record_transcripts AS t\n SET custom_speaker = u.custom_speaker\n FROM UNNEST($2::text[], $3::text[]) AS u(diarized_speaker_id, custom_speaker)\n WHERE t.call_record_id = $1\n AND t.diarized_speaker_id = u.diarized_speaker_id\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "9921d35717a5c93783e3db8c1fd380459c4400902f4c3c86e3e2650613321a70" +} diff --git a/rust/cloud-storage/.sqlx/query-993f8bd336bc9ba45ab51edac700887af626bf74de28e395ab8a1875bc9fe9ac.json b/rust/cloud-storage/.sqlx/query-993f8bd336bc9ba45ab51edac700887af626bf74de28e395ab8a1875bc9fe9ac.json new file mode 100644 index 0000000000..44028b170c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-993f8bd336bc9ba45ab51edac700887af626bf74de28e395ab8a1875bc9fe9ac.json @@ -0,0 +1,65 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id AS \"message_id!\",\n m.thread_id,\n m.sender_id AS \"sender_id!\",\n m.content AS \"content!\",\n m.created_at AS \"created_at!\",\n m.updated_at AS \"updated_at!\",\n m.deleted_at::timestamptz AS \"deleted_at?\",\n COALESCE(\n ARRAY(\n SELECT entity_type || ':' || entity_id\n FROM comms_entity_mentions em\n WHERE em.source_entity_type = 'message'\n AND em.source_entity_id = m.id::text\n ),\n '{}'::text[]\n ) AS \"mentions!\"\n FROM comms_messages m\n WHERE m.channel_id = $1\n AND m.deleted_at IS NULL\n ORDER BY m.created_at DESC\n LIMIT $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "deleted_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "mentions!", + "type_info": "TextArray" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Int8" + ] + }, + "nullable": [ + false, + true, + false, + false, + false, + false, + null, + null + ] + }, + "hash": "993f8bd336bc9ba45ab51edac700887af626bf74de28e395ab8a1875bc9fe9ac" +} diff --git a/rust/cloud-storage/.sqlx/query-9947668e4041d1e3297dce4942ca41a916397efdb2620e338a211f97751c0d89.json b/rust/cloud-storage/.sqlx/query-9947668e4041d1e3297dce4942ca41a916397efdb2620e338a211f97751c0d89.json new file mode 100644 index 0000000000..a215c3bde7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9947668e4041d1e3297dce4942ca41a916397efdb2620e338a211f97751c0d89.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id\n FROM \"User\"\n WHERE \"macro_user_id\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "9947668e4041d1e3297dce4942ca41a916397efdb2620e338a211f97751c0d89" +} diff --git a/rust/cloud-storage/.sqlx/query-994b928d690be53173114c3aa76a66231fc7b960744db3830385a13a45a3ce8f.json b/rust/cloud-storage/.sqlx/query-994b928d690be53173114c3aa76a66231fc7b960744db3830385a13a45a3ce8f.json new file mode 100644 index 0000000000..7e7bc07bf9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-994b928d690be53173114c3aa76a66231fc7b960744db3830385a13a45a3ce8f.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_sfs_mappings (source, destination)\n SELECT * FROM UNNEST($1::text[], $2::text[])\n ON CONFLICT (source) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "994b928d690be53173114c3aa76a66231fc7b960744db3830385a13a45a3ce8f" +} diff --git a/rust/cloud-storage/.sqlx/query-99c26d3fcc7cc1494cd3f8387e4f9fd70cd817602df9ad6d355b26e13b47553a.json b/rust/cloud-storage/.sqlx/query-99c26d3fcc7cc1494cd3f8387e4f9fd70cd817602df9ad6d355b26e13b47553a.json new file mode 100644 index 0000000000..2b17a5a941 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-99c26d3fcc7cc1494cd3f8387e4f9fd70cd817602df9ad6d355b26e13b47553a.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"User\"\n SET \"group\" = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Varchar", + "Text" + ] + }, + "nullable": [] + }, + "hash": "99c26d3fcc7cc1494cd3f8387e4f9fd70cd817602df9ad6d355b26e13b47553a" +} diff --git a/rust/cloud-storage/.sqlx/query-99f5d2da898d5e7f29f1966c51370af1692f03a0df09f0ee78a589158e8f51ee.json b/rust/cloud-storage/.sqlx/query-99f5d2da898d5e7f29f1966c51370af1692f03a0df09f0ee78a589158e8f51ee.json new file mode 100644 index 0000000000..6ce1b7af93 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-99f5d2da898d5e7f29f1966c51370af1692f03a0df09f0ee78a589158e8f51ee.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM \"InstructionsDocuments\" WHERE \"userId\" = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "99f5d2da898d5e7f29f1966c51370af1692f03a0df09f0ee78a589158e8f51ee" +} diff --git a/rust/cloud-storage/.sqlx/query-9a050086d79aa5be0e89a23048d2eb45a7f04dcc2fbdceed41497048a2410ce5.json b/rust/cloud-storage/.sqlx/query-9a050086d79aa5be0e89a23048d2eb45a7f04dcc2fbdceed41497048a2410ce5.json new file mode 100644 index 0000000000..1b55805b1b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9a050086d79aa5be0e89a23048d2eb45a7f04dcc2fbdceed41497048a2410ce5.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n cm.id AS \"id!\",\n cm.content,\n cm.role,\n cm.model,\n COALESCE(\n (\n SELECT json_agg(\n json_build_object(\n 'entity_type', ca.\"entity_type\",\n 'entity_id', ca.\"entity_id\"::TEXT\n )\n )\n FROM \"ChatAttachment\" ca\n WHERE ca.\"messageId\" = cm.id\n ),\n '[]'::json\n ) AS attachments\n FROM\n \"ChatMessage\" cm\n WHERE\n cm.\"chatId\" = $1\n ORDER BY\n cm.\"createdAt\" ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "content", + "type_info": "Jsonb" + }, + { + "ordinal": 2, + "name": "role", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "model", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "attachments", + "type_info": "Json" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + null + ] + }, + "hash": "9a050086d79aa5be0e89a23048d2eb45a7f04dcc2fbdceed41497048a2410ce5" +} diff --git a/rust/cloud-storage/.sqlx/query-9a32d4826e372e762f828cb5aed93f60b6731fa2c553f3fda711cf72f1574fae.json b/rust/cloud-storage/.sqlx/query-9a32d4826e372e762f828cb5aed93f60b6731fa2c553f3fda711cf72f1574fae.json new file mode 100644 index 0000000000..0e586ce9a4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9a32d4826e372e762f828cb5aed93f60b6731fa2c553f3fda711cf72f1574fae.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT name FROM comms_channels WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + true + ] + }, + "hash": "9a32d4826e372e762f828cb5aed93f60b6731fa2c553f3fda711cf72f1574fae" +} diff --git a/rust/cloud-storage/.sqlx/query-9a4d3cd17bbfd022b2097a3c661cdf23a4a1c1d900d9a0267b1b38a054c49dc3.json b/rust/cloud-storage/.sqlx/query-9a4d3cd17bbfd022b2097a3c661cdf23a4a1c1d900d9a0267b1b38a054c49dc3.json new file mode 100644 index 0000000000..9256ea8725 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9a4d3cd17bbfd022b2097a3c661cdf23a4a1c1d900d9a0267b1b38a054c49dc3.json @@ -0,0 +1,128 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n t.id,\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n -- A thread in \"Other\" can still be \"Important\", so we must perform the check.\n (\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m_imp.thread_id = t.id\n AND l.link_id = t.link_id\n AND l.name = 'IMPORTANT'\n )\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Efficiently find, sort, and limit the top N+1 threads that qualify for the \"Other\" inbox.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.inbox_visible,\n t.is_read,\n t.project_id,\n t.latest_non_spam_message_ts AS created_at,\n t.latest_non_spam_message_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_non_spam_message_ts)\n ELSE t.latest_non_spam_message_ts\n END AS effective_ts\n FROM email_threads t\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n t.link_id = ANY($1)\n AND t.latest_non_spam_message_ts IS NOT NULL\n -- Inclusion Criteria: Must have a category label.\n AND EXISTS (\n SELECT 1 FROM email_messages m JOIN email_message_labels ml ON m.id = ml.message_id JOIN email_labels l ON ml.label_id = l.id\n WHERE m.thread_id = t.id AND l.link_id = t.link_id AND l.name IN ('CATEGORY_PROMOTIONS', 'CATEGORY_SOCIAL', 'CATEGORY_FORUMS')\n )\n -- ****** CORRECTED EXCLUSION CRITERIA ******\n -- This now matches the logic of your original query, which did NOT filter out 'INBOX' or 'IMPORTANT'.\n AND NOT EXISTS (\n SELECT 1 FROM email_messages m JOIN email_message_labels ml ON m.id = ml.message_id JOIN email_labels l ON ml.label_id = l.id\n WHERE m.thread_id = t.id AND l.link_id = t.link_id AND l.name IN ('SPAM', 'TRASH', 'DRAFT')\n )\n \n AND (($3::timestamptz IS NULL) OR (\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_non_spam_message_ts)\n ELSE t.latest_non_spam_message_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find its latest non-spam/trash message for the preview.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.is_draft,\n m.from_contact_id,\n m.from_name\n FROM email_messages m\n WHERE m.thread_id = t.id\n AND m.is_draft = FALSE\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id AND l.link_id = t.link_id AND l.name IN ('SPAM', 'TRASH')\n )\n ORDER BY m.internal_date_ts DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n ORDER BY t.effective_ts DESC, t.updated_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "inbox_visible", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "sort_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "viewed_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "name?", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "snippet?", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 12, + "name": "is_important!", + "type_info": "Bool" + }, + { + "ordinal": 13, + "name": "sender_email?", + "type_info": "Varchar" + }, + { + "ordinal": 14, + "name": "sender_name?", + "type_info": "Varchar" + }, + { + "ordinal": 15, + "name": "sender_photo_url?", + "type_info": "Text" + }, + { + "ordinal": 16, + "name": "owner_id!", + "type_info": "Text" + }, + { + "ordinal": 17, + "name": "link_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "Int8", + "Timestamptz", + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + true, + false, + false, + null, + true, + true, + true, + false, + true, + true, + false, + null, + false, + null, + true, + false, + false + ] + }, + "hash": "9a4d3cd17bbfd022b2097a3c661cdf23a4a1c1d900d9a0267b1b38a054c49dc3" +} diff --git a/rust/cloud-storage/.sqlx/query-9a85a116815c36f9cbde5a097e39e0547ed654489c726b44faf23524f148ec86.json b/rust/cloud-storage/.sqlx/query-9a85a116815c36f9cbde5a097e39e0547ed654489c726b44faf23524f148ec86.json new file mode 100644 index 0000000000..85472bb383 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9a85a116815c36f9cbde5a097e39e0547ed654489c726b44faf23524f148ec86.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT reference, \"documentId\"\n FROM \"DocumentTextParts\"\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "reference", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "documentId", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "9a85a116815c36f9cbde5a097e39e0547ed654489c726b44faf23524f148ec86" +} diff --git a/rust/cloud-storage/.sqlx/query-9ad1a505be647e76d4282b62012cb223cda097f8b2d35d22f446f873960480c0.json b/rust/cloud-storage/.sqlx/query-9ad1a505be647e76d4282b62012cb223cda097f8b2d35d22f446f873960480c0.json new file mode 100644 index 0000000000..d61b8cf649 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9ad1a505be647e76d4282b62012cb223cda097f8b2d35d22f446f873960480c0.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO channel_notification_email_sent (user_id, channel_id)\n SELECT $1, c FROM UNNEST($2::uuid[]) AS c\n ON CONFLICT (channel_id, user_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "UuidArray" + ] + }, + "nullable": [] + }, + "hash": "9ad1a505be647e76d4282b62012cb223cda097f8b2d35d22f446f873960480c0" +} diff --git a/rust/cloud-storage/.sqlx/query-9afc6f436aedd226ed0d6bf85de64c5ff57853c93ff00f768b49bf79f198590b.json b/rust/cloud-storage/.sqlx/query-9afc6f436aedd226ed0d6bf85de64c5ff57853c93ff00f768b49bf79f198590b.json new file mode 100644 index 0000000000..154f82bfc7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9afc6f436aedd226ed0d6bf85de64c5ff57853c93ff00f768b49bf79f198590b.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n a.id as \"id!: Uuid\",\n a.user_id as \"user_id!: String\",\n a.channel_id as \"channel_id!: Uuid\",\n a.viewed_at as \"viewed_at?: DateTime\",\n a.interacted_at as \"interacted_at?: DateTime\",\n a.created_at as \"created_at!: DateTime\",\n a.updated_at as \"updated_at!: DateTime\"\n FROM comms_activity a\n WHERE a.user_id = $1\n ORDER BY \n GREATEST(\n COALESCE(a.viewed_at, '1970-01-01'::timestamp),\n COALESCE(a.interacted_at, '1970-01-01'::timestamp)\n ) DESC,\n a.created_at DESC\n LIMIT 100\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id!: String", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "channel_id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "viewed_at?: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "interacted_at?: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "created_at!: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 6, + "name": "updated_at!: DateTime", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + false, + false + ] + }, + "hash": "9afc6f436aedd226ed0d6bf85de64c5ff57853c93ff00f768b49bf79f198590b" +} diff --git a/rust/cloud-storage/.sqlx/query-9b7bc338faac59d4da4d6ccdc478ba67be32356a3b2b62660982ca8932a0d2f7.json b/rust/cloud-storage/.sqlx/query-9b7bc338faac59d4da4d6ccdc478ba67be32356a3b2b62660982ca8932a0d2f7.json new file mode 100644 index 0000000000..c83112aadc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9b7bc338faac59d4da4d6ccdc478ba67be32356a3b2b62660982ca8932a0d2f7.json @@ -0,0 +1,12 @@ +{ + "db_name": "PostgreSQL", + "query": "TRUNCATE TABLE task_duplicate_embedding", + "describe": { + "columns": [], + "parameters": { + "Left": [] + }, + "nullable": [] + }, + "hash": "9b7bc338faac59d4da4d6ccdc478ba67be32356a3b2b62660982ca8932a0d2f7" +} diff --git a/rust/cloud-storage/.sqlx/query-9b83758d2e1a6855b03ceee2f0bebf87a5152702bb5b9ffb2b817ad93c0635ea.json b/rust/cloud-storage/.sqlx/query-9b83758d2e1a6855b03ceee2f0bebf87a5152702bb5b9ffb2b817ad93c0635ea.json new file mode 100644 index 0000000000..afc75443c3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9b83758d2e1a6855b03ceee2f0bebf87a5152702bb5b9ffb2b817ad93c0635ea.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentInstanceModificationData\" (\"documentInstanceId\", \"modificationData\")\n VALUES ($1, $2);\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "9b83758d2e1a6855b03ceee2f0bebf87a5152702bb5b9ffb2b817ad93c0635ea" +} diff --git a/rust/cloud-storage/.sqlx/query-9bb89d78cff9b84ca91fa891dd3e61c04906fa841a9d21c29127d03797e98186.json b/rust/cloud-storage/.sqlx/query-9bb89d78cff9b84ca91fa891dd3e61c04906fa841a9d21c29127d03797e98186.json new file mode 100644 index 0000000000..50d679e8f6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9bb89d78cff9b84ca91fa891dd3e61c04906fa841a9d21c29127d03797e98186.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE \"Document\" SET \"projectId\"=$2 WHERE \"id\"=$1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "9bb89d78cff9b84ca91fa891dd3e61c04906fa841a9d21c29127d03797e98186" +} diff --git a/rust/cloud-storage/.sqlx/query-9c4e25c3a319934aa1bbf165f19683f34a3f5684edaa965cbdb1b09e422cab8b.json b/rust/cloud-storage/.sqlx/query-9c4e25c3a319934aa1bbf165f19683f34a3f5684edaa965cbdb1b09e422cab8b.json new file mode 100644 index 0000000000..5363a116e1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9c4e25c3a319934aa1bbf165f19683f34a3f5684edaa965cbdb1b09e422cab8b.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO user_notification_item_unsubscribe (user_id, item_id, item_type)\n VALUES ($1, $2, $3)\n ON CONFLICT (user_id, item_id) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "9c4e25c3a319934aa1bbf165f19683f34a3f5684edaa965cbdb1b09e422cab8b" +} diff --git a/rust/cloud-storage/.sqlx/query-9c81b4664d019cc6242259ff81d5abe2ad4c2f28d0f4cea773ef7b4267eb0e81.json b/rust/cloud-storage/.sqlx/query-9c81b4664d019cc6242259ff81d5abe2ad4c2f28d0f4cea773ef7b4267eb0e81.json new file mode 100644 index 0000000000..4519ec280c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9c81b4664d019cc6242259ff81d5abe2ad4c2f28d0f4cea773ef7b4267eb0e81.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE macro_user\n SET has_trialed = $2\n WHERE email = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "9c81b4664d019cc6242259ff81d5abe2ad4c2f28d0f4cea773ef7b4267eb0e81" +} diff --git a/rust/cloud-storage/.sqlx/query-9cbb599d24ea1f22756926601cb3dc157a2a327ce9aea06a1a772c1741abcf9a.json b/rust/cloud-storage/.sqlx/query-9cbb599d24ea1f22756926601cb3dc157a2a327ce9aea06a1a772c1741abcf9a.json new file mode 100644 index 0000000000..2fd40ad53a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9cbb599d24ea1f22756926601cb3dc157a2a327ce9aea06a1a772c1741abcf9a.json @@ -0,0 +1,36 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.id as user_id,\n u.email as user_email,\n array_agg(DISTINCT rop.\"permissionId\") AS permissions\n FROM \"User\" u\n LEFT JOIN \"RolesOnUsers\" rou ON rou.\"userId\" = u.id\n LEFT JOIN \"Role\" r ON r.id = rou.\"roleId\"\n LEFT JOIN \"RolesOnPermissions\" rop ON rop.\"roleId\" = r.id\n WHERE u.\"organizationId\" = $1\n GROUP BY u.id\n LIMIT $2\n OFFSET $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "user_email", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "permissions", + "type_info": "TextArray" + } + ], + "parameters": { + "Left": [ + "Int4", + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false, + null + ] + }, + "hash": "9cbb599d24ea1f22756926601cb3dc157a2a327ce9aea06a1a772c1741abcf9a" +} diff --git a/rust/cloud-storage/.sqlx/query-9cd40fbb1ade51e9e0d49792839d1a363cada017252a6f653c2272608189bcc4.json b/rust/cloud-storage/.sqlx/query-9cd40fbb1ade51e9e0d49792839d1a363cada017252a6f653c2272608189bcc4.json new file mode 100644 index 0000000000..9d717fa5f9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9cd40fbb1ade51e9e0d49792839d1a363cada017252a6f653c2272608189bcc4.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT property_definition_id, values\n FROM entity_properties\n WHERE entity_id = $1\n AND entity_type = 'TASK'\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "property_definition_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "values", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "9cd40fbb1ade51e9e0d49792839d1a363cada017252a6f653c2272608189bcc4" +} diff --git a/rust/cloud-storage/.sqlx/query-9cf47f4d88c29f80e8698b91319d81031064da7fa08afec7364df40546b1ac0c.json b/rust/cloud-storage/.sqlx/query-9cf47f4d88c29f80e8698b91319d81031064da7fa08afec7364df40546b1ac0c.json new file mode 100644 index 0000000000..befc98605f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9cf47f4d88c29f80e8698b91319d81031064da7fa08afec7364df40546b1ac0c.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_messages\n SET\n replying_to_id = update_data.new_replying_to_id,\n updated_at = NOW()\n FROM\n UNNEST($1::uuid[], $2::uuid[])\n AS update_data(message_id, new_replying_to_id)\n WHERE\n email_messages.id = update_data.message_id\n AND email_messages.link_id = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "UuidArray", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "9cf47f4d88c29f80e8698b91319d81031064da7fa08afec7364df40546b1ac0c" +} diff --git a/rust/cloud-storage/.sqlx/query-9d8ebf3f5901badeacb46837f0a2222f49274e9e72dbd25cf9c197b4f97654a5.json b/rust/cloud-storage/.sqlx/query-9d8ebf3f5901badeacb46837f0a2222f49274e9e72dbd25cf9c197b4f97654a5.json new file mode 100644 index 0000000000..05f7b62da7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9d8ebf3f5901badeacb46837f0a2222f49274e9e72dbd25cf9c197b4f97654a5.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, owner FROM \"Document\" WHERE \"projectId\" = ANY($1) AND \"deletedAt\" IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "9d8ebf3f5901badeacb46837f0a2222f49274e9e72dbd25cf9c197b4f97654a5" +} diff --git a/rust/cloud-storage/.sqlx/query-9e0a5d81fc7d5897a95ede42af6d3495c14fbf4095333a1f5632f836b365065f.json b/rust/cloud-storage/.sqlx/query-9e0a5d81fc7d5897a95ede42af6d3495c14fbf4095333a1f5632f836b365065f.json new file mode 100644 index 0000000000..0ddd9840fc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9e0a5d81fc7d5897a95ede42af6d3495c14fbf4095333a1f5632f836b365065f.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id\n FROM\n \"Chat\" c\n WHERE\n c.id = ANY($1)\n AND c.\"userId\" = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "9e0a5d81fc7d5897a95ede42af6d3495c14fbf4095333a1f5632f836b365065f" +} diff --git a/rust/cloud-storage/.sqlx/query-9e45ba072fbc5266f7edba0fecb99d19192e10139d6ea089be4a3a4a7923361c.json b/rust/cloud-storage/.sqlx/query-9e45ba072fbc5266f7edba0fecb99d19192e10139d6ea089be4a3a4a7923361c.json new file mode 100644 index 0000000000..357e50473e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9e45ba072fbc5266f7edba0fecb99d19192e10139d6ea089be4a3a4a7923361c.json @@ -0,0 +1,18 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO property_options (\n id,\n property_definition_id,\n display_order,\n number_value,\n string_value\n )\n VALUES ($1, $2, $3, $4, $5)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Int4", + "Float8", + "Text" + ] + }, + "nullable": [] + }, + "hash": "9e45ba072fbc5266f7edba0fecb99d19192e10139d6ea089be4a3a4a7923361c" +} diff --git a/rust/cloud-storage/.sqlx/query-9e8c46a871c582ee7016d87a3b0e3494eae0e23c6dbbbccfb139da68193690c7.json b/rust/cloud-storage/.sqlx/query-9e8c46a871c582ee7016d87a3b0e3494eae0e23c6dbbbccfb139da68193690c7.json new file mode 100644 index 0000000000..cc5277d1eb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9e8c46a871c582ee7016d87a3b0e3494eae0e23c6dbbbccfb139da68193690c7.json @@ -0,0 +1,69 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE foreign_entity\n SET foreign_entity_id = COALESCE($2::text, foreign_entity_id),\n foreign_entity_source = COALESCE($3::text, foreign_entity_source),\n metadata = COALESCE($4::jsonb, metadata),\n stored_for_id = COALESCE($5::text, stored_for_id),\n stored_for_auth_entity = COALESCE($6::text, stored_for_auth_entity),\n updated_at = NOW()\n WHERE id = $1\n RETURNING\n id as \"id!: Uuid\",\n foreign_entity_id as \"foreign_entity_id!: String\",\n foreign_entity_source as \"foreign_entity_source!: String\",\n metadata as \"metadata!: serde_json::Value\",\n stored_for_id as \"stored_for_id!: String\",\n stored_for_auth_entity as \"stored_for_auth_entity!: String\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "foreign_entity_id!: String", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "foreign_entity_source!: String", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "metadata!: serde_json::Value", + "type_info": "Jsonb" + }, + { + "ordinal": 4, + "name": "stored_for_id!: String", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "stored_for_auth_entity!: String", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "created_at!: DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at!: DateTime", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Jsonb", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "9e8c46a871c582ee7016d87a3b0e3494eae0e23c6dbbbccfb139da68193690c7" +} diff --git a/rust/cloud-storage/.sqlx/query-9e998a79214f591775e9d6711c9086235243eae535cc42bb0908210b54b916d8.json b/rust/cloud-storage/.sqlx/query-9e998a79214f591775e9d6711c9086235243eae535cc42bb0908210b54b916d8.json new file mode 100644 index 0000000000..d07bcde732 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9e998a79214f591775e9d6711c9086235243eae535cc42bb0908210b54b916d8.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"macro_user_id\"\n FROM \"User\"\n WHERE \"email\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "9e998a79214f591775e9d6711c9086235243eae535cc42bb0908210b54b916d8" +} diff --git a/rust/cloud-storage/.sqlx/query-9f595d4ae9aa9111c316efa5d4be2b8e4a6cc69374b90600457a32b14a91ae61.json b/rust/cloud-storage/.sqlx/query-9f595d4ae9aa9111c316efa5d4be2b8e4a6cc69374b90600457a32b14a91ae61.json new file mode 100644 index 0000000000..2620ca0739 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9f595d4ae9aa9111c316efa5d4be2b8e4a6cc69374b90600457a32b14a91ae61.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT p.id\n FROM \"Project\" p\n WHERE p.\"deletedAt\" IS NOT NULL AND p.\"deletedAt\" <= $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Timestamp" + ] + }, + "nullable": [ + false + ] + }, + "hash": "9f595d4ae9aa9111c316efa5d4be2b8e4a6cc69374b90600457a32b14a91ae61" +} diff --git a/rust/cloud-storage/.sqlx/query-9f5c0108230743e209902d457637931a2cbc77192ce513473a4f5e3498b8533c.json b/rust/cloud-storage/.sqlx/query-9f5c0108230743e209902d457637931a2cbc77192ce513473a4f5e3498b8533c.json new file mode 100644 index 0000000000..e8b14cc25a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-9f5c0108230743e209902d457637931a2cbc77192ce513473a4f5e3498b8533c.json @@ -0,0 +1,101 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n ml.message_id,\n l.id,\n l.link_id,\n l.provider_label_id,\n l.name,\n l.created_at,\n l.message_list_visibility as \"message_list_visibility: _\",\n l.label_list_visibility as \"label_list_visibility: _\",\n l.type as \"type_: _\"\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = ANY($1)\n ORDER BY ml.message_id, l.name\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "provider_label_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "message_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_message_list_visibility_enum", + "kind": { + "Enum": [ + "Show", + "Hide" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "label_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_label_list_visibility_enum", + "kind": { + "Enum": [ + "LabelShow", + "LabelShowIfUnread", + "LabelHide" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "type_: _", + "type_info": { + "Custom": { + "name": "email_label_type_enum", + "kind": { + "Enum": [ + "System", + "User" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "9f5c0108230743e209902d457637931a2cbc77192ce513473a4f5e3498b8533c" +} diff --git a/rust/cloud-storage/.sqlx/query-a0046a263c572915a8e14a8ac70479f1ba89549f1930f571bf278fcfe259cfd1.json b/rust/cloud-storage/.sqlx/query-a0046a263c572915a8e14a8ac70479f1ba89549f1930f571bf278fcfe259cfd1.json new file mode 100644 index 0000000000..dead84e7bf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a0046a263c572915a8e14a8ac70479f1ba89549f1930f571bf278fcfe259cfd1.json @@ -0,0 +1,45 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id, device_endpoint, device_type as \"device_type: DbDeviceType\"\n FROM notification_user_device_registration\n WHERE user_id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "device_endpoint", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "device_type: DbDeviceType", + "type_info": { + "Custom": { + "name": "notification_device_type_option", + "kind": { + "Enum": [ + "ios", + "android", + "iosvoip" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "a0046a263c572915a8e14a8ac70479f1ba89549f1930f571bf278fcfe259cfd1" +} diff --git a/rust/cloud-storage/.sqlx/query-a080f5686385b0b8f5b10542781756629b2a2571db10a385a0d3559f64481f59.json b/rust/cloud-storage/.sqlx/query-a080f5686385b0b8f5b10542781756629b2a2571db10a385a0d3559f64481f59.json new file mode 100644 index 0000000000..f2cc72d282 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a080f5686385b0b8f5b10542781756629b2a2571db10a385a0d3559f64481f59.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"EmailThreadPermission\" (\"threadId\", \"sharePermissionId\", \"userId\")\n VALUES ($1, $2, $3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "a080f5686385b0b8f5b10542781756629b2a2571db10a385a0d3559f64481f59" +} diff --git a/rust/cloud-storage/.sqlx/query-a0ccb1b43344dc0501f538d62f7b3209dfe7e2e60fa1396cfb3efff85e9d8c4d.json b/rust/cloud-storage/.sqlx/query-a0ccb1b43344dc0501f538d62f7b3209dfe7e2e60fa1396cfb3efff85e9d8c4d.json new file mode 100644 index 0000000000..6b155d41f0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a0ccb1b43344dc0501f538d62f7b3209dfe7e2e60fa1396cfb3efff85e9d8c4d.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT memory, updated_at as \"updated_at!\"\n FROM memory\n WHERE user_id = $1\n ORDER BY updated_at DESC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "memory", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "updated_at!", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "a0ccb1b43344dc0501f538d62f7b3209dfe7e2e60fa1396cfb3efff85e9d8c4d" +} diff --git a/rust/cloud-storage/.sqlx/query-a0e0e46ab257c9dd4285a6494f7b9fcc32c2a19dd97678335c04dab4739024d4.json b/rust/cloud-storage/.sqlx/query-a0e0e46ab257c9dd4285a6494f7b9fcc32c2a19dd97678335c04dab4739024d4.json new file mode 100644 index 0000000000..bdff179616 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a0e0e46ab257c9dd4285a6494f7b9fcc32c2a19dd97678335c04dab4739024d4.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Document\" SET \"projectId\" = NULL WHERE \"id\" = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "a0e0e46ab257c9dd4285a6494f7b9fcc32c2a19dd97678335c04dab4739024d4" +} diff --git a/rust/cloud-storage/.sqlx/query-a10bb7f95f88136b0bdf505b0338c8a87045ca5aa3d85cefbba8111c65892870.json b/rust/cloud-storage/.sqlx/query-a10bb7f95f88136b0bdf505b0338c8a87045ca5aa3d85cefbba8111c65892870.json new file mode 100644 index 0000000000..49be80e7ce --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a10bb7f95f88136b0bdf505b0338c8a87045ca5aa3d85cefbba8111c65892870.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO crm_companies (team_id, first_interaction, last_interaction)\n VALUES ($1, $2, $3)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Timestamptz", + "Timestamptz" + ] + }, + "nullable": [ + false + ] + }, + "hash": "a10bb7f95f88136b0bdf505b0338c8a87045ca5aa3d85cefbba8111c65892870" +} diff --git a/rust/cloud-storage/.sqlx/query-a119f354b9c86006d705ba3190ae786b27205399c3295d82c636d07d7308bcf0.json b/rust/cloud-storage/.sqlx/query-a119f354b9c86006d705ba3190ae786b27205399c3295d82c636d07d7308bcf0.json new file mode 100644 index 0000000000..3e60b22c3a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a119f354b9c86006d705ba3190ae786b27205399c3295d82c636d07d7308bcf0.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO crm_contacts (company_id, email, name, first_interaction, last_interaction, hidden)\n VALUES ($1, $2, $3, $4, $5, $7)\n ON CONFLICT (company_id, email) DO UPDATE\n SET name = COALESCE(crm_contacts.name, EXCLUDED.name),\n updated_at = now(),\n first_interaction = CASE\n WHEN $6 THEN LEAST(crm_contacts.first_interaction, EXCLUDED.first_interaction)\n ELSE crm_contacts.first_interaction\n END,\n last_interaction = GREATEST(crm_contacts.last_interaction, EXCLUDED.last_interaction)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Timestamptz", + "Timestamptz", + "Bool", + "Bool" + ] + }, + "nullable": [ + false + ] + }, + "hash": "a119f354b9c86006d705ba3190ae786b27205399c3295d82c636d07d7308bcf0" +} diff --git a/rust/cloud-storage/.sqlx/query-a13fae598b8b785a7f516d7d4fdf91510017a27cd442f5693c5777ddc64d1c9b.json b/rust/cloud-storage/.sqlx/query-a13fae598b8b785a7f516d7d4fdf91510017a27cd442f5693c5777ddc64d1c9b.json new file mode 100644 index 0000000000..11964cca0f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a13fae598b8b785a7f516d7d4fdf91510017a27cd442f5693c5777ddc64d1c9b.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT\n d.\"documentId\",\n LENGTH(REGEXP_REPLACE(d.\"content\", '\\s', '', 'g')) AS content_length\n FROM\n \"DocumentText\" d\n WHERE\n d.\"documentId\" = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "documentId", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "content_length", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + null + ] + }, + "hash": "a13fae598b8b785a7f516d7d4fdf91510017a27cd442f5693c5777ddc64d1c9b" +} diff --git a/rust/cloud-storage/.sqlx/query-a17f9063c77c648ab667942e9e6402ddd6d9b5adcde3a8b55c19c649ac3d5a18.json b/rust/cloud-storage/.sqlx/query-a17f9063c77c648ab667942e9e6402ddd6d9b5adcde3a8b55c19c649ac3d5a18.json new file mode 100644 index 0000000000..1c4982322c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a17f9063c77c648ab667942e9e6402ddd6d9b5adcde3a8b55c19c649ac3d5a18.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE call_records\n SET preview_url = $2\n WHERE recording_key = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "a17f9063c77c648ab667942e9e6402ddd6d9b5adcde3a8b55c19c649ac3d5a18" +} diff --git a/rust/cloud-storage/.sqlx/query-a1936db1ca47241996be534e0e64bb36b63fabbaf3e826459537e089ed3c19a7.json b/rust/cloud-storage/.sqlx/query-a1936db1ca47241996be534e0e64bb36b63fabbaf3e826459537e089ed3c19a7.json new file mode 100644 index 0000000000..8a9fd5ece9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a1936db1ca47241996be534e0e64bb36b63fabbaf3e826459537e089ed3c19a7.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT stripe_customer_id FROM macro_user\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "stripe_customer_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "a1936db1ca47241996be534e0e64bb36b63fabbaf3e826459537e089ed3c19a7" +} diff --git a/rust/cloud-storage/.sqlx/query-a1bf47e0cd99428ebbd99069e9ed4fdcdb3aaeb946ea3e5ca94dc58050ca7d97.json b/rust/cloud-storage/.sqlx/query-a1bf47e0cd99428ebbd99069e9ed4fdcdb3aaeb946ea3e5ca94dc58050ca7d97.json new file mode 100644 index 0000000000..a20997623f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a1bf47e0cd99428ebbd99069e9ed4fdcdb3aaeb946ea3e5ca94dc58050ca7d97.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Project\" SET \"deletedAt\" = $2 WHERE id = ANY($1);\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "Timestamp" + ] + }, + "nullable": [] + }, + "hash": "a1bf47e0cd99428ebbd99069e9ed4fdcdb3aaeb946ea3e5ca94dc58050ca7d97" +} diff --git a/rust/cloud-storage/.sqlx/query-a1f3c98d938438393223aa8bde6c115cd53ef8d352740fbcaff2f3e53a630295.json b/rust/cloud-storage/.sqlx/query-a1f3c98d938438393223aa8bde6c115cd53ef8d352740fbcaff2f3e53a630295.json new file mode 100644 index 0000000000..a7e9a94f7e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a1f3c98d938438393223aa8bde6c115cd53ef8d352740fbcaff2f3e53a630295.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_message_labels\n WHERE message_id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "a1f3c98d938438393223aa8bde6c115cd53ef8d352740fbcaff2f3e53a630295" +} diff --git a/rust/cloud-storage/.sqlx/query-a2079ac110ef2d83a92a7c759540c373e29c8ff79ed52417fdeeb4de8fe00782.json b/rust/cloud-storage/.sqlx/query-a2079ac110ef2d83a92a7c759540c373e29c8ff79ed52417fdeeb4de8fe00782.json new file mode 100644 index 0000000000..1699281ff6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a2079ac110ef2d83a92a7c759540c373e29c8ff79ed52417fdeeb4de8fe00782.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChannelSharePermission\" (\"share_permission_id\", \"channel_id\", \"access_level\")\n SELECT $1, channel_id, access_level::\"AccessLevel\"\n FROM UNNEST($2::text[], $3::text[]) AS t(channel_id, access_level)\n ON CONFLICT (\"share_permission_id\", \"channel_id\") \n DO UPDATE SET \"access_level\" = EXCLUDED.\"access_level\"\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "a2079ac110ef2d83a92a7c759540c373e29c8ff79ed52417fdeeb4de8fe00782" +} diff --git a/rust/cloud-storage/.sqlx/query-a22651a2cad9617ad15c9fcd80ff929750755818869e48118cc0f91187049afe.json b/rust/cloud-storage/.sqlx/query-a22651a2cad9617ad15c9fcd80ff929750755818869e48118cc0f91187049afe.json new file mode 100644 index 0000000000..59afd3022e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a22651a2cad9617ad15c9fcd80ff929750755818869e48118cc0f91187049afe.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id\n FROM email_labels\n WHERE link_id = ANY($1) AND name = 'TRASH'\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "a22651a2cad9617ad15c9fcd80ff929750755818869e48118cc0f91187049afe" +} diff --git a/rust/cloud-storage/.sqlx/query-a277974b231f69f2a2912fb1634affdf67114b90d5d398d16dec2f801aabdda8.json b/rust/cloud-storage/.sqlx/query-a277974b231f69f2a2912fb1634affdf67114b90d5d398d16dec2f801aabdda8.json new file mode 100644 index 0000000000..b504b24713 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a277974b231f69f2a2912fb1634affdf67114b90d5d398d16dec2f801aabdda8.json @@ -0,0 +1,59 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n a.id as \"id!: Uuid\",\n a.user_id as \"user_id!: String\",\n a.channel_id as \"channel_id!: Uuid\",\n a.viewed_at as \"viewed_at?: DateTime\",\n a.interacted_at as \"interacted_at?: DateTime\",\n a.created_at as \"created_at!: DateTime\",\n a.updated_at as \"updated_at!: DateTime\"\n FROM comms_activity a\n WHERE channel_id = $1 AND user_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id!: String", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "channel_id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "viewed_at?: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "interacted_at?: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "created_at!: DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 6, + "name": "updated_at!: DateTime", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + false, + false + ] + }, + "hash": "a277974b231f69f2a2912fb1634affdf67114b90d5d398d16dec2f801aabdda8" +} diff --git a/rust/cloud-storage/.sqlx/query-a27ad96e62764cad74a23addabe461a1b8aa81a865bf1af5434d5469efa44f76.json b/rust/cloud-storage/.sqlx/query-a27ad96e62764cad74a23addabe461a1b8aa81a865bf1af5434d5469efa44f76.json new file mode 100644 index 0000000000..d46f0a6f31 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a27ad96e62764cad74a23addabe461a1b8aa81a865bf1af5434d5469efa44f76.json @@ -0,0 +1,37 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"PdfPlaceableCommentAnchor\" (\"uuid\", \"documentId\", \"owner\", \"page\", \"originalPage\", \"originalIndex\", \"shouldLockOnSave\", \"xPct\", \"yPct\", \"widthPct\", \"heightPct\", \"rotation\", \"threadId\", \"wasEdited\", \"wasDeleted\", \"allowableEdits\")\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16)\n RETURNING uuid\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "uuid", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Int4", + "Int4", + "Int4", + "Bool", + "Float8", + "Float8", + "Float8", + "Float8", + "Float8", + "Int8", + "Bool", + "Bool", + "Jsonb" + ] + }, + "nullable": [ + false + ] + }, + "hash": "a27ad96e62764cad74a23addabe461a1b8aa81a865bf1af5434d5469efa44f76" +} diff --git a/rust/cloud-storage/.sqlx/query-a299a66e2c0a88c6d2d9a131611789a544d3b7e5710bbc19254fdff129624b87.json b/rust/cloud-storage/.sqlx/query-a299a66e2c0a88c6d2d9a131611789a544d3b7e5710bbc19254fdff129624b87.json new file mode 100644 index 0000000000..fe2c31babd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a299a66e2c0a88c6d2d9a131611789a544d3b7e5710bbc19254fdff129624b87.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n macro_user_id\n FROM\n in_progress_user_link\n WHERE\n id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_user_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "a299a66e2c0a88c6d2d9a131611789a544d3b7e5710bbc19254fdff129624b87" +} diff --git a/rust/cloud-storage/.sqlx/query-a2af7d24d1993fbdc8fc31149a376803fa1c00827bcb8f51c7d000c0a9adfa94.json b/rust/cloud-storage/.sqlx/query-a2af7d24d1993fbdc8fc31149a376803fa1c00827bcb8f51c7d000c0a9adfa94.json new file mode 100644 index 0000000000..62b3095540 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a2af7d24d1993fbdc8fc31149a376803fa1c00827bcb8f51c7d000c0a9adfa94.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_threads\n SET\n inbox_visible = $1,\n updated_at = NOW()\n WHERE\n id = $2 AND\n link_id = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bool", + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "a2af7d24d1993fbdc8fc31149a376803fa1c00827bcb8f51c7d000c0a9adfa94" +} diff --git a/rust/cloud-storage/.sqlx/query-a306e4c1385aab43d5fa2510f0fbdb20d4e37ebf037dceeb2673f6a3d64738de.json b/rust/cloud-storage/.sqlx/query-a306e4c1385aab43d5fa2510f0fbdb20d4e37ebf037dceeb2673f6a3d64738de.json new file mode 100644 index 0000000000..608cbb9acf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a306e4c1385aab43d5fa2510f0fbdb20d4e37ebf037dceeb2673f6a3d64738de.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM crm_contact_sources\n WHERE contact_id = $1 AND link_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "a306e4c1385aab43d5fa2510f0fbdb20d4e37ebf037dceeb2673f6a3d64738de" +} diff --git a/rust/cloud-storage/.sqlx/query-a321d44c7093eba7f5af8adf30827efead8bb987ad26e89f2e12f875ff38e0be.json b/rust/cloud-storage/.sqlx/query-a321d44c7093eba7f5af8adf30827efead8bb987ad26e89f2e12f875ff38e0be.json new file mode 100644 index 0000000000..9642d18561 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a321d44c7093eba7f5af8adf30827efead8bb987ad26e89f2e12f875ff38e0be.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as entity_id,\n d.name,\n regexp_replace(\n d.name,\n $7,\n '\\1',\n 'gi'\n ) as name_highlighted,\n d.\"updatedAt\" as updated_at\n FROM \"Document\" d\n WHERE (d.owner = $1 OR d.id = ANY($2))\n AND d.\"deletedAt\" IS NULL\n AND d.name ILIKE $3\n AND (\n $5::timestamptz IS NULL\n OR (d.\"updatedAt\", d.id) < ($5, $6)\n )\n ORDER BY d.\"updatedAt\" DESC, d.id DESC\n LIMIT $4\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name_highlighted", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray", + "Text", + "Int8", + "Timestamptz", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + null, + false + ] + }, + "hash": "a321d44c7093eba7f5af8adf30827efead8bb987ad26e89f2e12f875ff38e0be" +} diff --git a/rust/cloud-storage/.sqlx/query-a3637a7a136eefc6bf21f28a9ae693dd3ab1eb8b4f310528a43e630e233446cb.json b/rust/cloud-storage/.sqlx/query-a3637a7a136eefc6bf21f28a9ae693dd3ab1eb8b4f310528a43e630e233446cb.json new file mode 100644 index 0000000000..331cfdfd1d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a3637a7a136eefc6bf21f28a9ae693dd3ab1eb8b4f310528a43e630e233446cb.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT access_level FROM (\n -- Source 1: entity_access source_id match\n SELECT\n access_level::text FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'document'\n AND source_id = ANY($2)\n\n UNION ALL\n -- Source 2: items share permission\n SELECT\n \"publicAccessLevel\"::text AS access_level\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"DocumentPermission\" WHERE \"documentId\" = $3\n )\n ) AS combined_access\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "access_level", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "a3637a7a136eefc6bf21f28a9ae693dd3ab1eb8b4f310528a43e630e233446cb" +} diff --git a/rust/cloud-storage/.sqlx/query-a386157d6a94f85f1e1c2c0c0cfe39345a04dee3de88fd4cbc8fc6ab8f34da60.json b/rust/cloud-storage/.sqlx/query-a386157d6a94f85f1e1c2c0c0cfe39345a04dee3de88fd4cbc8fc6ab8f34da60.json new file mode 100644 index 0000000000..2182432ca0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a386157d6a94f85f1e1c2c0c0cfe39345a04dee3de88fd4cbc8fc6ab8f34da60.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT task_id FROM github_pr_tasks\n WHERE github_key = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "task_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "a386157d6a94f85f1e1c2c0c0cfe39345a04dee3de88fd4cbc8fc6ab8f34da60" +} diff --git a/rust/cloud-storage/.sqlx/query-a3a570d4857e91eb55d5e4299f9a856e70e71c0a070f0a1a005ba5e2aa7eabac.json b/rust/cloud-storage/.sqlx/query-a3a570d4857e91eb55d5e4299f9a856e70e71c0a070f0a1a005ba5e2aa7eabac.json new file mode 100644 index 0000000000..4ec697bc9f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a3a570d4857e91eb55d5e4299f9a856e70e71c0a070f0a1a005ba5e2aa7eabac.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM team_invite\n WHERE id = $1 AND team_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "a3a570d4857e91eb55d5e4299f9a856e70e71c0a070f0a1a005ba5e2aa7eabac" +} diff --git a/rust/cloud-storage/.sqlx/query-a4daed99335672e203439ce74d8697936821511404ffb49c7ca4b8134e9c9147.json b/rust/cloud-storage/.sqlx/query-a4daed99335672e203439ce74d8697936821511404ffb49c7ca4b8134e9c9147.json new file mode 100644 index 0000000000..4ca3ec3920 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a4daed99335672e203439ce74d8697936821511404ffb49c7ca4b8134e9c9147.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n sp.id as id,\n sp.\"isPublic\" as is_public,\n sp.\"publicAccessLevel\" as \"public_access_level?\",\n c.\"userId\" as owner,\n COALESCE(\n json_agg(json_build_object(\n 'channel_id', csp.\"channel_id\",\n 'access_level', csp.\"access_level\"\n )) FILTER (WHERE csp.\"channel_id\" IS NOT NULL),\n '[]'\n ) as \"channel_share_permissions?\"\n FROM\n \"ChatPermission\" cp\n JOIN \"SharePermission\" sp ON cp.\"sharePermissionId\" = sp.id\n JOIN \"Chat\" c ON cp.\"chatId\" = c.id\n LEFT JOIN \"ChannelSharePermission\" csp ON csp.\"share_permission_id\" = sp.id\n WHERE\n cp.\"chatId\" = $1\n GROUP BY\n sp.id, c.\"userId\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "is_public", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "public_access_level?", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "channel_share_permissions?", + "type_info": "Json" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true, + false, + null + ] + }, + "hash": "a4daed99335672e203439ce74d8697936821511404ffb49c7ca4b8134e9c9147" +} diff --git a/rust/cloud-storage/.sqlx/query-a4e8e05298b394cc80ac1f866854a945a8d67e1d18153d4f0128108ce65212f4.json b/rust/cloud-storage/.sqlx/query-a4e8e05298b394cc80ac1f866854a945a8d67e1d18153d4f0128108ce65212f4.json new file mode 100644 index 0000000000..bec5852ddc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a4e8e05298b394cc80ac1f866854a945a8d67e1d18153d4f0128108ce65212f4.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ExperimentLog\" (experiment_id, user_id, \"group\")\n VALUES ($1, $2, $3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Varchar" + ] + }, + "nullable": [] + }, + "hash": "a4e8e05298b394cc80ac1f866854a945a8d67e1d18153d4f0128108ce65212f4" +} diff --git a/rust/cloud-storage/.sqlx/query-a547a92f2099dbeb0b1fb2fc9dba7bf0f464619f047b5d967914f7b476722db5.json b/rust/cloud-storage/.sqlx/query-a547a92f2099dbeb0b1fb2fc9dba7bf0f464619f047b5d967914f7b476722db5.json new file mode 100644 index 0000000000..5f7d4a2c37 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a547a92f2099dbeb0b1fb2fc9dba7bf0f464619f047b5d967914f7b476722db5.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO team_crm_settings (team_id, crm_enabled)\n VALUES ($1, FALSE)\n ON CONFLICT (team_id) DO UPDATE\n SET crm_enabled = FALSE,\n updated_at = now()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "a547a92f2099dbeb0b1fb2fc9dba7bf0f464619f047b5d967914f7b476722db5" +} diff --git a/rust/cloud-storage/.sqlx/query-a577fec197448ea02b8378cc0ddca6fc4fcfc26228c3d3f8f055702598616a64.json b/rust/cloud-storage/.sqlx/query-a577fec197448ea02b8378cc0ddca6fc4fcfc26228c3d3f8f055702598616a64.json new file mode 100644 index 0000000000..6812c685dc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a577fec197448ea02b8378cc0ddca6fc4fcfc26228c3d3f8f055702598616a64.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT primary_macro_id\n FROM macro_user_links\n WHERE child_macro_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "primary_macro_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "a577fec197448ea02b8378cc0ddca6fc4fcfc26228c3d3f8f055702598616a64" +} diff --git a/rust/cloud-storage/.sqlx/query-a5801ca350ee73d531d912e4dcc1935265af572afbbf60702a4521e4c19b8468.json b/rust/cloud-storage/.sqlx/query-a5801ca350ee73d531d912e4dcc1935265af572afbbf60702a4521e4c19b8468.json new file mode 100644 index 0000000000..a01572c827 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a5801ca350ee73d531d912e4dcc1935265af572afbbf60702a4521e4c19b8468.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n sp.id as id,\n sp.\"isPublic\" as is_public,\n sp.\"publicAccessLevel\" as \"public_access_level?\",\n m.\"user_id\" as owner,\n COALESCE(\n json_agg(json_build_object(\n 'channel_id', csp.\"channel_id\",\n 'access_level', csp.\"access_level\"\n )) FILTER (WHERE csp.\"channel_id\" IS NOT NULL),\n '[]'\n ) as \"channel_share_permissions?\"\n FROM\n \"MacroPromptPermission\" mpp\n JOIN \"SharePermission\" sp ON mpp.\"share_permission_id\" = sp.id\n JOIN \"MacroPrompt\" m ON mpp.\"macro_prompt_id\" = m.id\n LEFT JOIN \"ChannelSharePermission\" csp ON csp.\"share_permission_id\" = sp.id\n WHERE\n mpp.\"macro_prompt_id\" = $1\n GROUP BY\n sp.id, m.\"user_id\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "is_public", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "public_access_level?", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "channel_share_permissions?", + "type_info": "Json" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true, + false, + null + ] + }, + "hash": "a5801ca350ee73d531d912e4dcc1935265af572afbbf60702a4521e4c19b8468" +} diff --git a/rust/cloud-storage/.sqlx/query-a5cc2431d45e9bbd7e6c60a2bfb7a6533d6f7c8d051ca997a7e0db53314d5f80.json b/rust/cloud-storage/.sqlx/query-a5cc2431d45e9bbd7e6c60a2bfb7a6533d6f7c8d051ca997a7e0db53314d5f80.json new file mode 100644 index 0000000000..8e933bf7c0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a5cc2431d45e9bbd7e6c60a2bfb7a6533d6f7c8d051ca997a7e0db53314d5f80.json @@ -0,0 +1,27 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_channel_participants (channel_id, user_id, role)\n VALUES ($1, $2, $3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + { + "Custom": { + "name": "comms_participant_role", + "kind": { + "Enum": [ + "owner", + "admin", + "member" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "a5cc2431d45e9bbd7e6c60a2bfb7a6533d6f7c8d051ca997a7e0db53314d5f80" +} diff --git a/rust/cloud-storage/.sqlx/query-a5ea0cf5ff502359e9ebc01d0f8758d171081c5aa35c785b178150aa9d8d3635.json b/rust/cloud-storage/.sqlx/query-a5ea0cf5ff502359e9ebc01d0f8758d171081c5aa35c785b178150aa9d8d3635.json new file mode 100644 index 0000000000..65601cffb9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a5ea0cf5ff502359e9ebc01d0f8758d171081c5aa35c785b178150aa9d8d3635.json @@ -0,0 +1,31 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_contacts (id, link_id, email_address, name)\n SELECT * FROM unnest($1::uuid[], $2::uuid[], $3::text[], $4::text[])\n ON CONFLICT (link_id, email_address) DO NOTHING\n RETURNING id, email_address\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email_address", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "UuidArray", + "TextArray", + "TextArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "a5ea0cf5ff502359e9ebc01d0f8758d171081c5aa35c785b178150aa9d8d3635" +} diff --git a/rust/cloud-storage/.sqlx/query-a63428b959703fdc38fa28667db9b2268827d7ce92ca55d21b38ba2a7a8b3c1c.json b/rust/cloud-storage/.sqlx/query-a63428b959703fdc38fa28667db9b2268827d7ce92ca55d21b38ba2a7a8b3c1c.json new file mode 100644 index 0000000000..53ea78a4fc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a63428b959703fdc38fa28667db9b2268827d7ce92ca55d21b38ba2a7a8b3c1c.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Experiment\" WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "a63428b959703fdc38fa28667db9b2268827d7ce92ca55d21b38ba2a7a8b3c1c" +} diff --git a/rust/cloud-storage/.sqlx/query-a669145c6d8f00b9cdf41d2037c0bcfad130247e99f31c127c6dabcbe1b3790d.json b/rust/cloud-storage/.sqlx/query-a669145c6d8f00b9cdf41d2037c0bcfad130247e99f31c127c6dabcbe1b3790d.json new file mode 100644 index 0000000000..b1d35c7959 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a669145c6d8f00b9cdf41d2037c0bcfad130247e99f31c127c6dabcbe1b3790d.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE referral_tracking\n SET status = 'complete'\n WHERE referrer_id = $1 AND referred_id = $2 AND status != 'complete'", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "a669145c6d8f00b9cdf41d2037c0bcfad130247e99f31c127c6dabcbe1b3790d" +} diff --git a/rust/cloud-storage/.sqlx/query-a68a6810f0b80a1ade36fc644c6f44fb02848a8f4200a900679efb26e1d0cb70.json b/rust/cloud-storage/.sqlx/query-a68a6810f0b80a1ade36fc644c6f44fb02848a8f4200a900679efb26e1d0cb70.json new file mode 100644 index 0000000000..5c3bd4dd8b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a68a6810f0b80a1ade36fc644c6f44fb02848a8f4200a900679efb26e1d0cb70.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n id,\n description \n FROM \"Permission\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "description", + "type_info": "Text" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false + ] + }, + "hash": "a68a6810f0b80a1ade36fc644c6f44fb02848a8f4200a900679efb26e1d0cb70" +} diff --git a/rust/cloud-storage/.sqlx/query-a6b5613f666d5c6d73c4f8a817e02554c21e5b44768f5761c1d19d019f7208c4.json b/rust/cloud-storage/.sqlx/query-a6b5613f666d5c6d73c4f8a817e02554c21e5b44768f5761c1d19d019f7208c4.json new file mode 100644 index 0000000000..18efa7779e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a6b5613f666d5c6d73c4f8a817e02554c21e5b44768f5761c1d19d019f7208c4.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE crm_companies\n SET hidden = TRUE, email_sync = FALSE\n WHERE id = $1 AND team_id = $2\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "a6b5613f666d5c6d73c4f8a817e02554c21e5b44768f5761c1d19d019f7208c4" +} diff --git a/rust/cloud-storage/.sqlx/query-a6f46322f22f9e47daefa28ad65647888af5486e729bb5475dfabd21b01b4bf6.json b/rust/cloud-storage/.sqlx/query-a6f46322f22f9e47daefa28ad65647888af5486e729bb5475dfabd21b01b4bf6.json new file mode 100644 index 0000000000..3a77881030 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a6f46322f22f9e47daefa28ad65647888af5486e729bb5475dfabd21b01b4bf6.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_labels\n WHERE id = $1 AND link_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "a6f46322f22f9e47daefa28ad65647888af5486e729bb5475dfabd21b01b4bf6" +} diff --git a/rust/cloud-storage/.sqlx/query-a72817a08ba25d9f09627854a16a4016db81bdbebd7ea0add856bc3eca7a7ba6.json b/rust/cloud-storage/.sqlx/query-a72817a08ba25d9f09627854a16a4016db81bdbebd7ea0add856bc3eca7a7ba6.json new file mode 100644 index 0000000000..e6387121a5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a72817a08ba25d9f09627854a16a4016db81bdbebd7ea0add856bc3eca7a7ba6.json @@ -0,0 +1,65 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, link_id, email_address, name, original_photo_url, sfs_photo_url, created_at, updated_at\n FROM email_contacts\n WHERE LOWER(email_address) = LOWER($1) AND link_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "original_photo_url", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "sfs_photo_url", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + true, + false, + false + ] + }, + "hash": "a72817a08ba25d9f09627854a16a4016db81bdbebd7ea0add856bc3eca7a7ba6" +} diff --git a/rust/cloud-storage/.sqlx/query-a7355d80810653b6b813ebd3c132579b6ba0f419f72b68d08cc2183e9d0d6341.json b/rust/cloud-storage/.sqlx/query-a7355d80810653b6b813ebd3c132579b6ba0f419f72b68d08cc2183e9d0d6341.json new file mode 100644 index 0000000000..c4418378e0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a7355d80810653b6b813ebd3c132579b6ba0f419f72b68d08cc2183e9d0d6341.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"User\" u\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "a7355d80810653b6b813ebd3c132579b6ba0f419f72b68d08cc2183e9d0d6341" +} diff --git a/rust/cloud-storage/.sqlx/query-a7546aa6e8594ac3e66cd708f033fab241312305c74f1bcdb32b96e924030b1d.json b/rust/cloud-storage/.sqlx/query-a7546aa6e8594ac3e66cd708f033fab241312305c74f1bcdb32b96e924030b1d.json new file mode 100644 index 0000000000..ab2522aa98 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a7546aa6e8594ac3e66cd708f033fab241312305c74f1bcdb32b96e924030b1d.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n deleted_at::timestamptz as \"deleted_at\"\n FROM comms_messages\n WHERE id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + null + ] + }, + "hash": "a7546aa6e8594ac3e66cd708f033fab241312305c74f1bcdb32b96e924030b1d" +} diff --git a/rust/cloud-storage/.sqlx/query-a7f90096050e550d15ef11bbc56a3cd79e1a80bc3f46cd063d0ff94d9b76f252.json b/rust/cloud-storage/.sqlx/query-a7f90096050e550d15ef11bbc56a3cd79e1a80bc3f46cd063d0ff94d9b76f252.json new file mode 100644 index 0000000000..8bc55d69f6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a7f90096050e550d15ef11bbc56a3cd79e1a80bc3f46cd063d0ff94d9b76f252.json @@ -0,0 +1,57 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n user_id,\n channel_id,\n joined_at,\n left_at,\n role as \"role: DbParticipantRole\"\n FROM comms_channel_participants\n WHERE channel_id = $1\n ORDER BY joined_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "joined_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "left_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "role: DbParticipantRole", + "type_info": { + "Custom": { + "name": "comms_participant_role", + "kind": { + "Enum": [ + "owner", + "admin", + "member" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + true, + false + ] + }, + "hash": "a7f90096050e550d15ef11bbc56a3cd79e1a80bc3f46cd063d0ff94d9b76f252" +} diff --git a/rust/cloud-storage/.sqlx/query-a81b373188c98bdfa52a878a659909f73796aef0302323f7930fe4d17ccfe6af.json b/rust/cloud-storage/.sqlx/query-a81b373188c98bdfa52a878a659909f73796aef0302323f7930fe4d17ccfe6af.json new file mode 100644 index 0000000000..c03715ba1e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a81b373188c98bdfa52a878a659909f73796aef0302323f7930fe4d17ccfe6af.json @@ -0,0 +1,74 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT l.id, l.macro_id, l.fusionauth_user_id, l.email_address, l.provider as \"provider: _\",\n l.is_sync_active, l.created_at, l.updated_at\n FROM email_messages m\n JOIN email_links l ON l.id = m.link_id\n WHERE m.id = $1\n AND (\n l.macro_id = $2\n OR EXISTS (\n SELECT 1 FROM macro_user_links mul\n WHERE mul.child_macro_id = l.macro_id AND mul.primary_macro_id = $2\n )\n )\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "provider: _", + "type_info": { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_sync_active", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "a81b373188c98bdfa52a878a659909f73796aef0302323f7930fe4d17ccfe6af" +} diff --git a/rust/cloud-storage/.sqlx/query-a96916366e8c54b1ba978b2fa7cc54b2e1681ebbcbd9bb030768983d6ce966b6.json b/rust/cloud-storage/.sqlx/query-a96916366e8c54b1ba978b2fa7cc54b2e1681ebbcbd9bb030768983d6ce966b6.json new file mode 100644 index 0000000000..69534d565a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a96916366e8c54b1ba978b2fa7cc54b2e1681ebbcbd9bb030768983d6ce966b6.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id, document_id, location\n FROM \"UserDocumentViewLocation\"\n WHERE user_id = $1 AND document_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "location", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "a96916366e8c54b1ba978b2fa7cc54b2e1681ebbcbd9bb030768983d6ce966b6" +} diff --git a/rust/cloud-storage/.sqlx/query-a97451b5645b8265597f438d8fc78e9b0e2f2228c5d6a7453122eb59fa90f64a.json b/rust/cloud-storage/.sqlx/query-a97451b5645b8265597f438d8fc78e9b0e2f2228c5d6a7453122eb59fa90f64a.json new file mode 100644 index 0000000000..3027e28949 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a97451b5645b8265597f438d8fc78e9b0e2f2228c5d6a7453122eb59fa90f64a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n sp.id as id\n FROM\n \"DocumentPermission\" dp\n JOIN \"SharePermission\" sp ON dp.\"sharePermissionId\" = sp.id\n WHERE\n dp.\"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "a97451b5645b8265597f438d8fc78e9b0e2f2228c5d6a7453122eb59fa90f64a" +} diff --git a/rust/cloud-storage/.sqlx/query-a991a3a468c02f27709b7a45f27518c828b88bc4ca913019d9d4802395e7a22a.json b/rust/cloud-storage/.sqlx/query-a991a3a468c02f27709b7a45f27518c828b88bc4ca913019d9d4802395e7a22a.json new file mode 100644 index 0000000000..6c1bc17b21 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a991a3a468c02f27709b7a45f27518c828b88bc4ca913019d9d4802395e7a22a.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Project\" SET \"parentId\" = NULL WHERE \"id\" = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "a991a3a468c02f27709b7a45f27518c828b88bc4ca913019d9d4802395e7a22a" +} diff --git a/rust/cloud-storage/.sqlx/query-a9adc96aff5f25177495a9258a185d8cf8a255b6805fecec787953461a09d78b.json b/rust/cloud-storage/.sqlx/query-a9adc96aff5f25177495a9258a185d8cf8a255b6805fecec787953461a09d78b.json new file mode 100644 index 0000000000..7376c5ab40 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a9adc96aff5f25177495a9258a185d8cf8a255b6805fecec787953461a09d78b.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Document\" (owner, name, \"fileType\", \"documentFamilyId\", \"branchedFromId\", \"branchedFromVersionId\", \"projectId\")\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING id, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Int8", + "Text", + "Int8", + "Text" + ] + }, + "nullable": [ + false, + null, + null + ] + }, + "hash": "a9adc96aff5f25177495a9258a185d8cf8a255b6805fecec787953461a09d78b" +} diff --git a/rust/cloud-storage/.sqlx/query-a9fee4b6ef042c94f5dfc2ba668423e760ba3632bfae3aef9da1f146b7a9c638.json b/rust/cloud-storage/.sqlx/query-a9fee4b6ef042c94f5dfc2ba668423e760ba3632bfae3aef9da1f146b7a9c638.json new file mode 100644 index 0000000000..3ee681677b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-a9fee4b6ef042c94f5dfc2ba668423e760ba3632bfae3aef9da1f146b7a9c638.json @@ -0,0 +1,86 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as \"document_id\",\n d.owner,\n d.name as \"document_name\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"projectId\" as \"project_id\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n WHERE\n d.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 5, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + true, + true, + false, + true, + null + ] + }, + "hash": "a9fee4b6ef042c94f5dfc2ba668423e760ba3632bfae3aef9da1f146b7a9c638" +} diff --git a/rust/cloud-storage/.sqlx/query-aa7c645fdd129abe705595f4b8c06bb48c977202f069d12143bece9f24bdb6ab.json b/rust/cloud-storage/.sqlx/query-aa7c645fdd129abe705595f4b8c06bb48c977202f069d12143bece9f24bdb6ab.json new file mode 100644 index 0000000000..74b8c61e48 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-aa7c645fdd129abe705595f4b8c06bb48c977202f069d12143bece9f24bdb6ab.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id\n FROM team_user\n WHERE team_id = $1\n ORDER BY user_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "aa7c645fdd129abe705595f4b8c06bb48c977202f069d12143bece9f24bdb6ab" +} diff --git a/rust/cloud-storage/.sqlx/query-aa9ca547f8128f5f2a4418b6ccf252d9726565fbef858cf484ca86ab0625c6ec.json b/rust/cloud-storage/.sqlx/query-aa9ca547f8128f5f2a4418b6ccf252d9726565fbef858cf484ca86ab0625c6ec.json new file mode 100644 index 0000000000..d9fc6443bf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-aa9ca547f8128f5f2a4418b6ccf252d9726565fbef858cf484ca86ab0625c6ec.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, company_id, contact_id, owner, resolved, metadata,\n created_at, updated_at, deleted_at\n FROM crm_thread\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "company_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "resolved", + "type_info": "Bool" + }, + { + "ordinal": 5, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + true, + false, + false, + true + ] + }, + "hash": "aa9ca547f8128f5f2a4418b6ccf252d9726565fbef858cf484ca86ab0625c6ec" +} diff --git a/rust/cloud-storage/.sqlx/query-aab8538835af1c079c4864c1a576b3a51049dd104e2306c4596f1ff99ec329c3.json b/rust/cloud-storage/.sqlx/query-aab8538835af1c079c4864c1a576b3a51049dd104e2306c4596f1ff99ec329c3.json new file mode 100644 index 0000000000..a77bb0ab76 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-aab8538835af1c079c4864c1a576b3a51049dd104e2306c4596f1ff99ec329c3.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user1 AS contact FROM contacts_connections WHERE user2 = $1\n UNION\n SELECT user2 AS contact FROM contacts_connections WHERE user1 = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "contact", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "aab8538835af1c079c4864c1a576b3a51049dd104e2306c4596f1ff99ec329c3" +} diff --git a/rust/cloud-storage/.sqlx/query-aac44fedc7a698d155114e4b84cf3cf60de7edc46f5bd7d943873cf2809ade77.json b/rust/cloud-storage/.sqlx/query-aac44fedc7a698d155114e4b84cf3cf60de7edc46f5bd7d943873cf2809ade77.json new file mode 100644 index 0000000000..824f91dced --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-aac44fedc7a698d155114e4b84cf3cf60de7edc46f5bd7d943873cf2809ade77.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.\"id\" as id\n FROM \"Project\" p\n INNER JOIN \"UserHistory\" uh ON uh.\"itemId\" = p.\"id\" AND uh.\"itemType\" = 'project'\n INNER JOIN \"User\" u ON u.id = uh.\"userId\"\n WHERE p.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "aac44fedc7a698d155114e4b84cf3cf60de7edc46f5bd7d943873cf2809ade77" +} diff --git a/rust/cloud-storage/.sqlx/query-aacb409624ba2c9ec8838ba1653bde46c44d19face725f848d1d53c364a73909.json b/rust/cloud-storage/.sqlx/query-aacb409624ba2c9ec8838ba1653bde46c44d19face725f848d1d53c364a73909.json new file mode 100644 index 0000000000..0beb459b4e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-aacb409624ba2c9ec8838ba1653bde46c44d19face725f848d1d53c364a73909.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id\n FROM team_user\n WHERE user_id = ANY($1::text[])\n AND team_id NOT IN (\n SELECT * FROM UNNEST($2::uuid[])\n )\n AND team_role NOT IN ('owner')\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray", + "UuidArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "aacb409624ba2c9ec8838ba1653bde46c44d19face725f848d1d53c364a73909" +} diff --git a/rust/cloud-storage/.sqlx/query-aae2ef0d294ae7736898e9b32be12cfabedfb8164af00cdb4a52c9d1f98229af.json b/rust/cloud-storage/.sqlx/query-aae2ef0d294ae7736898e9b32be12cfabedfb8164af00cdb4a52c9d1f98229af.json new file mode 100644 index 0000000000..f0aa53f429 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-aae2ef0d294ae7736898e9b32be12cfabedfb8164af00cdb4a52c9d1f98229af.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM \"Chat\" WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "aae2ef0d294ae7736898e9b32be12cfabedfb8164af00cdb4a52c9d1f98229af" +} diff --git a/rust/cloud-storage/.sqlx/query-ab1cdc9cf83712efd50e720fd9835fdfe36277075384044c8f7f3e8ce810c236.json b/rust/cloud-storage/.sqlx/query-ab1cdc9cf83712efd50e720fd9835fdfe36277075384044c8f7f3e8ce810c236.json new file mode 100644 index 0000000000..89579ab1a1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ab1cdc9cf83712efd50e720fd9835fdfe36277075384044c8f7f3e8ce810c236.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"macro_user_email_verification\" SET \"macro_user_id\" = $1 WHERE \"macro_user_id\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "ab1cdc9cf83712efd50e720fd9835fdfe36277075384044c8f7f3e8ce810c236" +} diff --git a/rust/cloud-storage/.sqlx/query-ab394ab1dcafaff117ba75dd454c9ef5dc894f2a86012e54c8bd5e085458a89d.json b/rust/cloud-storage/.sqlx/query-ab394ab1dcafaff117ba75dd454c9ef5dc894f2a86012e54c8bd5e085458a89d.json new file mode 100644 index 0000000000..b80b95917b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ab394ab1dcafaff117ba75dd454c9ef5dc894f2a86012e54c8bd5e085458a89d.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Document\"\n SET \"deletedAt\" = NOW()\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "ab394ab1dcafaff117ba75dd454c9ef5dc894f2a86012e54c8bd5e085458a89d" +} diff --git a/rust/cloud-storage/.sqlx/query-ab3aa320a07e9885f1de7995533b75dfc995ac18e421ca940dd0828aa32b47a6.json b/rust/cloud-storage/.sqlx/query-ab3aa320a07e9885f1de7995533b75dfc995ac18e421ca940dd0828aa32b47a6.json new file mode 100644 index 0000000000..026107a6ab --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ab3aa320a07e9885f1de7995533b75dfc995ac18e421ca940dd0828aa32b47a6.json @@ -0,0 +1,65 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id,\n m.channel_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.edited_at::timestamptz AS \"edited_at?\",\n m.deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages m\n WHERE m.id = COALESCE(\n (SELECT thread_id FROM comms_messages WHERE id = $1 AND channel_id = $2),\n $1\n )\n AND m.channel_id = $2\n AND m.thread_id IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "edited_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "deleted_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + null, + null + ] + }, + "hash": "ab3aa320a07e9885f1de7995533b75dfc995ac18e421ca940dd0828aa32b47a6" +} diff --git a/rust/cloud-storage/.sqlx/query-ab5316751a9b8b8f14e8319811749dfa6bc98f42ecb46ee9d3c20ca2daf43e44.json b/rust/cloud-storage/.sqlx/query-ab5316751a9b8b8f14e8319811749dfa6bc98f42ecb46ee9d3c20ca2daf43e44.json new file mode 100644 index 0000000000..d365439d22 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ab5316751a9b8b8f14e8319811749dfa6bc98f42ecb46ee9d3c20ca2daf43e44.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT macro_user_id, profile_picture as \"profile_picture!\", profile_picture_hash FROM macro_user_info\n WHERE macro_user_id = ANY($1) and profile_picture IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "profile_picture!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "profile_picture_hash", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + true, + true + ] + }, + "hash": "ab5316751a9b8b8f14e8319811749dfa6bc98f42ecb46ee9d3c20ca2daf43e44" +} diff --git a/rust/cloud-storage/.sqlx/query-ab7417eb79789bfff9a6084c7881191a9b0ee849745041e1fecc7e4ba9b4fc5d.json b/rust/cloud-storage/.sqlx/query-ab7417eb79789bfff9a6084c7881191a9b0ee849745041e1fecc7e4ba9b4fc5d.json new file mode 100644 index 0000000000..16c7afa6a3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ab7417eb79789bfff9a6084c7881191a9b0ee849745041e1fecc7e4ba9b4fc5d.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO entity_access (entity_id, entity_type, source_id, source_type, access_level)\n SELECT dp.\"documentId\"::uuid, 'document', u.user_id, 'user', sp.\"publicAccessLevel\"::\"AccessLevel\"\n FROM \"DocumentPermission\" dp\n JOIN \"SharePermission\" sp ON sp.id = dp.\"sharePermissionId\"\n CROSS JOIN UNNEST($2::text[]) AS u(user_id)\n WHERE dp.\"documentId\" = $1\n AND sp.\"isPublic\" = true\n AND sp.\"publicAccessLevel\" IS NOT NULL\n ON CONFLICT (entity_id, entity_type, source_id, source_type)\n WHERE granted_from_project_id IS NULL\n DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "ab7417eb79789bfff9a6084c7881191a9b0ee849745041e1fecc7e4ba9b4fc5d" +} diff --git a/rust/cloud-storage/.sqlx/query-abd0a7a3bc1e35bfd6b0acd25aed7149fa0e81809511939a420fe17f93ae7d6e.json b/rust/cloud-storage/.sqlx/query-abd0a7a3bc1e35bfd6b0acd25aed7149fa0e81809511939a420fe17f93ae7d6e.json new file mode 100644 index 0000000000..0ffccf643b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-abd0a7a3bc1e35bfd6b0acd25aed7149fa0e81809511939a420fe17f93ae7d6e.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"User\" (id, email, macro_user_id, \"organizationId\")\n VALUES ($1, $2, $3, $4)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Uuid", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "abd0a7a3bc1e35bfd6b0acd25aed7149fa0e81809511939a420fe17f93ae7d6e" +} diff --git a/rust/cloud-storage/.sqlx/query-ac1221f53b3482f947f70affe1fa95f778b5cc841f3a08c8d406752da8d25be3.json b/rust/cloud-storage/.sqlx/query-ac1221f53b3482f947f70affe1fa95f778b5cc841f3a08c8d406752da8d25be3.json new file mode 100644 index 0000000000..418264801b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ac1221f53b3482f947f70affe1fa95f778b5cc841f3a08c8d406752da8d25be3.json @@ -0,0 +1,84 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id AS \"company_id!\",\n c.team_id AS \"company_team_id!\",\n c.email_sync AS \"company_email_sync!\",\n c.hidden AS \"company_hidden!\",\n c.first_interaction AS \"company_created_at!\",\n c.last_interaction AS \"company_updated_at!\",\n d.id AS \"domain_id?\",\n d.domain AS \"domain?\",\n d.created_at AS \"domain_created_at?\",\n dd.name AS \"dir_name?\",\n dd.description AS \"dir_description?\"\n FROM crm_companies c\n LEFT JOIN crm_domains d ON d.company_id = c.id\n LEFT JOIN crm_domain_directory dd\n ON LOWER(dd.domain) = LOWER(d.domain)\n WHERE c.team_id = $1\n AND c.id = ANY($2)\n AND ($3 OR c.hidden = FALSE)\n ORDER BY c.last_interaction DESC, c.id DESC, d.created_at ASC NULLS LAST\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "company_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "company_team_id!", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "company_email_sync!", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "company_hidden!", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "company_created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "company_updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "domain_id?", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "domain?", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "domain_created_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "dir_name?", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "dir_description?", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "UuidArray", + "Bool" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true + ] + }, + "hash": "ac1221f53b3482f947f70affe1fa95f778b5cc841f3a08c8d406752da8d25be3" +} diff --git a/rust/cloud-storage/.sqlx/query-ac1973d97ddd4dcb5cacb138b9321138cea6141d03301b03f7c7e0d509663dc4.json b/rust/cloud-storage/.sqlx/query-ac1973d97ddd4dcb5cacb138b9321138cea6141d03301b03f7c7e0d509663dc4.json new file mode 100644 index 0000000000..b3e494ac89 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ac1973d97ddd4dcb5cacb138b9321138cea6141d03301b03f7c7e0d509663dc4.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_attachments (\n id,\n message_id,\n channel_id,\n entity_type,\n entity_id,\n width,\n height\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING id, message_id, channel_id, entity_type, entity_id, width, height, created_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "entity_type", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "entity_id", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "width", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "height", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Uuid", + "Varchar", + "Varchar", + "Int4", + "Int4" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + true, + false + ] + }, + "hash": "ac1973d97ddd4dcb5cacb138b9321138cea6141d03301b03f7c7e0d509663dc4" +} diff --git a/rust/cloud-storage/.sqlx/query-ac52ec341d9ff2b334df144dfcba1195b845609b557d278290359a0e6170c10d.json b/rust/cloud-storage/.sqlx/query-ac52ec341d9ff2b334df144dfcba1195b845609b557d278290359a0e6170c10d.json new file mode 100644 index 0000000000..19f6ad325a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ac52ec341d9ff2b334df144dfcba1195b845609b557d278290359a0e6170c10d.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"entity_access\"\n WHERE \"entity_id\" = $1 AND \"entity_type\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "ac52ec341d9ff2b334df144dfcba1195b845609b557d278290359a0e6170c10d" +} diff --git a/rust/cloud-storage/.sqlx/query-ac72213b35da176efad40d8acc0b77bede612a071cd8b18bb8d68965c1414204.json b/rust/cloud-storage/.sqlx/query-ac72213b35da176efad40d8acc0b77bede612a071cd8b18bb8d68965c1414204.json new file mode 100644 index 0000000000..63cf281d00 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ac72213b35da176efad40d8acc0b77bede612a071cd8b18bb8d68965c1414204.json @@ -0,0 +1,174 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id,\n m.provider_id,\n m.global_id,\n m.thread_id,\n m.provider_thread_id,\n m.replying_to_id,\n m.link_id,\n m.provider_history_id,\n m.internal_date_ts,\n m.snippet,\n m.size_estimate,\n m.subject,\n m.from_name,\n m.from_contact_id,\n m.sent_at,\n m.has_attachments,\n m.is_read,\n m.is_starred,\n m.is_sent,\n m.is_draft,\n m.body_text,\n m.body_html_sanitized,\n m.body_macro,\n m.headers_jsonb,\n m.created_at,\n m.updated_at\n FROM email_messages m\n JOIN email_scheduled_messages sm ON m.id = sm.message_id\n WHERE m.link_id = $1 AND sm.sent = false\n ORDER BY m.created_at DESC\n LIMIT $2 OFFSET $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 6, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 21, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 22, + "name": "body_macro", + "type_info": "Text" + }, + { + "ordinal": 23, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 24, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 25, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "ac72213b35da176efad40d8acc0b77bede612a071cd8b18bb8d68965c1414204" +} diff --git a/rust/cloud-storage/.sqlx/query-acb38333fa7958869cc39acafee4f7d08731aa1543d9d2d6f6d105be9e7a0530.json b/rust/cloud-storage/.sqlx/query-acb38333fa7958869cc39acafee4f7d08731aa1543d9d2d6f6d105be9e7a0530.json new file mode 100644 index 0000000000..fa3d8b95c4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-acb38333fa7958869cc39acafee4f7d08731aa1543d9d2d6f6d105be9e7a0530.json @@ -0,0 +1,190 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n name, description, icon_url,\n apollo_organization_id, website_url, linkedin_url, twitter_url,\n facebook_url, industry, keywords, technologies,\n estimated_num_employees, annual_revenue, annual_revenue_printed,\n total_funding, total_funding_printed, latest_funding_stage,\n latest_funding_round_date, founded_year, publicly_traded_symbol,\n publicly_traded_exchange, phone, raw_address, street_address,\n city, state, postal_code, country, raw\n FROM crm_domain_directory\n WHERE LOWER(domain) = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "description", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "icon_url", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "apollo_organization_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "website_url", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "linkedin_url", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "twitter_url", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "facebook_url", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "industry", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "keywords", + "type_info": "TextArray" + }, + { + "ordinal": 10, + "name": "technologies", + "type_info": "TextArray" + }, + { + "ordinal": 11, + "name": "estimated_num_employees", + "type_info": "Int4" + }, + { + "ordinal": 12, + "name": "annual_revenue", + "type_info": "Int8" + }, + { + "ordinal": 13, + "name": "annual_revenue_printed", + "type_info": "Text" + }, + { + "ordinal": 14, + "name": "total_funding", + "type_info": "Int8" + }, + { + "ordinal": 15, + "name": "total_funding_printed", + "type_info": "Text" + }, + { + "ordinal": 16, + "name": "latest_funding_stage", + "type_info": "Text" + }, + { + "ordinal": 17, + "name": "latest_funding_round_date", + "type_info": "Timestamptz" + }, + { + "ordinal": 18, + "name": "founded_year", + "type_info": "Int4" + }, + { + "ordinal": 19, + "name": "publicly_traded_symbol", + "type_info": "Text" + }, + { + "ordinal": 20, + "name": "publicly_traded_exchange", + "type_info": "Text" + }, + { + "ordinal": 21, + "name": "phone", + "type_info": "Text" + }, + { + "ordinal": 22, + "name": "raw_address", + "type_info": "Text" + }, + { + "ordinal": 23, + "name": "street_address", + "type_info": "Text" + }, + { + "ordinal": 24, + "name": "city", + "type_info": "Text" + }, + { + "ordinal": 25, + "name": "state", + "type_info": "Text" + }, + { + "ordinal": 26, + "name": "postal_code", + "type_info": "Text" + }, + { + "ordinal": 27, + "name": "country", + "type_info": "Text" + }, + { + "ordinal": 28, + "name": "raw", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true + ] + }, + "hash": "acb38333fa7958869cc39acafee4f7d08731aa1543d9d2d6f6d105be9e7a0530" +} diff --git a/rust/cloud-storage/.sqlx/query-acd29bfac7388548a2d09bd8a9a12b4c9bb92fe9450fa0950e91bcebfcb1adeb.json b/rust/cloud-storage/.sqlx/query-acd29bfac7388548a2d09bd8a9a12b4c9bb92fe9450fa0950e91bcebfcb1adeb.json new file mode 100644 index 0000000000..06b0392082 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-acd29bfac7388548a2d09bd8a9a12b4c9bb92fe9450fa0950e91bcebfcb1adeb.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, LOWER(email_address) AS \"email_lower!\"\n FROM email_contacts\n WHERE link_id = ANY($1) AND LOWER(email_address) = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email_lower!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "TextArray" + ] + }, + "nullable": [ + false, + null + ] + }, + "hash": "acd29bfac7388548a2d09bd8a9a12b4c9bb92fe9450fa0950e91bcebfcb1adeb" +} diff --git a/rust/cloud-storage/.sqlx/query-ad0e23af0a67a769bf40b3ab388c21c001e01d1691861d8b9df950b03bdb2f4b.json b/rust/cloud-storage/.sqlx/query-ad0e23af0a67a769bf40b3ab388c21c001e01d1691861d8b9df950b03bdb2f4b.json new file mode 100644 index 0000000000..77bae849be --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ad0e23af0a67a769bf40b3ab388c21c001e01d1691861d8b9df950b03bdb2f4b.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n COUNT(id) as count\n FROM\n in_progress_user_link\n WHERE\n macro_user_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "ad0e23af0a67a769bf40b3ab388c21c001e01d1691861d8b9df950b03bdb2f4b" +} diff --git a/rust/cloud-storage/.sqlx/query-ade8f82fdb3feffe37acb0e67a7e39aac513e2b7ae7c7aabaa9ac59f270dbffc.json b/rust/cloud-storage/.sqlx/query-ade8f82fdb3feffe37acb0e67a7e39aac513e2b7ae7c7aabaa9ac59f270dbffc.json new file mode 100644 index 0000000000..98d3bf1b47 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ade8f82fdb3feffe37acb0e67a7e39aac513e2b7ae7c7aabaa9ac59f270dbffc.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Document\" \n WHERE id = ANY($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "ade8f82fdb3feffe37acb0e67a7e39aac513e2b7ae7c7aabaa9ac59f270dbffc" +} diff --git a/rust/cloud-storage/.sqlx/query-ae1b88cef7fd6cc6ef1c302a0f3a04d156d39f39abea24050e63caf56267898a.json b/rust/cloud-storage/.sqlx/query-ae1b88cef7fd6cc6ef1c302a0f3a04d156d39f39abea24050e63caf56267898a.json new file mode 100644 index 0000000000..e4b3c2a5e5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ae1b88cef7fd6cc6ef1c302a0f3a04d156d39f39abea24050e63caf56267898a.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH query AS (\n SELECT key, vec::vector AS vec\n FROM unnest($1::text[], $2::text[]) AS t(key, vec)\n ),\n scored AS (\n SELECT\n e.document_id,\n e.search_key,\n e.content,\n e.embedding::text AS embedding_text,\n MAX(1 - (e.embedding <=> q.vec))::real AS score\n FROM task_duplicate_embedding e\n JOIN \"Document\" d ON d.id = e.document_id\n JOIN document_sub_type dst ON dst.document_id = d.id AND dst.sub_type = 'task'\n LEFT JOIN team_task tt ON tt.document_id = d.id\n CROSS JOIN query q\n WHERE d.\"deletedAt\" IS NULL\n AND (\n d.owner = $3\n OR ($4::uuid IS NOT NULL AND tt.team_id = $4)\n )\n AND ($5::text IS NULL OR e.document_id <> $5)\n AND (\n NOT $6\n OR NOT EXISTS (\n SELECT 1\n FROM task_duplicate_match m\n WHERE m.task_id = LEAST($5, e.document_id)\n AND m.duplicate_task_id = GREATEST($5, e.document_id)\n AND m.status = 'dismissed'\n )\n )\n GROUP BY e.document_id, e.search_key, e.content, e.embedding\n ),\n ranked AS (\n SELECT document_id, MAX(score) AS best\n FROM scored\n GROUP BY document_id\n ORDER BY best DESC\n LIMIT $7\n )\n SELECT\n s.document_id AS \"document_id!\",\n s.search_key AS \"search_key!\",\n s.content AS \"content!\",\n s.embedding_text AS \"embedding_text!\",\n s.score AS \"score!\"\n FROM scored s\n JOIN ranked r ON r.document_id = s.document_id\n ORDER BY r.best DESC, s.document_id, s.score DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "search_key!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "content!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "embedding_text!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "score!", + "type_info": "Float4" + } + ], + "parameters": { + "Left": [ + "TextArray", + "TextArray", + "Text", + "Uuid", + "Text", + "Bool", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + null, + null + ] + }, + "hash": "ae1b88cef7fd6cc6ef1c302a0f3a04d156d39f39abea24050e63caf56267898a" +} diff --git a/rust/cloud-storage/.sqlx/query-ae5a21740f17c450f53a07e833b6ab8dc226dd06869786792add6fe5535da1e7.json b/rust/cloud-storage/.sqlx/query-ae5a21740f17c450f53a07e833b6ab8dc226dd06869786792add6fe5535da1e7.json new file mode 100644 index 0000000000..508ef4caee --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ae5a21740f17c450f53a07e833b6ab8dc226dd06869786792add6fe5535da1e7.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, email, team_id\n FROM team_invite\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "team_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "ae5a21740f17c450f53a07e833b6ab8dc226dd06869786792add6fe5535da1e7" +} diff --git a/rust/cloud-storage/.sqlx/query-ae7424712141289a46985ef940f940ba795df321fe73b299eac464a0ef6a3081.json b/rust/cloud-storage/.sqlx/query-ae7424712141289a46985ef940f940ba795df321fe73b299eac464a0ef6a3081.json new file mode 100644 index 0000000000..910cee7485 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ae7424712141289a46985ef940f940ba795df321fe73b299eac464a0ef6a3081.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n (ct.hidden OR c.hidden) AS \"hidden!\",\n c.team_id AS \"team_id!\",\n tu.team_role AS \"role!: TeamRole\"\n FROM crm_contacts ct\n JOIN crm_companies c\n ON c.id = ct.company_id\n JOIN team_user tu\n ON tu.team_id = c.team_id\n AND tu.user_id = $1\n WHERE ct.id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hidden!", + "type_info": "Bool" + }, + { + "ordinal": 1, + "name": "team_id!", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "role!: TeamRole", + "type_info": { + "Custom": { + "name": "team_role", + "kind": { + "Enum": [ + "member", + "admin", + "owner" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [ + null, + false, + false + ] + }, + "hash": "ae7424712141289a46985ef940f940ba795df321fe73b299eac464a0ef6a3081" +} diff --git a/rust/cloud-storage/.sqlx/query-aec91142f83fc2f19972a0ae096e3b21c571b2c5a97baa04d68a2f6da500bd79.json b/rust/cloud-storage/.sqlx/query-aec91142f83fc2f19972a0ae096e3b21c571b2c5a97baa04d68a2f6da500bd79.json new file mode 100644 index 0000000000..1785608ddb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-aec91142f83fc2f19972a0ae096e3b21c571b2c5a97baa04d68a2f6da500bd79.json @@ -0,0 +1,87 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n mr.message_id,\n c.id,\n c.link_id,\n c.email_address,\n COALESCE(mr.name, c.name) as \"name\", -- name from message overrides contact name\n c.original_photo_url,\n c.sfs_photo_url,\n c.created_at,\n c.updated_at,\n mr.recipient_type as \"recipient_type!: db::address::EmailRecipientType\"\n FROM email_message_recipients mr\n JOIN email_contacts c ON mr.contact_id = c.id\n WHERE mr.message_id = $1\n ORDER BY mr.recipient_type\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "original_photo_url", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "sfs_photo_url", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "recipient_type!: db::address::EmailRecipientType", + "type_info": { + "Custom": { + "name": "email_recipient_type", + "kind": { + "Enum": [ + "TO", + "CC", + "BCC" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + null, + true, + true, + false, + false, + false + ] + }, + "hash": "aec91142f83fc2f19972a0ae096e3b21c571b2c5a97baa04d68a2f6da500bd79" +} diff --git a/rust/cloud-storage/.sqlx/query-af05f3b0d0796a3cb2eed49cd562776fd1abde1cea7f0f5057fede45c2312223.json b/rust/cloud-storage/.sqlx/query-af05f3b0d0796a3cb2eed49cd562776fd1abde1cea7f0f5057fede45c2312223.json new file mode 100644 index 0000000000..1ad2601550 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-af05f3b0d0796a3cb2eed49cd562776fd1abde1cea7f0f5057fede45c2312223.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS (\n SELECT 1\n FROM team_user\n WHERE user_id = $1 AND team_id = $2\n ) AS \"has_team!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "has_team!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "af05f3b0d0796a3cb2eed49cd562776fd1abde1cea7f0f5057fede45c2312223" +} diff --git a/rust/cloud-storage/.sqlx/query-af5a4cf73fd08698bfe9a04e6bb4441ac2b9c20b0697d52467e0a12c17f8e473.json b/rust/cloud-storage/.sqlx/query-af5a4cf73fd08698bfe9a04e6bb4441ac2b9c20b0697d52467e0a12c17f8e473.json new file mode 100644 index 0000000000..8777fe8d9b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-af5a4cf73fd08698bfe9a04e6bb4441ac2b9c20b0697d52467e0a12c17f8e473.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.id,\n u.\"organizationId\" as organization_id\n FROM\n \"User\" u\n WHERE\n u.email = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "organization_id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "af5a4cf73fd08698bfe9a04e6bb4441ac2b9c20b0697d52467e0a12c17f8e473" +} diff --git a/rust/cloud-storage/.sqlx/query-af5bcc105de6d97d360513479747e8f32d4045c3e2baa01c7100ba834dcf80e4.json b/rust/cloud-storage/.sqlx/query-af5bcc105de6d97d360513479747e8f32d4045c3e2baa01c7100ba834dcf80e4.json new file mode 100644 index 0000000000..45ed60c4d2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-af5bcc105de6d97d360513479747e8f32d4045c3e2baa01c7100ba834dcf80e4.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n COALESCE(db.id, di.id) as \"id!\",\n d.uploaded\n FROM\n \"Document\" d\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" ASC\n LIMIT 1\n ) di ON d.\"fileType\" IS DISTINCT FROM 'docx'\n LEFT JOIN LATERAL (\n SELECT\n b.id\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" ASC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n WHERE\n d.id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "uploaded", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null, + false + ] + }, + "hash": "af5bcc105de6d97d360513479747e8f32d4045c3e2baa01c7100ba834dcf80e4" +} diff --git a/rust/cloud-storage/.sqlx/query-aff64439216b670564911e5ce55437d1fa4498176f5e8deebcfc86f87cb20f54.json b/rust/cloud-storage/.sqlx/query-aff64439216b670564911e5ce55437d1fa4498176f5e8deebcfc86f87cb20f54.json new file mode 100644 index 0000000000..d9528a3e1b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-aff64439216b670564911e5ce55437d1fa4498176f5e8deebcfc86f87cb20f54.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM channel_notification_email_sent\n USING notification n\n WHERE n.id = ANY($1)\n AND n.event_item_type = 'channel'\n AND channel_notification_email_sent.channel_id = n.event_item_id::uuid\n AND channel_notification_email_sent.user_id = $2;\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "Text" + ] + }, + "nullable": [] + }, + "hash": "aff64439216b670564911e5ce55437d1fa4498176f5e8deebcfc86f87cb20f54" +} diff --git a/rust/cloud-storage/.sqlx/query-afff07a12eda767f4facb034315ce7e3d89db508f08afe5c547e981a875e9801.json b/rust/cloud-storage/.sqlx/query-afff07a12eda767f4facb034315ce7e3d89db508f08afe5c547e981a875e9801.json new file mode 100644 index 0000000000..b56a60c64f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-afff07a12eda767f4facb034315ce7e3d89db508f08afe5c547e981a875e9801.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT cp.channel_id::text FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "afff07a12eda767f4facb034315ce7e3d89db508f08afe5c547e981a875e9801" +} diff --git a/rust/cloud-storage/.sqlx/query-b00d96876f6101270b5de19e4cfa219f542dd6c24ecf785b30ef8749c0443373.json b/rust/cloud-storage/.sqlx/query-b00d96876f6101270b5de19e4cfa219f542dd6c24ecf785b30ef8749c0443373.json new file mode 100644 index 0000000000..ee71889852 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b00d96876f6101270b5de19e4cfa219f542dd6c24ecf785b30ef8749c0443373.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO macro_user_info (macro_user_id, first_name, last_name)\n VALUES ($1, $2, $3)\n ON CONFLICT (macro_user_id)\n DO UPDATE SET \n first_name = COALESCE(EXCLUDED.first_name, macro_user_info.first_name),\n last_name = COALESCE(EXCLUDED.last_name, macro_user_info.last_name)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "b00d96876f6101270b5de19e4cfa219f542dd6c24ecf785b30ef8749c0443373" +} diff --git a/rust/cloud-storage/.sqlx/query-b08f21bc79644b7ae980ef17ea38f60be7749e48143ad40a164b236e977157f3.json b/rust/cloud-storage/.sqlx/query-b08f21bc79644b7ae980ef17ea38f60be7749e48143ad40a164b236e977157f3.json new file mode 100644 index 0000000000..4327d95754 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b08f21bc79644b7ae980ef17ea38f60be7749e48143ad40a164b236e977157f3.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChannelSharePermission\" (\"share_permission_id\", \"channel_id\", \"access_level\")\n SELECT $1, channel_id, access_level::\"AccessLevel\"\n FROM UNNEST($2::text[], $3::text[]) AS t(channel_id, access_level)\n ON CONFLICT (\"share_permission_id\", \"channel_id\")\n DO UPDATE SET \"access_level\" = EXCLUDED.\"access_level\"\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "b08f21bc79644b7ae980ef17ea38f60be7749e48143ad40a164b236e977157f3" +} diff --git a/rust/cloud-storage/.sqlx/query-b0c4750b13bbd3de768ac09f971094ac7f53c161f7054083964f472fa01dd83d.json b/rust/cloud-storage/.sqlx/query-b0c4750b13bbd3de768ac09f971094ac7f53c161f7054083964f472fa01dd83d.json new file mode 100644 index 0000000000..f91da73bfc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b0c4750b13bbd3de768ac09f971094ac7f53c161f7054083964f472fa01dd83d.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, email_address\n FROM email_contacts\n WHERE link_id = $1 AND email_address = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email_address", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "b0c4750b13bbd3de768ac09f971094ac7f53c161f7054083964f472fa01dd83d" +} diff --git a/rust/cloud-storage/.sqlx/query-b0d3b6f03c4160e443a3fe91c870187c3178efdf6853a22ee319c0163b1f6013.json b/rust/cloud-storage/.sqlx/query-b0d3b6f03c4160e443a3fe91c870187c3178efdf6853a22ee319c0163b1f6013.json new file mode 100644 index 0000000000..b18fa9a1d9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b0d3b6f03c4160e443a3fe91c870187c3178efdf6853a22ee319c0163b1f6013.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, message_id, entity_type, entity_id,\n width AS \"width?\", height AS \"height?\", created_at\n FROM comms_attachments\n WHERE message_id = ANY($1)\n ORDER BY created_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "entity_type", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "entity_id", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "width?", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "height?", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + true, + false + ] + }, + "hash": "b0d3b6f03c4160e443a3fe91c870187c3178efdf6853a22ee319c0163b1f6013" +} diff --git a/rust/cloud-storage/.sqlx/query-b0e8935f157a7ae307fb050b39d0dde4e9e2e39f7cb20c716fbbcc1ffe320cd1.json b/rust/cloud-storage/.sqlx/query-b0e8935f157a7ae307fb050b39d0dde4e9e2e39f7cb20c716fbbcc1ffe320cd1.json new file mode 100644 index 0000000000..e2f94b21f4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b0e8935f157a7ae307fb050b39d0dde4e9e2e39f7cb20c716fbbcc1ffe320cd1.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_message_labels\n WHERE\n message_id = ANY($1)\n AND label_id = (\n SELECT id FROM email_labels\n WHERE link_id = $2 AND provider_label_id = $3\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "b0e8935f157a7ae307fb050b39d0dde4e9e2e39f7cb20c716fbbcc1ffe320cd1" +} diff --git a/rust/cloud-storage/.sqlx/query-b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc.json b/rust/cloud-storage/.sqlx/query-b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc.json new file mode 100644 index 0000000000..3cf399f742 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO memory (id, user_id, memory)\n VALUES ($1, $2, $3)\n ON CONFLICT (user_id) DO UPDATE\n SET memory = EXCLUDED.memory,\n updated_at = NOW()\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc" +} diff --git a/rust/cloud-storage/.sqlx/query-b10ef9924835c2dce77ce8b77c877a78ca0d7a1e7efff35864c58ba34028f2e6.json b/rust/cloud-storage/.sqlx/query-b10ef9924835c2dce77ce8b77c877a78ca0d7a1e7efff35864c58ba34028f2e6.json new file mode 100644 index 0000000000..8378b42025 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b10ef9924835c2dce77ce8b77c877a78ca0d7a1e7efff35864c58ba34028f2e6.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE crm_contacts SET hidden = FALSE WHERE company_id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "b10ef9924835c2dce77ce8b77c877a78ca0d7a1e7efff35864c58ba34028f2e6" +} diff --git a/rust/cloud-storage/.sqlx/query-b14f90ed1d2e7f0121f95af1b0d364f1a7feee942c2a3785bf39c6f110aa70ba.json b/rust/cloud-storage/.sqlx/query-b14f90ed1d2e7f0121f95af1b0d364f1a7feee942c2a3785bf39c6f110aa70ba.json new file mode 100644 index 0000000000..2868a9715f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b14f90ed1d2e7f0121f95af1b0d364f1a7feee942c2a3785bf39c6f110aa70ba.json @@ -0,0 +1,59 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, owner, resolved, metadata, created_at, updated_at, deleted_at\n FROM crm_thread\n WHERE (company_id = $1 OR contact_id = $2)\n AND deleted_at IS NULL\n ORDER BY created_at ASC, id ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "resolved", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false, + true + ] + }, + "hash": "b14f90ed1d2e7f0121f95af1b0d364f1a7feee942c2a3785bf39c6f110aa70ba" +} diff --git a/rust/cloud-storage/.sqlx/query-b1512adda253fc7e653344f6a679a4c78af368aa2134b235f8e1f046daa197bc.json b/rust/cloud-storage/.sqlx/query-b1512adda253fc7e653344f6a679a4c78af368aa2134b235f8e1f046daa197bc.json new file mode 100644 index 0000000000..396c983fd4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b1512adda253fc7e653344f6a679a4c78af368aa2134b235f8e1f046daa197bc.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id,\n c.name,\n c.model,\n c.\"tokenCount\" as \"token_count\",\n c.\"userId\" as \"user_id\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\"\n FROM \"Chat\" c\n WHERE c.\"userId\" = $1 AND c.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "model", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "token_count", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "is_persistent", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + null, + null, + null, + true, + false + ] + }, + "hash": "b1512adda253fc7e653344f6a679a4c78af368aa2134b235f8e1f046daa197bc" +} diff --git a/rust/cloud-storage/.sqlx/query-b15f651be8f722d57f1c85ca4d9a14cae3fdde155d4f8c94418186d5a37f0686.json b/rust/cloud-storage/.sqlx/query-b15f651be8f722d57f1c85ca4d9a14cae3fdde155d4f8c94418186d5a37f0686.json new file mode 100644 index 0000000000..77467cfa54 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b15f651be8f722d57f1c85ca4d9a14cae3fdde155d4f8c94418186d5a37f0686.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE scheduled_action\n SET updated_at = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Timestamptz", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "b15f651be8f722d57f1c85ca4d9a14cae3fdde155d4f8c94418186d5a37f0686" +} diff --git a/rust/cloud-storage/.sqlx/query-b1766b649fb0b0307cb41db8adbfd996ffa1262e0a6ba8a8e1c58414759a1fec.json b/rust/cloud-storage/.sqlx/query-b1766b649fb0b0307cb41db8adbfd996ffa1262e0a6ba8a8e1c58414759a1fec.json new file mode 100644 index 0000000000..b722895ef4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b1766b649fb0b0307cb41db8adbfd996ffa1262e0a6ba8a8e1c58414759a1fec.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Document\"\n SET \"updatedAt\" = NOW()\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "b1766b649fb0b0307cb41db8adbfd996ffa1262e0a6ba8a8e1c58414759a1fec" +} diff --git a/rust/cloud-storage/.sqlx/query-b1c4d610f2fe772e88b8e78bc872f01c886031d866616effed3c6a61a99d2413.json b/rust/cloud-storage/.sqlx/query-b1c4d610f2fe772e88b8e78bc872f01c886031d866616effed3c6a61a99d2413.json new file mode 100644 index 0000000000..9d7bd134c0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b1c4d610f2fe772e88b8e78bc872f01c886031d866616effed3c6a61a99d2413.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_messages m\n SET\n is_read = $1,\n updated_at = NOW()\n WHERE\n m.id = ANY($2)\n AND m.link_id = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bool", + "UuidArray", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "b1c4d610f2fe772e88b8e78bc872f01c886031d866616effed3c6a61a99d2413" +} diff --git a/rust/cloud-storage/.sqlx/query-b288dfc8e7703bdfb49bc1066c290743da8653dc50e3d388697e429308afeafa.json b/rust/cloud-storage/.sqlx/query-b288dfc8e7703bdfb49bc1066c290743da8653dc50e3d388697e429308afeafa.json new file mode 100644 index 0000000000..8844ec6411 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b288dfc8e7703bdfb49bc1066c290743da8653dc50e3d388697e429308afeafa.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT c.id\n FROM comms_channels c\n INNER JOIN comms_channel_participants cp ON cp.channel_id = c.id \n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n AND c.id = ANY($2::uuid[])\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text", + "UuidArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b288dfc8e7703bdfb49bc1066c290743da8653dc50e3d388697e429308afeafa" +} diff --git a/rust/cloud-storage/.sqlx/query-b29f648b6a5be28708366ba264bab55518d34313519a62edf4174269606b1b1c.json b/rust/cloud-storage/.sqlx/query-b29f648b6a5be28708366ba264bab55518d34313519a62edf4174269606b1b1c.json new file mode 100644 index 0000000000..d4fe58887c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b29f648b6a5be28708366ba264bab55518d34313519a62edf4174269606b1b1c.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"UserHistory\" WHERE \"itemId\" = ANY($1) AND \"itemType\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "Text" + ] + }, + "nullable": [] + }, + "hash": "b29f648b6a5be28708366ba264bab55518d34313519a62edf4174269606b1b1c" +} diff --git a/rust/cloud-storage/.sqlx/query-b2a631a3c9b08b85813839c25a2c7a530010c3a00b2f2d67403bc036af6c8fb5.json b/rust/cloud-storage/.sqlx/query-b2a631a3c9b08b85813839c25a2c7a530010c3a00b2f2d67403bc036af6c8fb5.json new file mode 100644 index 0000000000..d3fc4432fe --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b2a631a3c9b08b85813839c25a2c7a530010c3a00b2f2d67403bc036af6c8fb5.json @@ -0,0 +1,53 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n em.source_entity_type,\n em.source_entity_id,\n em.entity_type,\n em.entity_id,\n em.user_id,\n em.created_at\n FROM comms_entity_mentions em\n WHERE em.entity_type = $1\n AND em.entity_id = $2\n AND em.source_entity_type != 'message'\n ORDER BY em.created_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "source_entity_type", + "type_info": "Varchar" + }, + { + "ordinal": 1, + "name": "source_entity_id", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "entity_type", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "entity_id", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "user_id", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + false + ] + }, + "hash": "b2a631a3c9b08b85813839c25a2c7a530010c3a00b2f2d67403bc036af6c8fb5" +} diff --git a/rust/cloud-storage/.sqlx/query-b2dc0d50f7cd7e961844c553feed81200e213e4f28cc7d2940a93aabe83877b0.json b/rust/cloud-storage/.sqlx/query-b2dc0d50f7cd7e961844c553feed81200e213e4f28cc7d2940a93aabe83877b0.json new file mode 100644 index 0000000000..9f9c30968a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b2dc0d50f7cd7e961844c553feed81200e213e4f28cc7d2940a93aabe83877b0.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH user_channels AS (\n SELECT DISTINCT c.id, c.created_at\n FROM comms_channels c\n INNER JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n )\n SELECT\n id as \"id!\"\n FROM user_channels\n ORDER BY created_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b2dc0d50f7cd7e961844c553feed81200e213e4f28cc7d2940a93aabe83877b0" +} diff --git a/rust/cloud-storage/.sqlx/query-b32146bc8bdbfa29785dca351729944da36cdeb0c7d3d9e778dd91ff8a470b51.json b/rust/cloud-storage/.sqlx/query-b32146bc8bdbfa29785dca351729944da36cdeb0c7d3d9e778dd91ff8a470b51.json new file mode 100644 index 0000000000..1a175da2ba --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b32146bc8bdbfa29785dca351729944da36cdeb0c7d3d9e778dd91ff8a470b51.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE call_records SET custom_name = $2 WHERE id = $1 AND custom_name IS NULL", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "b32146bc8bdbfa29785dca351729944da36cdeb0c7d3d9e778dd91ff8a470b51" +} diff --git a/rust/cloud-storage/.sqlx/query-b370ac2ac7ace6911ff13454d24ff42b906dcc72b2fb4bcd783b8cb7c06ceab4.json b/rust/cloud-storage/.sqlx/query-b370ac2ac7ace6911ff13454d24ff42b906dcc72b2fb4bcd783b8cb7c06ceab4.json new file mode 100644 index 0000000000..4ab9cd0461 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b370ac2ac7ace6911ff13454d24ff42b906dcc72b2fb4bcd783b8cb7c06ceab4.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM entity_properties WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "b370ac2ac7ace6911ff13454d24ff42b906dcc72b2fb4bcd783b8cb7c06ceab4" +} diff --git a/rust/cloud-storage/.sqlx/query-b3bb26f4b163d8bea13a5a3fb0ea3d89543ceaefae74f8962e4504196d0b76c2.json b/rust/cloud-storage/.sqlx/query-b3bb26f4b163d8bea13a5a3fb0ea3d89543ceaefae74f8962e4504196d0b76c2.json new file mode 100644 index 0000000000..3a0d508069 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b3bb26f4b163d8bea13a5a3fb0ea3d89543ceaefae74f8962e4504196d0b76c2.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT document_id\n FROM document_email de\n INNER JOIN \"Document\" d on de.document_id = d.id\n INNER JOIN email_attachments ea on de.email_attachment_id = ea.id\n INNER JOIN email_messages em on ea.message_id = em.id\n WHERE email_attachment_id = $1 AND d.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b3bb26f4b163d8bea13a5a3fb0ea3d89543ceaefae74f8962e4504196d0b76c2" +} diff --git a/rust/cloud-storage/.sqlx/query-b3c25afc80ddf84ba0a49578a6b1d5e70039c2d64a25a54ef42b25889e75b653.json b/rust/cloud-storage/.sqlx/query-b3c25afc80ddf84ba0a49578a6b1d5e70039c2d64a25a54ef42b25889e75b653.json new file mode 100644 index 0000000000..28de32369e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b3c25afc80ddf84ba0a49578a6b1d5e70039c2d64a25a54ef42b25889e75b653.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS (\n SELECT 1 FROM crm_contacts c\n JOIN crm_companies co ON co.id = c.company_id\n WHERE c.id = $1\n AND co.team_id = $2\n AND ($3 OR (c.hidden = FALSE AND co.hidden = FALSE))\n ) AS \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Bool" + ] + }, + "nullable": [ + null + ] + }, + "hash": "b3c25afc80ddf84ba0a49578a6b1d5e70039c2d64a25a54ef42b25889e75b653" +} diff --git a/rust/cloud-storage/.sqlx/query-b3d2194b79197b2d5e02ee8b7c243b70c598adf488d805325475770ae3b7c51e.json b/rust/cloud-storage/.sqlx/query-b3d2194b79197b2d5e02ee8b7c243b70c598adf488d805325475770ae3b7c51e.json new file mode 100644 index 0000000000..5564261909 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b3d2194b79197b2d5e02ee8b7c243b70c598adf488d805325475770ae3b7c51e.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.id,\n u.\"stripeCustomerId\" as \"stripe_customer_id\"\n FROM \"User\" u\n WHERE u.\"macro_user_id\" IS NULL\n AND u.id > $1\n ORDER BY u.id ASC\n LIMIT $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "stripe_customer_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Int8" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "b3d2194b79197b2d5e02ee8b7c243b70c598adf488d805325475770ae3b7c51e" +} diff --git a/rust/cloud-storage/.sqlx/query-b3d476868aa3b19eb8407112f0cabdce0882403268c35f6a4acf62c1212183fb.json b/rust/cloud-storage/.sqlx/query-b3d476868aa3b19eb8407112f0cabdce0882403268c35f6a4acf62c1212183fb.json new file mode 100644 index 0000000000..08a280e9fc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b3d476868aa3b19eb8407112f0cabdce0882403268c35f6a4acf62c1212183fb.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE crm_comment SET deleted_at = now(), updated_at = now() WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "b3d476868aa3b19eb8407112f0cabdce0882403268c35f6a4acf62c1212183fb" +} diff --git a/rust/cloud-storage/.sqlx/query-b3f9f3696438bd2ad8754650d87d7bbf32e70d3d173a748a07eacdb4e42841eb.json b/rust/cloud-storage/.sqlx/query-b3f9f3696438bd2ad8754650d87d7bbf32e70d3d173a748a07eacdb4e42841eb.json new file mode 100644 index 0000000000..2ae6f0e18e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b3f9f3696438bd2ad8754650d87d7bbf32e70d3d173a748a07eacdb4e42841eb.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO notification_user_device_registration (id, user_id, device_token, device_endpoint, device_type)\n VALUES ($1, $2, $3, $4, $5)\n ON CONFLICT (device_endpoint) DO UPDATE SET user_id = $2, device_token = $3, device_type = $5, updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Text", + { + "Custom": { + "name": "notification_device_type_option", + "kind": { + "Enum": [ + "ios", + "android", + "iosvoip" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "b3f9f3696438bd2ad8754650d87d7bbf32e70d3d173a748a07eacdb4e42841eb" +} diff --git a/rust/cloud-storage/.sqlx/query-b42c868de92630b2d5ee37fc64299df3d949da660e009f35c480ba9fb19c9e07.json b/rust/cloud-storage/.sqlx/query-b42c868de92630b2d5ee37fc64299df3d949da660e009f35c480ba9fb19c9e07.json new file mode 100644 index 0000000000..a93030266b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b42c868de92630b2d5ee37fc64299df3d949da660e009f35c480ba9fb19c9e07.json @@ -0,0 +1,65 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Thread\" t\n SET \"updatedAt\" = NOW()\n WHERE t.\"documentId\" = $1 AND t.\"deletedAt\" IS NULL AND t.id = $2\n RETURNING\n t.id as thread_id, \n t.resolved, \n t.\"documentId\" as document_id, \n t.\"createdAt\"::timestamptz as created_at, \n t.\"updatedAt\"::timestamptz as updated_at, \n t.\"deletedAt\"::timestamptz as deleted_at, \n t.metadata, \n t.owner\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "resolved", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "owner", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + null, + null, + null, + true, + false + ] + }, + "hash": "b42c868de92630b2d5ee37fc64299df3d949da660e009f35c480ba9fb19c9e07" +} diff --git a/rust/cloud-storage/.sqlx/query-b43285d8bb2b9758fcc84c13979c3a54ffc28abf61e66e354667d26ef3c40739.json b/rust/cloud-storage/.sqlx/query-b43285d8bb2b9758fcc84c13979c3a54ffc28abf61e66e354667d26ef3c40739.json new file mode 100644 index 0000000000..7fae9257bc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b43285d8bb2b9758fcc84c13979c3a54ffc28abf61e66e354667d26ef3c40739.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChatPermission\" (\"chatId\", \"sharePermissionId\")\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "b43285d8bb2b9758fcc84c13979c3a54ffc28abf61e66e354667d26ef3c40739" +} diff --git a/rust/cloud-storage/.sqlx/query-b46b2b51f07ec4fc65cd158b210ce262e9ab44f10825969072c01a8fe3022a23.json b/rust/cloud-storage/.sqlx/query-b46b2b51f07ec4fc65cd158b210ce262e9ab44f10825969072c01a8fe3022a23.json new file mode 100644 index 0000000000..93348ea121 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b46b2b51f07ec4fc65cd158b210ce262e9ab44f10825969072c01a8fe3022a23.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"ChannelSharePermission\"\n WHERE \"share_permission_id\" = $1\n AND \"channel_id\" = ANY($2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "b46b2b51f07ec4fc65cd158b210ce262e9ab44f10825969072c01a8fe3022a23" +} diff --git a/rust/cloud-storage/.sqlx/query-b493e6fd1c1d8c34366f756fed903ef53cc87fab0b12cff50d2e3474ff997bd6.json b/rust/cloud-storage/.sqlx/query-b493e6fd1c1d8c34366f756fed903ef53cc87fab0b12cff50d2e3474ff997bd6.json new file mode 100644 index 0000000000..6954ba0a21 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b493e6fd1c1d8c34366f756fed903ef53cc87fab0b12cff50d2e3474ff997bd6.json @@ -0,0 +1,65 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id as \"id!: Uuid\",\n foreign_entity_id as \"foreign_entity_id!: String\",\n foreign_entity_source as \"foreign_entity_source!: String\",\n metadata as \"metadata!: serde_json::Value\",\n stored_for_id as \"stored_for_id!: String\",\n stored_for_auth_entity as \"stored_for_auth_entity!: String\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\"\n FROM foreign_entity\n WHERE foreign_entity_id = $1\n AND ($2::text IS NULL OR foreign_entity_source = $2)\n ORDER BY created_at ASC, id ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "foreign_entity_id!: String", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "foreign_entity_source!: String", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "metadata!: serde_json::Value", + "type_info": "Jsonb" + }, + { + "ordinal": 4, + "name": "stored_for_id!: String", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "stored_for_auth_entity!: String", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "created_at!: DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at!: DateTime", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "b493e6fd1c1d8c34366f756fed903ef53cc87fab0b12cff50d2e3474ff997bd6" +} diff --git a/rust/cloud-storage/.sqlx/query-b4d3994adddd1a4b1c769cf01690bedbf26640fdfad218b4dca813bdcee08a5a.json b/rust/cloud-storage/.sqlx/query-b4d3994adddd1a4b1c769cf01690bedbf26640fdfad218b4dca813bdcee08a5a.json new file mode 100644 index 0000000000..765e4bd327 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b4d3994adddd1a4b1c769cf01690bedbf26640fdfad218b4dca813bdcee08a5a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT emr.message_id\n FROM email_message_recipients emr\n JOIN email_messages m ON m.id = emr.message_id\n WHERE emr.message_id = ANY($1)\n AND m.from_contact_id IS NOT NULL\n AND emr.contact_id = m.from_contact_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b4d3994adddd1a4b1c769cf01690bedbf26640fdfad218b4dca813bdcee08a5a" +} diff --git a/rust/cloud-storage/.sqlx/query-b4dee63c4a43a3451a781ef80fcc67300c2f673a0f7a7f6497690bb3adc8f06c.json b/rust/cloud-storage/.sqlx/query-b4dee63c4a43a3451a781ef80fcc67300c2f673a0f7a7f6497690bb3adc8f06c.json new file mode 100644 index 0000000000..3bd6ad86d0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b4dee63c4a43a3451a781ef80fcc67300c2f673a0f7a7f6497690bb3adc8f06c.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_messages m\n SET\n is_read = $1,\n updated_at = NOW()\n FROM email_links l\n WHERE\n m.id = ANY($2)\n AND m.link_id = l.id\n AND l.fusionauth_user_id = $3\n RETURNING m.id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Bool", + "UuidArray", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b4dee63c4a43a3451a781ef80fcc67300c2f673a0f7a7f6497690bb3adc8f06c" +} diff --git a/rust/cloud-storage/.sqlx/query-b509140ce307b4e440349fae476518b06d6247bf27821c9bea2f04c1eb999768.json b/rust/cloud-storage/.sqlx/query-b509140ce307b4e440349fae476518b06d6247bf27821c9bea2f04c1eb999768.json new file mode 100644 index 0000000000..b0fb21d85c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b509140ce307b4e440349fae476518b06d6247bf27821c9bea2f04c1eb999768.json @@ -0,0 +1,146 @@ +{ + "db_name": "PostgreSQL", + "query": "\n -- =============================================================================\n -- EXPANDED GENERIC CURSOR SOUP QUERY\n -- =============================================================================\n -- Retrieves all items (documents, chats, projects) that a user has access to,\n -- including both explicit permissions and inherited permissions through the\n -- project hierarchy.\n -- =============================================================================\n\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n\n UserAccessibleItems AS (\n SELECT DISTINCT\n ea.entity_id::text as item_id,\n ea.entity_type as item_type\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n ),\n\n -- Identify the top N items with minimal columns before joining full details.\n -- Performs early filtering and sorting to reduce the data processed in\n -- subsequent joins.\n TopItems AS (\n SELECT item_type, id, sort_ts, updated_at FROM (\n SELECT\n 'document'::text as item_type,\n d.id,\n -- Dynamic sort column based on user's selected sort method\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", d.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN d.\"createdAt\"\n ELSE d.\"updatedAt\"\n END::timestamptz as sort_ts,\n d.\"updatedAt\"::timestamptz as updated_at\n FROM \"Document\" d\n INNER JOIN UserAccessibleItems uai ON uai.item_id = d.id AND uai.item_type = 'document'\n LEFT JOIN \"UserHistory\" uh ON uh.\"itemId\" = d.id AND uh.\"itemType\" = 'document' AND uh.\"userId\" = $1\n WHERE d.\"deletedAt\" IS NULL\n\n UNION ALL\n\n SELECT\n 'chat'::text,\n c.id,\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", c.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN c.\"createdAt\"\n ELSE c.\"updatedAt\"\n END::timestamptz,\n c.\"updatedAt\"::timestamptz\n FROM \"Chat\" c\n INNER JOIN UserAccessibleItems uai ON uai.item_id = c.id AND uai.item_type = 'chat'\n LEFT JOIN \"UserHistory\" uh ON uh.\"itemId\" = c.id AND uh.\"itemType\" = 'chat' AND uh.\"userId\" = $1\n WHERE c.\"deletedAt\" IS NULL\n\n UNION ALL\n\n SELECT\n 'project'::text,\n p.id,\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", p.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN p.\"createdAt\"\n ELSE p.\"updatedAt\"\n END::timestamptz,\n p.\"updatedAt\"::timestamptz\n FROM \"Project\" p\n INNER JOIN UserAccessibleItems uai ON uai.item_id = p.id AND uai.item_type = 'project'\n LEFT JOIN \"UserHistory\" uh ON uh.\"itemId\" = p.id AND uh.\"itemType\" = 'project' AND uh.\"userId\" = $1\n WHERE p.\"deletedAt\" IS NULL\n ) all_items\n WHERE\n -- Cursor-based pagination: skip items we've already seen.\n -- NULL cursor means first page (no items to skip).\n ($4::timestamptz IS NULL)\n OR\n -- Seek method: find items \"before\" the cursor position\n -- using (sort_ts, id) tuple comparison for deterministic ordering\n (sort_ts, id::text) < ($4, $5)\n ORDER BY sort_ts DESC, id DESC\n LIMIT $3\n )\n\n -- Join full item details only for the filtered top items.\n SELECT * FROM (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\",\n d.\"projectId\" as \"project_id\",\n NULL as \"is_persistent\",\n di.sha as \"sha\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n t.sort_ts as \"sort_ts!\",\n -- Task completion status: check if status property matches \"completed\"\n CASE\n WHEN dt.sub_type = 'task'\n AND ep_status.values->'value' ? $6\n THEN true\n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL\n END as \"is_completed\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM TopItems t\n INNER JOIN \"Document\" d ON d.id = t.id\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status\n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id\n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $7\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = d.id AND uh.\"itemType\" = 'document' AND uh.\"userId\" = $1\n -- LATERAL joins to get the latest version info\n LEFT JOIN LATERAL (\n SELECT b.id\n FROM \"DocumentBom\" b\n WHERE b.\"documentId\" = d.id\n ORDER BY b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT i.id, i.sha\n FROM \"DocumentInstance\" i\n WHERE i.\"documentId\" = d.id\n ORDER BY i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n WHERE t.item_type = 'document'\n\n UNION ALL\n\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at!\",\n c.\"updatedAt\"::timestamptz as \"updated_at!\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n t.sort_ts as \"sort_ts!\",\n NULL as \"is_completed\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM TopItems t\n INNER JOIN \"Chat\" c ON c.id = t.id\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = c.id AND uh.\"itemType\" = 'chat' AND uh.\"userId\" = $1\n WHERE t.item_type = 'chat'\n\n UNION ALL\n\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at!\",\n p.\"updatedAt\"::timestamptz as \"updated_at!\",\n p.\"parentId\" as \"project_id\",\n NULL as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n t.sort_ts as \"sort_ts!\",\n NULL as \"is_completed\",\n p.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM TopItems t\n INNER JOIN \"Project\" p ON p.id = t.id\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = p.id AND uh.\"itemType\" = 'project' AND uh.\"userId\" = $1\n WHERE t.item_type = 'project'\n ) Combined\n -- Sort by timestamp descending, with ID as tiebreaker for deterministic pagination.\n -- This ensures consistent ordering when multiple items share the same timestamp,\n -- preventing items from being skipped or duplicated across pages.\n ORDER BY \"sort_ts!\" DESC, \"id!\" DESC\n LIMIT $3\n", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_type!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_version_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "user_id!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "name!", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "is_persistent", + "type_info": "Bool" + }, + { + "ordinal": 13, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 14, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 15, + "name": "viewed_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 16, + "name": "sort_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 17, + "name": "is_completed", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Int8", + "Timestamptz", + "Text", + "Text", + "Uuid" + ] + }, + "nullable": [ + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null + ] + }, + "hash": "b509140ce307b4e440349fae476518b06d6247bf27821c9bea2f04c1eb999768" +} diff --git a/rust/cloud-storage/.sqlx/query-b5578ab6da001f418fe8ff216616b79eb80caf8e2677fcf4e7127151060a50ea.json b/rust/cloud-storage/.sqlx/query-b5578ab6da001f418fe8ff216616b79eb80caf8e2677fcf4e7127151060a50ea.json new file mode 100644 index 0000000000..2c70220aed --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b5578ab6da001f418fe8ff216616b79eb80caf8e2677fcf4e7127151060a50ea.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id as \"channel_id\"\n FROM\n comms_channels\n ORDER BY\n created_at ASC\n LIMIT $1\n OFFSET $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b5578ab6da001f418fe8ff216616b79eb80caf8e2677fcf4e7127151060a50ea" +} diff --git a/rust/cloud-storage/.sqlx/query-b55c3a778e4ed824b71b4e26b20ebf12413a8a0bf8fee05fa130afb72c55ee41.json b/rust/cloud-storage/.sqlx/query-b55c3a778e4ed824b71b4e26b20ebf12413a8a0bf8fee05fa130afb72c55ee41.json new file mode 100644 index 0000000000..f902aa8188 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b55c3a778e4ed824b71b4e26b20ebf12413a8a0bf8fee05fa130afb72c55ee41.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n id, \n owner, \n text as content, \n \"createdAt\" as created_at, \n \"updatedAt\" as updated_at,\n \"order\"\n FROM \"Comment\" \n WHERE \"threadId\" = $1\n ORDER BY \"order\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "order", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true + ] + }, + "hash": "b55c3a778e4ed824b71b4e26b20ebf12413a8a0bf8fee05fa130afb72c55ee41" +} diff --git a/rust/cloud-storage/.sqlx/query-b57aac0fecf4aa66721fe3596797e1256c960fed355a37cba8c9c1eeb630a5b6.json b/rust/cloud-storage/.sqlx/query-b57aac0fecf4aa66721fe3596797e1256c960fed355a37cba8c9c1eeb630a5b6.json new file mode 100644 index 0000000000..c55d8a1a72 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b57aac0fecf4aa66721fe3596797e1256c960fed355a37cba8c9c1eeb630a5b6.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM \"entity_access\" WHERE \"entity_id\" = $1 AND \"entity_type\" = $2", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "b57aac0fecf4aa66721fe3596797e1256c960fed355a37cba8c9c1eeb630a5b6" +} diff --git a/rust/cloud-storage/.sqlx/query-b58ccd6afec0fb6636951e7cdb17390b5d1e56dbaa6b8e59bc35e2a2e4937c34.json b/rust/cloud-storage/.sqlx/query-b58ccd6afec0fb6636951e7cdb17390b5d1e56dbaa6b8e59bc35e2a2e4937c34.json new file mode 100644 index 0000000000..525ad24a53 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b58ccd6afec0fb6636951e7cdb17390b5d1e56dbaa6b8e59bc35e2a2e4937c34.json @@ -0,0 +1,128 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n t.id,\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n (\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m_imp.thread_id = t.id\n AND l.name = 'IMPORTANT'\n AND l.link_id = t.link_id\n )\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Find the latest draft timestamp for each thread, calculate the\n -- effective sort key, then sort and limit the results. This is the core optimization.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.inbox_visible,\n t.is_read,\n t.project_id,\n ldpt.latest_draft_ts AS created_at,\n ldpt.latest_draft_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, ldpt.latest_draft_ts)\n ELSE ldpt.latest_draft_ts\n END AS effective_ts\n FROM (\n -- This sub-subquery efficiently finds the latest draft timestamp for every thread.\n SELECT m.thread_id, MAX(m.updated_at) as latest_draft_ts\n FROM email_messages m\n -- we only display macro drafts, not drafts created in gmail\n WHERE m.link_id = ANY($1) AND m.is_draft = TRUE AND m.internal_date_ts IS NULL\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id AND l.name = 'TRASH' AND l.link_id = m.link_id\n )\n GROUP BY m.thread_id\n ) ldpt\n JOIN email_threads t ON ldpt.thread_id = t.id\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n (($3::timestamptz IS NULL) OR (\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, ldpt.latest_draft_ts)\n ELSE ldpt.latest_draft_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find the full details of its latest draft.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name,\n m.is_draft\n FROM email_messages m\n WHERE m.thread_id = t.id\n AND m.is_draft = TRUE\n -- we only display macro drafts, not drafts created in gmail\n AND m.internal_date_ts IS NULL\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id AND l.name = 'TRASH' AND l.link_id = t.link_id\n )\n ORDER BY m.updated_at DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n ORDER BY t.effective_ts DESC, t.updated_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "inbox_visible", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "sort_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "viewed_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "name?", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "snippet?", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 12, + "name": "is_important!", + "type_info": "Bool" + }, + { + "ordinal": 13, + "name": "sender_email?", + "type_info": "Varchar" + }, + { + "ordinal": 14, + "name": "sender_name?", + "type_info": "Varchar" + }, + { + "ordinal": 15, + "name": "sender_photo_url?", + "type_info": "Text" + }, + { + "ordinal": 16, + "name": "owner_id!", + "type_info": "Text" + }, + { + "ordinal": 17, + "name": "link_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "Int8", + "Timestamptz", + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + true, + false, + false, + null, + null, + null, + true, + false, + true, + true, + false, + null, + false, + null, + true, + false, + false + ] + }, + "hash": "b58ccd6afec0fb6636951e7cdb17390b5d1e56dbaa6b8e59bc35e2a2e4937c34" +} diff --git a/rust/cloud-storage/.sqlx/query-b5bf34fa23cec47e38d38cee18acffed018d15459e101dc907bd1fafb2158979.json b/rust/cloud-storage/.sqlx/query-b5bf34fa23cec47e38d38cee18acffed018d15459e101dc907bd1fafb2158979.json new file mode 100644 index 0000000000..3254e45676 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b5bf34fa23cec47e38d38cee18acffed018d15459e101dc907bd1fafb2158979.json @@ -0,0 +1,172 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.provider_history_id,\n m.replying_to_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n NULL::TEXT as body_text,\n NULL::TEXT as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n JOIN email_links l ON m.link_id = l.id\n WHERE m.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 21, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 22, + "name": "body_macro", + "type_info": "Text" + }, + { + "ordinal": 23, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 24, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 25, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + null, + null, + null, + true, + false, + false + ] + }, + "hash": "b5bf34fa23cec47e38d38cee18acffed018d15459e101dc907bd1fafb2158979" +} diff --git a/rust/cloud-storage/.sqlx/query-b62a8743ac8151822dcb51e80c61f9c9496412cf76d6fb5158fdc5510f59464d.json b/rust/cloud-storage/.sqlx/query-b62a8743ac8151822dcb51e80c61f9c9496412cf76d6fb5158fdc5510f59464d.json new file mode 100644 index 0000000000..f7f36883d1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b62a8743ac8151822dcb51e80c61f9c9496412cf76d6fb5158fdc5510f59464d.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id\n FROM\n \"Chat\" c\n WHERE\n c.id = ANY($1)\n AND c.\"projectId\" = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b62a8743ac8151822dcb51e80c61f9c9496412cf76d6fb5158fdc5510f59464d" +} diff --git a/rust/cloud-storage/.sqlx/query-b658079195dd801dac88ad00ecc09a42de5ded7acd840a8f9a3e065bcf7bcc0c.json b/rust/cloud-storage/.sqlx/query-b658079195dd801dac88ad00ecc09a42de5ded7acd840a8f9a3e065bcf7bcc0c.json new file mode 100644 index 0000000000..32eb477e8c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b658079195dd801dac88ad00ecc09a42de5ded7acd840a8f9a3e065bcf7bcc0c.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id AS \"transcript_id!\",\n speaker_id AS \"speaker_id!\",\n sequence_num AS \"sequence_num!\",\n content AS \"content!\",\n started_at AS \"started_at!\",\n ended_at\n FROM call_record_transcripts\n WHERE call_record_id = $1\n ORDER BY sequence_num ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "transcript_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "speaker_id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "sequence_num!", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "content!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "started_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "ended_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true + ] + }, + "hash": "b658079195dd801dac88ad00ecc09a42de5ded7acd840a8f9a3e065bcf7bcc0c" +} diff --git a/rust/cloud-storage/.sqlx/query-b662ef77f95aaa2a86030fbed4f11de74d311cc1a6096e49372e6cc18581b523.json b/rust/cloud-storage/.sqlx/query-b662ef77f95aaa2a86030fbed4f11de74d311cc1a6096e49372e6cc18581b523.json new file mode 100644 index 0000000000..2a3e8026a3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b662ef77f95aaa2a86030fbed4f11de74d311cc1a6096e49372e6cc18581b523.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChatPermission\" (\"chatId\", \"sharePermissionId\")\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "b662ef77f95aaa2a86030fbed4f11de74d311cc1a6096e49372e6cc18581b523" +} diff --git a/rust/cloud-storage/.sqlx/query-b6705d3675950d0bbbd4a0ba10f7716a24694cfd98741fc0508d607684b1c8a9.json b/rust/cloud-storage/.sqlx/query-b6705d3675950d0bbbd4a0ba10f7716a24694cfd98741fc0508d607684b1c8a9.json new file mode 100644 index 0000000000..1168d26a34 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b6705d3675950d0bbbd4a0ba10f7716a24694cfd98741fc0508d607684b1c8a9.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE notification_message_receipt\n SET failed = true, failed_at = NOW()\n WHERE message_id = $1\n RETURNING user_id, notification_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "notification_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "b6705d3675950d0bbbd4a0ba10f7716a24694cfd98741fc0508d607684b1c8a9" +} diff --git a/rust/cloud-storage/.sqlx/query-b69f3eab9c2048f5fe6bb31bf4c47f85169af66827f2b09287099c14a1a6e0db.json b/rust/cloud-storage/.sqlx/query-b69f3eab9c2048f5fe6bb31bf4c47f85169af66827f2b09287099c14a1a6e0db.json new file mode 100644 index 0000000000..3b75a10e75 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b69f3eab9c2048f5fe6bb31bf4c47f85169af66827f2b09287099c14a1a6e0db.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT b.id as \"id?\"\n FROM \"DocumentBom\" b\n WHERE b.\"documentId\" = $1\n ORDER BY b.\"createdAt\" DESC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id?", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b69f3eab9c2048f5fe6bb31bf4c47f85169af66827f2b09287099c14a1a6e0db" +} diff --git a/rust/cloud-storage/.sqlx/query-b6a1865f89084a577115f8567ad657db1f0c4e2420a9f428d8d75defda053444.json b/rust/cloud-storage/.sqlx/query-b6a1865f89084a577115f8567ad657db1f0c4e2420a9f428d8d75defda053444.json new file mode 100644 index 0000000000..1672617984 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b6a1865f89084a577115f8567ad657db1f0c4e2420a9f428d8d75defda053444.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_sync_tokens (link_id, contacts_sync_token, other_contacts_sync_token)\n VALUES ($1, $2, $3)\n ON CONFLICT (link_id)\n DO UPDATE SET\n contacts_sync_token = $2,\n other_contacts_sync_token = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Varchar", + "Varchar" + ] + }, + "nullable": [] + }, + "hash": "b6a1865f89084a577115f8567ad657db1f0c4e2420a9f428d8d75defda053444" +} diff --git a/rust/cloud-storage/.sqlx/query-b6b4b9bdcbfcf72d970393d915c68c6230d9cf7f96e816a3f98a01b62e4a0a6c.json b/rust/cloud-storage/.sqlx/query-b6b4b9bdcbfcf72d970393d915c68c6230d9cf7f96e816a3f98a01b62e4a0a6c.json new file mode 100644 index 0000000000..43b1c4da65 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b6b4b9bdcbfcf72d970393d915c68c6230d9cf7f96e816a3f98a01b62e4a0a6c.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT team_role as \"team_role!: TeamRole\"\n FROM team_user\n WHERE team_id = $1 AND user_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "team_role!: TeamRole", + "type_info": { + "Custom": { + "name": "team_role", + "kind": { + "Enum": [ + "member", + "admin", + "owner" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b6b4b9bdcbfcf72d970393d915c68c6230d9cf7f96e816a3f98a01b62e4a0a6c" +} diff --git a/rust/cloud-storage/.sqlx/query-b73077f2df6391baeaf31c0f136503cea1c346685d29795e26caab50e3654d22.json b/rust/cloud-storage/.sqlx/query-b73077f2df6391baeaf31c0f136503cea1c346685d29795e26caab50e3654d22.json new file mode 100644 index 0000000000..d13590b7e5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b73077f2df6391baeaf31c0f136503cea1c346685d29795e26caab50e3654d22.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE crm_thread SET deleted_at = now(), updated_at = now() WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "b73077f2df6391baeaf31c0f136503cea1c346685d29795e26caab50e3654d22" +} diff --git a/rust/cloud-storage/.sqlx/query-b79ca4a7b148d78ddf48b5c57dea59763b17693c09564a0190ed377dd09342cf.json b/rust/cloud-storage/.sqlx/query-b79ca4a7b148d78ddf48b5c57dea59763b17693c09564a0190ed377dd09342cf.json new file mode 100644 index 0000000000..9c01b8fe22 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b79ca4a7b148d78ddf48b5c57dea59763b17693c09564a0190ed377dd09342cf.json @@ -0,0 +1,96 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n link_id,\n provider_label_id,\n name,\n created_at,\n message_list_visibility as \"message_list_visibility: _\",\n label_list_visibility as \"label_list_visibility: _\",\n type as \"type_: _\"\n FROM email_labels\n WHERE id = $1 AND link_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_label_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "message_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_message_list_visibility_enum", + "kind": { + "Enum": [ + "Show", + "Hide" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "label_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_label_list_visibility_enum", + "kind": { + "Enum": [ + "LabelShow", + "LabelShowIfUnread", + "LabelHide" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "type_: _", + "type_info": { + "Custom": { + "name": "email_label_type_enum", + "kind": { + "Enum": [ + "System", + "User" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "b79ca4a7b148d78ddf48b5c57dea59763b17693c09564a0190ed377dd09342cf" +} diff --git a/rust/cloud-storage/.sqlx/query-b7e2765c4c0999ea37d38e4a7f41e3986bdcced6e86a9c9869e38ff3e6d91c2d.json b/rust/cloud-storage/.sqlx/query-b7e2765c4c0999ea37d38e4a7f41e3986bdcced6e86a9c9869e38ff3e6d91c2d.json new file mode 100644 index 0000000000..8f79a3db1f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b7e2765c4c0999ea37d38e4a7f41e3986bdcced6e86a9c9869e38ff3e6d91c2d.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT team_id, task_num\n FROM team_task\n WHERE document_id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "team_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "task_num", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "b7e2765c4c0999ea37d38e4a7f41e3986bdcced6e86a9c9869e38ff3e6d91c2d" +} diff --git a/rust/cloud-storage/.sqlx/query-b805dc1d8b2143dbf9adc0e5478b204219a94105e0ba590db0a97f2c384a4192.json b/rust/cloud-storage/.sqlx/query-b805dc1d8b2143dbf9adc0e5478b204219a94105e0ba590db0a97f2c384a4192.json new file mode 100644 index 0000000000..6cf702fd3f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b805dc1d8b2143dbf9adc0e5478b204219a94105e0ba590db0a97f2c384a4192.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, NOW(), NOW())\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = NOW();\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "b805dc1d8b2143dbf9adc0e5478b204219a94105e0ba590db0a97f2c384a4192" +} diff --git a/rust/cloud-storage/.sqlx/query-b8176bd2c038b0cfb2b74f3c7b6a51a2d068b5253bcd3a9d16b43527ae4e8f1a.json b/rust/cloud-storage/.sqlx/query-b8176bd2c038b0cfb2b74f3c7b6a51a2d068b5253bcd3a9d16b43527ae4e8f1a.json new file mode 100644 index 0000000000..255d60be8b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b8176bd2c038b0cfb2b74f3c7b6a51a2d068b5253bcd3a9d16b43527ae4e8f1a.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH allocated AS (\n INSERT INTO team_task_counter (team_id, last_task_num)\n VALUES ($1, 1)\n ON CONFLICT (team_id) DO UPDATE\n SET last_task_num = team_task_counter.last_task_num + 1,\n updated_at = NOW()\n RETURNING last_task_num AS task_num\n )\n INSERT INTO team_task (team_id, document_id, task_num)\n SELECT $1, $2, task_num\n FROM allocated\n RETURNING task_num AS \"task_num!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "task_num!", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b8176bd2c038b0cfb2b74f3c7b6a51a2d068b5253bcd3a9d16b43527ae4e8f1a" +} diff --git a/rust/cloud-storage/.sqlx/query-b8284f96e44ea8442487dd5c99733eab3722a94e49bf01605f69c78919d8bff7.json b/rust/cloud-storage/.sqlx/query-b8284f96e44ea8442487dd5c99733eab3722a94e49bf01605f69c78919d8bff7.json new file mode 100644 index 0000000000..5c523361fb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b8284f96e44ea8442487dd5c99733eab3722a94e49bf01605f69c78919d8bff7.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"SharePermission\"\n WHERE id IN (\n SELECT \"sharePermissionId\"\n FROM \"ChatPermission\"\n WHERE \"chatId\" = $1\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "b8284f96e44ea8442487dd5c99733eab3722a94e49bf01605f69c78919d8bff7" +} diff --git a/rust/cloud-storage/.sqlx/query-b8342cf8ccfe95aad527ddf5cc49aef347e35bb2b023a820d85a2e85caaf7b61.json b/rust/cloud-storage/.sqlx/query-b8342cf8ccfe95aad527ddf5cc49aef347e35bb2b023a820d85a2e85caaf7b61.json new file mode 100644 index 0000000000..db9e518ea9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b8342cf8ccfe95aad527ddf5cc49aef347e35bb2b023a820d85a2e85caaf7b61.json @@ -0,0 +1,64 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n t.id as thread_id, \n t.resolved, \n t.\"documentId\" as document_id, \n t.\"createdAt\"::timestamptz as created_at, \n t.\"updatedAt\"::timestamptz as updated_at, \n t.\"deletedAt\"::timestamptz as deleted_at, \n t.metadata, \n t.owner\n FROM \"Thread\" t\n WHERE t.\"documentId\" = $1 AND t.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "resolved", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "owner", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + null, + null, + null, + true, + false + ] + }, + "hash": "b8342cf8ccfe95aad527ddf5cc49aef347e35bb2b023a820d85a2e85caaf7b61" +} diff --git a/rust/cloud-storage/.sqlx/query-b845e01904b9e9f8d1f322e788b7cf6555ee13b3de24bbe50bbc801a2730e446.json b/rust/cloud-storage/.sqlx/query-b845e01904b9e9f8d1f322e788b7cf6555ee13b3de24bbe50bbc801a2730e446.json new file mode 100644 index 0000000000..45964bff36 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b845e01904b9e9f8d1f322e788b7cf6555ee13b3de24bbe50bbc801a2730e446.json @@ -0,0 +1,47 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n input.address AS \"address!\",\n (m.email IS NOT NULL) AS \"exists!\",\n COALESCE(m.contact_hidden, FALSE) AS \"contact_hidden!\",\n COALESCE(m.company_hidden, FALSE) AS \"company_hidden!\",\n COALESCE(m.email_sync, FALSE) AS \"email_sync!\"\n FROM UNNEST($2::text[]) WITH ORDINALITY AS input(address, ord)\n LEFT JOIN (\n SELECT\n ct.email AS email,\n ct.hidden AS contact_hidden,\n c.hidden AS company_hidden,\n c.email_sync AS email_sync\n FROM crm_contacts ct\n JOIN crm_companies c ON c.id = ct.company_id\n WHERE c.team_id = $1\n ) m ON m.email = input.address\n ORDER BY input.ord\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "address!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "exists!", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "contact_hidden!", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "company_hidden!", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "email_sync!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [ + null, + null, + null, + null, + null + ] + }, + "hash": "b845e01904b9e9f8d1f322e788b7cf6555ee13b3de24bbe50bbc801a2730e446" +} diff --git a/rust/cloud-storage/.sqlx/query-b85f38b29d0f452ddb8d83e3c57c25b4d5733d4bc21770570cdc8412d47ffe65.json b/rust/cloud-storage/.sqlx/query-b85f38b29d0f452ddb8d83e3c57c25b4d5733d4bc21770570cdc8412d47ffe65.json new file mode 100644 index 0000000000..40570f2367 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b85f38b29d0f452ddb8d83e3c57c25b4d5733d4bc21770570cdc8412d47ffe65.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"id\"\n FROM \"User\"\n WHERE \"email\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b85f38b29d0f452ddb8d83e3c57c25b4d5733d4bc21770570cdc8412d47ffe65" +} diff --git a/rust/cloud-storage/.sqlx/query-b869e283051a5dfccf0f0ac4bdf9693b568ab6d4620ad1b2f5c63d3938e212e6.json b/rust/cloud-storage/.sqlx/query-b869e283051a5dfccf0f0ac4bdf9693b568ab6d4620ad1b2f5c63d3938e212e6.json new file mode 100644 index 0000000000..31160a05cc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b869e283051a5dfccf0f0ac4bdf9693b568ab6d4620ad1b2f5c63d3938e212e6.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE user_notification\n SET seen_at = NOW()\n WHERE notification_id = $1 AND user_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "b869e283051a5dfccf0f0ac4bdf9693b568ab6d4620ad1b2f5c63d3938e212e6" +} diff --git a/rust/cloud-storage/.sqlx/query-b8b631cf3afd7c73b5645635212bb851ba19858a47a17b0ffcbe4f15cd177cb4.json b/rust/cloud-storage/.sqlx/query-b8b631cf3afd7c73b5645635212bb851ba19858a47a17b0ffcbe4f15cd177cb4.json new file mode 100644 index 0000000000..b938c355ee --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b8b631cf3afd7c73b5645635212bb851ba19858a47a17b0ffcbe4f15cd177cb4.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"sharePermissionId\" as share_permission_id\n FROM \"DocumentPermission\"\n WHERE \"documentId\"=$1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b8b631cf3afd7c73b5645635212bb851ba19858a47a17b0ffcbe4f15cd177cb4" +} diff --git a/rust/cloud-storage/.sqlx/query-b8d8d71ae0d463f8a397b03d6f6d6093127a4ed57fa5ec3c2b43540ddf1fd598.json b/rust/cloud-storage/.sqlx/query-b8d8d71ae0d463f8a397b03d6f6d6093127a4ed57fa5ec3c2b43540ddf1fd598.json new file mode 100644 index 0000000000..d75c6172fb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b8d8d71ae0d463f8a397b03d6f6d6093127a4ed57fa5ec3c2b43540ddf1fd598.json @@ -0,0 +1,72 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH input_rows (\n id,\n link_id,\n provider_label_id,\n name,\n message_list_visibility,\n label_list_visibility,\n type\n ) AS (\n SELECT * FROM unnest(\n $1::uuid[],\n $2::uuid[],\n $3::text[],\n $4::text[],\n $5::email_message_list_visibility_enum[],\n $6::email_label_list_visibility_enum[],\n $7::email_label_type_enum[]\n )\n )\n INSERT INTO email_labels (\n id,\n link_id,\n provider_label_id,\n name,\n message_list_visibility,\n label_list_visibility,\n type\n )\n SELECT\n id,\n link_id,\n provider_label_id,\n name,\n message_list_visibility,\n label_list_visibility,\n type\n FROM input_rows\n ON CONFLICT (link_id, provider_label_id) DO UPDATE\n SET\n name = EXCLUDED.name,\n message_list_visibility = EXCLUDED.message_list_visibility,\n label_list_visibility = EXCLUDED.label_list_visibility,\n type = EXCLUDED.type\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "UuidArray", + "TextArray", + "TextArray", + { + "Custom": { + "name": "email_message_list_visibility_enum[]", + "kind": { + "Array": { + "Custom": { + "name": "email_message_list_visibility_enum", + "kind": { + "Enum": [ + "Show", + "Hide" + ] + } + } + } + } + } + }, + { + "Custom": { + "name": "email_label_list_visibility_enum[]", + "kind": { + "Array": { + "Custom": { + "name": "email_label_list_visibility_enum", + "kind": { + "Enum": [ + "LabelShow", + "LabelShowIfUnread", + "LabelHide" + ] + } + } + } + } + } + }, + { + "Custom": { + "name": "email_label_type_enum[]", + "kind": { + "Array": { + "Custom": { + "name": "email_label_type_enum", + "kind": { + "Enum": [ + "System", + "User" + ] + } + } + } + } + } + } + ] + }, + "nullable": [] + }, + "hash": "b8d8d71ae0d463f8a397b03d6f6d6093127a4ed57fa5ec3c2b43540ddf1fd598" +} diff --git a/rust/cloud-storage/.sqlx/query-b8eb30360d1232b36214b17758d8c7d897251a93c7d56b310a2fc6f026fdbea9.json b/rust/cloud-storage/.sqlx/query-b8eb30360d1232b36214b17758d8c7d897251a93c7d56b310a2fc6f026fdbea9.json new file mode 100644 index 0000000000..331e15bd4e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b8eb30360d1232b36214b17758d8c7d897251a93c7d56b310a2fc6f026fdbea9.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_message_recipients\n WHERE message_id = $1\n AND (contact_id, recipient_type) NOT IN (\n SELECT contact_id, recipient_type\n FROM unnest($2::uuid[], $3::email_recipient_type[])\n AS t(contact_id, recipient_type)\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "UuidArray", + { + "Custom": { + "name": "email_recipient_type[]", + "kind": { + "Array": { + "Custom": { + "name": "email_recipient_type", + "kind": { + "Enum": [ + "TO", + "CC", + "BCC" + ] + } + } + } + } + } + } + ] + }, + "nullable": [] + }, + "hash": "b8eb30360d1232b36214b17758d8c7d897251a93c7d56b310a2fc6f026fdbea9" +} diff --git a/rust/cloud-storage/.sqlx/query-b905b3cbb97bbfc8262ffb91023db7f703b0994d6d519fbab0fdb67ea2df5877.json b/rust/cloud-storage/.sqlx/query-b905b3cbb97bbfc8262ffb91023db7f703b0994d6d519fbab0fdb67ea2df5877.json new file mode 100644 index 0000000000..1037b40923 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b905b3cbb97bbfc8262ffb91023db7f703b0994d6d519fbab0fdb67ea2df5877.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.name,\n c.\"userId\" as user_id\n FROM\n \"Chat\" c\n WHERE\n c.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "b905b3cbb97bbfc8262ffb91023db7f703b0994d6d519fbab0fdb67ea2df5877" +} diff --git a/rust/cloud-storage/.sqlx/query-b9344b1ce39ffd607ab2862810afbd13c579e22b433553ba01719644a56ab816.json b/rust/cloud-storage/.sqlx/query-b9344b1ce39ffd607ab2862810afbd13c579e22b433553ba01719644a56ab816.json new file mode 100644 index 0000000000..02963800c8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b9344b1ce39ffd607ab2862810afbd13c579e22b433553ba01719644a56ab816.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT id FROM \"Document\" WHERE \"projectId\" = $1 AND \"deletedAt\" IS NULL", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b9344b1ce39ffd607ab2862810afbd13c579e22b433553ba01719644a56ab816" +} diff --git a/rust/cloud-storage/.sqlx/query-b9570b07121de0df914dd0579cc92a5e92973cf114526f80dbe7ab714493090b.json b/rust/cloud-storage/.sqlx/query-b9570b07121de0df914dd0579cc92a5e92973cf114526f80dbe7ab714493090b.json new file mode 100644 index 0000000000..4063a3122f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b9570b07121de0df914dd0579cc92a5e92973cf114526f80dbe7ab714493090b.json @@ -0,0 +1,146 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n pd.id,\n pd.organization_id,\n pd.user_id,\n pd.display_name,\n pd.data_type as \"data_type: DataType\",\n pd.is_multi_select,\n pd.specific_entity_type as \"specific_entity_type: Option\",\n pd.created_at,\n pd.updated_at,\n pd.is_system,\n po.id as \"option_id?\",\n po.display_order as \"option_display_order?\",\n po.number_value as option_number_value,\n po.string_value as option_string_value,\n po.created_at as \"option_created_at?\",\n po.updated_at as \"option_updated_at?\"\n FROM property_definitions pd\n LEFT JOIN property_options po ON pd.id = po.property_definition_id\n WHERE \n ($3 AND pd.is_system)\n OR (\n ($1::int IS NOT NULL AND pd.organization_id = $1) \n OR ($2::text IS NOT NULL AND pd.user_id = $2)\n )\n ORDER BY LOWER(pd.display_name), po.display_order, po.number_value, LOWER(po.string_value)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "organization_id", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "display_name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "data_type: DataType", + "type_info": { + "Custom": { + "name": "property_data_type", + "kind": { + "Enum": [ + "BOOLEAN", + "DATE", + "NUMBER", + "STRING", + "SELECT_NUMBER", + "SELECT_STRING", + "ENTITY", + "LINK" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_multi_select", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "specific_entity_type: Option", + "type_info": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "is_system", + "type_info": "Bool" + }, + { + "ordinal": 10, + "name": "option_id?", + "type_info": "Uuid" + }, + { + "ordinal": 11, + "name": "option_display_order?", + "type_info": "Int4" + }, + { + "ordinal": 12, + "name": "option_number_value", + "type_info": "Float8" + }, + { + "ordinal": 13, + "name": "option_string_value", + "type_info": "Text" + }, + { + "ordinal": 14, + "name": "option_created_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "option_updated_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Int4", + "Text", + "Bool" + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + false, + true, + false, + false, + false, + false, + false, + true, + true, + false, + false + ] + }, + "hash": "b9570b07121de0df914dd0579cc92a5e92973cf114526f80dbe7ab714493090b" +} diff --git a/rust/cloud-storage/.sqlx/query-b96181ce30beea5d5067c9e8177d9feca7891cdf00ad560cc522121ee8d6b4ec.json b/rust/cloud-storage/.sqlx/query-b96181ce30beea5d5067c9e8177d9feca7891cdf00ad560cc522121ee8d6b4ec.json new file mode 100644 index 0000000000..76f2bd9360 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b96181ce30beea5d5067c9e8177d9feca7891cdf00ad560cc522121ee8d6b4ec.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id\n FROM comms_channels\n WHERE channel_type = 'private'::comms_channel_type\n AND (\n (\n SELECT COUNT(*)\n FROM comms_channel_participants cp\n WHERE cp.channel_id = comms_channels.id\n AND cp.user_id = ANY($1)\n ) = CARDINALITY($1)\n AND (\n SELECT COUNT(*)\n FROM comms_channel_participants\n WHERE channel_id = comms_channels.id\n ) = CARDINALITY($1)\n )\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b96181ce30beea5d5067c9e8177d9feca7891cdf00ad560cc522121ee8d6b4ec" +} diff --git a/rust/cloud-storage/.sqlx/query-b99dfcbe1b18c53fa05a0c44669f6579456c3d49bea87fccdcb9962565543002.json b/rust/cloud-storage/.sqlx/query-b99dfcbe1b18c53fa05a0c44669f6579456c3d49bea87fccdcb9962565543002.json new file mode 100644 index 0000000000..dd9710e57d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-b99dfcbe1b18c53fa05a0c44669f6579456c3d49bea87fccdcb9962565543002.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE calls SET recording_key = $2 WHERE egress_id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "b99dfcbe1b18c53fa05a0c44669f6579456c3d49bea87fccdcb9962565543002" +} diff --git a/rust/cloud-storage/.sqlx/query-ba28ed6c5ce49470b0aef3fb0f59d392b5780cc548f331263a581d1b011eb970.json b/rust/cloud-storage/.sqlx/query-ba28ed6c5ce49470b0aef3fb0f59d392b5780cc548f331263a581d1b011eb970.json new file mode 100644 index 0000000000..ef2ae21a80 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ba28ed6c5ce49470b0aef3fb0f59d392b5780cc548f331263a581d1b011eb970.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n -- Use trim() to remove the leading/trailing angle brackets\n trim(jsonb_path_query_first(headers_jsonb, '$[*] ? (@.name like_regex \"message-id\" flag \"i\").value') #>> '{}', '<>') as \"message_id\",\n -- The references header can have multiple IDs, so we just return it raw\n jsonb_path_query_first(headers_jsonb, '$[*] ? (@.name like_regex \"references\" flag \"i\").value') #>> '{}' as \"references\"\n FROM email_messages\n WHERE id = $1 AND link_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "references", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + null, + null + ] + }, + "hash": "ba28ed6c5ce49470b0aef3fb0f59d392b5780cc548f331263a581d1b011eb970" +} diff --git a/rust/cloud-storage/.sqlx/query-ba3ab3dc338552f6b794ab5405655fe673e71f02106e9792cc4cac40f69b9176.json b/rust/cloud-storage/.sqlx/query-ba3ab3dc338552f6b794ab5405655fe673e71f02106e9792cc4cac40f69b9176.json new file mode 100644 index 0000000000..2c166c9c2a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ba3ab3dc338552f6b794ab5405655fe673e71f02106e9792cc4cac40f69b9176.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM \"Pin\" WHERE \"pinnedItemId\" = $1 AND \"pinnedItemType\" = 'chat'", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "ba3ab3dc338552f6b794ab5405655fe673e71f02106e9792cc4cac40f69b9176" +} diff --git a/rust/cloud-storage/.sqlx/query-ba4127d1e61f849f9429fdfedae68131fa26405dbacb0b1afe9a6f52e50fa57e.json b/rust/cloud-storage/.sqlx/query-ba4127d1e61f849f9429fdfedae68131fa26405dbacb0b1afe9a6f52e50fa57e.json new file mode 100644 index 0000000000..da597ed870 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ba4127d1e61f849f9429fdfedae68131fa26405dbacb0b1afe9a6f52e50fa57e.json @@ -0,0 +1,27 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_channel_participants (channel_id, role, user_id)\n VALUES ($1, $2, $3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + { + "Custom": { + "name": "comms_participant_role", + "kind": { + "Enum": [ + "owner", + "admin", + "member" + ] + } + } + }, + "Text" + ] + }, + "nullable": [] + }, + "hash": "ba4127d1e61f849f9429fdfedae68131fa26405dbacb0b1afe9a6f52e50fa57e" +} diff --git a/rust/cloud-storage/.sqlx/query-ba49dfcd0a3ab834f9e61f27a0a80174e549103ee63f03d30fe76857c8803b6a.json b/rust/cloud-storage/.sqlx/query-ba49dfcd0a3ab834f9e61f27a0a80174e549103ee63f03d30fe76857c8803b6a.json new file mode 100644 index 0000000000..6dd63ef404 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ba49dfcd0a3ab834f9e61f27a0a80174e549103ee63f03d30fe76857c8803b6a.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH RECURSIVE ProjectHierarchy AS (\n -- Find direct user access to projects first as starting point\n SELECT\n p.id,\n uia.access_level\n FROM \"Project\" p\n JOIN \"UserItemAccess\" uia ON p.id = uia.item_id AND uia.item_type = 'project'\n WHERE uia.user_id = $1 AND p.\"deletedAt\" IS NULL\n\n UNION ALL\n\n -- Then walk down the project tree and grab child projects, keeping parent's access\n SELECT\n p.id,\n ph.access_level\n FROM \"Project\" p\n JOIN ProjectHierarchy ph ON p.\"parentId\" = ph.id\n WHERE p.\"deletedAt\" IS NULL\n ),\n -- Now build up all the ways a user can have access to stuff\n AllAccessGrants AS (\n -- Explicit access to items via UserItemAccess table\n SELECT uia.item_id, uia.item_type, uia.access_level\n FROM \"UserItemAccess\" uia\n -- We join to each table to check its \"deletedAt\" status.\n -- This is more explicit and robust than using subqueries.\n LEFT JOIN \"Document\" d ON uia.item_type = 'document' AND uia.item_id = d.id\n LEFT JOIN \"Chat\" c ON uia.item_type = 'chat' AND uia.item_id = c.id\n LEFT JOIN \"Project\" p ON uia.item_type = 'project' AND uia.item_id = p.id\n WHERE uia.user_id = $1\n -- Rule: The item must not be deleted.\n AND (\n (uia.item_type = 'document' AND d.\"deletedAt\" IS NULL) OR\n (uia.item_type = 'chat' AND c.\"deletedAt\" IS NULL) OR\n (uia.item_type = 'project' AND p.\"deletedAt\" IS NULL)\n )\n\n -- The rest of the unions are to get implicit access to items via project access\n UNION ALL\n\n -- Access to docs in visible projects\n SELECT\n d.id AS item_id,\n 'document' AS item_type,\n ph.access_level\n FROM \"Document\" d\n JOIN ProjectHierarchy ph ON d.\"projectId\" = ph.id\n WHERE d.\"projectId\" IS NOT NULL AND d.\"deletedAt\" IS NULL\n\n UNION ALL\n\n -- Access to chats in visible projects\n SELECT\n c.id AS item_id,\n 'chat' AS item_type,\n ph.access_level\n FROM \"Chat\" c\n JOIN ProjectHierarchy ph ON c.\"projectId\" = ph.id\n WHERE c.\"projectId\" IS NOT NULL AND c.\"deletedAt\" IS NULL\n\n UNION ALL\n\n -- Include the projects we found earlier\n SELECT\n ph.id AS item_id,\n 'project' AS item_type,\n ph.access_level\n FROM ProjectHierarchy ph\n ),\n UserAccessibleItems AS (\n SELECT\n item_id,\n item_type\n FROM AllAccessGrants\n GROUP BY item_id, item_type\n )\n SELECT item_id as \"item_id!\", item_type as \"item_type!\" FROM UserAccessibleItems\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "item_type!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null, + null + ] + }, + "hash": "ba49dfcd0a3ab834f9e61f27a0a80174e549103ee63f03d30fe76857c8803b6a" +} diff --git a/rust/cloud-storage/.sqlx/query-bab2c7e9807103ec8ece1edcdc8e357dc50be7a4d634f45990b772eb0824a35d.json b/rust/cloud-storage/.sqlx/query-bab2c7e9807103ec8ece1edcdc8e357dc50be7a4d634f45990b772eb0824a35d.json new file mode 100644 index 0000000000..73f58e81b1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bab2c7e9807103ec8ece1edcdc8e357dc50be7a4d634f45990b772eb0824a35d.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM crm_contacts ct\n USING crm_companies co\n WHERE ct.company_id = co.id\n AND co.team_id = $1\n AND NOT EXISTS (\n SELECT 1 FROM crm_contact_sources WHERE contact_id = ct.id\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "bab2c7e9807103ec8ece1edcdc8e357dc50be7a4d634f45990b772eb0824a35d" +} diff --git a/rust/cloud-storage/.sqlx/query-baf9495b799086982dd4aac55683482fce25612d56dfdf78872d74019d8b5429.json b/rust/cloud-storage/.sqlx/query-baf9495b799086982dd4aac55683482fce25612d56dfdf78872d74019d8b5429.json new file mode 100644 index 0000000000..df03eb38fa --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-baf9495b799086982dd4aac55683482fce25612d56dfdf78872d74019d8b5429.json @@ -0,0 +1,42 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentInstance\" (\"documentId\", \"sha\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $3)\n RETURNING id, sha, \"createdAt\"::timestamptz as \"created_at\", \"updatedAt\"::timestamptz as \"updated_at\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Timestamp" + ] + }, + "nullable": [ + false, + false, + null, + null + ] + }, + "hash": "baf9495b799086982dd4aac55683482fce25612d56dfdf78872d74019d8b5429" +} diff --git a/rust/cloud-storage/.sqlx/query-bb2b5a276542bf95f2600f3e60366b08133a54fbde183a5df7a9b99dd7381ca5.json b/rust/cloud-storage/.sqlx/query-bb2b5a276542bf95f2600f3e60366b08133a54fbde183a5df7a9b99dd7381ca5.json new file mode 100644 index 0000000000..b64038d03c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bb2b5a276542bf95f2600f3e60366b08133a54fbde183a5df7a9b99dd7381ca5.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT muv.macro_user_id\n FROM voice v\n JOIN macro_user_voice muv ON muv.voice_id = v.id\n WHERE (v.embedding <=> $1) <= $2\n ORDER BY v.embedding <=> $1 ASC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + { + "Custom": { + "name": "vector", + "kind": "Simple" + } + }, + "Float8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "bb2b5a276542bf95f2600f3e60366b08133a54fbde183a5df7a9b99dd7381ca5" +} diff --git a/rust/cloud-storage/.sqlx/query-bb6de5a7f1c778acc5c27a0080037992ac2805137ee19f9385894688e6b8a62c.json b/rust/cloud-storage/.sqlx/query-bb6de5a7f1c778acc5c27a0080037992ac2805137ee19f9385894688e6b8a62c.json new file mode 100644 index 0000000000..ae26eaad0e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bb6de5a7f1c778acc5c27a0080037992ac2805137ee19f9385894688e6b8a62c.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT name FROM \"Project\" WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "bb6de5a7f1c778acc5c27a0080037992ac2805137ee19f9385894688e6b8a62c" +} diff --git a/rust/cloud-storage/.sqlx/query-bbd2b467cf8f1e277d3278fafdc5792183e42f6c00ae95aa0f4fe869292408f0.json b/rust/cloud-storage/.sqlx/query-bbd2b467cf8f1e277d3278fafdc5792183e42f6c00ae95aa0f4fe869292408f0.json new file mode 100644 index 0000000000..14e2f4f6f8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bbd2b467cf8f1e277d3278fafdc5792183e42f6c00ae95aa0f4fe869292408f0.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n cm.id AS \"id!\",\n cm.content,\n cm.role,\n cm.model,\n COALESCE(\n (\n SELECT json_agg(\n json_build_object(\n 'entity_type', ca.\"entity_type\",\n 'entity_id', ca.\"entity_id\"::TEXT\n )\n )\n FROM \"ChatAttachment\" ca\n WHERE ca.\"messageId\" = cm.id\n ),\n '[]'::json\n ) AS attachments\n FROM\n \"ChatMessage\" cm\n WHERE\n cm.\"chatId\" = $1\n ORDER BY\n cm.\"createdAt\" ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "content", + "type_info": "Jsonb" + }, + { + "ordinal": 2, + "name": "role", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "model", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "attachments", + "type_info": "Json" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + null + ] + }, + "hash": "bbd2b467cf8f1e277d3278fafdc5792183e42f6c00ae95aa0f4fe869292408f0" +} diff --git a/rust/cloud-storage/.sqlx/query-bbe4822c2e7ba11594b1a4b92f945f4088406bfee6ccb2ef6577643708a5132c.json b/rust/cloud-storage/.sqlx/query-bbe4822c2e7ba11594b1a4b92f945f4088406bfee6ccb2ef6577643708a5132c.json new file mode 100644 index 0000000000..41ca9e5d4d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bbe4822c2e7ba11594b1a4b92f945f4088406bfee6ccb2ef6577643708a5132c.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM email_message_recipients WHERE message_id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "bbe4822c2e7ba11594b1a4b92f945f4088406bfee6ccb2ef6577643708a5132c" +} diff --git a/rust/cloud-storage/.sqlx/query-bbeef57c72ec7a197daf71146f0a5c409a5a54b41a9dd9e3db2267c9ee17d9fd.json b/rust/cloud-storage/.sqlx/query-bbeef57c72ec7a197daf71146f0a5c409a5a54b41a9dd9e3db2267c9ee17d9fd.json new file mode 100644 index 0000000000..653140af10 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bbeef57c72ec7a197daf71146f0a5c409a5a54b41a9dd9e3db2267c9ee17d9fd.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT target_id\n FROM id_mapping\n WHERE source_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "target_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "bbeef57c72ec7a197daf71146f0a5c409a5a54b41a9dd9e3db2267c9ee17d9fd" +} diff --git a/rust/cloud-storage/.sqlx/query-bc4d60efeffa6cba398a37db8ff7204bcffd809e425e9236b897b5efa9c7eebc.json b/rust/cloud-storage/.sqlx/query-bc4d60efeffa6cba398a37db8ff7204bcffd809e425e9236b897b5efa9c7eebc.json new file mode 100644 index 0000000000..db2ad0be84 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bc4d60efeffa6cba398a37db8ff7204bcffd809e425e9236b897b5efa9c7eebc.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id\n FROM \"User\"\n WHERE email = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "bc4d60efeffa6cba398a37db8ff7204bcffd809e425e9236b897b5efa9c7eebc" +} diff --git a/rust/cloud-storage/.sqlx/query-bc5d03a110b267d3f4e4ae2937b95d91a96794ebdbc864ce0d6d8d455996914f.json b/rust/cloud-storage/.sqlx/query-bc5d03a110b267d3f4e4ae2937b95d91a96794ebdbc864ce0d6d8d455996914f.json new file mode 100644 index 0000000000..49490f6c71 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bc5d03a110b267d3f4e4ae2937b95d91a96794ebdbc864ce0d6d8d455996914f.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_messages\n SET\n provider_id = $1,\n provider_thread_id = $2,\n is_draft = false,\n is_sent = true,\n updated_at = NOW()\n WHERE\n id = $3\n AND link_id = $4\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "bc5d03a110b267d3f4e4ae2937b95d91a96794ebdbc864ce0d6d8d455996914f" +} diff --git a/rust/cloud-storage/.sqlx/query-bc7ef8662eb6050c09246ebc169f91d523c596874f216a10180a377bbaf7a1eb.json b/rust/cloud-storage/.sqlx/query-bc7ef8662eb6050c09246ebc169f91d523c596874f216a10180a377bbaf7a1eb.json new file mode 100644 index 0000000000..510e858534 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bc7ef8662eb6050c09246ebc169f91d523c596874f216a10180a377bbaf7a1eb.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_links\n SET is_sync_active = $2, updated_at = NOW()\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "bc7ef8662eb6050c09246ebc169f91d523c596874f216a10180a377bbaf7a1eb" +} diff --git a/rust/cloud-storage/.sqlx/query-bca8bec6b99f7b9a3e8def2a53209e2d0f92546933588bad33bc3520d2ad2d10.json b/rust/cloud-storage/.sqlx/query-bca8bec6b99f7b9a3e8def2a53209e2d0f92546933588bad33bc3520d2ad2d10.json new file mode 100644 index 0000000000..f7b8c0544e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bca8bec6b99f7b9a3e8def2a53209e2d0f92546933588bad33bc3520d2ad2d10.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChatAttachment\" (\"entity_type\", \"entity_id\", \"chatId\", \"messageId\")\n SELECT * FROM UNNEST($1::TEXT[], $2::UUID[], $3::TEXT[], $4::TEXT[])\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "UuidArray", + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "bca8bec6b99f7b9a3e8def2a53209e2d0f92546933588bad33bc3520d2ad2d10" +} diff --git a/rust/cloud-storage/.sqlx/query-bcb0dfd2aa420f102d8dd3484f65defd6cbcf8e801c4c4d43d5e0d1338e1ab04.json b/rust/cloud-storage/.sqlx/query-bcb0dfd2aa420f102d8dd3484f65defd6cbcf8e801c4c4d43d5e0d1338e1ab04.json new file mode 100644 index 0000000000..c645aa3823 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bcb0dfd2aa420f102d8dd3484f65defd6cbcf8e801c4c4d43d5e0d1338e1ab04.json @@ -0,0 +1,39 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id,\n team_role as \"team_role!: TeamRole\"\n FROM team_user\n WHERE team_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "team_role!: TeamRole", + "type_info": { + "Custom": { + "name": "team_role", + "kind": { + "Enum": [ + "member", + "admin", + "owner" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "bcb0dfd2aa420f102d8dd3484f65defd6cbcf8e801c4c4d43d5e0d1338e1ab04" +} diff --git a/rust/cloud-storage/.sqlx/query-bcbaaa06fffa75a82e66030d42e2aaa89d56232566edc15d9e9b819b9b02aea9.json b/rust/cloud-storage/.sqlx/query-bcbaaa06fffa75a82e66030d42e2aaa89d56232566edc15d9e9b819b9b02aea9.json new file mode 100644 index 0000000000..ed20c30bb8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bcbaaa06fffa75a82e66030d42e2aaa89d56232566edc15d9e9b819b9b02aea9.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT\n c.email_address as \"email_address!\"\n FROM\n email_messages m\n JOIN\n email_message_recipients mr ON m.id = mr.message_id\n JOIN\n email_contacts c ON mr.contact_id = c.id\n WHERE\n m.link_id = $1\n AND m.is_sent = TRUE\n AND mr.contact_id IS NOT NULL\n ORDER BY\n c.email_address\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email_address!", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "bcbaaa06fffa75a82e66030d42e2aaa89d56232566edc15d9e9b819b9b02aea9" +} diff --git a/rust/cloud-storage/.sqlx/query-bd6ed4253d2bff9f78562aa09f2cbb794195e1e69ffcbf722c0a2e523f196c2f.json b/rust/cloud-storage/.sqlx/query-bd6ed4253d2bff9f78562aa09f2cbb794195e1e69ffcbf722c0a2e523f196c2f.json new file mode 100644 index 0000000000..c6c0800423 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bd6ed4253d2bff9f78562aa09f2cbb794195e1e69ffcbf722c0a2e523f196c2f.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT \"userId\" as user_id FROM \"Project\" WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "bd6ed4253d2bff9f78562aa09f2cbb794195e1e69ffcbf722c0a2e523f196c2f" +} diff --git a/rust/cloud-storage/.sqlx/query-bdb882d426cf81329dd6d824a5d945cfd0ea2fffa26b5324ef641dfe3e304682.json b/rust/cloud-storage/.sqlx/query-bdb882d426cf81329dd6d824a5d945cfd0ea2fffa26b5324ef641dfe3e304682.json new file mode 100644 index 0000000000..3ed3f3db5e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bdb882d426cf81329dd6d824a5d945cfd0ea2fffa26b5324ef641dfe3e304682.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n \"publicAccessLevel\" as \"access_level!\"\n FROM \"SharePermission\"\n WHERE id in (SELECT share_permission_id\n FROM calls\n WHERE id = $1\n UNION ALL\n SELECT share_permission_id\n FROM call_records\n WHERE id = $1\n LIMIT 1)\n AND \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "access_level!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + true + ] + }, + "hash": "bdb882d426cf81329dd6d824a5d945cfd0ea2fffa26b5324ef641dfe3e304682" +} diff --git a/rust/cloud-storage/.sqlx/query-bdc2a74951d6efbce08d469970b29610352e02441283f12a67b0da0c44771522.json b/rust/cloud-storage/.sqlx/query-bdc2a74951d6efbce08d469970b29610352e02441283f12a67b0da0c44771522.json new file mode 100644 index 0000000000..5e8933ecc4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bdc2a74951d6efbce08d469970b29610352e02441283f12a67b0da0c44771522.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id,\n m.channel_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.edited_at::timestamptz AS \"edited_at?\",\n m.deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages m\n WHERE m.channel_id = $1\n AND m.thread_id IS NULL\n AND (m.deleted_at IS NULL OR EXISTS (\n SELECT 1 FROM comms_messages r\n WHERE r.thread_id = m.id AND r.deleted_at IS NULL\n ))\n AND ($2::timestamptz IS NOT NULL AND (m.created_at, m.id) > ($2, $3))\n AND ($5::uuid[] IS NULL OR m.id = ANY($5))\n AND ($6::timestamptz IS NULL OR m.created_at >= $6)\n AND ($7::timestamptz IS NULL OR m.created_at < $7)\n AND (\n ($8::timestamptz IS NULL AND $9::timestamptz IS NULL)\n OR (\n ($8::timestamptz IS NULL OR m.created_at >= $8)\n AND ($9::timestamptz IS NULL OR m.created_at < $9)\n )\n OR EXISTS (\n SELECT 1 FROM comms_messages r\n WHERE r.thread_id = m.id\n AND r.deleted_at IS NULL\n AND ($8::timestamptz IS NULL OR r.created_at >= $8)\n AND ($9::timestamptz IS NULL OR r.created_at < $9)\n )\n )\n AND ($10::bool = FALSE OR (\n ($11::bool IS NULL OR EXISTS (\n SELECT 1\n FROM notification n\n JOIN user_notification un ON un.notification_id = n.id\n JOIN comms_messages msg ON msg.id = (n.metadata->>'messageId')::uuid\n WHERE un.user_id = $13::text\n AND un.deleted_at IS NULL\n AND un.done = $11\n AND n.event_item_type = 'channel'\n AND n.event_item_id = $1::uuid::text\n AND n.metadata->>'messageId' IS NOT NULL\n AND msg.channel_id = $1\n AND msg.deleted_at IS NULL\n AND COALESCE(msg.thread_id, msg.id) = m.id\n ))\n AND ($12::bool IS NULL OR EXISTS (\n SELECT 1\n FROM notification n\n JOIN user_notification un ON un.notification_id = n.id\n JOIN comms_messages msg ON msg.id = (n.metadata->>'messageId')::uuid\n WHERE un.user_id = $13::text\n AND un.deleted_at IS NULL\n AND (un.seen_at IS NOT NULL) = $12\n AND n.event_item_type = 'channel'\n AND n.event_item_id = $1::uuid::text\n AND n.metadata->>'messageId' IS NOT NULL\n AND msg.channel_id = $1\n AND msg.deleted_at IS NULL\n AND COALESCE(msg.thread_id, msg.id) = m.id\n ))\n ))\n ORDER BY m.created_at ASC, m.id ASC\n LIMIT $4\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "edited_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "deleted_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Timestamptz", + "Uuid", + "Int8", + "UuidArray", + "Timestamptz", + "Timestamptz", + "Timestamptz", + "Timestamptz", + "Bool", + "Bool", + "Bool", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + null, + null + ] + }, + "hash": "bdc2a74951d6efbce08d469970b29610352e02441283f12a67b0da0c44771522" +} diff --git a/rust/cloud-storage/.sqlx/query-bdca4a82e47757c7c1434555612b4f81dad7d0c3ec2cef1eda3afa66897081e7.json b/rust/cloud-storage/.sqlx/query-bdca4a82e47757c7c1434555612b4f81dad7d0c3ec2cef1eda3afa66897081e7.json new file mode 100644 index 0000000000..a9084e5079 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bdca4a82e47757c7c1434555612b4f81dad7d0c3ec2cef1eda3afa66897081e7.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT dp.\"sharePermissionId\" as \"share_permission_id!\"\n FROM \"DocumentPermission\" dp\n WHERE dp.\"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "bdca4a82e47757c7c1434555612b4f81dad7d0c3ec2cef1eda3afa66897081e7" +} diff --git a/rust/cloud-storage/.sqlx/query-be483cff20705eb58c47cd4de412aea80ce9a658dfe055f146a38ed9e64effaf.json b/rust/cloud-storage/.sqlx/query-be483cff20705eb58c47cd4de412aea80ce9a658dfe055f146a38ed9e64effaf.json new file mode 100644 index 0000000000..54a8ba7d73 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-be483cff20705eb58c47cd4de412aea80ce9a658dfe055f146a38ed9e64effaf.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Experiment\" SET active = true AND started_at = NOW() WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "be483cff20705eb58c47cd4de412aea80ce9a658dfe055f146a38ed9e64effaf" +} diff --git a/rust/cloud-storage/.sqlx/query-be5dc669b45165beefffe0645813f38c805d6f49150d66c8a7325c524bebc854.json b/rust/cloud-storage/.sqlx/query-be5dc669b45165beefffe0645813f38c805d6f49150d66c8a7325c524bebc854.json new file mode 100644 index 0000000000..1119ce64a1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-be5dc669b45165beefffe0645813f38c805d6f49150d66c8a7325c524bebc854.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"ChannelSharePermission\"\n WHERE \"share_permission_id\" = $1\n AND \"channel_id\" = ANY($2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "be5dc669b45165beefffe0645813f38c805d6f49150d66c8a7325c524bebc854" +} diff --git a/rust/cloud-storage/.sqlx/query-be835e7de49553e947e0d265f8f681321d099febed2ed002dac6d706bf4ec173.json b/rust/cloud-storage/.sqlx/query-be835e7de49553e947e0d265f8f681321d099febed2ed002dac6d706bf4ec173.json new file mode 100644 index 0000000000..902514760f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-be835e7de49553e947e0d265f8f681321d099febed2ed002dac6d706bf4ec173.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n a.id AS attachment_db_id,\n m.provider_id as \"email_provider_id!\",\n a.provider_attachment_id as \"provider_attachment_id!\",\n a.filename as \"filename?\",\n a.mime_type as \"mime_type!\",\n m.internal_date_ts as \"internal_date_ts!\",\n m.id as message_db_id,\n m.thread_id as thread_db_id,\n from_contact.email_address as sender_email,\n m.subject as subject\n FROM email_attachments a\n JOIN email_messages m ON a.message_id = m.id\n JOIN email_contacts from_contact ON m.from_contact_id = from_contact.id\n JOIN email_threads t ON m.thread_id = t.id\n WHERE a.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "attachment_db_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email_provider_id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "provider_attachment_id!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "filename?", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "mime_type!", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "internal_date_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "message_db_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "thread_db_id", + "type_info": "Uuid" + }, + { + "ordinal": 8, + "name": "sender_email", + "type_info": "Varchar" + }, + { + "ordinal": 9, + "name": "subject", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + true, + true, + true, + true, + false, + false, + false, + true + ] + }, + "hash": "be835e7de49553e947e0d265f8f681321d099febed2ed002dac6d706bf4ec173" +} diff --git a/rust/cloud-storage/.sqlx/query-bec08349f3e01393e7e83846f1ca4077390d22923bff328a9d8a24275832a57d.json b/rust/cloud-storage/.sqlx/query-bec08349f3e01393e7e83846f1ca4077390d22923bff328a9d8a24275832a57d.json new file mode 100644 index 0000000000..fdce5f7ae8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bec08349f3e01393e7e83846f1ca4077390d22923bff328a9d8a24275832a57d.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"macro_user_email_verification\" (\"macro_user_id\", \"email\", \"is_verified\")\n VALUES ($1, $2, $3)\n ON CONFLICT (\"email\") DO UPDATE SET \"macro_user_id\" = $1, \"is_verified\" = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "bec08349f3e01393e7e83846f1ca4077390d22923bff328a9d8a24275832a57d" +} diff --git a/rust/cloud-storage/.sqlx/query-bf1d580e15f077862173d3efc800666d9fc7e79b8fa8619ba43bd1315c506e0b.json b/rust/cloud-storage/.sqlx/query-bf1d580e15f077862173d3efc800666d9fc7e79b8fa8619ba43bd1315c506e0b.json new file mode 100644 index 0000000000..9eaff6b6b7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bf1d580e15f077862173d3efc800666d9fc7e79b8fa8619ba43bd1315c506e0b.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Chat\"\n WHERE id = ANY($1)", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "bf1d580e15f077862173d3efc800666d9fc7e79b8fa8619ba43bd1315c506e0b" +} diff --git a/rust/cloud-storage/.sqlx/query-bf308be1e802f2f6552a6bd0282ae985dfb1a3fc738532eca74c6b098c6772c0.json b/rust/cloud-storage/.sqlx/query-bf308be1e802f2f6552a6bd0282ae985dfb1a3fc738532eca74c6b098c6772c0.json new file mode 100644 index 0000000000..2c1ef9427c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bf308be1e802f2f6552a6bd0282ae985dfb1a3fc738532eca74c6b098c6772c0.json @@ -0,0 +1,33 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE entity_properties\n SET values = $4, updated_at = NOW()\n WHERE entity_id = $1\n AND entity_type = $2\n AND property_definition_id = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + }, + "Uuid", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "bf308be1e802f2f6552a6bd0282ae985dfb1a3fc738532eca74c6b098c6772c0" +} diff --git a/rust/cloud-storage/.sqlx/query-bfd05323023ae02d10ecd01f6432a0b25cce4d43b63f05fd04b52860c482ffa3.json b/rust/cloud-storage/.sqlx/query-bfd05323023ae02d10ecd01f6432a0b25cce4d43b63f05fd04b52860c482ffa3.json new file mode 100644 index 0000000000..d7418fde11 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bfd05323023ae02d10ecd01f6432a0b25cce4d43b63f05fd04b52860c482ffa3.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE comms_channels\n SET updated_at = $2\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Timestamptz" + ] + }, + "nullable": [] + }, + "hash": "bfd05323023ae02d10ecd01f6432a0b25cce4d43b63f05fd04b52860c482ffa3" +} diff --git a/rust/cloud-storage/.sqlx/query-c0273bbd7b7c9e2cb5c3e62268ee09f925536086394de104bc823ad946851b0f.json b/rust/cloud-storage/.sqlx/query-c0273bbd7b7c9e2cb5c3e62268ee09f925536086394de104bc823ad946851b0f.json new file mode 100644 index 0000000000..78088bf7e9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c0273bbd7b7c9e2cb5c3e62268ee09f925536086394de104bc823ad946851b0f.json @@ -0,0 +1,30 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT ml.message_id, ml.label_id\n FROM email_message_labels ml\n JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = $1\n AND l.provider_label_id = $2\n AND l.link_id = $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "label_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "c0273bbd7b7c9e2cb5c3e62268ee09f925536086394de104bc823ad946851b0f" +} diff --git a/rust/cloud-storage/.sqlx/query-c07f82d525eeaafefce4b65769b2c750743ed9c04ca6ea8a5fd1a6d3a5fe2d17.json b/rust/cloud-storage/.sqlx/query-c07f82d525eeaafefce4b65769b2c750743ed9c04ca6ea8a5fd1a6d3a5fe2d17.json new file mode 100644 index 0000000000..03df2b01f3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c07f82d525eeaafefce4b65769b2c750743ed9c04ca6ea8a5fd1a6d3a5fe2d17.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n m.id \n FROM \n \"ChatMessage\" m\n JOIN \n \"Chat\" c on c.\"id\" = m.\"chatId\"\n WHERE\n \"userId\" = $1\n AND\n m.\"updatedAt\" <= $2\n AND \n m.\"updatedAt\" >= $3\n AND \n \"role\" = 'user'\n \n ORDER BY \n m.\"updatedAt\" DESC\n LIMIT \n $4\n OFFSET $5\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Timestamp", + "Timestamp", + "Int8", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c07f82d525eeaafefce4b65769b2c750743ed9c04ca6ea8a5fd1a6d3a5fe2d17" +} diff --git a/rust/cloud-storage/.sqlx/query-c08f7032873bddafca439eb4a7dcdeab60aed26e9025fde7ea45b89c4d2cb4ed.json b/rust/cloud-storage/.sqlx/query-c08f7032873bddafca439eb4a7dcdeab60aed26e9025fde7ea45b89c4d2cb4ed.json new file mode 100644 index 0000000000..351b1b820c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c08f7032873bddafca439eb4a7dcdeab60aed26e9025fde7ea45b89c4d2cb4ed.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE crm_companies\n SET email_sync = $3\n WHERE id = $1 AND team_id = $2\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Bool" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c08f7032873bddafca439eb4a7dcdeab60aed26e9025fde7ea45b89c4d2cb4ed" +} diff --git a/rust/cloud-storage/.sqlx/query-c0b0f58e6b2129250821f51fcb1ebe9d876c2e251f04f0aa9b1c0942d73a4e0d.json b/rust/cloud-storage/.sqlx/query-c0b0f58e6b2129250821f51fcb1ebe9d876c2e251f04f0aa9b1c0942d73a4e0d.json new file mode 100644 index 0000000000..658c35ffa3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c0b0f58e6b2129250821f51fcb1ebe9d876c2e251f04f0aa9b1c0942d73a4e0d.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n p.id,\n p.name,\n p.\"userId\" as user_id, -- createor of the project\n p.\"parentId\" as parent_id,\n p.\"createdAt\"::timestamptz as created_at,\n p.\"updatedAt\"::timestamptz as updated_at,\n p.\"deletedAt\"::timestamptz as deleted_at\n FROM \"UserHistory\" up\n INNER JOIN \"Project\" p ON up.\"itemId\" = p.id AND up.\"itemType\" = 'project'\n WHERE up.\"userId\" = $1 AND p.\"deletedAt\" IS NULL AND p.\"uploadPending\" = false\n ORDER BY p.\"updatedAt\" DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "parent_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + null, + null, + null + ] + }, + "hash": "c0b0f58e6b2129250821f51fcb1ebe9d876c2e251f04f0aa9b1c0942d73a4e0d" +} diff --git a/rust/cloud-storage/.sqlx/query-c0fe6e2c93305ff791d9386d987d4ea8bacc6cdb063fd8f18894c6b70b9cbd3c.json b/rust/cloud-storage/.sqlx/query-c0fe6e2c93305ff791d9386d987d4ea8bacc6cdb063fd8f18894c6b70b9cbd3c.json new file mode 100644 index 0000000000..6e51d8d6d6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c0fe6e2c93305ff791d9386d987d4ea8bacc6cdb063fd8f18894c6b70b9cbd3c.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT EXISTS(SELECT 1 FROM email_messages WHERE thread_id = $1) AS \"exists!\"", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "c0fe6e2c93305ff791d9386d987d4ea8bacc6cdb063fd8f18894c6b70b9cbd3c" +} diff --git a/rust/cloud-storage/.sqlx/query-c11f23488f780d7d26380775088aee0d8c1c9cf7cb28867dbdd96b7004a5d259.json b/rust/cloud-storage/.sqlx/query-c11f23488f780d7d26380775088aee0d8c1c9cf7cb28867dbdd96b7004a5d259.json new file mode 100644 index 0000000000..dbdf277f15 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c11f23488f780d7d26380775088aee0d8c1c9cf7cb28867dbdd96b7004a5d259.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"User\"\n WHERE id = $1\n AND EXISTS (SELECT 1 FROM promoted_shared_mailboxes WHERE macro_id = $1)\n RETURNING macro_user_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c11f23488f780d7d26380775088aee0d8c1c9cf7cb28867dbdd96b7004a5d259" +} diff --git a/rust/cloud-storage/.sqlx/query-c12b511f8fbe853ce8e5489db2468ee8a07030cb234bc0a10bc014c493b8e9c2.json b/rust/cloud-storage/.sqlx/query-c12b511f8fbe853ce8e5489db2468ee8a07030cb234bc0a10bc014c493b8e9c2.json new file mode 100644 index 0000000000..e2aa061544 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c12b511f8fbe853ce8e5489db2468ee8a07030cb234bc0a10bc014c493b8e9c2.json @@ -0,0 +1,31 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM entity_properties WHERE entity_id = $1 AND entity_type = $2", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "c12b511f8fbe853ce8e5489db2468ee8a07030cb234bc0a10bc014c493b8e9c2" +} diff --git a/rust/cloud-storage/.sqlx/query-c12b8985453ee1e1e49a06e2fa814dea634830b06660aef9661b820760a30768.json b/rust/cloud-storage/.sqlx/query-c12b8985453ee1e1e49a06e2fa814dea634830b06660aef9661b820760a30768.json new file mode 100644 index 0000000000..114ad91e23 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c12b8985453ee1e1e49a06e2fa814dea634830b06660aef9661b820760a30768.json @@ -0,0 +1,174 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n provider_id,\n global_id,\n thread_id,\n provider_thread_id,\n replying_to_id,\n link_id,\n provider_history_id,\n internal_date_ts,\n snippet,\n size_estimate,\n subject,\n from_name,\n from_contact_id,\n sent_at,\n has_attachments,\n is_read,\n is_starred,\n is_sent,\n is_draft,\n headers_jsonb,\n created_at,\n updated_at,\n -- No body attributes\n body_text as body_text,\n body_html_sanitized as body_html_sanitized,\n NULL::TEXT as body_macro\n FROM email_messages\n WHERE thread_id = $1\n ORDER BY internal_date_ts DESC NULLS LAST\n LIMIT $2 OFFSET $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 6, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 21, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 22, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 23, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 24, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 25, + "name": "body_macro", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + true, + false, + false, + true, + true, + null + ] + }, + "hash": "c12b8985453ee1e1e49a06e2fa814dea634830b06660aef9661b820760a30768" +} diff --git a/rust/cloud-storage/.sqlx/query-c12febd2112dc6065735c6e44d735684cd0163b2f71460d838be8eb16a25b7b6.json b/rust/cloud-storage/.sqlx/query-c12febd2112dc6065735c6e44d735684cd0163b2f71460d838be8eb16a25b7b6.json new file mode 100644 index 0000000000..4670c2e5dd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c12febd2112dc6065735c6e44d735684cd0163b2f71460d838be8eb16a25b7b6.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentBom\" (\"documentId\")\n VALUES ($1)\n RETURNING id, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + null, + null + ] + }, + "hash": "c12febd2112dc6065735c6e44d735684cd0163b2f71460d838be8eb16a25b7b6" +} diff --git a/rust/cloud-storage/.sqlx/query-c17d5fb574b826a4615cd339d550302bcd20260c4d2d82e49167e5c7c7e77958.json b/rust/cloud-storage/.sqlx/query-c17d5fb574b826a4615cd339d550302bcd20260c4d2d82e49167e5c7c7e77958.json new file mode 100644 index 0000000000..be9247eda4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c17d5fb574b826a4615cd339d550302bcd20260c4d2d82e49167e5c7c7e77958.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT\n \"tokenCount\" as token_count\n FROM\n \"DocumentText\"\n WHERE\n \"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "token_count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c17d5fb574b826a4615cd339d550302bcd20260c4d2d82e49167e5c7c7e77958" +} diff --git a/rust/cloud-storage/.sqlx/query-c18576c18caa0b7e23198ee55981cb8d7b9859dfe4272a92cbb29a4b64a1d695.json b/rust/cloud-storage/.sqlx/query-c18576c18caa0b7e23198ee55981cb8d7b9859dfe4272a92cbb29a4b64a1d695.json new file mode 100644 index 0000000000..f81d0eeecc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c18576c18caa0b7e23198ee55981cb8d7b9859dfe4272a92cbb29a4b64a1d695.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.name,\n d.owner\n FROM\n \"Document\" d\n WHERE\n d.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "c18576c18caa0b7e23198ee55981cb8d7b9859dfe4272a92cbb29a4b64a1d695" +} diff --git a/rust/cloud-storage/.sqlx/query-c1bc29d0f7278ed6a027978d51a6e15d8be6d62ead3408dc6641866a9230935d.json b/rust/cloud-storage/.sqlx/query-c1bc29d0f7278ed6a027978d51a6e15d8be6d62ead3408dc6641866a9230935d.json new file mode 100644 index 0000000000..8d3fe9e37e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c1bc29d0f7278ed6a027978d51a6e15d8be6d62ead3408dc6641866a9230935d.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Document\" d\n WHERE owner = $1 AND d.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "c1bc29d0f7278ed6a027978d51a6e15d8be6d62ead3408dc6641866a9230935d" +} diff --git a/rust/cloud-storage/.sqlx/query-c1ccd5b7d22222b5112aa06f6cb9d19523156de3b771696a069389e5a38cd51d.json b/rust/cloud-storage/.sqlx/query-c1ccd5b7d22222b5112aa06f6cb9d19523156de3b771696a069389e5a38cd51d.json new file mode 100644 index 0000000000..738f61d570 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c1ccd5b7d22222b5112aa06f6cb9d19523156de3b771696a069389e5a38cd51d.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO team_crm_settings (team_id)\n VALUES ($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "c1ccd5b7d22222b5112aa06f6cb9d19523156de3b771696a069389e5a38cd51d" +} diff --git a/rust/cloud-storage/.sqlx/query-c27077a4053c8a35ca011c5edaf08e3bf1c954b1773fcd2ecab33c2ba518ba34.json b/rust/cloud-storage/.sqlx/query-c27077a4053c8a35ca011c5edaf08e3bf1c954b1773fcd2ecab33c2ba518ba34.json new file mode 100644 index 0000000000..7efbc7703b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c27077a4053c8a35ca011c5edaf08e3bf1c954b1773fcd2ecab33c2ba518ba34.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT email\n FROM mobile_welcome_email\n WHERE email = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c27077a4053c8a35ca011c5edaf08e3bf1c954b1773fcd2ecab33c2ba518ba34" +} diff --git a/rust/cloud-storage/.sqlx/query-c2a48995144a813f912bbba9c9f5b91e1b413978e8262f7db56a6a27fa5ceaf0.json b/rust/cloud-storage/.sqlx/query-c2a48995144a813f912bbba9c9f5b91e1b413978e8262f7db56a6a27fa5ceaf0.json new file mode 100644 index 0000000000..c8aed48f72 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c2a48995144a813f912bbba9c9f5b91e1b413978e8262f7db56a6a27fa5ceaf0.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT c.id as comment_id\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n WHERE t.id = $1 AND c.\"deletedAt\" IS NULL\n ORDER BY c.\"order\", c.\"createdAt\" ASC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "comment_id", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c2a48995144a813f912bbba9c9f5b91e1b413978e8262f7db56a6a27fa5ceaf0" +} diff --git a/rust/cloud-storage/.sqlx/query-c2f19d911d10a576d01505d6da90f66fad4698c52efa69d3b4a03324c09b87a7.json b/rust/cloud-storage/.sqlx/query-c2f19d911d10a576d01505d6da90f66fad4698c52efa69d3b4a03324c09b87a7.json new file mode 100644 index 0000000000..0596339115 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c2f19d911d10a576d01505d6da90f66fad4698c52efa69d3b4a03324c09b87a7.json @@ -0,0 +1,65 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.\"id\" as \"item_id!\",\n c.\"createdAt\" as \"created_at!\",\n c.\"updatedAt\" as \"updated_at!\",\n c.\"deletedAt\" as \"deleted_at?\",\n uh.\"updatedAt\" as \"viewed_at?\",\n c.\"projectId\" as \"project_id?\",\n c.\"userId\" as \"user_id\",\n c.\"name\"\n FROM\n \"Chat\" c\n LEFT JOIN\n \"UserHistory\" uh ON uh.\"itemId\" = c.\"id\"\n AND uh.\"userId\" = $1\n AND uh.\"itemType\" = 'chat'\n WHERE\n c.\"id\" = ANY($2)\n ORDER BY\n c.\"updatedAt\" DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "created_at!", + "type_info": "Timestamp" + }, + { + "ordinal": 2, + "name": "updated_at!", + "type_info": "Timestamp" + }, + { + "ordinal": 3, + "name": "deleted_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "viewed_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "project_id?", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + true, + false, + false + ] + }, + "hash": "c2f19d911d10a576d01505d6da90f66fad4698c52efa69d3b4a03324c09b87a7" +} diff --git a/rust/cloud-storage/.sqlx/query-c30711e82376ca92d1e4e346334517c98cfa67d86663cd13575bec99ee24c785.json b/rust/cloud-storage/.sqlx/query-c30711e82376ca92d1e4e346334517c98cfa67d86663cd13575bec99ee24c785.json new file mode 100644 index 0000000000..8a8e0cd1b2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c30711e82376ca92d1e4e346334517c98cfa67d86663cd13575bec99ee24c785.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, channel_id, room_name, created_by, created_at, egress_id, recording_key, preview_url, recording_started_at, share_with_team\n FROM calls\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "room_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_by", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "egress_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "recording_key", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "preview_url", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "recording_started_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "share_with_team", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + true, + true, + true, + false + ] + }, + "hash": "c30711e82376ca92d1e4e346334517c98cfa67d86663cd13575bec99ee24c785" +} diff --git a/rust/cloud-storage/.sqlx/query-c33f85b35573916eb380c8b6069939087fbd3b34b296b546a34cdfc3e7c9eee0.json b/rust/cloud-storage/.sqlx/query-c33f85b35573916eb380c8b6069939087fbd3b34b296b546a34cdfc3e7c9eee0.json new file mode 100644 index 0000000000..9da8336f8e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c33f85b35573916eb380c8b6069939087fbd3b34b296b546a34cdfc3e7c9eee0.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_message_recipients\n WHERE message_id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "c33f85b35573916eb380c8b6069939087fbd3b34b296b546a34cdfc3e7c9eee0" +} diff --git a/rust/cloud-storage/.sqlx/query-c370c41d4e1fd496016a5689da4ca6dd9e6af7a364499871944691b3dfee5a09.json b/rust/cloud-storage/.sqlx/query-c370c41d4e1fd496016a5689da4ca6dd9e6af7a364499871944691b3dfee5a09.json new file mode 100644 index 0000000000..f8ee410a86 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c370c41d4e1fd496016a5689da4ca6dd9e6af7a364499871944691b3dfee5a09.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE calls\n SET recording_started_at = $1\n WHERE id = $2\n AND (\n recording_started_at IS NULL\n OR recording_started_at = date_trunc('second', recording_started_at)\n OR $1 < recording_started_at\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Timestamptz", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "c370c41d4e1fd496016a5689da4ca6dd9e6af7a364499871944691b3dfee5a09" +} diff --git a/rust/cloud-storage/.sqlx/query-c396a4e1c32ab75bdb9a1bb4b3bb0f550620554bab6862d4ec9731236c227cfc.json b/rust/cloud-storage/.sqlx/query-c396a4e1c32ab75bdb9a1bb4b3bb0f550620554bab6862d4ec9731236c227cfc.json new file mode 100644 index 0000000000..e61663ad16 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c396a4e1c32ab75bdb9a1bb4b3bb0f550620554bab6862d4ec9731236c227cfc.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT plan as \"plan?: TeamPlan\"\n FROM team\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "plan?: TeamPlan", + "type_info": { + "Custom": { + "name": "team_plan", + "kind": { + "Enum": [ + "idea", + "pre_seed", + "seed", + "series_a", + "growth" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + true + ] + }, + "hash": "c396a4e1c32ab75bdb9a1bb4b3bb0f550620554bab6862d4ec9731236c227cfc" +} diff --git a/rust/cloud-storage/.sqlx/query-c3f9152d242ae679d87961e306f319ac0035e078be790795eed823a95095c7cc.json b/rust/cloud-storage/.sqlx/query-c3f9152d242ae679d87961e306f319ac0035e078be790795eed823a95095c7cc.json new file mode 100644 index 0000000000..736ecd78b6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c3f9152d242ae679d87961e306f319ac0035e078be790795eed823a95095c7cc.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, \"organizationId\" as \"organization_id?\"\n FROM \"User\"\n WHERE \"macro_user_id\" = $1\n AND email = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "organization_id?", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "c3f9152d242ae679d87961e306f319ac0035e078be790795eed823a95095c7cc" +} diff --git a/rust/cloud-storage/.sqlx/query-c4116c441fc76ecc39a9db7c29da7b5a952ef5031c2737d084da33a24af2c8ad.json b/rust/cloud-storage/.sqlx/query-c4116c441fc76ecc39a9db7c29da7b5a952ef5031c2737d084da33a24af2c8ad.json new file mode 100644 index 0000000000..d80f30ce43 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c4116c441fc76ecc39a9db7c29da7b5a952ef5031c2737d084da33a24af2c8ad.json @@ -0,0 +1,82 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n call_record_id,\n segment_id,\n speaker_id,\n diarized_speaker_id,\n custom_speaker,\n voice_id,\n content,\n started_at,\n ended_at,\n sequence_num\n FROM call_record_transcripts\n WHERE call_record_id = $1\n ORDER BY sequence_num ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "call_record_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "segment_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "speaker_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "diarized_speaker_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "custom_speaker", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "voice_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "started_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "ended_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "sequence_num", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + true, + false, + true, + true, + true, + false, + false, + true, + false + ] + }, + "hash": "c4116c441fc76ecc39a9db7c29da7b5a952ef5031c2737d084da33a24af2c8ad" +} diff --git a/rust/cloud-storage/.sqlx/query-c415f922985187174693b51466423fa1d2ed8c301776a9778c4947a9d84590e1.json b/rust/cloud-storage/.sqlx/query-c415f922985187174693b51466423fa1d2ed8c301776a9778c4947a9d84590e1.json new file mode 100644 index 0000000000..69b4971298 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c415f922985187174693b51466423fa1d2ed8c301776a9778c4947a9d84590e1.json @@ -0,0 +1,79 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Comment\" AS c \n (\"threadId\", \"owner\", \"text\", \"metadata\")\n VALUES ($1, $2, $3, $4)\n RETURNING\n c.id as comment_id, \n c.\"threadId\" as thread_id, \n c.owner, \n c.sender, \n c.text, \n c.metadata, \n c.\"createdAt\"::timestamptz as created_at, \n c.\"updatedAt\"::timestamptz as updated_at, \n c.\"deletedAt\"::timestamptz as deleted_at, \n c.order\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "comment_id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "sender", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "text", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "order", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8", + "Text", + "Text", + "Jsonb" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + true, + null, + null, + null, + true + ] + }, + "hash": "c415f922985187174693b51466423fa1d2ed8c301776a9778c4947a9d84590e1" +} diff --git a/rust/cloud-storage/.sqlx/query-c449c7237e08cf511f7bc2182d62e12e2aaff653c37f79cd3feb22ea4b849ea6.json b/rust/cloud-storage/.sqlx/query-c449c7237e08cf511f7bc2182d62e12e2aaff653c37f79cd3feb22ea4b849ea6.json new file mode 100644 index 0000000000..7f2a36f19f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c449c7237e08cf511f7bc2182d62e12e2aaff653c37f79cd3feb22ea4b849ea6.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id as \"call_id!\",\n channel_id as \"channel_id!\",\n created_at as \"started_at!\",\n NULL::timestamptz as \"ended_at\",\n NULL::text as \"custom_name\"\n FROM calls\n WHERE id = ANY($1)\n UNION ALL\n SELECT\n id as \"call_id!\",\n channel_id as \"channel_id!\",\n started_at as \"started_at!\",\n ended_at as \"ended_at\",\n custom_name as \"custom_name\"\n FROM call_records\n WHERE id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "call_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id!", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "started_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "ended_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "custom_name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + null, + null, + null, + null, + null + ] + }, + "hash": "c449c7237e08cf511f7bc2182d62e12e2aaff653c37f79cd3feb22ea4b849ea6" +} diff --git a/rust/cloud-storage/.sqlx/query-c4d2fed1a0fb95c20ef9b4049cc5cacfb7f0a441c630528d2cde076211ff63f9.json b/rust/cloud-storage/.sqlx/query-c4d2fed1a0fb95c20ef9b4049cc5cacfb7f0a441c630528d2cde076211ff63f9.json new file mode 100644 index 0000000000..93c23384d7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c4d2fed1a0fb95c20ef9b4049cc5cacfb7f0a441c630528d2cde076211ff63f9.json @@ -0,0 +1,54 @@ +{ + "db_name": "PostgreSQL", + "query": "INSERT INTO email_filters (link_id, email_domain, is_important)\n VALUES ($1, $2, $3)\n ON CONFLICT (link_id, lower(email_domain)) WHERE email_domain IS NOT NULL\n DO UPDATE SET is_important = EXCLUDED.is_important\n RETURNING id, link_id, email_address, email_domain, is_important, created_at", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "email_domain", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "is_important", + "type_info": "Bool" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Varchar", + "Bool" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + false + ] + }, + "hash": "c4d2fed1a0fb95c20ef9b4049cc5cacfb7f0a441c630528d2cde076211ff63f9" +} diff --git a/rust/cloud-storage/.sqlx/query-c50d0f6d2aa615856bba86ac8460b637539f28a5e8644f0467eca7efdb06e387.json b/rust/cloud-storage/.sqlx/query-c50d0f6d2aa615856bba86ac8460b637539f28a5e8644f0467eca7efdb06e387.json new file mode 100644 index 0000000000..e8d1d08574 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c50d0f6d2aa615856bba86ac8460b637539f28a5e8644f0467eca7efdb06e387.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT name\n FROM team\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c50d0f6d2aa615856bba86ac8460b637539f28a5e8644f0467eca7efdb06e387" +} diff --git a/rust/cloud-storage/.sqlx/query-c5196bb88afe2d67ce0a4fe7eb2c23db0321cc59a5abd6f7f714b0333ca87613.json b/rust/cloud-storage/.sqlx/query-c5196bb88afe2d67ce0a4fe7eb2c23db0321cc59a5abd6f7f714b0333ca87613.json new file mode 100644 index 0000000000..34d7bb06c4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c5196bb88afe2d67ce0a4fe7eb2c23db0321cc59a5abd6f7f714b0333ca87613.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT referrer_id FROM referral_tracking WHERE referred_id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "referrer_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c5196bb88afe2d67ce0a4fe7eb2c23db0321cc59a5abd6f7f714b0333ca87613" +} diff --git a/rust/cloud-storage/.sqlx/query-c59c1f638ad1ff78414fdb6733442120d6333b8c605f6da5b748951d9561c1f9.json b/rust/cloud-storage/.sqlx/query-c59c1f638ad1ff78414fdb6733442120d6333b8c605f6da5b748951d9561c1f9.json new file mode 100644 index 0000000000..8097b5691b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c59c1f638ad1ff78414fdb6733442120d6333b8c605f6da5b748951d9561c1f9.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE comms_channel_participants\n SET left_at = now()\n WHERE channel_id = $1\n AND user_id = $2\n AND left_at IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "c59c1f638ad1ff78414fdb6733442120d6333b8c605f6da5b748951d9561c1f9" +} diff --git a/rust/cloud-storage/.sqlx/query-c5b5b22cfde385f2d03eebbf25a1f08e02d42d09810994f84a250e2f43cc5acf.json b/rust/cloud-storage/.sqlx/query-c5b5b22cfde385f2d03eebbf25a1f08e02d42d09810994f84a250e2f43cc5acf.json new file mode 100644 index 0000000000..8b087037ad --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c5b5b22cfde385f2d03eebbf25a1f08e02d42d09810994f84a250e2f43cc5acf.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.\"documentId\" as \"document_id\",\n d.content as \"content\",\n d.\"tokenCount\" as \"token_count\"\n FROM\n \"DocumentText\" d\n WHERE\n d.\"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "token_count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "c5b5b22cfde385f2d03eebbf25a1f08e02d42d09810994f84a250e2f43cc5acf" +} diff --git a/rust/cloud-storage/.sqlx/query-c5d7f14d70f0de5fd07ae24e50441f5a5dd574ae4492f2adebd98021dbaab771.json b/rust/cloud-storage/.sqlx/query-c5d7f14d70f0de5fd07ae24e50441f5a5dd574ae4492f2adebd98021dbaab771.json new file mode 100644 index 0000000000..fd366fd300 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c5d7f14d70f0de5fd07ae24e50441f5a5dd574ae4492f2adebd98021dbaab771.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, name, channel_type as \"channel_type!: ChannelType\"\n FROM comms_channels\n WHERE id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "channel_type!: ChannelType", + "type_info": { + "Custom": { + "name": "comms_channel_type", + "kind": { + "Enum": [ + "public", + "private", + "direct_message", + "team" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + true, + false + ] + }, + "hash": "c5d7f14d70f0de5fd07ae24e50441f5a5dd574ae4492f2adebd98021dbaab771" +} diff --git a/rust/cloud-storage/.sqlx/query-c5e833a5efdd06f446538cca125c29318b92959b2ddab117bfd98273a45d1838.json b/rust/cloud-storage/.sqlx/query-c5e833a5efdd06f446538cca125c29318b92959b2ddab117bfd98273a45d1838.json new file mode 100644 index 0000000000..2c03184e20 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c5e833a5efdd06f446538cca125c29318b92959b2ddab117bfd98273a45d1838.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE team\n SET plan = $2\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + { + "Custom": { + "name": "team_plan", + "kind": { + "Enum": [ + "idea", + "pre_seed", + "seed", + "series_a", + "growth" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "c5e833a5efdd06f446538cca125c29318b92959b2ddab117bfd98273a45d1838" +} diff --git a/rust/cloud-storage/.sqlx/query-c621293c78043e724b4e44f821ef3cc9e4d74a48075918e24327172256a5ad15.json b/rust/cloud-storage/.sqlx/query-c621293c78043e724b4e44f821ef3cc9e4d74a48075918e24327172256a5ad15.json new file mode 100644 index 0000000000..0b73aaff33 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c621293c78043e724b4e44f821ef3cc9e4d74a48075918e24327172256a5ad15.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO macro_user (id, username, stripe_customer_id, email)\n VALUES ($1, $2, $3, $4)\n ON CONFLICT (\"id\") DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "c621293c78043e724b4e44f821ef3cc9e4d74a48075918e24327172256a5ad15" +} diff --git a/rust/cloud-storage/.sqlx/query-c631a415b25cf9edaf194dc022a044463339682b132e007d56eae675e4795169.json b/rust/cloud-storage/.sqlx/query-c631a415b25cf9edaf194dc022a044463339682b132e007d56eae675e4795169.json new file mode 100644 index 0000000000..b5f354e820 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c631a415b25cf9edaf194dc022a044463339682b132e007d56eae675e4795169.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_scheduled_messages\n SET\n processing = false,\n updated_at = NOW()\n WHERE link_id = $1 AND message_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "c631a415b25cf9edaf194dc022a044463339682b132e007d56eae675e4795169" +} diff --git a/rust/cloud-storage/.sqlx/query-c6908e8ef1c196e7785bcc4f1e07c57d66ad08be04685ac40956a2d7d7b396af.json b/rust/cloud-storage/.sqlx/query-c6908e8ef1c196e7785bcc4f1e07c57d66ad08be04685ac40956a2d7d7b396af.json new file mode 100644 index 0000000000..221d0a3073 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c6908e8ef1c196e7785bcc4f1e07c57d66ad08be04685ac40956a2d7d7b396af.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id FROM \"User\" WHERE email = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c6908e8ef1c196e7785bcc4f1e07c57d66ad08be04685ac40956a2d7d7b396af" +} diff --git a/rust/cloud-storage/.sqlx/query-c6a0afdba2b194e96e3b51935deeeca109ccd45ecae97f97cb61bd9fdd7c470a.json b/rust/cloud-storage/.sqlx/query-c6a0afdba2b194e96e3b51935deeeca109ccd45ecae97f97cb61bd9fdd7c470a.json new file mode 100644 index 0000000000..833a22de08 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c6a0afdba2b194e96e3b51935deeeca109ccd45ecae97f97cb61bd9fdd7c470a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT pp.\"sharePermissionId\" as id\n FROM \"ProjectPermission\" pp\n WHERE\n pp.\"projectId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c6a0afdba2b194e96e3b51935deeeca109ccd45ecae97f97cb61bd9fdd7c470a" +} diff --git a/rust/cloud-storage/.sqlx/query-c6aec8f042b91f510b47cc9cf9a48ab072c216515c897a4a1e10f310cc63b4c4.json b/rust/cloud-storage/.sqlx/query-c6aec8f042b91f510b47cc9cf9a48ab072c216515c897a4a1e10f310cc63b4c4.json new file mode 100644 index 0000000000..9979d4d6f7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c6aec8f042b91f510b47cc9cf9a48ab072c216515c897a4a1e10f310cc63b4c4.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ItemLastAccessed\" (\"item_id\", \"item_type\", \"last_accessed\")\n VALUES ($1, $2, $3)\n ON CONFLICT (\"item_id\", \"item_type\") DO UPDATE\n SET \"last_accessed\" = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Timestamp" + ] + }, + "nullable": [] + }, + "hash": "c6aec8f042b91f510b47cc9cf9a48ab072c216515c897a4a1e10f310cc63b4c4" +} diff --git a/rust/cloud-storage/.sqlx/query-c6f8bb6a2a9cda820cf54efb5e4ff8b048d735cfcc23716612f2ee66a8c7151c.json b/rust/cloud-storage/.sqlx/query-c6f8bb6a2a9cda820cf54efb5e4ff8b048d735cfcc23716612f2ee66a8c7151c.json new file mode 100644 index 0000000000..c6b12842de --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c6f8bb6a2a9cda820cf54efb5e4ff8b048d735cfcc23716612f2ee66a8c7151c.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM property_options WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "c6f8bb6a2a9cda820cf54efb5e4ff8b048d735cfcc23716612f2ee66a8c7151c" +} diff --git a/rust/cloud-storage/.sqlx/query-c707e1d4017c4ab2983364705b6ea9b62060b16ba2e7714d5690cc8311a5e201.json b/rust/cloud-storage/.sqlx/query-c707e1d4017c4ab2983364705b6ea9b62060b16ba2e7714d5690cc8311a5e201.json new file mode 100644 index 0000000000..2fc62a4bdc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c707e1d4017c4ab2983364705b6ea9b62060b16ba2e7714d5690cc8311a5e201.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT share_permission_id as \"share_permission_id!\"\n FROM (\n SELECT share_permission_id FROM calls WHERE id = $1\n UNION ALL\n SELECT share_permission_id FROM call_records WHERE id = $1\n ) t\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "c707e1d4017c4ab2983364705b6ea9b62060b16ba2e7714d5690cc8311a5e201" +} diff --git a/rust/cloud-storage/.sqlx/query-c7499a6777186567833a23df8df39fd871328de140968ba50c3db3a30cd3f520.json b/rust/cloud-storage/.sqlx/query-c7499a6777186567833a23df8df39fd871328de140968ba50c3db3a30cd3f520.json new file mode 100644 index 0000000000..bdc0ab08a8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c7499a6777186567833a23df8df39fd871328de140968ba50c3db3a30cd3f520.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT mui.profile_picture as \"profile_picture!\"\n FROM \"User\" u\n JOIN macro_user mu ON mu.id = u.macro_user_id\n JOIN macro_user_info mui ON mui.macro_user_id = mu.id\n WHERE u.id = $1\n AND mui.profile_picture IS NOT NULL\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "profile_picture!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true + ] + }, + "hash": "c7499a6777186567833a23df8df39fd871328de140968ba50c3db3a30cd3f520" +} diff --git a/rust/cloud-storage/.sqlx/query-c77469ffc5cc502c63d2ecb76a8578d085a7aec81551a38aa0c14b8e20491e3e.json b/rust/cloud-storage/.sqlx/query-c77469ffc5cc502c63d2ecb76a8578d085a7aec81551a38aa0c14b8e20491e3e.json new file mode 100644 index 0000000000..1ebd795f6e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c77469ffc5cc502c63d2ecb76a8578d085a7aec81551a38aa0c14b8e20491e3e.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT team_id\n FROM team_user\n WHERE user_id = $1\n ORDER BY team_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "team_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c77469ffc5cc502c63d2ecb76a8578d085a7aec81551a38aa0c14b8e20491e3e" +} diff --git a/rust/cloud-storage/.sqlx/query-c777a32bdb434216895e8011885c8fa8858a6c5470f1c921ab0265cf7d1c9b2a.json b/rust/cloud-storage/.sqlx/query-c777a32bdb434216895e8011885c8fa8858a6c5470f1c921ab0265cf7d1c9b2a.json new file mode 100644 index 0000000000..00c9ed9c51 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c777a32bdb434216895e8011885c8fa8858a6c5470f1c921ab0265cf7d1c9b2a.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS (\n SELECT 1 FROM crm_companies\n WHERE id = $1\n AND team_id = $2\n AND ($3 OR hidden = FALSE)\n ) AS \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Bool" + ] + }, + "nullable": [ + null + ] + }, + "hash": "c777a32bdb434216895e8011885c8fa8858a6c5470f1c921ab0265cf7d1c9b2a" +} diff --git a/rust/cloud-storage/.sqlx/query-c78296b868c8a8657e5c2296049fa4809abee07e9fd473a5e9ae00ad8625a108.json b/rust/cloud-storage/.sqlx/query-c78296b868c8a8657e5c2296049fa4809abee07e9fd473a5e9ae00ad8625a108.json new file mode 100644 index 0000000000..5cd49428ff --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c78296b868c8a8657e5c2296049fa4809abee07e9fd473a5e9ae00ad8625a108.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE \"Chat\" SET \"name\" = $1 WHERE id = $2", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "c78296b868c8a8657e5c2296049fa4809abee07e9fd473a5e9ae00ad8625a108" +} diff --git a/rust/cloud-storage/.sqlx/query-c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89.json b/rust/cloud-storage/.sqlx/query-c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89.json new file mode 100644 index 0000000000..fe3708f959 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Chat\"\n WHERE \"userId\" = $1 AND \"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89" +} diff --git a/rust/cloud-storage/.sqlx/query-c7c058fd3acdc93e77a805b28b844150503f955a91339be026f8b68f65092adb.json b/rust/cloud-storage/.sqlx/query-c7c058fd3acdc93e77a805b28b844150503f955a91339be026f8b68f65092adb.json new file mode 100644 index 0000000000..b25657bb43 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c7c058fd3acdc93e77a805b28b844150503f955a91339be026f8b68f65092adb.json @@ -0,0 +1,84 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id AS \"company_id!\",\n c.team_id AS \"company_team_id!\",\n c.email_sync AS \"company_email_sync!\",\n c.hidden AS \"company_hidden!\",\n c.first_interaction AS \"company_created_at!\",\n c.last_interaction AS \"company_updated_at!\",\n d.id AS \"domain_id?\",\n d.domain AS \"domain?\",\n d.created_at AS \"domain_created_at?\",\n dd.name AS \"dir_name?\",\n dd.description AS \"dir_description?\"\n FROM crm_companies c\n LEFT JOIN crm_domains d ON d.company_id = c.id\n LEFT JOIN crm_domain_directory dd\n ON LOWER(dd.domain) = LOWER(d.domain)\n WHERE c.id = $1\n AND c.team_id = $2\n AND ($3 OR c.hidden = FALSE)\n ORDER BY d.created_at ASC NULLS LAST\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "company_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "company_team_id!", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "company_email_sync!", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "company_hidden!", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "company_created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "company_updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "domain_id?", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "domain?", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "domain_created_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "dir_name?", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "dir_description?", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Bool" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true + ] + }, + "hash": "c7c058fd3acdc93e77a805b28b844150503f955a91339be026f8b68f65092adb" +} diff --git a/rust/cloud-storage/.sqlx/query-c8569a737734eab039a3ca9759478b203596330442305a6f3925edf67a8b52a3.json b/rust/cloud-storage/.sqlx/query-c8569a737734eab039a3ca9759478b203596330442305a6f3925edf67a8b52a3.json new file mode 100644 index 0000000000..dec05aa8a8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c8569a737734eab039a3ca9759478b203596330442305a6f3925edf67a8b52a3.json @@ -0,0 +1,84 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, macro_id, fusionauth_user_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at\n FROM email_links\n WHERE fusionauth_user_id = $1 AND macro_id = $2 AND provider = $3\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "provider: _", + "type_info": { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_sync_active", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "c8569a737734eab039a3ca9759478b203596330442305a6f3925edf67a8b52a3" +} diff --git a/rust/cloud-storage/.sqlx/query-c858541d6cbadae374ef95f2c69a582d76bd73ae439d3d3e6f1cf4e482b9ff55.json b/rust/cloud-storage/.sqlx/query-c858541d6cbadae374ef95f2c69a582d76bd73ae439d3d3e6f1cf4e482b9ff55.json new file mode 100644 index 0000000000..b67166da2e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c858541d6cbadae374ef95f2c69a582d76bd73ae439d3d3e6f1cf4e482b9ff55.json @@ -0,0 +1,112 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n pa.uuid, \n pa.\"documentId\" as document_id, \n pa.owner, \n pa.\"threadId\" as thread_id, \n pa.page, \n pa.\"originalPage\" as original_page, \n pa.\"originalIndex\" as original_index, \n pa.\"xPct\" as x_pct, \n pa.\"yPct\" as y_pct, \n pa.\"widthPct\" as width_pct, \n pa.\"heightPct\" as height_pct,\n pa.rotation, \n pa.\"allowableEdits\" as allowable_edits,\n pa.\"wasEdited\" as was_edited,\n pa.\"wasDeleted\" as was_deleted,\n pa.\"shouldLockOnSave\" as should_lock_on_save\n FROM \"PdfPlaceableCommentAnchor\" pa\n JOIN \"Thread\" t ON pa.\"threadId\" = t.id\n WHERE pa.\"documentId\" = $1\n AND t.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "page", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "original_page", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "original_index", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "x_pct", + "type_info": "Float8" + }, + { + "ordinal": 8, + "name": "y_pct", + "type_info": "Float8" + }, + { + "ordinal": 9, + "name": "width_pct", + "type_info": "Float8" + }, + { + "ordinal": 10, + "name": "height_pct", + "type_info": "Float8" + }, + { + "ordinal": 11, + "name": "rotation", + "type_info": "Float8" + }, + { + "ordinal": 12, + "name": "allowable_edits", + "type_info": "Jsonb" + }, + { + "ordinal": 13, + "name": "was_edited", + "type_info": "Bool" + }, + { + "ordinal": 14, + "name": "was_deleted", + "type_info": "Bool" + }, + { + "ordinal": 15, + "name": "should_lock_on_save", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false + ] + }, + "hash": "c858541d6cbadae374ef95f2c69a582d76bd73ae439d3d3e6f1cf4e482b9ff55" +} diff --git a/rust/cloud-storage/.sqlx/query-c8dac77aedb5609a57ce5ee03d97f7e3c28fa0e94f2563e99d82f306cf6530e5.json b/rust/cloud-storage/.sqlx/query-c8dac77aedb5609a57ce5ee03d97f7e3c28fa0e94f2563e99d82f306cf6530e5.json new file mode 100644 index 0000000000..31ebb1fc30 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c8dac77aedb5609a57ce5ee03d97f7e3c28fa0e94f2563e99d82f306cf6530e5.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\nDELETE FROM \"PdfHighlightAnchor\" WHERE \"documentId\" = $1;\n", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "c8dac77aedb5609a57ce5ee03d97f7e3c28fa0e94f2563e99d82f306cf6530e5" +} diff --git a/rust/cloud-storage/.sqlx/query-c8e8b950c4f8645562fb36042b549b0c1f6ec3da1b9beb4d212ddd5bc640948e.json b/rust/cloud-storage/.sqlx/query-c8e8b950c4f8645562fb36042b549b0c1f6ec3da1b9beb4d212ddd5bc640948e.json new file mode 100644 index 0000000000..c15673d65f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c8e8b950c4f8645562fb36042b549b0c1f6ec3da1b9beb4d212ddd5bc640948e.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, draft_id, file_name, content_type, sha, size, s3_key\n FROM email_attachments_drafts\n WHERE draft_id = ANY($1)\n ORDER BY draft_id, file_name ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "draft_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "file_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content_type", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "size", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "s3_key", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "c8e8b950c4f8645562fb36042b549b0c1f6ec3da1b9beb4d212ddd5bc640948e" +} diff --git a/rust/cloud-storage/.sqlx/query-c922ac06eee1109006d3bf676ab8b8341b10cfee0b725409138cfdde038712aa.json b/rust/cloud-storage/.sqlx/query-c922ac06eee1109006d3bf676ab8b8341b10cfee0b725409138cfdde038712aa.json new file mode 100644 index 0000000000..29b18e9923 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c922ac06eee1109006d3bf676ab8b8341b10cfee0b725409138cfdde038712aa.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Thread\"\n SET \"deletedAt\" = NOW()\n WHERE id = $1 and \"deletedAt\" IS NULL\n RETURNING \"deletedAt\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "deletedAt", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + true + ] + }, + "hash": "c922ac06eee1109006d3bf676ab8b8341b10cfee0b725409138cfdde038712aa" +} diff --git a/rust/cloud-storage/.sqlx/query-c9fce1ac31e4e4f9992809c650e85fe45f4dc1e66d4b5a846c734b308c74fa70.json b/rust/cloud-storage/.sqlx/query-c9fce1ac31e4e4f9992809c650e85fe45f4dc1e66d4b5a846c734b308c74fa70.json new file mode 100644 index 0000000000..452e680e85 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c9fce1ac31e4e4f9992809c650e85fe45f4dc1e66d4b5a846c734b308c74fa70.json @@ -0,0 +1,129 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as \"document_id\",\n d.owner as \"owner\",\n d.name as \"document_name\",\n COALESCE(di.id, db.id) as \"document_version_id!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"fileType\" as \"file_type\",\n db.bom_parts as \"document_bom?\",\n di.modification_data as \"modification_data?\",\n d.\"projectId\" as \"project_id?\",\n p.name as \"project_name?\",\n di.sha as \"sha?\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"deletedAt\"::timestamptz as deleted_at\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.sha,\n i.\"createdAt\",\n (\n SELECT\n imod.\"modificationData\"\n FROM\n \"DocumentInstanceModificationData\" imod\n WHERE\n imod.\"documentInstanceId\" = i.id\n ) as modification_data,\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n AND\n i.id = $2\n ) di ON true\n LEFT JOIN LATERAL (\n SELECT\n b.id,\n (\n SELECT\n json_agg(\n json_build_object(\n 'id', bp.id,\n 'sha', bp.sha,\n 'path', bp.path\n )\n )\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = b.id\n ) as bom_parts\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n AND\n b.id = $2\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n p.name\n FROM \"Project\" p\n WHERE p.id = d.\"projectId\"\n ) p ON d.\"projectId\" IS NOT NULL\n WHERE\n d.id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "document_version_id!", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "document_bom?", + "type_info": "Json" + }, + { + "ordinal": 11, + "name": "modification_data?", + "type_info": "Jsonb" + }, + { + "ordinal": 12, + "name": "project_id?", + "type_info": "Text" + }, + { + "ordinal": 13, + "name": "project_name?", + "type_info": "Text" + }, + { + "ordinal": 14, + "name": "sha?", + "type_info": "Text" + }, + { + "ordinal": 15, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 16, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + null, + true, + true, + true, + null, + null, + true, + null, + null, + true, + false, + false, + false, + null + ] + }, + "hash": "c9fce1ac31e4e4f9992809c650e85fe45f4dc1e66d4b5a846c734b308c74fa70" +} diff --git a/rust/cloud-storage/.sqlx/query-c9ff8e2deb86a25e4e0e16c9de66a5c116b68362ec45ffea5e2b25d86cfccf01.json b/rust/cloud-storage/.sqlx/query-c9ff8e2deb86a25e4e0e16c9de66a5c116b68362ec45ffea5e2b25d86cfccf01.json new file mode 100644 index 0000000000..186691e7f3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-c9ff8e2deb86a25e4e0e16c9de66a5c116b68362ec45ffea5e2b25d86cfccf01.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE \"Chat\" SET \"updatedAt\" = NOW() WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "c9ff8e2deb86a25e4e0e16c9de66a5c116b68362ec45ffea5e2b25d86cfccf01" +} diff --git a/rust/cloud-storage/.sqlx/query-cac5e246875c3539f7a03cee8271708be47a56582c2f0323716f206ab905a580.json b/rust/cloud-storage/.sqlx/query-cac5e246875c3539f7a03cee8271708be47a56582c2f0323716f206ab905a580.json new file mode 100644 index 0000000000..ddcaf87146 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cac5e246875c3539f7a03cee8271708be47a56582c2f0323716f206ab905a580.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT cp.channel_id::text FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "cac5e246875c3539f7a03cee8271708be47a56582c2f0323716f206ab905a580" +} diff --git a/rust/cloud-storage/.sqlx/query-cb37182733a71e6939495eb29d0ab6544c02094129fc9c7e921dd5280d78047a.json b/rust/cloud-storage/.sqlx/query-cb37182733a71e6939495eb29d0ab6544c02094129fc9c7e921dd5280d78047a.json new file mode 100644 index 0000000000..6213530d30 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cb37182733a71e6939495eb29d0ab6544c02094129fc9c7e921dd5280d78047a.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.\"content\"\n FROM \"DocumentProcessResult\" d\n JOIN \"JobToDocumentProcessResult\" j ON d.id = j.\"documentProcessResultId\"\n WHERE j.\"jobId\" = $1 AND d.\"documentId\" = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "content", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "cb37182733a71e6939495eb29d0ab6544c02094129fc9c7e921dd5280d78047a" +} diff --git a/rust/cloud-storage/.sqlx/query-cb43982dff09d09997be524b6e1034ed73a87e8599f27986495b62ce42e86384.json b/rust/cloud-storage/.sqlx/query-cb43982dff09d09997be524b6e1034ed73a87e8599f27986495b62ce42e86384.json new file mode 100644 index 0000000000..daf77cdfde --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cb43982dff09d09997be524b6e1034ed73a87e8599f27986495b62ce42e86384.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT sender_id\n FROM comms_messages\n WHERE id = $1 AND channel_id = $2\n ORDER BY created_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "sender_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "cb43982dff09d09997be524b6e1034ed73a87e8599f27986495b62ce42e86384" +} diff --git a/rust/cloud-storage/.sqlx/query-cb4e7ca0b0a9c275fd8e4e2507017d2dcf7238a82ac9779e4887536003556e60.json b/rust/cloud-storage/.sqlx/query-cb4e7ca0b0a9c275fd8e4e2507017d2dcf7238a82ac9779e4887536003556e60.json new file mode 100644 index 0000000000..af2517bc84 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cb4e7ca0b0a9c275fd8e4e2507017d2dcf7238a82ac9779e4887536003556e60.json @@ -0,0 +1,77 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH MultiAttachmentChats AS (\n SELECT\n \"chatId\",\n COUNT(*) as attachment_count\n FROM \"ChatAttachment\"\n GROUP BY \"chatId\"\n )\n SELECT\n c.id,\n c.name,\n c.\"userId\" as \"user_id\",\n c.\"createdAt\"::timestamptz as \"created_at\",\n c.\"updatedAt\"::timestamptz as \"updated_at\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\",\n c.model,\n c.\"tokenCount\" as \"token_count\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\"\n FROM \"Chat\" c\n INNER JOIN \"ChatAttachment\" ca ON c.id = ca.\"chatId\"\n INNER JOIN MultiAttachmentChats mac ON c.id = mac.\"chatId\"\n WHERE\n ca.\"entity_id\"::TEXT = $1 AND c.\"userId\" = $2\n AND\n c.\"deletedAt\" IS NULL\n ORDER BY c.\"updatedAt\" DESC;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "model", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "token_count", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "is_persistent", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + null, + null, + null, + false, + true, + true, + false + ] + }, + "hash": "cb4e7ca0b0a9c275fd8e4e2507017d2dcf7238a82ac9779e4887536003556e60" +} diff --git a/rust/cloud-storage/.sqlx/query-cb99b956db41571415b60886ba181d8767260559ccb0198eb8b7178448673810.json b/rust/cloud-storage/.sqlx/query-cb99b956db41571415b60886ba181d8767260559ccb0198eb8b7178448673810.json new file mode 100644 index 0000000000..042ac07422 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cb99b956db41571415b60886ba181d8767260559ccb0198eb8b7178448673810.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO contacts_connections(user1, user2)\n SELECT * FROM unnest($1::text[], $2::text[])\n ON CONFLICT(user1, user2) DO UPDATE SET updated_at = now()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "cb99b956db41571415b60886ba181d8767260559ccb0198eb8b7178448673810" +} diff --git a/rust/cloud-storage/.sqlx/query-cba64686023001741b1fa46b747fffa9af9eabd558af03fd0e2a250d29a4a64d.json b/rust/cloud-storage/.sqlx/query-cba64686023001741b1fa46b747fffa9af9eabd558af03fd0e2a250d29a4a64d.json new file mode 100644 index 0000000000..fc4e6700ae --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cba64686023001741b1fa46b747fffa9af9eabd558af03fd0e2a250d29a4a64d.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT t.id, t.name, t.slug, t.owner_id\n FROM team t\n JOIN team_user tu ON t.id = tu.team_id\n WHERE tu.user_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "slug", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "owner_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false + ] + }, + "hash": "cba64686023001741b1fa46b747fffa9af9eabd558af03fd0e2a250d29a4a64d" +} diff --git a/rust/cloud-storage/.sqlx/query-cbb8834b22cfc83665886957d72b6c25ac9159ac952804c94f8061d811e1e7c3.json b/rust/cloud-storage/.sqlx/query-cbb8834b22cfc83665886957d72b6c25ac9159ac952804c94f8061d811e1e7c3.json new file mode 100644 index 0000000000..3ca8bca1eb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cbb8834b22cfc83665886957d72b6c25ac9159ac952804c94f8061d811e1e7c3.json @@ -0,0 +1,64 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.id,\n c.link_id,\n c.email_address,\n COALESCE(m.from_name, c.name) as \"name\", -- name from message overrides contact name\n c.original_photo_url,\n c.sfs_photo_url,\n c.created_at,\n c.updated_at\n FROM email_messages m\n INNER JOIN email_contacts c ON c.id = m.from_contact_id\n WHERE m.id = $1\n AND m.from_contact_id IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "original_photo_url", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "sfs_photo_url", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + null, + true, + true, + false, + false + ] + }, + "hash": "cbb8834b22cfc83665886957d72b6c25ac9159ac952804c94f8061d811e1e7c3" +} diff --git a/rust/cloud-storage/.sqlx/query-cbc32c96712e2169984254c7fc98f082189e1588601b714f52d11fc273afb01e.json b/rust/cloud-storage/.sqlx/query-cbc32c96712e2169984254c7fc98f082189e1588601b714f52d11fc273afb01e.json new file mode 100644 index 0000000000..ec8a703d3e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cbc32c96712e2169984254c7fc98f082189e1588601b714f52d11fc273afb01e.json @@ -0,0 +1,173 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n provider_id,\n global_id,\n thread_id,\n provider_thread_id,\n replying_to_id,\n link_id,\n provider_history_id,\n internal_date_ts,\n snippet,\n size_estimate,\n subject,\n from_name,\n from_contact_id,\n sent_at,\n has_attachments,\n is_read,\n is_starred,\n is_sent,\n is_draft,\n body_text,\n body_html_sanitized,\n body_macro,\n headers_jsonb,\n created_at,\n updated_at\n FROM email_messages\n WHERE id = $1 and link_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 6, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 21, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 22, + "name": "body_macro", + "type_info": "Text" + }, + { + "ordinal": 23, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 24, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 25, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "cbc32c96712e2169984254c7fc98f082189e1588601b714f52d11fc273afb01e" +} diff --git a/rust/cloud-storage/.sqlx/query-cbd3dc65e8a0068465b09cf9bf7e2ca71b6832b6c46a075b432cfc5266c05115.json b/rust/cloud-storage/.sqlx/query-cbd3dc65e8a0068465b09cf9bf7e2ca71b6832b6c46a075b432cfc5266c05115.json new file mode 100644 index 0000000000..7813ad5fa2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cbd3dc65e8a0068465b09cf9bf7e2ca71b6832b6c46a075b432cfc5266c05115.json @@ -0,0 +1,77 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n bt.id AS token_id,\n bt.bot_id,\n bt.token_hash,\n bt.token_prefix,\n bt.label,\n bt.last_used_at,\n bt.expires_at,\n bt.revoked_at,\n bt.created_at,\n b.kind\n FROM bot_tokens bt\n JOIN bots b ON b.id = bt.bot_id\n JOIN comms_channel_participants cp\n ON cp.channel_id = $1\n AND cp.user_id = ('bot|' || b.id::text)\n AND cp.left_at IS NULL\n WHERE bt.token_prefix = $2\n AND b.deleted_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "token_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "bot_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "token_hash", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "token_prefix", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "label", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "last_used_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "expires_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "revoked_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "kind", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "cbd3dc65e8a0068465b09cf9bf7e2ca71b6832b6c46a075b432cfc5266c05115" +} diff --git a/rust/cloud-storage/.sqlx/query-cbd8fd7362c56f8c1a5bb9db32538a0d4a1716f4d311683cc07f488d33fecad7.json b/rust/cloud-storage/.sqlx/query-cbd8fd7362c56f8c1a5bb9db32538a0d4a1716f4d311683cc07f488d33fecad7.json new file mode 100644 index 0000000000..32a9748280 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cbd8fd7362c56f8c1a5bb9db32538a0d4a1716f4d311683cc07f488d33fecad7.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "INSERT INTO excluded_default_view (id, user_id, default_view_id) \n VALUES ($1, $2, $3)", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "cbd8fd7362c56f8c1a5bb9db32538a0d4a1716f4d311683cc07f488d33fecad7" +} diff --git a/rust/cloud-storage/.sqlx/query-cbeb059dc82fad969d3f6d1ba50733a8e5a01c9584765a61536f0835ae46bca8.json b/rust/cloud-storage/.sqlx/query-cbeb059dc82fad969d3f6d1ba50733a8e5a01c9584765a61536f0835ae46bca8.json new file mode 100644 index 0000000000..eab167ea42 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cbeb059dc82fad969d3f6d1ba50733a8e5a01c9584765a61536f0835ae46bca8.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT memory, updated_at as \"updated_at!\"\n FROM team_memory\n WHERE team_id = $1\n ORDER BY updated_at DESC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "memory", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "updated_at!", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "cbeb059dc82fad969d3f6d1ba50733a8e5a01c9584765a61536f0835ae46bca8" +} diff --git a/rust/cloud-storage/.sqlx/query-cc006af8fccc5e02930c42ce1251e454df554d615c9ceeff5af763029972af30.json b/rust/cloud-storage/.sqlx/query-cc006af8fccc5e02930c42ce1251e454df554d615c9ceeff5af763029972af30.json new file mode 100644 index 0000000000..c609870e1d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cc006af8fccc5e02930c42ce1251e454df554d615c9ceeff5af763029972af30.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_backfill_jobs\n SET status = $1::email_backfill_job_status, updated_at = now()\n WHERE link_id = $2\n AND status IN ('Init', 'InProgress')\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + { + "Custom": { + "name": "email_backfill_job_status", + "kind": { + "Enum": [ + "Init", + "InProgress", + "Complete", + "Cancelled", + "Failed" + ] + } + } + }, + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "cc006af8fccc5e02930c42ce1251e454df554d615c9ceeff5af763029972af30" +} diff --git a/rust/cloud-storage/.sqlx/query-cc0889c0d1cb757fce4cbfbb58eaefb065d608c3866d2707edfec8e907c460c1.json b/rust/cloud-storage/.sqlx/query-cc0889c0d1cb757fce4cbfbb58eaefb065d608c3866d2707edfec8e907c460c1.json new file mode 100644 index 0000000000..d0c38172a9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cc0889c0d1cb757fce4cbfbb58eaefb065d608c3866d2707edfec8e907c460c1.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE \"Chat\" SET \"projectId\" = NULL WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "cc0889c0d1cb757fce4cbfbb58eaefb065d608c3866d2707edfec8e907c460c1" +} diff --git a/rust/cloud-storage/.sqlx/query-cc1d96c7390033014832a250d080d0a6c08112e41f085f59abcc855ef35d5bd2.json b/rust/cloud-storage/.sqlx/query-cc1d96c7390033014832a250d080d0a6c08112e41f085f59abcc855ef35d5bd2.json new file mode 100644 index 0000000000..a39f9cde8a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cc1d96c7390033014832a250d080d0a6c08112e41f085f59abcc855ef35d5bd2.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_message_labels\n WHERE \n message_id = ANY($1) \n AND label_id = (\n SELECT id FROM email_labels\n WHERE link_id = $2 AND provider_label_id = $3\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "cc1d96c7390033014832a250d080d0a6c08112e41f085f59abcc855ef35d5bd2" +} diff --git a/rust/cloud-storage/.sqlx/query-cc388518e9c137d9c849d408300cd2d4687d41e8fd09e04edf0f4861d48a3e62.json b/rust/cloud-storage/.sqlx/query-cc388518e9c137d9c849d408300cd2d4687d41e8fd09e04edf0f4861d48a3e62.json new file mode 100644 index 0000000000..81608c6bd3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cc388518e9c137d9c849d408300cd2d4687d41e8fd09e04edf0f4861d48a3e62.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Comment\"\n SET \"deletedAt\" = NOW()\n WHERE \"id\" = $1 AND \"deletedAt\" IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [] + }, + "hash": "cc388518e9c137d9c849d408300cd2d4687d41e8fd09e04edf0f4861d48a3e62" +} diff --git a/rust/cloud-storage/.sqlx/query-cc55e105bd5f6916a779d57ed7e4379c7fdaca83a33355842cf8b0b29d25a517.json b/rust/cloud-storage/.sqlx/query-cc55e105bd5f6916a779d57ed7e4379c7fdaca83a33355842cf8b0b29d25a517.json new file mode 100644 index 0000000000..91afbc0b52 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cc55e105bd5f6916a779d57ed7e4379c7fdaca83a33355842cf8b0b29d25a517.json @@ -0,0 +1,128 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as \"document_id\",\n d.owner as \"owner\",\n COALESCE(db.id, di.id) as \"document_version_id!\",\n d.name as \"document_name\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"fileType\" as \"file_type\",\n db.bom_parts as \"document_bom?\",\n di.modification_data as \"modification_data?\",\n d.\"projectId\" as \"project_id\",\n p.name as \"project_name?\",\n di.sha as \"sha?\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.sha,\n i.\"createdAt\",\n (\n SELECT\n imod.\"modificationData\"\n FROM\n \"DocumentInstanceModificationData\" imod\n WHERE\n imod.\"documentInstanceId\" = i.id\n ) as modification_data,\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" DESC\n LIMIT 1\n ) di ON true\n LEFT JOIN LATERAL (\n SELECT\n b.id,\n (\n SELECT\n json_agg(\n json_build_object(\n 'id', bp.id,\n 'sha', bp.sha,\n 'path', bp.path\n )\n )\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = b.id\n ) as bom_parts\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n p.name\n FROM \"Project\" p\n WHERE p.id = d.\"projectId\"\n ) p ON d.\"projectId\" IS NOT NULL\n WHERE\n d.id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_version_id!", + "type_info": "Int8" + }, + { + "ordinal": 3, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "document_bom?", + "type_info": "Json" + }, + { + "ordinal": 11, + "name": "modification_data?", + "type_info": "Jsonb" + }, + { + "ordinal": 12, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 13, + "name": "project_name?", + "type_info": "Text" + }, + { + "ordinal": 14, + "name": "sha?", + "type_info": "Text" + }, + { + "ordinal": 15, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 16, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + null, + false, + true, + true, + true, + null, + null, + true, + null, + null, + true, + false, + false, + false, + null + ] + }, + "hash": "cc55e105bd5f6916a779d57ed7e4379c7fdaca83a33355842cf8b0b29d25a517" +} diff --git a/rust/cloud-storage/.sqlx/query-cc7926b302ce23fa4e727b6986ec14253589d794894668f4eaf078ec8a5d4ca8.json b/rust/cloud-storage/.sqlx/query-cc7926b302ce23fa4e727b6986ec14253589d794894668f4eaf078ec8a5d4ca8.json new file mode 100644 index 0000000000..5ac7889fce --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cc7926b302ce23fa4e727b6986ec14253589d794894668f4eaf078ec8a5d4ca8.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n phr.top,\n phr.left,\n phr.width,\n phr.height\n FROM \"PdfHighlightRect\" phr \n WHERE phr.\"pdfHighlightAnchorId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "top", + "type_info": "Float8" + }, + { + "ordinal": 1, + "name": "left", + "type_info": "Float8" + }, + { + "ordinal": 2, + "name": "width", + "type_info": "Float8" + }, + { + "ordinal": 3, + "name": "height", + "type_info": "Float8" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false + ] + }, + "hash": "cc7926b302ce23fa4e727b6986ec14253589d794894668f4eaf078ec8a5d4ca8" +} diff --git a/rust/cloud-storage/.sqlx/query-cc9cd9c1d19f49627d619e8111ccf71139a34878ece29560f7a1c48a73c974d8.json b/rust/cloud-storage/.sqlx/query-cc9cd9c1d19f49627d619e8111ccf71139a34878ece29560f7a1c48a73c974d8.json new file mode 100644 index 0000000000..6134ab08e0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cc9cd9c1d19f49627d619e8111ccf71139a34878ece29560f7a1c48a73c974d8.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COALESCE(\n (SELECT crm_enabled FROM team_crm_settings WHERE team_id = $1),\n FALSE\n ) AS \"crm_enabled!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "crm_enabled!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "cc9cd9c1d19f49627d619e8111ccf71139a34878ece29560f7a1c48a73c974d8" +} diff --git a/rust/cloud-storage/.sqlx/query-cd0fcad5f9177a5b57fa20cdf5996f4ea4bd008a19afc916a1147fca76b6d5b4.json b/rust/cloud-storage/.sqlx/query-cd0fcad5f9177a5b57fa20cdf5996f4ea4bd008a19afc916a1147fca76b6d5b4.json new file mode 100644 index 0000000000..488a2cccd5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cd0fcad5f9177a5b57fa20cdf5996f4ea4bd008a19afc916a1147fca76b6d5b4.json @@ -0,0 +1,42 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentInstance\" (\"documentId\", \"sha\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $3)\n RETURNING id, sha, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Timestamp" + ] + }, + "nullable": [ + false, + false, + null, + null + ] + }, + "hash": "cd0fcad5f9177a5b57fa20cdf5996f4ea4bd008a19afc916a1147fca76b6d5b4" +} diff --git a/rust/cloud-storage/.sqlx/query-cd2334cf312dee1e9b230cce0d7b26999ba3ac23f89c8882c144d4c9a657e235.json b/rust/cloud-storage/.sqlx/query-cd2334cf312dee1e9b230cce0d7b26999ba3ac23f89c8882c144d4c9a657e235.json new file mode 100644 index 0000000000..945fd5a6db --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cd2334cf312dee1e9b230cce0d7b26999ba3ac23f89c8882c144d4c9a657e235.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH requested_ids AS (\n SELECT UNNEST($2::text[]) as id\n ),\n user_links AS (\n SELECT id as link_id\n FROM email_links\n WHERE macro_id = $1\n ),\n users_found AS (\n SELECT\n u.id as user_profile_id,\n mui.first_name as mui_first_name,\n mui.last_name as mui_last_name\n FROM requested_ids req\n JOIN \"User\" u ON u.id = req.id\n LEFT JOIN macro_user_info mui ON u.macro_user_id = mui.macro_user_id\n ),\n contacts_requested AS (\n SELECT\n req.id as user_profile_id,\n ec.name as contact_name\n FROM requested_ids req\n CROSS JOIN user_links li\n JOIN email_contacts ec\n ON ec.link_id = li.link_id\n AND ec.email_address = REPLACE(req.id, 'macro|', '')\n AND ec.name IS NOT NULL\n )\n SELECT DISTINCT ON (user_profile_id)\n user_profile_id as \"user_profile_id!\",\n CASE\n -- If Macro has either first or last name (non-\"N/A\"), use Macro for BOTH fields.\n WHEN NULLIF(mui_first_name, 'N/A') IS NOT NULL\n OR NULLIF(mui_last_name, 'N/A') IS NOT NULL\n THEN NULLIF(mui_first_name, 'N/A')\n -- Otherwise fall back to email contact name parsing.\n ELSE SPLIT_PART(contact_name, ' ', 1)\n END as \"first_name\",\n CASE\n -- If Macro has either first or last name (non-\"N/A\"), use Macro for BOTH fields.\n WHEN NULLIF(mui_first_name, 'N/A') IS NOT NULL\n OR NULLIF(mui_last_name, 'N/A') IS NOT NULL\n THEN NULLIF(mui_last_name, 'N/A')\n -- Otherwise fall back to email contact name parsing.\n ELSE CASE\n WHEN POSITION(' ' IN contact_name) > 0\n THEN NULLIF(TRIM(SUBSTRING(contact_name FROM POSITION(' ' IN contact_name) + 1)), '')\n ELSE NULL\n END\n END as \"last_name\"\n FROM (\n -- Users in User table with contact fallback (in case user hasn't set name in Macro)\n SELECT\n uf.user_profile_id,\n uf.mui_first_name,\n uf.mui_last_name,\n cr.contact_name\n FROM users_found uf\n LEFT JOIN contacts_requested cr ON cr.user_profile_id = uf.user_profile_id\n\n UNION ALL\n\n -- People only in email_contacts (haven't joined Macro yet)\n SELECT\n cr.user_profile_id,\n NULL::text as mui_first_name,\n NULL::text as mui_last_name,\n cr.contact_name\n FROM contacts_requested cr\n WHERE NOT EXISTS (\n SELECT 1\n FROM users_found uf\n WHERE uf.user_profile_id = cr.user_profile_id\n )\n ) combined\n ORDER BY user_profile_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_profile_id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "first_name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "last_name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [ + null, + null, + null + ] + }, + "hash": "cd2334cf312dee1e9b230cce0d7b26999ba3ac23f89c8882c144d4c9a657e235" +} diff --git a/rust/cloud-storage/.sqlx/query-cd2ae30f38c8fd4467fafbf57d515e303d2c5bed1c53a5c1cf255a172defa46c.json b/rust/cloud-storage/.sqlx/query-cd2ae30f38c8fd4467fafbf57d515e303d2c5bed1c53a5c1cf255a172defa46c.json new file mode 100644 index 0000000000..a42c11b623 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cd2ae30f38c8fd4467fafbf57d515e303d2c5bed1c53a5c1cf255a172defa46c.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM entity_access\n WHERE entity_id = $1\n AND entity_type = $2\n AND granted_from_project_id = ANY($3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "cd2ae30f38c8fd4467fafbf57d515e303d2c5bed1c53a5c1cf255a172defa46c" +} diff --git a/rust/cloud-storage/.sqlx/query-cd39c593bdca8f628570365a8aa6787d34173da3b114c61b2cddc69b7d197819.json b/rust/cloud-storage/.sqlx/query-cd39c593bdca8f628570365a8aa6787d34173da3b114c61b2cddc69b7d197819.json new file mode 100644 index 0000000000..a140edbf63 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cd39c593bdca8f628570365a8aa6787d34173da3b114c61b2cddc69b7d197819.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT pg_try_advisory_xact_lock($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "pg_try_advisory_xact_lock", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + null + ] + }, + "hash": "cd39c593bdca8f628570365a8aa6787d34173da3b114c61b2cddc69b7d197819" +} diff --git a/rust/cloud-storage/.sqlx/query-cd3ae40ade95369aeeffcd17cd99301e0c36f4d600917c7573137e15688b1f68.json b/rust/cloud-storage/.sqlx/query-cd3ae40ade95369aeeffcd17cd99301e0c36f4d600917c7573137e15688b1f68.json new file mode 100644 index 0000000000..fbeee80ef8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cd3ae40ade95369aeeffcd17cd99301e0c36f4d600917c7573137e15688b1f68.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"PdfHighlightRect\" (\n \"top\", \"left\", \"width\", \"height\", \"pdfHighlightAnchorId\"\n )\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Float8", + "Float8", + "Float8", + "Float8", + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "cd3ae40ade95369aeeffcd17cd99301e0c36f4d600917c7573137e15688b1f68" +} diff --git a/rust/cloud-storage/.sqlx/query-cd98a8eb1ebdeb28951774b9daf0a9f05967d0adb106e93608b3b5a64adae02a.json b/rust/cloud-storage/.sqlx/query-cd98a8eb1ebdeb28951774b9daf0a9f05967d0adb106e93608b3b5a64adae02a.json new file mode 100644 index 0000000000..e7498491d6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cd98a8eb1ebdeb28951774b9daf0a9f05967d0adb106e93608b3b5a64adae02a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n bp.sha\n FROM \"BomPart\" bp\n WHERE bp.\"documentBomId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "sha", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "cd98a8eb1ebdeb28951774b9daf0a9f05967d0adb106e93608b3b5a64adae02a" +} diff --git a/rust/cloud-storage/.sqlx/query-cdce5c0c87367db68fee9c3107ae916da208d1525bf04497687e941d329513c6.json b/rust/cloud-storage/.sqlx/query-cdce5c0c87367db68fee9c3107ae916da208d1525bf04497687e941d329513c6.json new file mode 100644 index 0000000000..af20730827 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cdce5c0c87367db68fee9c3107ae916da208d1525bf04497687e941d329513c6.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id\n FROM email_messages\n WHERE link_id = $1 AND global_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "cdce5c0c87367db68fee9c3107ae916da208d1525bf04497687e941d329513c6" +} diff --git a/rust/cloud-storage/.sqlx/query-ce008daea4cb34b00a1c882b25444c58e68634e942d43ed59582b7bf0786893f.json b/rust/cloud-storage/.sqlx/query-ce008daea4cb34b00a1c882b25444c58e68634e942d43ed59582b7bf0786893f.json new file mode 100644 index 0000000000..8a6b62eddf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ce008daea4cb34b00a1c882b25444c58e68634e942d43ed59582b7bf0786893f.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE call_records SET custom_name = $2 WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "ce008daea4cb34b00a1c882b25444c58e68634e942d43ed59582b7bf0786893f" +} diff --git a/rust/cloud-storage/.sqlx/query-ce218da82b99295aed3a609a21f5feaf304a4d50bbabe9151bb0bbaef7bcef16.json b/rust/cloud-storage/.sqlx/query-ce218da82b99295aed3a609a21f5feaf304a4d50bbabe9151bb0bbaef7bcef16.json new file mode 100644 index 0000000000..1331a9c60a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ce218da82b99295aed3a609a21f5feaf304a4d50bbabe9151bb0bbaef7bcef16.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n entity_type,\n entity_id\n FROM\n comms_entity_mentions\n WHERE\n source_entity_id = $1 AND source_entity_type = 'message'\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_type", + "type_info": "Varchar" + }, + { + "ordinal": 1, + "name": "entity_id", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "ce218da82b99295aed3a609a21f5feaf304a4d50bbabe9151bb0bbaef7bcef16" +} diff --git a/rust/cloud-storage/.sqlx/query-ce97d5a94360438e17479379fcab57a8d30a1d2a7c03150526322a2aa8175c71.json b/rust/cloud-storage/.sqlx/query-ce97d5a94360438e17479379fcab57a8d30a1d2a7c03150526322a2aa8175c71.json new file mode 100644 index 0000000000..30efbd4948 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ce97d5a94360438e17479379fcab57a8d30a1d2a7c03150526322a2aa8175c71.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO id_mapping (source_id, target_id)\n VALUES ($1, $2)\n ON CONFLICT (source_id)\n DO UPDATE SET target_id = EXCLUDED.target_id\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "ce97d5a94360438e17479379fcab57a8d30a1d2a7c03150526322a2aa8175c71" +} diff --git a/rust/cloud-storage/.sqlx/query-cea740c7d7764d20771d15ddd5cf047e9638cfa5d7e07d9885af0592142e5304.json b/rust/cloud-storage/.sqlx/query-cea740c7d7764d20771d15ddd5cf047e9638cfa5d7e07d9885af0592142e5304.json new file mode 100644 index 0000000000..a7635cc3df --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cea740c7d7764d20771d15ddd5cf047e9638cfa5d7e07d9885af0592142e5304.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, email_address, name\n FROM email_contacts\n WHERE (link_id, email_address) IN (\n SELECT * FROM UNNEST($1::uuid[], $2::varchar[])\n )\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "VarcharArray" + ] + }, + "nullable": [ + false, + false, + true + ] + }, + "hash": "cea740c7d7764d20771d15ddd5cf047e9638cfa5d7e07d9885af0592142e5304" +} diff --git a/rust/cloud-storage/.sqlx/query-cebafd0d72b44d2f63bce484750fcab2a26f543e5a6ca992e38bdb662dc7c2f4.json b/rust/cloud-storage/.sqlx/query-cebafd0d72b44d2f63bce484750fcab2a26f543e5a6ca992e38bdb662dc7c2f4.json new file mode 100644 index 0000000000..75361e6ea2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cebafd0d72b44d2f63bce484750fcab2a26f543e5a6ca992e38bdb662dc7c2f4.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n p.id as entity_id,\n p.name,\n regexp_replace(\n p.name,\n $7,\n '\\1',\n 'gi'\n ) as name_highlighted,\n p.\"updatedAt\" as updated_at\n FROM \"Project\" p\n WHERE (p.\"userId\" = $1 OR p.id = ANY($2))\n AND p.\"deletedAt\" IS NULL\n AND p.name ILIKE $3\n AND (\n $5::timestamptz IS NULL\n OR (p.\"updatedAt\", p.id) < ($5, $6)\n )\n ORDER BY p.\"updatedAt\" DESC, p.id DESC\n LIMIT $4\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name_highlighted", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray", + "Text", + "Int8", + "Timestamptz", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + null, + false + ] + }, + "hash": "cebafd0d72b44d2f63bce484750fcab2a26f543e5a6ca992e38bdb662dc7c2f4" +} diff --git a/rust/cloud-storage/.sqlx/query-cef69d1963846d65ce695cbc2d5a97a325f4081b69a3b8a7d1a481ed69f86bf0.json b/rust/cloud-storage/.sqlx/query-cef69d1963846d65ce695cbc2d5a97a325f4081b69a3b8a7d1a481ed69f86bf0.json new file mode 100644 index 0000000000..eaf11d058d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cef69d1963846d65ce695cbc2d5a97a325f4081b69a3b8a7d1a481ed69f86bf0.json @@ -0,0 +1,78 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Comment\" c\n SET \"text\" = $1, \"metadata\" = $2, \"updatedAt\" = NOW()\n WHERE \"id\" = $3 AND \"deletedAt\" IS NULL\n RETURNING \n c.id as comment_id, \n c.\"threadId\" as thread_id, \n c.owner, \n c.sender, \n c.text, \n c.metadata, \n c.\"createdAt\"::timestamptz as created_at, \n c.\"updatedAt\"::timestamptz as updated_at, \n c.\"deletedAt\"::timestamptz as deleted_at, \n c.order\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "comment_id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "sender", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "text", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "order", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text", + "Jsonb", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + true, + null, + null, + null, + true + ] + }, + "hash": "cef69d1963846d65ce695cbc2d5a97a325f4081b69a3b8a7d1a481ed69f86bf0" +} diff --git a/rust/cloud-storage/.sqlx/query-cf095b171e7a5b06335671a0ffe392c7e93978451b4ae208a23ab27c3b10c1b7.json b/rust/cloud-storage/.sqlx/query-cf095b171e7a5b06335671a0ffe392c7e93978451b4ae208a23ab27c3b10c1b7.json new file mode 100644 index 0000000000..c4c3783762 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cf095b171e7a5b06335671a0ffe392c7e93978451b4ae208a23ab27c3b10c1b7.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Chat\" SET \"tokenCount\" = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Text" + ] + }, + "nullable": [] + }, + "hash": "cf095b171e7a5b06335671a0ffe392c7e93978451b4ae208a23ab27c3b10c1b7" +} diff --git a/rust/cloud-storage/.sqlx/query-cf1161cb3ef4f573dd8e15092ebedc6cfa7e0f8b9f8b3c3a698991d37860c76f.json b/rust/cloud-storage/.sqlx/query-cf1161cb3ef4f573dd8e15092ebedc6cfa7e0f8b9f8b3c3a698991d37860c76f.json new file mode 100644 index 0000000000..ca358e80ad --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cf1161cb3ef4f573dd8e15092ebedc6cfa7e0f8b9f8b3c3a698991d37860c76f.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.name as \"name?\",\n c.owner_id\n FROM\n \"comms_channels\" c\n WHERE\n c.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name?", + "type_info": "Varchar" + }, + { + "ordinal": 1, + "name": "owner_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + true, + false + ] + }, + "hash": "cf1161cb3ef4f573dd8e15092ebedc6cfa7e0f8b9f8b3c3a698991d37860c76f" +} diff --git a/rust/cloud-storage/.sqlx/query-cf156bbe38f634e623a39ae1d388cad0a5e18597f640111861f469e273e56e88.json b/rust/cloud-storage/.sqlx/query-cf156bbe38f634e623a39ae1d388cad0a5e18597f640111861f469e273e56e88.json new file mode 100644 index 0000000000..09ef7d3137 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cf156bbe38f634e623a39ae1d388cad0a5e18597f640111861f469e273e56e88.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT name, avatar_url\n FROM bots\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "avatar_url", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "cf156bbe38f634e623a39ae1d388cad0a5e18597f640111861f469e273e56e88" +} diff --git a/rust/cloud-storage/.sqlx/query-cf47cbebc8adc6834b44c503c18fb66ce5dbb225c7ca91b3d71dcfe398c8f95a.json b/rust/cloud-storage/.sqlx/query-cf47cbebc8adc6834b44c503c18fb66ce5dbb225c7ca91b3d71dcfe398c8f95a.json new file mode 100644 index 0000000000..94ce722428 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cf47cbebc8adc6834b44c503c18fb66ce5dbb225c7ca91b3d71dcfe398c8f95a.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_attachments_sfs\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "cf47cbebc8adc6834b44c503c18fb66ce5dbb225c7ca91b3d71dcfe398c8f95a" +} diff --git a/rust/cloud-storage/.sqlx/query-cfbec090ff3b62415ec0c215aa52bdafe162fb8c8fd217a8fcaf613e39525b0f.json b/rust/cloud-storage/.sqlx/query-cfbec090ff3b62415ec0c215aa52bdafe162fb8c8fd217a8fcaf613e39525b0f.json new file mode 100644 index 0000000000..358d08c4ed --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cfbec090ff3b62415ec0c215aa52bdafe162fb8c8fd217a8fcaf613e39525b0f.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as \"document_id!\",\n d.name as \"document_name!\",\n d.\"fileType\" as file_type,\n d.owner as \"owner!\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n CASE \n WHEN dt.sub_type = 'task' \n AND ep_status.values->'value' ? $2\n THEN true \n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL \n END as \"is_completed\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status \n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id \n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $3\n WHERE\n d.\"id\" = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "document_name!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "owner!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "is_completed", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "TextArray", + "Text", + "Uuid" + ] + }, + "nullable": [ + false, + false, + true, + false, + null, + true, + null + ] + }, + "hash": "cfbec090ff3b62415ec0c215aa52bdafe162fb8c8fd217a8fcaf613e39525b0f" +} diff --git a/rust/cloud-storage/.sqlx/query-cfc7c8a549dffd94c8d201c665e84c110d780e5be92b5e160c64189355f5f31f.json b/rust/cloud-storage/.sqlx/query-cfc7c8a549dffd94c8d201c665e84c110d780e5be92b5e160c64189355f5f31f.json new file mode 100644 index 0000000000..1419957cba --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-cfc7c8a549dffd94c8d201c665e84c110d780e5be92b5e160c64189355f5f31f.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.\"id\" as \"chat_id\",\n m.id as \"message_id\",\n c.\"userId\" as \"user_id\",\n m.\"createdAt\" as \"created_at\",\n m.\"updatedAt\" as \"updated_at\"\n FROM\n \"ChatMessage\" m\n JOIN\n \"Chat\" c on c.\"id\" = m.\"chatId\"\n WHERE\n m.\"chatId\" = ANY($1)\n AND (\n $3::bool IS NULL\n OR ($3 AND c.\"deletedAt\" IS NOT NULL)\n OR (NOT $3 AND c.\"deletedAt\" IS NULL)\n )\n AND ($4::timestamptz IS NULL OR m.\"updatedAt\" >= $4)\n AND ($5::timestamptz IS NULL OR m.\"updatedAt\" < $5)\n AND (\n $6::timestamptz IS NULL\n OR (m.\"updatedAt\", m.id) > ($6, $7::text)\n )\n ORDER BY m.\"updatedAt\" ASC, m.id ASC\n LIMIT $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "chat_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "TextArray", + "Int8", + "Bool", + "Timestamptz", + "Timestamptz", + "Timestamptz", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false + ] + }, + "hash": "cfc7c8a549dffd94c8d201c665e84c110d780e5be92b5e160c64189355f5f31f" +} diff --git a/rust/cloud-storage/.sqlx/query-d0150fe28f8fe11bbc69c475a6fc3277a1ced2c563a2e2bc98a742ef71da40fc.json b/rust/cloud-storage/.sqlx/query-d0150fe28f8fe11bbc69c475a6fc3277a1ced2c563a2e2bc98a742ef71da40fc.json new file mode 100644 index 0000000000..50a8a3cc0d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d0150fe28f8fe11bbc69c475a6fc3277a1ced2c563a2e2bc98a742ef71da40fc.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n sp.id as id\n FROM\n \"ChatPermission\" cp\n JOIN \"SharePermission\" sp ON cp.\"sharePermissionId\" = sp.id\n WHERE\n cp.\"chatId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "d0150fe28f8fe11bbc69c475a6fc3277a1ced2c563a2e2bc98a742ef71da40fc" +} diff --git a/rust/cloud-storage/.sqlx/query-d025cbcd336023d8d266d144ed579003a1f0f549e4e1585f641c86d0f2336c64.json b/rust/cloud-storage/.sqlx/query-d025cbcd336023d8d266d144ed579003a1f0f549e4e1585f641c86d0f2336c64.json new file mode 100644 index 0000000000..c8deb9a5f8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d025cbcd336023d8d266d144ed579003a1f0f549e4e1585f641c86d0f2336c64.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT provider_label_id\n FROM email_labels\n WHERE link_id = $1 AND provider_label_id = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "provider_label_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "d025cbcd336023d8d266d144ed579003a1f0f549e4e1585f641c86d0f2336c64" +} diff --git a/rust/cloud-storage/.sqlx/query-d0a3d7eadc0e7d5d469f5ae755561b859efa9b55a2b085a1f564b42024be3e92.json b/rust/cloud-storage/.sqlx/query-d0a3d7eadc0e7d5d469f5ae755561b859efa9b55a2b085a1f564b42024be3e92.json new file mode 100644 index 0000000000..909828efa5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d0a3d7eadc0e7d5d469f5ae755561b859efa9b55a2b085a1f564b42024be3e92.json @@ -0,0 +1,64 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n t.id as \"thread_id!\",\n t.resolved as \"resolved!\",\n t.\"documentId\" as \"document_id!\",\n t.\"createdAt\"::timestamptz as \"created_at\",\n t.\"updatedAt\"::timestamptz as \"updated_at\",\n t.\"deletedAt\"::timestamptz as \"deleted_at\",\n t.metadata as \"metadata\",\n t.owner as \"owner!\"\n FROM \"Thread\" t\n WHERE t.\"documentId\" = $1 AND t.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id!", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "resolved!", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "document_id!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "metadata", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "owner!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + null, + null, + null, + true, + false + ] + }, + "hash": "d0a3d7eadc0e7d5d469f5ae755561b859efa9b55a2b085a1f564b42024be3e92" +} diff --git a/rust/cloud-storage/.sqlx/query-d0c976b53ed5c8b754013dc219219ae33bff5dc510075ca8f0f24db8a9e1ead6.json b/rust/cloud-storage/.sqlx/query-d0c976b53ed5c8b754013dc219219ae33bff5dc510075ca8f0f24db8a9e1ead6.json new file mode 100644 index 0000000000..32a1192c57 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d0c976b53ed5c8b754013dc219219ae33bff5dc510075ca8f0f24db8a9e1ead6.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO call_participants (call_id, user_id)\n VALUES ($1, $2)\n ON CONFLICT (call_id, user_id) DO UPDATE SET left_at = NULL, joined_at = now()\n RETURNING call_id, user_id, joined_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "call_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "joined_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "d0c976b53ed5c8b754013dc219219ae33bff5dc510075ca8f0f24db8a9e1ead6" +} diff --git a/rust/cloud-storage/.sqlx/query-d0dcb62233091aee045f96c8f2cd8ebee5614196a92bcbc250b9702a8194c329.json b/rust/cloud-storage/.sqlx/query-d0dcb62233091aee045f96c8f2cd8ebee5614196a92bcbc250b9702a8194c329.json new file mode 100644 index 0000000000..b9297391ad --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d0dcb62233091aee045f96c8f2cd8ebee5614196a92bcbc250b9702a8194c329.json @@ -0,0 +1,56 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO calls (id, channel_id, room_name, created_by, share_permission_id)\n VALUES ($1, $2, $3, $4, $5)\n ON CONFLICT (channel_id) DO NOTHING\n RETURNING id, channel_id, room_name, created_by, created_at, egress_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "room_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_by", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "egress_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true + ] + }, + "hash": "d0dcb62233091aee045f96c8f2cd8ebee5614196a92bcbc250b9702a8194c329" +} diff --git a/rust/cloud-storage/.sqlx/query-d0de0e065ad2c62601b5d401357d295c602e8ea01dc164bd95c7ed30a7726a54.json b/rust/cloud-storage/.sqlx/query-d0de0e065ad2c62601b5d401357d295c602e8ea01dc164bd95c7ed30a7726a54.json new file mode 100644 index 0000000000..3c5e0b3b93 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d0de0e065ad2c62601b5d401357d295c602e8ea01dc164bd95c7ed30a7726a54.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"hasOnboardingDocuments\"::boolean\n FROM \"User\"\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hasOnboardingDocuments", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "d0de0e065ad2c62601b5d401357d295c602e8ea01dc164bd95c7ed30a7726a54" +} diff --git a/rust/cloud-storage/.sqlx/query-d0e25ec078af21bc5a7771937ed5bfc9d190e4154c906fae3e67846c308332dd.json b/rust/cloud-storage/.sqlx/query-d0e25ec078af21bc5a7771937ed5bfc9d190e4154c906fae3e67846c308332dd.json new file mode 100644 index 0000000000..a6b6058037 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d0e25ec078af21bc5a7771937ed5bfc9d190e4154c906fae3e67846c308332dd.json @@ -0,0 +1,38 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Chat\" (\"userId\", name, model, \"projectId\", \"isPersistent\")\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id, \"createdAt\"::timestamptz as created_at, \"updatedAt\"::timestamptz as updated_at;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Text", + "Bool" + ] + }, + "nullable": [ + false, + null, + null + ] + }, + "hash": "d0e25ec078af21bc5a7771937ed5bfc9d190e4154c906fae3e67846c308332dd" +} diff --git a/rust/cloud-storage/.sqlx/query-d0e2ccb572c57cb856c6d68e739aa5cf85994ae8af80af65ade5f879f837cc6a.json b/rust/cloud-storage/.sqlx/query-d0e2ccb572c57cb856c6d68e739aa5cf85994ae8af80af65ade5f879f837cc6a.json new file mode 100644 index 0000000000..de8322f023 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d0e2ccb572c57cb856c6d68e739aa5cf85994ae8af80af65ade5f879f837cc6a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT content FROM \"DocumentText\" WHERE \"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "content", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "d0e2ccb572c57cb856c6d68e739aa5cf85994ae8af80af65ade5f879f837cc6a" +} diff --git a/rust/cloud-storage/.sqlx/query-d0f5de1518cf48faa63380a71ff6633e40c9a0d9f8e87262e31fa218400752a7.json b/rust/cloud-storage/.sqlx/query-d0f5de1518cf48faa63380a71ff6633e40c9a0d9f8e87262e31fa218400752a7.json new file mode 100644 index 0000000000..90383258c6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d0f5de1518cf48faa63380a71ff6633e40c9a0d9f8e87262e31fa218400752a7.json @@ -0,0 +1,27 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"MacroPrompt\" (user_id, title, prompt, icon, color, required_docs)\n VALUES ($1, $2, $3, $4, $5, $6)\n RETURNING id;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Text", + "Text", + "Int4" + ] + }, + "nullable": [ + false + ] + }, + "hash": "d0f5de1518cf48faa63380a71ff6633e40c9a0d9f8e87262e31fa218400752a7" +} diff --git a/rust/cloud-storage/.sqlx/query-d138759f663ddea66b623d88820383631011b1c3cbd5d36e137dbd0c5442f456.json b/rust/cloud-storage/.sqlx/query-d138759f663ddea66b623d88820383631011b1c3cbd5d36e137dbd0c5442f456.json new file mode 100644 index 0000000000..f864dfe1a1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d138759f663ddea66b623d88820383631011b1c3cbd5d36e137dbd0c5442f456.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM\n in_progress_email_link\n WHERE\n created_at < $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Timestamp" + ] + }, + "nullable": [] + }, + "hash": "d138759f663ddea66b623d88820383631011b1c3cbd5d36e137dbd0c5442f456" +} diff --git a/rust/cloud-storage/.sqlx/query-d13e90d3f2bda80111ac9849f14099b08f372bf4606405d18d8c465d241b5781.json b/rust/cloud-storage/.sqlx/query-d13e90d3f2bda80111ac9849f14099b08f372bf4606405d18d8c465d241b5781.json new file mode 100644 index 0000000000..279e89e180 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d13e90d3f2bda80111ac9849f14099b08f372bf4606405d18d8c465d241b5781.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO crm_comment (thread_id, owner, text, metadata)\n VALUES ($1, $2, $3, $4)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "d13e90d3f2bda80111ac9849f14099b08f372bf4606405d18d8c465d241b5781" +} diff --git a/rust/cloud-storage/.sqlx/query-d162c039601a7fe5f829eeaedb6cd324c875cdc9e74287873ec41a9fd495e696.json b/rust/cloud-storage/.sqlx/query-d162c039601a7fe5f829eeaedb6cd324c875cdc9e74287873ec41a9fd495e696.json new file mode 100644 index 0000000000..a8872a64c6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d162c039601a7fe5f829eeaedb6cd324c875cdc9e74287873ec41a9fd495e696.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"OrganizationRetentionPolicy\" (organization_id, retention_days)\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "d162c039601a7fe5f829eeaedb6cd324c875cdc9e74287873ec41a9fd495e696" +} diff --git a/rust/cloud-storage/.sqlx/query-d185f3b4ca09c5a6372f6a64c4e6e5e12937814433dc5499b0dfdbe882c76192.json b/rust/cloud-storage/.sqlx/query-d185f3b4ca09c5a6372f6a64c4e6e5e12937814433dc5499b0dfdbe882c76192.json new file mode 100644 index 0000000000..37b3c65667 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d185f3b4ca09c5a6372f6a64c4e6e5e12937814433dc5499b0dfdbe882c76192.json @@ -0,0 +1,45 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT d.device_endpoint,\n d.user_id,\n d.device_type as \"device_type: DeviceType\"\n FROM notification_user_device_registration d\n WHERE d.user_id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "device_endpoint", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "device_type: DeviceType", + "type_info": { + "Custom": { + "name": "notification_device_type_option", + "kind": { + "Enum": [ + "ios", + "android", + "iosvoip" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "d185f3b4ca09c5a6372f6a64c4e6e5e12937814433dc5499b0dfdbe882c76192" +} diff --git a/rust/cloud-storage/.sqlx/query-d1c575aba71170e53f0d8a786d9c1a67edb6dd76a80889a538b6c1aceb837e45.json b/rust/cloud-storage/.sqlx/query-d1c575aba71170e53f0d8a786d9c1a67edb6dd76a80889a538b6c1aceb837e45.json new file mode 100644 index 0000000000..9b6865d2db --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d1c575aba71170e53f0d8a786d9c1a67edb6dd76a80889a538b6c1aceb837e45.json @@ -0,0 +1,84 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n link_id,\n fusionauth_user_id,\n threads_requested_limit,\n total_threads,\n threads_retrieved_count,\n status as \"status: db::backfill::BackfillJobStatus\",\n created_at,\n updated_at\n FROM email_backfill_jobs\n WHERE id = $1\n AND link_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "threads_requested_limit", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "total_threads", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "threads_retrieved_count", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "status: db::backfill::BackfillJobStatus", + "type_info": { + "Custom": { + "name": "email_backfill_job_status", + "kind": { + "Enum": [ + "Init", + "InProgress", + "Complete", + "Cancelled", + "Failed" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + true, + false, + true, + false, + false, + false, + false, + false + ] + }, + "hash": "d1c575aba71170e53f0d8a786d9c1a67edb6dd76a80889a538b6c1aceb837e45" +} diff --git a/rust/cloud-storage/.sqlx/query-d1d1519e0bdb30ddcbaa6d602bc04617613bb21df0e7728150e74b4125d28a59.json b/rust/cloud-storage/.sqlx/query-d1d1519e0bdb30ddcbaa6d602bc04617613bb21df0e7728150e74b4125d28a59.json new file mode 100644 index 0000000000..12ed677b43 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d1d1519e0bdb30ddcbaa6d602bc04617613bb21df0e7728150e74b4125d28a59.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChannelSharePermission\" (\"share_permission_id\", \"channel_id\", \"access_level\")\n VALUES ($1, $2, $3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + { + "Custom": { + "name": "\"AccessLevel\"", + "kind": { + "Enum": [ + "view", + "comment", + "edit", + "owner" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "d1d1519e0bdb30ddcbaa6d602bc04617613bb21df0e7728150e74b4125d28a59" +} diff --git a/rust/cloud-storage/.sqlx/query-d20c082d3cea0215d43fba8023c43c48e9ad8b934613ece6777e4948e18572bc.json b/rust/cloud-storage/.sqlx/query-d20c082d3cea0215d43fba8023c43c48e9ad8b934613ece6777e4948e18572bc.json new file mode 100644 index 0000000000..c6a7deabe5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d20c082d3cea0215d43fba8023c43c48e9ad8b934613ece6777e4948e18572bc.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT id, user_id, name, config, created_at, updated_at FROM saved_view WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "config", + "type_info": "Jsonb" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false + ] + }, + "hash": "d20c082d3cea0215d43fba8023c43c48e9ad8b934613ece6777e4948e18572bc" +} diff --git a/rust/cloud-storage/.sqlx/query-d31d574569460a9137ba589cfb552f811f014cd6ef1d0b3f9bea3074a478f785.json b/rust/cloud-storage/.sqlx/query-d31d574569460a9137ba589cfb552f811f014cd6ef1d0b3f9bea3074a478f785.json new file mode 100644 index 0000000000..6367646aaf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d31d574569460a9137ba589cfb552f811f014cd6ef1d0b3f9bea3074a478f785.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT 1\n FROM \"Thread\" t\n WHERE t.id = $1 AND t.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "?column?", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + null + ] + }, + "hash": "d31d574569460a9137ba589cfb552f811f014cd6ef1d0b3f9bea3074a478f785" +} diff --git a/rust/cloud-storage/.sqlx/query-d357cee4f06a87dd2d7fe9d64a0fd2c9e95591835b82393ecb2492f8966883bb.json b/rust/cloud-storage/.sqlx/query-d357cee4f06a87dd2d7fe9d64a0fd2c9e95591835b82393ecb2492f8966883bb.json new file mode 100644 index 0000000000..81fffbddc8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d357cee4f06a87dd2d7fe9d64a0fd2c9e95591835b82393ecb2492f8966883bb.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT crm_enabled FROM team_crm_settings WHERE team_id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "crm_enabled", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "d357cee4f06a87dd2d7fe9d64a0fd2c9e95591835b82393ecb2492f8966883bb" +} diff --git a/rust/cloud-storage/.sqlx/query-d35bd972bde3e682873d7088574ab3afced6278d25e630969724dd5837182f0c.json b/rust/cloud-storage/.sqlx/query-d35bd972bde3e682873d7088574ab3afced6278d25e630969724dd5837182f0c.json new file mode 100644 index 0000000000..ba803da97e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d35bd972bde3e682873d7088574ab3afced6278d25e630969724dd5837182f0c.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT dst.document_id\n FROM document_sub_type dst\n JOIN \"Document\" d ON d.id = dst.document_id\n WHERE dst.sub_type = 'task'\n AND d.\"deletedAt\" IS NULL\n AND (\n $1\n OR NOT EXISTS (\n SELECT 1\n FROM task_duplicate_embedding tde\n WHERE tde.document_id = dst.document_id\n )\n )\n LIMIT $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Bool", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "d35bd972bde3e682873d7088574ab3afced6278d25e630969724dd5837182f0c" +} diff --git a/rust/cloud-storage/.sqlx/query-d42e3270642ca0b9eff6b5807f600c24fd26d50d612a66edf0738c62d15680ba.json b/rust/cloud-storage/.sqlx/query-d42e3270642ca0b9eff6b5807f600c24fd26d50d612a66edf0738c62d15680ba.json new file mode 100644 index 0000000000..563aad9bf4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d42e3270642ca0b9eff6b5807f600c24fd26d50d612a66edf0738c62d15680ba.json @@ -0,0 +1,64 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT *\n FROM\n frecency_events\n WHERE was_processed = false\n LIMIT $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "entity_type", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "event_type", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "timestamp", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "connection_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "entity_id", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "was_processed", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "d42e3270642ca0b9eff6b5807f600c24fd26d50d612a66edf0738c62d15680ba" +} diff --git a/rust/cloud-storage/.sqlx/query-d4fc8cb85acc88cc8c342220506921a23d5de6a44ed9e4af285f49f4e44d174f.json b/rust/cloud-storage/.sqlx/query-d4fc8cb85acc88cc8c342220506921a23d5de6a44ed9e4af285f49f4e44d174f.json new file mode 100644 index 0000000000..092343da7f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d4fc8cb85acc88cc8c342220506921a23d5de6a44ed9e4af285f49f4e44d174f.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n p.id,\n p.\"userId\" as user_id,\n p.\"name\" as name,\n p.\"parentId\" as parent_id,\n p.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Project\" p\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "parent_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true, + null + ] + }, + "hash": "d4fc8cb85acc88cc8c342220506921a23d5de6a44ed9e4af285f49f4e44d174f" +} diff --git a/rust/cloud-storage/.sqlx/query-d501983b009e4418f1753f03db0ea12db11f18e4a89a76c87b4c8ddda431cbdb.json b/rust/cloud-storage/.sqlx/query-d501983b009e4418f1753f03db0ea12db11f18e4a89a76c87b4c8ddda431cbdb.json new file mode 100644 index 0000000000..07bca28bb4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d501983b009e4418f1753f03db0ea12db11f18e4a89a76c87b4c8ddda431cbdb.json @@ -0,0 +1,101 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT ON (l.id, m.thread_id)\n l.id,\n m.thread_id as \"thread_id!\",\n l.link_id,\n l.provider_label_id,\n l.name,\n l.created_at,\n l.message_list_visibility as \"message_list_visibility: _\",\n l.label_list_visibility as \"label_list_visibility: _\",\n l.type as \"type_: _\"\n FROM\n email_messages m\n JOIN email_message_labels ml ON m.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m.thread_id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "thread_id!", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "provider_label_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "message_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_message_list_visibility_enum", + "kind": { + "Enum": [ + "Show", + "Hide" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "label_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_label_list_visibility_enum", + "kind": { + "Enum": [ + "LabelShow", + "LabelShowIfUnread", + "LabelHide" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "type_: _", + "type_info": { + "Custom": { + "name": "email_label_type_enum", + "kind": { + "Enum": [ + "System", + "User" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "d501983b009e4418f1753f03db0ea12db11f18e4a89a76c87b4c8ddda431cbdb" +} diff --git a/rust/cloud-storage/.sqlx/query-d504950303eab672518c9c99ee3df3044ca299f2a677c812b11592fc9b2fe6cd.json b/rust/cloud-storage/.sqlx/query-d504950303eab672518c9c99ee3df3044ca299f2a677c812b11592fc9b2fe6cd.json new file mode 100644 index 0000000000..b44ec41281 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d504950303eab672518c9c99ee3df3044ca299f2a677c812b11592fc9b2fe6cd.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.name\n FROM\n \"Chat\" c\n WHERE\n c.id = $1 AND c.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "d504950303eab672518c9c99ee3df3044ca299f2a677c812b11592fc9b2fe6cd" +} diff --git a/rust/cloud-storage/.sqlx/query-d50b26323778ecb0ea88bb43c8a3df49df49acf6ec6d56955022e81ae92a2278.json b/rust/cloud-storage/.sqlx/query-d50b26323778ecb0ea88bb43c8a3df49df49acf6ec6d56955022e81ae92a2278.json new file mode 100644 index 0000000000..9c3c969b87 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d50b26323778ecb0ea88bb43c8a3df49df49acf6ec6d56955022e81ae92a2278.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH\n -- Get all individual interactions with timestamps\n LinkMessageTimestamps AS (\n SELECT\n m.link_id,\n mr.contact_id AS contact_address_id,\n m.internal_date_ts\n FROM\n email_messages m\n JOIN\n email_message_recipients mr ON m.id = mr.message_id\n WHERE\n m.link_id = $1\n AND m.is_sent = TRUE\n AND mr.contact_id IS NOT NULL\n ),\n -- Get the latest interaction timestamp for each contact_address_id\n LatestContactInteractions AS (\n SELECT\n lmt.link_id,\n lmt.contact_address_id,\n MAX(lmt.internal_date_ts) AS last_interaction_ts\n FROM\n LinkMessageTimestamps lmt\n WHERE\n lmt.contact_address_id IS NOT NULL\n GROUP BY\n lmt.link_id,\n lmt.contact_address_id\n )\n -- Final SELECT to join with email_addresses and get details\n SELECT\n c.email_address as \"email_address!\",\n c.name as \"name?\",\n c.sfs_photo_url as \"photo_url?\",\n lci.last_interaction_ts as \"last_interaction!\"\n FROM\n LatestContactInteractions lci\n JOIN\n email_contacts c ON lci.contact_address_id = c.id\n ORDER BY\n lci.last_interaction_ts DESC, c.email_address\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email_address!", + "type_info": "Varchar" + }, + { + "ordinal": 1, + "name": "name?", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "photo_url?", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "last_interaction!", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + true, + null + ] + }, + "hash": "d50b26323778ecb0ea88bb43c8a3df49df49acf6ec6d56955022e81ae92a2278" +} diff --git a/rust/cloud-storage/.sqlx/query-d5c0095efa9c8162d511f1f9b1b2d44bfd717c8761fcb3c8561cd6c292b1eea4.json b/rust/cloud-storage/.sqlx/query-d5c0095efa9c8162d511f1f9b1b2d44bfd717c8761fcb3c8561cd6c292b1eea4.json new file mode 100644 index 0000000000..df9d45c1ad --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d5c0095efa9c8162d511f1f9b1b2d44bfd717c8761fcb3c8561cd6c292b1eea4.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"InstructionsDocuments\" (\"documentId\", \"userId\")\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "d5c0095efa9c8162d511f1f9b1b2d44bfd717c8761fcb3c8561cd6c292b1eea4" +} diff --git a/rust/cloud-storage/.sqlx/query-d5db55179b8f46b8788f1cc573b0734a33e800cd3fd990498c76c991b48931a8.json b/rust/cloud-storage/.sqlx/query-d5db55179b8f46b8788f1cc573b0734a33e800cd3fd990498c76c991b48931a8.json new file mode 100644 index 0000000000..ad5a0976fe --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d5db55179b8f46b8788f1cc573b0734a33e800cd3fd990498c76c991b48931a8.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO notification_user_device_registration (id, user_id, device_token, device_endpoint, device_type)\n VALUES ($1, $2, $3, $4, $5)\n ON CONFLICT (device_endpoint) DO UPDATE SET user_id = $2, device_token = $3, device_type = $5, updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Text", + { + "Custom": { + "name": "notification_device_type_option", + "kind": { + "Enum": [ + "ios", + "android", + "iosvoip" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "d5db55179b8f46b8788f1cc573b0734a33e800cd3fd990498c76c991b48931a8" +} diff --git a/rust/cloud-storage/.sqlx/query-d5fbd2557b6759572b20117681fac9c4d0b723c7a7abfa0fd92ae362ea32b88f.json b/rust/cloud-storage/.sqlx/query-d5fbd2557b6759572b20117681fac9c4d0b723c7a7abfa0fd92ae362ea32b88f.json new file mode 100644 index 0000000000..bbc3e3d461 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d5fbd2557b6759572b20117681fac9c4d0b723c7a7abfa0fd92ae362ea32b88f.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"is_verified\"\n FROM \"macro_user_email_verification\"\n WHERE \"email\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "is_verified", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "d5fbd2557b6759572b20117681fac9c4d0b723c7a7abfa0fd92ae362ea32b88f" +} diff --git a/rust/cloud-storage/.sqlx/query-d61fd0eda66672d4ba0ed8d648c93fdc9b145bcea0d50bfb62acabba93d5818c.json b/rust/cloud-storage/.sqlx/query-d61fd0eda66672d4ba0ed8d648c93fdc9b145bcea0d50bfb62acabba93d5818c.json new file mode 100644 index 0000000000..56463591cc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d61fd0eda66672d4ba0ed8d648c93fdc9b145bcea0d50bfb62acabba93d5818c.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_scheduled_messages (\n link_id, message_id, send_time, sent,\n created_at, updated_at\n )\n VALUES ($1, $2, $3, $4, NOW(), NOW())\n ON CONFLICT (link_id, message_id) DO UPDATE SET\n send_time = EXCLUDED.send_time,\n sent = EXCLUDED.sent,\n updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Timestamptz", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "d61fd0eda66672d4ba0ed8d648c93fdc9b145bcea0d50bfb62acabba93d5818c" +} diff --git a/rust/cloud-storage/.sqlx/query-d672dff677cfcb21b6f90672e2d79b6d56ccda8789dd737a8cb2d89eb6858b03.json b/rust/cloud-storage/.sqlx/query-d672dff677cfcb21b6f90672e2d79b6d56ccda8789dd737a8cb2d89eb6858b03.json new file mode 100644 index 0000000000..748fb52c0c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d672dff677cfcb21b6f90672e2d79b6d56ccda8789dd737a8cb2d89eb6858b03.json @@ -0,0 +1,27 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_channel_participants (channel_id, role, user_id)\n VALUES ($1, $2, $3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + { + "Custom": { + "name": "comms_participant_role", + "kind": { + "Enum": [ + "owner", + "admin", + "member" + ] + } + } + }, + "Text" + ] + }, + "nullable": [] + }, + "hash": "d672dff677cfcb21b6f90672e2d79b6d56ccda8789dd737a8cb2d89eb6858b03" +} diff --git a/rust/cloud-storage/.sqlx/query-d6e62d780e55c6597e725a12a3785ba2c222905943458d205112e1e064a0bcc9.json b/rust/cloud-storage/.sqlx/query-d6e62d780e55c6597e725a12a3785ba2c222905943458d205112e1e064a0bcc9.json new file mode 100644 index 0000000000..c6522e433f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d6e62d780e55c6597e725a12a3785ba2c222905943458d205112e1e064a0bcc9.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n \"threadId\" as thread_id,\n \"sharePermissionId\" as share_permission_id,\n \"userId\" as user_id,\n \"projectId\" as project_id\n FROM \"EmailThreadPermission\"\n WHERE \"threadId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "thread_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "share_permission_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "project_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + true + ] + }, + "hash": "d6e62d780e55c6597e725a12a3785ba2c222905943458d205112e1e064a0bcc9" +} diff --git a/rust/cloud-storage/.sqlx/query-d742a92f0fe0ee9d7804e59bf37182fb33d0dcc2df012cdc4eed91e8994ca2b7.json b/rust/cloud-storage/.sqlx/query-d742a92f0fe0ee9d7804e59bf37182fb33d0dcc2df012cdc4eed91e8994ca2b7.json new file mode 100644 index 0000000000..773603fabb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d742a92f0fe0ee9d7804e59bf37182fb33d0dcc2df012cdc4eed91e8994ca2b7.json @@ -0,0 +1,129 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n t.id,\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n (\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m_imp.thread_id = t.id\n AND l.link_id = t.link_id\n AND l.name = 'IMPORTANT'\n )\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Find the latest labeled message timestamp for each thread,\n -- calculate the effective sort key, then sort and limit the results.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.inbox_visible,\n t.is_read,\n t.project_id,\n llpt.latest_labeled_ts AS created_at,\n llpt.latest_labeled_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $6 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, llpt.latest_labeled_ts)\n ELSE llpt.latest_labeled_ts\n END AS effective_ts\n FROM (\n -- This sub-subquery efficiently finds the latest timestamp for every thread\n -- that has at least one message with the specified label.\n SELECT\n m.thread_id,\n MAX(m.internal_date_ts) as latest_labeled_ts\n FROM email_messages m\n JOIN email_message_labels ml ON m.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m.link_id = ANY($1) AND l.name = $5\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml2\n JOIN email_labels l2 ON ml2.label_id = l2.id\n WHERE ml2.message_id = m.id AND l2.name = 'TRASH' AND l2.link_id = m.link_id\n )\n GROUP BY m.thread_id\n ) llpt\n JOIN email_threads t ON llpt.thread_id = t.id\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n (($3::timestamptz IS NULL) OR (\n CASE $6 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, llpt.latest_labeled_ts)\n ELSE llpt.latest_labeled_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find the full details of its latest message with that specific label.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name,\n m.is_draft\n FROM email_messages m\n JOIN email_message_labels ml ON m.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m.thread_id = t.id AND m.is_draft = FALSE AND l.link_id = t.link_id AND l.name = $5\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml2\n JOIN email_labels l2 ON ml2.label_id = l2.id\n WHERE ml2.message_id = m.id AND l2.name = 'TRASH' AND l2.link_id = t.link_id\n )\n ORDER BY m.internal_date_ts DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n ORDER BY t.effective_ts DESC, t.updated_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "inbox_visible", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "sort_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "viewed_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "name?", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "snippet?", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 12, + "name": "is_important!", + "type_info": "Bool" + }, + { + "ordinal": 13, + "name": "sender_email?", + "type_info": "Varchar" + }, + { + "ordinal": 14, + "name": "sender_name?", + "type_info": "Varchar" + }, + { + "ordinal": 15, + "name": "sender_photo_url?", + "type_info": "Text" + }, + { + "ordinal": 16, + "name": "owner_id!", + "type_info": "Text" + }, + { + "ordinal": 17, + "name": "link_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "Int8", + "Timestamptz", + "Uuid", + "Text", + "Text" + ] + }, + "nullable": [ + false, + true, + false, + false, + null, + null, + null, + true, + false, + true, + true, + false, + null, + false, + null, + true, + false, + false + ] + }, + "hash": "d742a92f0fe0ee9d7804e59bf37182fb33d0dcc2df012cdc4eed91e8994ca2b7" +} diff --git a/rust/cloud-storage/.sqlx/query-d7689899580f3928cca462a572058dd54f85dc6082f369fbecb2afa873fda66b.json b/rust/cloud-storage/.sqlx/query-d7689899580f3928cca462a572058dd54f85dc6082f369fbecb2afa873fda66b.json new file mode 100644 index 0000000000..8a1d028baf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d7689899580f3928cca462a572058dd54f85dc6082f369fbecb2afa873fda66b.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT access_level FROM (\n -- Source 1: entity_access source_id match\n SELECT\n access_level::text FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'project'\n AND source_id = ANY($2)\n\n UNION ALL\n -- Source 2: items share permission\n SELECT\n \"publicAccessLevel\"::text AS access_level\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"ProjectPermission\" WHERE \"projectId\" = $3\n )\n ) AS combined_access\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "access_level", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "d7689899580f3928cca462a572058dd54f85dc6082f369fbecb2afa873fda66b" +} diff --git a/rust/cloud-storage/.sqlx/query-d792ba8c4730364e650045395d110e6acda592d3e27ecac39f93370bacccd7a7.json b/rust/cloud-storage/.sqlx/query-d792ba8c4730364e650045395d110e6acda592d3e27ecac39f93370bacccd7a7.json new file mode 100644 index 0000000000..fb99ecd6dc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d792ba8c4730364e650045395d110e6acda592d3e27ecac39f93370bacccd7a7.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"allowListOnly\" as allow_list_only\n FROM \"Organization\"\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "allow_list_only", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + true + ] + }, + "hash": "d792ba8c4730364e650045395d110e6acda592d3e27ecac39f93370bacccd7a7" +} diff --git a/rust/cloud-storage/.sqlx/query-d7a3be325f304ca9642f1ae4f18a3b22e871c61feff6dbc1fe793cedd2cf403c.json b/rust/cloud-storage/.sqlx/query-d7a3be325f304ca9642f1ae4f18a3b22e871c61feff6dbc1fe793cedd2cf403c.json new file mode 100644 index 0000000000..59be5b6504 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d7a3be325f304ca9642f1ae4f18a3b22e871c61feff6dbc1fe793cedd2cf403c.json @@ -0,0 +1,67 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id,\n m.channel_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.edited_at::timestamptz AS \"edited_at?\",\n m.deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages m\n WHERE m.channel_id = $1\n AND m.thread_id IS NULL\n AND (m.deleted_at IS NULL OR EXISTS (\n SELECT 1 FROM comms_messages r\n WHERE r.thread_id = m.id AND r.deleted_at IS NULL\n ))\n AND (m.created_at, m.id) > ($2, $3)\n ORDER BY m.created_at ASC, m.id ASC\n LIMIT $4\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "edited_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "deleted_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Timestamptz", + "Uuid", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + null, + null + ] + }, + "hash": "d7a3be325f304ca9642f1ae4f18a3b22e871c61feff6dbc1fe793cedd2cf403c" +} diff --git a/rust/cloud-storage/.sqlx/query-d7c799b9e8432474ef422195e5e17f6cd611c9845f2830ab6ded46a4d640d362.json b/rust/cloud-storage/.sqlx/query-d7c799b9e8432474ef422195e5e17f6cd611c9845f2830ab6ded46a4d640d362.json new file mode 100644 index 0000000000..819e90ee19 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d7c799b9e8432474ef422195e5e17f6cd611c9845f2830ab6ded46a4d640d362.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"id\"\n FROM \"User\"\n WHERE \"id\" = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "d7c799b9e8432474ef422195e5e17f6cd611c9845f2830ab6ded46a4d640d362" +} diff --git a/rust/cloud-storage/.sqlx/query-d81549c7156fb08cde5260f6196eb6a80bb82c9640845a835c6d32eea7e6dcad.json b/rust/cloud-storage/.sqlx/query-d81549c7156fb08cde5260f6196eb6a80bb82c9640845a835c6d32eea7e6dcad.json new file mode 100644 index 0000000000..a51efcbe83 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d81549c7156fb08cde5260f6196eb6a80bb82c9640845a835c6d32eea7e6dcad.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"ExperimentLog\"\n SET completed = true\n WHERE user_id = $1 AND experiment_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "d81549c7156fb08cde5260f6196eb6a80bb82c9640845a835c6d32eea7e6dcad" +} diff --git a/rust/cloud-storage/.sqlx/query-d84f480cd90b929670bdbe24b839126ad17975d9f7490e8a5d521e2c1eb752c5.json b/rust/cloud-storage/.sqlx/query-d84f480cd90b929670bdbe24b839126ad17975d9f7490e8a5d521e2c1eb752c5.json new file mode 100644 index 0000000000..b146805915 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d84f480cd90b929670bdbe24b839126ad17975d9f7490e8a5d521e2c1eb752c5.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_settings (link_id, signature_on_replies_forwards)\n VALUES ($1, $2)\n ON CONFLICT (link_id)\n DO UPDATE SET\n signature_on_replies_forwards = EXCLUDED.signature_on_replies_forwards,\n updated_at = NOW()\n RETURNING link_id, signature_on_replies_forwards\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "signature_on_replies_forwards", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Bool" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "d84f480cd90b929670bdbe24b839126ad17975d9f7490e8a5d521e2c1eb752c5" +} diff --git a/rust/cloud-storage/.sqlx/query-d8677557689260c205fa17b9b36990834ea8846624132386f2fcd92d0d9b9905.json b/rust/cloud-storage/.sqlx/query-d8677557689260c205fa17b9b36990834ea8846624132386f2fcd92d0d9b9905.json new file mode 100644 index 0000000000..bbc7330bb2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d8677557689260c205fa17b9b36990834ea8846624132386f2fcd92d0d9b9905.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE github_app_installation\n SET source_id = $2::text,\n source_type = 'team'::github_app_installation_source_type\n WHERE source_id = $1\n AND source_type = 'user'::github_app_installation_source_type\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "d8677557689260c205fa17b9b36990834ea8846624132386f2fcd92d0d9b9905" +} diff --git a/rust/cloud-storage/.sqlx/query-d86be6e3a5bac69df99498b43dfc645a882c4f965226e71fc300d84a081ad30d.json b/rust/cloud-storage/.sqlx/query-d86be6e3a5bac69df99498b43dfc645a882c4f965226e71fc300d84a081ad30d.json new file mode 100644 index 0000000000..d4ba5f46e7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d86be6e3a5bac69df99498b43dfc645a882c4f965226e71fc300d84a081ad30d.json @@ -0,0 +1,128 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as \"document_id\",\n d.owner as \"owner\",\n COALESCE(db.id, di.id) as \"document_version_id!\",\n d.name as \"document_name\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"createdAt\"::timestamptz as \"created_at\",\n d.\"updatedAt\"::timestamptz as \"updated_at\",\n d.\"fileType\" as \"file_type\",\n db.bom_parts as \"document_bom?\",\n di.modification_data as \"modification_data?\",\n d.\"projectId\" as \"project_id\",\n p.name as \"project_name?\",\n di.sha as \"sha?\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.sha,\n i.\"createdAt\",\n (\n SELECT\n imod.\"modificationData\"\n FROM\n \"DocumentInstanceModificationData\" imod\n WHERE\n imod.\"documentInstanceId\" = i.id\n ) as modification_data,\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" DESC\n LIMIT 1\n ) di ON true\n LEFT JOIN LATERAL (\n SELECT\n b.id,\n (\n SELECT\n json_agg(\n json_build_object(\n 'id', bp.id,\n 'sha', bp.sha,\n 'path', bp.path\n )\n )\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = b.id\n ) as bom_parts\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n p.name\n FROM \"Project\" p\n WHERE p.id = d.\"projectId\"\n ) p ON d.\"projectId\" IS NOT NULL\n WHERE\n d.id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_version_id!", + "type_info": "Int8" + }, + { + "ordinal": 3, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "document_bom?", + "type_info": "Json" + }, + { + "ordinal": 11, + "name": "modification_data?", + "type_info": "Jsonb" + }, + { + "ordinal": 12, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 13, + "name": "project_name?", + "type_info": "Text" + }, + { + "ordinal": 14, + "name": "sha?", + "type_info": "Text" + }, + { + "ordinal": 15, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 16, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + null, + false, + true, + true, + true, + null, + null, + true, + null, + null, + true, + false, + false, + false, + null + ] + }, + "hash": "d86be6e3a5bac69df99498b43dfc645a882c4f965226e71fc300d84a081ad30d" +} diff --git a/rust/cloud-storage/.sqlx/query-d8bd24cd40bf28ba54dcc3a846931d4e00fbc7854d8f315b87f70dfdc44cb901.json b/rust/cloud-storage/.sqlx/query-d8bd24cd40bf28ba54dcc3a846931d4e00fbc7854d8f315b87f70dfdc44cb901.json new file mode 100644 index 0000000000..2347731904 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d8bd24cd40bf28ba54dcc3a846931d4e00fbc7854d8f315b87f70dfdc44cb901.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Pin\" (\"userId\", \"pinnedItemId\", \"pinnedItemType\", \"pinIndex\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, NOW(), NOW())\n ON CONFLICT (\"userId\", \"pinnedItemId\", \"pinnedItemType\") DO UPDATE\n SET \"updatedAt\" = NOW();\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "d8bd24cd40bf28ba54dcc3a846931d4e00fbc7854d8f315b87f70dfdc44cb901" +} diff --git a/rust/cloud-storage/.sqlx/query-d8f3ede64d3ac515f4247672f6edc47ed61f608db54b649cc3daba87817c680a.json b/rust/cloud-storage/.sqlx/query-d8f3ede64d3ac515f4247672f6edc47ed61f608db54b649cc3daba87817c680a.json new file mode 100644 index 0000000000..2363d781a9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d8f3ede64d3ac515f4247672f6edc47ed61f608db54b649cc3daba87817c680a.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE team\n SET seat_count = seat_count + $2\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "d8f3ede64d3ac515f4247672f6edc47ed61f608db54b649cc3daba87817c680a" +} diff --git a/rust/cloud-storage/.sqlx/query-d970eeb5bb4aebc43674b6ad89fb00c04c18f94145346063a2b012c1104afa53.json b/rust/cloud-storage/.sqlx/query-d970eeb5bb4aebc43674b6ad89fb00c04c18f94145346063a2b012c1104afa53.json new file mode 100644 index 0000000000..0046c78ad0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d970eeb5bb4aebc43674b6ad89fb00c04c18f94145346063a2b012c1104afa53.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Pin\"\n WHERE \"userId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "d970eeb5bb4aebc43674b6ad89fb00c04c18f94145346063a2b012c1104afa53" +} diff --git a/rust/cloud-storage/.sqlx/query-d990b4285faa94bcc23b8e4ebd3c433d0dd69045b66f7cf5952f1126115dec84.json b/rust/cloud-storage/.sqlx/query-d990b4285faa94bcc23b8e4ebd3c433d0dd69045b66f7cf5952f1126115dec84.json new file mode 100644 index 0000000000..0cfdf07faf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d990b4285faa94bcc23b8e4ebd3c433d0dd69045b66f7cf5952f1126115dec84.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO task_duplicate_embedding (document_id, search_key, content, embedding)\n SELECT $1, sk, ct, emb::vector\n FROM unnest($2::text[], $3::text[], $4::text[]) AS t(sk, ct, emb)\n ON CONFLICT (document_id, search_key) DO UPDATE\n SET content = EXCLUDED.content,\n embedding = EXCLUDED.embedding,\n updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "TextArray", + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "d990b4285faa94bcc23b8e4ebd3c433d0dd69045b66f7cf5952f1126115dec84" +} diff --git a/rust/cloud-storage/.sqlx/query-d9956cd2e52cda4f0e7c080058d33f2bbf35c99b29e7482f198d592ff435cf28.json b/rust/cloud-storage/.sqlx/query-d9956cd2e52cda4f0e7c080058d33f2bbf35c99b29e7482f198d592ff435cf28.json new file mode 100644 index 0000000000..6790b93ff8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d9956cd2e52cda4f0e7c080058d33f2bbf35c99b29e7482f198d592ff435cf28.json @@ -0,0 +1,82 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT t.id, t.provider_id, t.link_id, t.inbox_visible, t.is_read,\n t.latest_inbound_message_ts, t.latest_outbound_message_ts,\n t.latest_non_spam_message_ts, t.created_at, t.updated_at,\n t.project_id\n FROM email_threads t\n WHERE t.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "inbox_visible", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 5, + "name": "latest_inbound_message_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "latest_outbound_message_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "latest_non_spam_message_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "project_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + false, + false, + false, + true, + true, + true, + false, + false, + true + ] + }, + "hash": "d9956cd2e52cda4f0e7c080058d33f2bbf35c99b29e7482f198d592ff435cf28" +} diff --git a/rust/cloud-storage/.sqlx/query-d9ad977df73e6a2e5cf561edfb41d5ab7728a12ca7245876c3ede0c3adc69647.json b/rust/cloud-storage/.sqlx/query-d9ad977df73e6a2e5cf561edfb41d5ab7728a12ca7245876c3ede0c3adc69647.json new file mode 100644 index 0000000000..921f441cd6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d9ad977df73e6a2e5cf561edfb41d5ab7728a12ca7245876c3ede0c3adc69647.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT share_permission_id as \"share_permission_id!\"\n FROM (\n SELECT share_permission_id FROM calls WHERE id = $1\n UNION ALL\n SELECT share_permission_id FROM call_records WHERE id = $1\n ) t\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "d9ad977df73e6a2e5cf561edfb41d5ab7728a12ca7245876c3ede0c3adc69647" +} diff --git a/rust/cloud-storage/.sqlx/query-d9f818ade03e85f7f57ff02b2093b46ac7899be8421cdd83e5dd46f5b8211fd2.json b/rust/cloud-storage/.sqlx/query-d9f818ade03e85f7f57ff02b2093b46ac7899be8421cdd83e5dd46f5b8211fd2.json new file mode 100644 index 0000000000..3bf2c1efc4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-d9f818ade03e85f7f57ff02b2093b46ac7899be8421cdd83e5dd46f5b8211fd2.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n a.id,\n a.message_id,\n a.provider_attachment_id,\n a.filename,\n a.mime_type,\n a.size_bytes,\n a.content_id,\n eas.sfs_id as \"sfs_id?\",\n a.created_at,\n m.thread_id\n FROM \n email_attachments a\n JOIN\n email_messages m ON a.message_id = m.id\n LEFT JOIN\n email_attachments_sfs eas ON a.id = eas.attachment_id\n WHERE\n m.thread_id = ANY($1)\n ORDER BY \n a.created_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_attachment_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "filename", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "mime_type", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "size_bytes", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "content_id", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "sfs_id?", + "type_info": "Uuid" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "thread_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + false, + false, + false + ] + }, + "hash": "d9f818ade03e85f7f57ff02b2093b46ac7899be8421cdd83e5dd46f5b8211fd2" +} diff --git a/rust/cloud-storage/.sqlx/query-da0e4cfc27ca84e3cad6ed3d7b58d20ea15ba8756bc54a8d518ea82a39a27ec4.json b/rust/cloud-storage/.sqlx/query-da0e4cfc27ca84e3cad6ed3d7b58d20ea15ba8756bc54a8d518ea82a39a27ec4.json new file mode 100644 index 0000000000..12f733e69c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-da0e4cfc27ca84e3cad6ed3d7b58d20ea15ba8756bc54a8d518ea82a39a27ec4.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n thread_id AS \"thread_id!\",\n sender_id,\n content,\n created_at,\n updated_at,\n edited_at::timestamptz AS \"edited_at?\"\n FROM comms_messages\n WHERE thread_id = $1\n AND deleted_at IS NULL\n ORDER BY created_at ASC, id ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "thread_id!", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "edited_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + false, + false, + false, + false, + null + ] + }, + "hash": "da0e4cfc27ca84e3cad6ed3d7b58d20ea15ba8756bc54a8d518ea82a39a27ec4" +} diff --git a/rust/cloud-storage/.sqlx/query-da11b9c3b9850e3a763035f7873921f7887f3bf828b5be3c7a599fade54a0dc1.json b/rust/cloud-storage/.sqlx/query-da11b9c3b9850e3a763035f7873921f7887f3bf828b5be3c7a599fade54a0dc1.json new file mode 100644 index 0000000000..45d7afe7de --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-da11b9c3b9850e3a763035f7873921f7887f3bf828b5be3c7a599fade54a0dc1.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id,\n CASE WHEN m.task_id = $1 THEN m.duplicate_task_id ELSE m.task_id END AS \"other_task_id!\",\n d.name AS \"other_task_name!\",\n m.vector_score AS \"vector_score!\",\n m.judge_reason\n FROM task_duplicate_match m\n JOIN \"Document\" d\n ON d.id = CASE WHEN m.task_id = $1 THEN m.duplicate_task_id ELSE m.task_id END\n WHERE m.status = 'active'\n AND (m.task_id = $1 OR m.duplicate_task_id = $1)\n AND d.\"deletedAt\" IS NULL\n ORDER BY m.vector_score DESC, m.created_at DESC\n LIMIT 10\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "other_task_id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "other_task_name!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "vector_score!", + "type_info": "Float8" + }, + { + "ordinal": 4, + "name": "judge_reason", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + null, + false, + false, + true + ] + }, + "hash": "da11b9c3b9850e3a763035f7873921f7887f3bf828b5be3c7a599fade54a0dc1" +} diff --git a/rust/cloud-storage/.sqlx/query-da534350a843bec8ccf928f5d774a0a281601cb56674d2b5ea331e02ae8bbf60.json b/rust/cloud-storage/.sqlx/query-da534350a843bec8ccf928f5d774a0a281601cb56674d2b5ea331e02ae8bbf60.json new file mode 100644 index 0000000000..01f4971f8f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-da534350a843bec8ccf928f5d774a0a281601cb56674d2b5ea331e02ae8bbf60.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_attachments\n WHERE id = ANY($1::uuid[])\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [] + }, + "hash": "da534350a843bec8ccf928f5d774a0a281601cb56674d2b5ea331e02ae8bbf60" +} diff --git a/rust/cloud-storage/.sqlx/query-da59b393b3c5c2cc664c6ac89fb05dec57b4fb5d0b4ea2def2c8c4978c1d9c36.json b/rust/cloud-storage/.sqlx/query-da59b393b3c5c2cc664c6ac89fb05dec57b4fb5d0b4ea2def2c8c4978c1d9c36.json new file mode 100644 index 0000000000..648acdb6cb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-da59b393b3c5c2cc664c6ac89fb05dec57b4fb5d0b4ea2def2c8c4978c1d9c36.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT memory\n FROM memory\n WHERE id = $1 AND user_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "memory", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "da59b393b3c5c2cc664c6ac89fb05dec57b4fb5d0b4ea2def2c8c4978c1d9c36" +} diff --git a/rust/cloud-storage/.sqlx/query-da6586a61ad110e335c8b5a9c6c840cee4f1db25c7b9b4f5a1157ef655fe1575.json b/rust/cloud-storage/.sqlx/query-da6586a61ad110e335c8b5a9c6c840cee4f1db25c7b9b4f5a1157ef655fe1575.json new file mode 100644 index 0000000000..20e342f48c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-da6586a61ad110e335c8b5a9c6c840cee4f1db25c7b9b4f5a1157ef655fe1575.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentPermission\" (\"documentId\", \"sharePermissionId\")\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "da6586a61ad110e335c8b5a9c6c840cee4f1db25c7b9b4f5a1157ef655fe1575" +} diff --git a/rust/cloud-storage/.sqlx/query-da98ce3985fbf5eaed5300bb94b3354c7b4bd005b9e5657a702bd39846ff0917.json b/rust/cloud-storage/.sqlx/query-da98ce3985fbf5eaed5300bb94b3354c7b4bd005b9e5657a702bd39846ff0917.json new file mode 100644 index 0000000000..5aa5cecd85 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-da98ce3985fbf5eaed5300bb94b3354c7b4bd005b9e5657a702bd39846ff0917.json @@ -0,0 +1,25 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO document_sub_type (document_id, sub_type) \n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "da98ce3985fbf5eaed5300bb94b3354c7b4bd005b9e5657a702bd39846ff0917" +} diff --git a/rust/cloud-storage/.sqlx/query-dae0d3d0cdf09f727a8b7c3ecc9f3ae64ea91023d356c47232736672cd1ba5ec.json b/rust/cloud-storage/.sqlx/query-dae0d3d0cdf09f727a8b7c3ecc9f3ae64ea91023d356c47232736672cd1ba5ec.json new file mode 100644 index 0000000000..c2eff32a5e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-dae0d3d0cdf09f727a8b7c3ecc9f3ae64ea91023d356c47232736672cd1ba5ec.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"BlockedEmail\" (email)\n SELECT email FROM unnest($1::text[]) AS email\n ON CONFLICT (email) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "dae0d3d0cdf09f727a8b7c3ecc9f3ae64ea91023d356c47232736672cd1ba5ec" +} diff --git a/rust/cloud-storage/.sqlx/query-daefc7270b27ce0caef8b61a651c38d76dfd087a2a8032ff6ebce392d7892764.json b/rust/cloud-storage/.sqlx/query-daefc7270b27ce0caef8b61a651c38d76dfd087a2a8032ff6ebce392d7892764.json new file mode 100644 index 0000000000..5c8a8c15b1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-daefc7270b27ce0caef8b61a651c38d76dfd087a2a8032ff6ebce392d7892764.json @@ -0,0 +1,19 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO action_execution_record (action_id, resource_id, start_time, end_time, is_success, result)\n VALUES ($1, $2, $3, $4, $5, $6)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Timestamptz", + "Timestamptz", + "Bool", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "daefc7270b27ce0caef8b61a651c38d76dfd087a2a8032ff6ebce392d7892764" +} diff --git a/rust/cloud-storage/.sqlx/query-db297e24e3ed1e94c27121977d81813bbe4cde5e5b7bec42e424c72db0e27e73.json b/rust/cloud-storage/.sqlx/query-db297e24e3ed1e94c27121977d81813bbe4cde5e5b7bec42e424c72db0e27e73.json new file mode 100644 index 0000000000..d197caf563 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-db297e24e3ed1e94c27121977d81813bbe4cde5e5b7bec42e424c72db0e27e73.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id FROM user_notification_type_preference\n WHERE notification_event_type = $1 AND user_id = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "db297e24e3ed1e94c27121977d81813bbe4cde5e5b7bec42e424c72db0e27e73" +} diff --git a/rust/cloud-storage/.sqlx/query-dbf934ed3c82b433deea3da7035a976b443a4280c01b09fdc5f673ad66f06c28.json b/rust/cloud-storage/.sqlx/query-dbf934ed3c82b433deea3da7035a976b443a4280c01b09fdc5f673ad66f06c28.json new file mode 100644 index 0000000000..568c59efeb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-dbf934ed3c82b433deea3da7035a976b443a4280c01b09fdc5f673ad66f06c28.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE comms_channel_participants\n SET left_at = now()\n WHERE user_id = $1\n AND left_at IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "dbf934ed3c82b433deea3da7035a976b443a4280c01b09fdc5f673ad66f06c28" +} diff --git a/rust/cloud-storage/.sqlx/query-dc09f10b914618441e30f7b1e12c60d684f1a422d5cd1de162b6f657c8ddfa98.json b/rust/cloud-storage/.sqlx/query-dc09f10b914618441e30f7b1e12c60d684f1a422d5cd1de162b6f657c8ddfa98.json new file mode 100644 index 0000000000..cbd759ab9a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-dc09f10b914618441e30f7b1e12c60d684f1a422d5cd1de162b6f657c8ddfa98.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT c.id, c.\"createdAt\" as created_at, c.\"updatedAt\" as updated_at\n FROM \"Comment\" c\n JOIN \"Thread\" t ON c.\"threadId\" = t.id\n WHERE t.\"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 2, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "dc09f10b914618441e30f7b1e12c60d684f1a422d5cd1de162b6f657c8ddfa98" +} diff --git a/rust/cloud-storage/.sqlx/query-dc8363500c41804887b52ba9bab5fe1745738d475322e937d4553623a8294dc6.json b/rust/cloud-storage/.sqlx/query-dc8363500c41804887b52ba9bab5fe1745738d475322e937d4553623a8294dc6.json new file mode 100644 index 0000000000..5c5ea59ceb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-dc8363500c41804887b52ba9bab5fe1745738d475322e937d4553623a8294dc6.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"ChatMessage\" (\"chatId\", \"createdAt\", \"updatedAt\", \"content\", \"role\", \"model\")\n SELECT $1, \"createdAt\", \"updatedAt\", \"content\", \"role\", \"model\"\n FROM \"ChatMessage\"\n WHERE \"chatId\"=$2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "dc8363500c41804887b52ba9bab5fe1745738d475322e937d4553623a8294dc6" +} diff --git a/rust/cloud-storage/.sqlx/query-dc836e7dd12a3df4a05ba072af32cb1aca7d6b8c20e636adff6fb3977577e62a.json b/rust/cloud-storage/.sqlx/query-dc836e7dd12a3df4a05ba072af32cb1aca7d6b8c20e636adff6fb3977577e62a.json new file mode 100644 index 0000000000..2ce75f867a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-dc836e7dd12a3df4a05ba072af32cb1aca7d6b8c20e636adff6fb3977577e62a.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n t.id,\n t.latest_inbound_message_ts as last_received,\n t.latest_outbound_message_ts as last_sent,\n first_msg.internal_date_ts as thread_started,\n first_msg.subject,\n (SELECT COUNT(*)::bigint FROM email_messages WHERE thread_id = t.id) as \"message_count!\"\n FROM\n email_threads t\n -- LATERAL join to get subject and timestamp from the first message\n LEFT JOIN LATERAL (\n SELECT internal_date_ts, subject\n FROM email_messages\n WHERE thread_id = t.id\n ORDER BY internal_date_ts ASC NULLS LAST\n LIMIT 1\n ) first_msg ON true\n WHERE\n t.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "last_received", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "last_sent", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "thread_started", + "type_info": "Timestamptz" + }, + { + "ordinal": 4, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "message_count!", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + true, + true, + true, + null + ] + }, + "hash": "dc836e7dd12a3df4a05ba072af32cb1aca7d6b8c20e636adff6fb3977577e62a" +} diff --git a/rust/cloud-storage/.sqlx/query-dcf19b1a30385a18a23d0fa7d4d724d755c0a3353480bcbe573a3f867cf24091.json b/rust/cloud-storage/.sqlx/query-dcf19b1a30385a18a23d0fa7d4d724d755c0a3353480bcbe573a3f867cf24091.json new file mode 100644 index 0000000000..15e39a719d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-dcf19b1a30385a18a23d0fa7d4d724d755c0a3353480bcbe573a3f867cf24091.json @@ -0,0 +1,69 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO bot_tokens (\n id, bot_id, token_hash, token_prefix, label, expires_at\n )\n VALUES ($1, $2, $3, $4, $5, $6)\n RETURNING id, bot_id, token_prefix, label, last_used_at, expires_at, revoked_at, created_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "bot_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "token_prefix", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "label", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "last_used_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "expires_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "revoked_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Bytea", + "Text", + "Text", + "Timestamptz" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + true, + true, + false + ] + }, + "hash": "dcf19b1a30385a18a23d0fa7d4d724d755c0a3353480bcbe573a3f867cf24091" +} diff --git a/rust/cloud-storage/.sqlx/query-dd019c8633d6089e59d0560d601dbb294e66474310e66c28a0a8510c64fca149.json b/rust/cloud-storage/.sqlx/query-dd019c8633d6089e59d0560d601dbb294e66474310e66c28a0a8510c64fca149.json new file mode 100644 index 0000000000..d64ed086f1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-dd019c8633d6089e59d0560d601dbb294e66474310e66c28a0a8510c64fca149.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id FROM user_mute_notification\n WHERE user_id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "dd019c8633d6089e59d0560d601dbb294e66474310e66c28a0a8510c64fca149" +} diff --git a/rust/cloud-storage/.sqlx/query-dd1e3498501c9aad2a5db8c9f55269928b43c4a9e523b84383bf9c7dc636c1fd.json b/rust/cloud-storage/.sqlx/query-dd1e3498501c9aad2a5db8c9f55269928b43c4a9e523b84383bf9c7dc636c1fd.json new file mode 100644 index 0000000000..6c18c195e9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-dd1e3498501c9aad2a5db8c9f55269928b43c4a9e523b84383bf9c7dc636c1fd.json @@ -0,0 +1,88 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, owner, name, schedule, kind, timezone, task, claimed, created_at, updated_at, next_run_at, enabled\n FROM scheduled_action\n WHERE owner = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "schedule", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "kind", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "timezone", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "task", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "claimed", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "next_run_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "enabled", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false + ] + }, + "hash": "dd1e3498501c9aad2a5db8c9f55269928b43c4a9e523b84383bf9c7dc636c1fd" +} diff --git a/rust/cloud-storage/.sqlx/query-dd4f7c4b90b6340ea7f4a7d6eb16347612e9d197979f9d4a4df40314f22559f8.json b/rust/cloud-storage/.sqlx/query-dd4f7c4b90b6340ea7f4a7d6eb16347612e9d197979f9d4a4df40314f22559f8.json new file mode 100644 index 0000000000..6522361cd3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-dd4f7c4b90b6340ea7f4a7d6eb16347612e9d197979f9d4a4df40314f22559f8.json @@ -0,0 +1,146 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH user_source_ids AS (\n SELECT cp.channel_id::text as source_id FROM comms_channel_participants cp\n WHERE cp.user_id = $1 AND cp.left_at IS NULL\n UNION ALL\n SELECT t.team_id::text FROM team_user t\n WHERE t.user_id = $1\n UNION ALL\n SELECT $1\n ),\n UserAccessibleItems AS (\n SELECT DISTINCT\n ea.entity_id::text as item_id,\n ea.entity_type as item_type\n FROM entity_access ea\n WHERE ea.source_id = ANY(SELECT source_id FROM user_source_ids)\n ),\n Combined AS (\n SELECT\n 'document' as \"item_type!\",\n d.id as \"id!\",\n CAST(COALESCE(di.id, db.id) as TEXT) as \"document_version_id\",\n d.owner as \"user_id!\",\n d.name as \"name!\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\", \n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n d.\"createdAt\"::timestamptz as \"created_at!\",\n d.\"updatedAt\"::timestamptz as \"updated_at!\",\n d.\"projectId\" as \"project_id\",\n NULL as \"is_persistent\",\n di.sha as \"sha\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", d.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN d.\"createdAt\"\n ELSE d.\"updatedAt\"\n END::timestamptz as \"sort_ts!\",\n CASE\n WHEN dt.sub_type = 'task'\n AND ep_status.values->'value' ? $6\n THEN true\n WHEN dt.sub_type = 'task'\n THEN false\n ELSE NULL\n END as \"is_completed\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN entity_properties ep_status\n ON dt.sub_type = 'task'\n AND ep_status.entity_id = d.id\n AND ep_status.entity_type = 'TASK'\n AND ep_status.property_definition_id = $7\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = d.id\n AND uai.item_type = 'document'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = d.id\n AND uh.\"itemType\" = 'document'\n AND uh.\"userId\" = $1\n LEFT JOIN LATERAL (\n SELECT b.id\n FROM \"DocumentBom\" b\n WHERE b.\"documentId\" = d.id\n ORDER BY b.\"createdAt\" DESC\n LIMIT 1\n ) db ON true\n LEFT JOIN LATERAL (\n SELECT i.id, i.sha\n FROM \"DocumentInstance\" i\n WHERE i.\"documentId\" = d.id\n ORDER BY i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON true\n WHERE d.\"deletedAt\" IS NULL\n\n UNION ALL\n\n SELECT\n 'chat' as \"item_type!\",\n c.id as \"id!\",\n NULL as \"document_version_id\",\n c.\"userId\" as \"user_id!\",\n c.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n c.\"createdAt\"::timestamptz as \"created_at!\",\n c.\"updatedAt\"::timestamptz as \"updated_at!\",\n c.\"projectId\" as \"project_id\",\n c.\"isPersistent\" as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", c.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN c.\"createdAt\"\n ELSE c.\"updatedAt\"\n END::timestamptz as \"sort_ts!\",\n NULL as \"is_completed\",\n c.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Chat\" c\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = c.id\n AND uai.item_type = 'chat'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = c.id\n AND uh.\"itemType\" = 'chat'\n AND uh.\"userId\" = $1\n WHERE c.\"deletedAt\" IS NULL\n\n UNION ALL\n\n SELECT\n 'project' as \"item_type!\",\n p.id as \"id!\",\n NULL as \"document_version_id\",\n p.\"userId\" as \"user_id!\",\n p.name as \"name!\",\n NULL as \"branched_from_id\",\n NULL as \"branched_from_version_id\",\n NULL as \"document_family_id\",\n NULL as \"file_type\",\n p.\"createdAt\"::timestamptz as \"created_at!\",\n p.\"updatedAt\"::timestamptz as \"updated_at!\",\n p.\"parentId\" as \"project_id\",\n NULL as \"is_persistent\",\n NULL as \"sha\",\n NULL as \"sub_type\",\n uh.\"updatedAt\"::timestamptz as \"viewed_at\",\n CASE $2\n WHEN 'viewed_updated' THEN COALESCE(uh.\"updatedAt\", p.\"updatedAt\")\n WHEN 'viewed_at' THEN COALESCE(uh.\"updatedAt\", '1970-01-01 00:00:00+00')\n WHEN 'created_at' THEN p.\"createdAt\"\n ELSE p.\"updatedAt\"\n END::timestamptz as \"sort_ts!\",\n NULL as \"is_completed\",\n p.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM \"Project\" p\n INNER JOIN UserAccessibleItems uai\n ON uai.item_id = p.id\n AND uai.item_type = 'project'\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = p.id\n AND uh.\"itemType\" = 'project'\n AND uh.\"userId\" = $1\n WHERE p.\"deletedAt\" IS NULL\n )\n SELECT * \n FROM Combined\n WHERE ($4::timestamptz IS NULL)\n OR (\"sort_ts!\", \"id!\") < ($4, $5)\n ORDER BY \"sort_ts!\" DESC, \"id!\" DESC\n LIMIT $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_type!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_version_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "user_id!", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "name!", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "is_persistent", + "type_info": "Bool" + }, + { + "ordinal": 13, + "name": "sha", + "type_info": "Text" + }, + { + "ordinal": 14, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 15, + "name": "viewed_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 16, + "name": "sort_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 17, + "name": "is_completed", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Int8", + "Timestamptz", + "Text", + "Text", + "Uuid" + ] + }, + "nullable": [ + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null + ] + }, + "hash": "dd4f7c4b90b6340ea7f4a7d6eb16347612e9d197979f9d4a4df40314f22559f8" +} diff --git a/rust/cloud-storage/.sqlx/query-ddc49e2430354b28a22a3168b217f351cd450b0fe95a4c6015573da664c5c27d.json b/rust/cloud-storage/.sqlx/query-ddc49e2430354b28a22a3168b217f351cd450b0fe95a4c6015573da664c5c27d.json new file mode 100644 index 0000000000..58aefc0d62 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ddc49e2430354b28a22a3168b217f351cd450b0fe95a4c6015573da664c5c27d.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM user_notification\n WHERE user_id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "ddc49e2430354b28a22a3168b217f351cd450b0fe95a4c6015573da664c5c27d" +} diff --git a/rust/cloud-storage/.sqlx/query-ddd8755195a3cf6673045d0182a08a933c8e7ac6f811305b607046ae6021be79.json b/rust/cloud-storage/.sqlx/query-ddd8755195a3cf6673045d0182a08a933c8e7ac6f811305b607046ae6021be79.json new file mode 100644 index 0000000000..7e4b4f4136 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ddd8755195a3cf6673045d0182a08a933c8e7ac6f811305b607046ae6021be79.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH thread_owner AS (\n SELECT el.macro_id\n FROM email_threads t\n JOIN email_links el ON el.id = t.link_id\n WHERE t.id = $1::uuid\n ),\n shared_teams AS (\n -- Teams the requester shares with the owner that have CRM enabled.\n SELECT tcs.team_id, requester.team_role\n FROM team_user requester\n JOIN team_user owner_member ON owner_member.team_id = requester.team_id\n JOIN thread_owner o ON o.macro_id = owner_member.user_id\n JOIN team_crm_settings tcs ON tcs.team_id = requester.team_id\n WHERE requester.user_id = $2\n AND tcs.crm_enabled\n ),\n participants AS (\n -- Distinct addresses across from + to/cc/bcc on the thread.\n SELECT DISTINCT LOWER(ec.email_address) AS email\n FROM email_messages m\n JOIN email_contacts ec ON ec.id = m.from_contact_id\n WHERE m.thread_id = $1::uuid\n UNION\n SELECT DISTINCT LOWER(ec.email_address)\n FROM email_messages m\n JOIN email_message_recipients r ON r.message_id = m.id\n JOIN email_contacts ec ON ec.id = r.contact_id\n WHERE m.thread_id = $1::uuid\n )\n SELECT EXISTS (\n SELECT 1\n FROM shared_teams st\n -- Require at least one *external* participant (outside the\n -- requester's own email domain). A purely-internal thread\n -- shouldn't grant CRM access.\n WHERE EXISTS (\n SELECT 1\n FROM participants p\n WHERE split_part(p.email, '@', 2) <> split_part(LOWER($2), '@', 2)\n )\n AND NOT EXISTS (\n -- An external participant flagged for opt-out on this\n -- team. email_sync=false blocks everyone; hidden flags\n -- only block plain members.\n SELECT 1\n FROM participants p\n JOIN crm_contacts ct ON ct.email = p.email\n JOIN crm_companies c ON c.id = ct.company_id\n WHERE c.team_id = st.team_id\n AND split_part(p.email, '@', 2) <> split_part(LOWER($2), '@', 2)\n AND (\n NOT c.email_sync\n OR (\n (ct.hidden OR c.hidden)\n AND st.team_role = 'member'\n )\n )\n )\n ) AS \"granted!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "granted!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "ddd8755195a3cf6673045d0182a08a933c8e7ac6f811305b607046ae6021be79" +} diff --git a/rust/cloud-storage/.sqlx/query-de68d0cec65bf1c6779ac453af4ca4185ce3ebe294d432408c876b8a0b0a6b63.json b/rust/cloud-storage/.sqlx/query-de68d0cec65bf1c6779ac453af4ca4185ce3ebe294d432408c876b8a0b0a6b63.json new file mode 100644 index 0000000000..55078c8d47 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-de68d0cec65bf1c6779ac453af4ca4185ce3ebe294d432408c876b8a0b0a6b63.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_settings (link_id) -- default settings for new links\n VALUES ($1)\n ON CONFLICT (link_id)\n DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "de68d0cec65bf1c6779ac453af4ca4185ce3ebe294d432408c876b8a0b0a6b63" +} diff --git a/rust/cloud-storage/.sqlx/query-de8329eb43d809c9055c9530784594572d9da9387c41873beacfb4a615e964cb.json b/rust/cloud-storage/.sqlx/query-de8329eb43d809c9055c9530784594572d9da9387c41873beacfb4a615e964cb.json new file mode 100644 index 0000000000..fc174aa223 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-de8329eb43d809c9055c9530784594572d9da9387c41873beacfb4a615e964cb.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT l.macro_id AS \"macro_id!\"\n FROM email_threads et\n JOIN email_links l ON et.link_id = l.id\n WHERE et.id = $1\n UNION\n SELECT mul.primary_macro_id\n FROM email_threads et\n JOIN email_links l ON et.link_id = l.id\n JOIN macro_user_links mul ON mul.child_macro_id = l.macro_id\n WHERE et.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "de8329eb43d809c9055c9530784594572d9da9387c41873beacfb4a615e964cb" +} diff --git a/rust/cloud-storage/.sqlx/query-de888f70b426374eb436dfab5e58cab5a5d5423325a7834515c9c6a327f25f50.json b/rust/cloud-storage/.sqlx/query-de888f70b426374eb436dfab5e58cab5a5d5423325a7834515c9c6a327f25f50.json new file mode 100644 index 0000000000..4f08d6fc9f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-de888f70b426374eb436dfab5e58cab5a5d5423325a7834515c9c6a327f25f50.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT tu.team_id\n FROM \"Document\" d\n JOIN team_user tu ON tu.user_id = d.owner\n WHERE d.id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "team_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "de888f70b426374eb436dfab5e58cab5a5d5423325a7834515c9c6a327f25f50" +} diff --git a/rust/cloud-storage/.sqlx/query-de8dbe51fdbaeeb8ac8c8af8627c6838a4054a719ac6b54f6f7acb53a9353a3a.json b/rust/cloud-storage/.sqlx/query-de8dbe51fdbaeeb8ac8c8af8627c6838a4054a719ac6b54f6f7acb53a9353a3a.json new file mode 100644 index 0000000000..d798a0af26 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-de8dbe51fdbaeeb8ac8c8af8627c6838a4054a719ac6b54f6f7acb53a9353a3a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Document\"\n SET \"deletedAt\" = NULL\n WHERE id = $1\n RETURNING owner as owner\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "owner", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "de8dbe51fdbaeeb8ac8c8af8627c6838a4054a719ac6b54f6f7acb53a9353a3a" +} diff --git a/rust/cloud-storage/.sqlx/query-debae3edf7b8f02aefffa4464ad9a4c474f1e7d5c0071bdb1261df0c1d8b2373.json b/rust/cloud-storage/.sqlx/query-debae3edf7b8f02aefffa4464ad9a4c474f1e7d5c0071bdb1261df0c1d8b2373.json new file mode 100644 index 0000000000..be486fcbde --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-debae3edf7b8f02aefffa4464ad9a4c474f1e7d5c0071bdb1261df0c1d8b2373.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"modificationData\" as modification_data\n FROM \"DocumentInstanceModificationData\"\n WHERE \"documentInstanceId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "modification_data", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "debae3edf7b8f02aefffa4464ad9a4c474f1e7d5c0071bdb1261df0c1d8b2373" +} diff --git a/rust/cloud-storage/.sqlx/query-debef3a27b832b3600037a6304558a23c2407f742e67e7c06553929f4405478e.json b/rust/cloud-storage/.sqlx/query-debef3a27b832b3600037a6304558a23c2407f742e67e7c06553929f4405478e.json new file mode 100644 index 0000000000..d7dc0f11fd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-debef3a27b832b3600037a6304558a23c2407f742e67e7c06553929f4405478e.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT 1 as exists FROM macro_user WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "debef3a27b832b3600037a6304558a23c2407f742e67e7c06553929f4405478e" +} diff --git a/rust/cloud-storage/.sqlx/query-dedb4996ddd1f4a5a44ce96d8ab9e7ad85d35c823d233e6d9b53534c5aaf94b0.json b/rust/cloud-storage/.sqlx/query-dedb4996ddd1f4a5a44ce96d8ab9e7ad85d35c823d233e6d9b53534c5aaf94b0.json new file mode 100644 index 0000000000..6e0e82479b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-dedb4996ddd1f4a5a44ce96d8ab9e7ad85d35c823d233e6d9b53534c5aaf94b0.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n NULLIF(mui.first_name, 'N/A') AS first_name,\n NULLIF(mui.last_name, 'N/A') AS last_name\n FROM macro_user_info mui\n JOIN \"User\" u ON mui.macro_user_id = u.macro_user_id\n WHERE u.id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "first_name", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "last_name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null, + null + ] + }, + "hash": "dedb4996ddd1f4a5a44ce96d8ab9e7ad85d35c823d233e6d9b53534c5aaf94b0" +} diff --git a/rust/cloud-storage/.sqlx/query-df4f91b8a401ff941c7b57f910979e0ec39a507de612ff7887172062237f29ce.json b/rust/cloud-storage/.sqlx/query-df4f91b8a401ff941c7b57f910979e0ec39a507de612ff7887172062237f29ce.json new file mode 100644 index 0000000000..9f8f5e53d4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-df4f91b8a401ff941c7b57f910979e0ec39a507de612ff7887172062237f29ce.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Project\" SET \"deletedAt\" = NULL WHERE id = ANY($1);\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "df4f91b8a401ff941c7b57f910979e0ec39a507de612ff7887172062237f29ce" +} diff --git a/rust/cloud-storage/.sqlx/query-dfc54abc6dd32c35bf3d3c65288ead04d9990d5f6613bd7668dd7cba38ebe3a5.json b/rust/cloud-storage/.sqlx/query-dfc54abc6dd32c35bf3d3c65288ead04d9990d5f6613bd7668dd7cba38ebe3a5.json new file mode 100644 index 0000000000..f8ffb29abe --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-dfc54abc6dd32c35bf3d3c65288ead04d9990d5f6613bd7668dd7cba38ebe3a5.json @@ -0,0 +1,149 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id,\n m.provider_id,\n m.thread_id,\n m.provider_thread_id,\n m.replying_to_id,\n m.global_id,\n m.link_id,\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.provider_history_id,\n m.internal_date_ts,\n m.sent_at,\n m.size_estimate,\n m.is_read,\n m.is_starred,\n m.is_sent,\n m.is_draft,\n m.has_attachments,\n m.headers_jsonb,\n m.created_at,\n m.updated_at\n FROM email_messages m\n WHERE m.thread_id = $1 AND m.link_id = $2\n ORDER BY m.internal_date_ts DESC NULLS LAST\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 10, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 12, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 13, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 14, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 15, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 20, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 21, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + true, + false, + false + ] + }, + "hash": "dfc54abc6dd32c35bf3d3c65288ead04d9990d5f6613bd7668dd7cba38ebe3a5" +} diff --git a/rust/cloud-storage/.sqlx/query-dfccb13f0d0abe2be31bb40067f2e4c29fe260e81d13c017b8bc4fae2b94703f.json b/rust/cloud-storage/.sqlx/query-dfccb13f0d0abe2be31bb40067f2e4c29fe260e81d13c017b8bc4fae2b94703f.json new file mode 100644 index 0000000000..e646e8765d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-dfccb13f0d0abe2be31bb40067f2e4c29fe260e81d13c017b8bc4fae2b94703f.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"Project\"\n SET \"uploadPending\" = false\n WHERE id = ANY($1)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "dfccb13f0d0abe2be31bb40067f2e4c29fe260e81d13c017b8bc4fae2b94703f" +} diff --git a/rust/cloud-storage/.sqlx/query-e08bcee71072e0e693b1b3f2df39a2b9574f45847919251446878f32b9febbc2.json b/rust/cloud-storage/.sqlx/query-e08bcee71072e0e693b1b3f2df39a2b9574f45847919251446878f32b9febbc2.json new file mode 100644 index 0000000000..f47413e3dc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e08bcee71072e0e693b1b3f2df39a2b9574f45847919251446878f32b9febbc2.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH RECURSIVE parent_projects AS (\n -- Base case: the project itself\n SELECT id, name, \"parentId\"\n FROM \"Project\"\n WHERE id = $1\n\n UNION ALL\n\n -- Recursive case: walk up to the parent\n SELECT p.id, p.name, p.\"parentId\"\n FROM \"Project\" p\n INNER JOIN parent_projects pp ON p.id = pp.\"parentId\"\n )\n SELECT id as \"id!\"\n FROM parent_projects\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "e08bcee71072e0e693b1b3f2df39a2b9574f45847919251446878f32b9febbc2" +} diff --git a/rust/cloud-storage/.sqlx/query-e0b90388e3a9f7dbd1e6586cb0633b0d2d39d64dcc88a0f0c5cd310303e7dc92.json b/rust/cloud-storage/.sqlx/query-e0b90388e3a9f7dbd1e6586cb0633b0d2d39d64dcc88a0f0c5cd310303e7dc92.json new file mode 100644 index 0000000000..a6d8c54236 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e0b90388e3a9f7dbd1e6586cb0633b0d2d39d64dcc88a0f0c5cd310303e7dc92.json @@ -0,0 +1,140 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO property_definitions (\n id,\n organization_id, \n user_id, \n display_name, \n data_type, \n is_multi_select,\n specific_entity_type\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n RETURNING \n id,\n organization_id,\n user_id,\n display_name,\n data_type as \"data_type: DataType\",\n is_multi_select,\n specific_entity_type as \"specific_entity_type: Option\",\n created_at,\n updated_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "organization_id", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "display_name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "data_type: DataType", + "type_info": { + "Custom": { + "name": "property_data_type", + "kind": { + "Enum": [ + "BOOLEAN", + "DATE", + "NUMBER", + "STRING", + "SELECT_NUMBER", + "SELECT_STRING", + "ENTITY", + "LINK" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_multi_select", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "specific_entity_type: Option", + "type_info": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Int4", + "Text", + "Text", + { + "Custom": { + "name": "property_data_type", + "kind": { + "Enum": [ + "BOOLEAN", + "DATE", + "NUMBER", + "STRING", + "SELECT_NUMBER", + "SELECT_STRING", + "ENTITY", + "LINK" + ] + } + } + }, + "Bool", + { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + false, + true, + false, + false + ] + }, + "hash": "e0b90388e3a9f7dbd1e6586cb0633b0d2d39d64dcc88a0f0c5cd310303e7dc92" +} diff --git a/rust/cloud-storage/.sqlx/query-e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957.json b/rust/cloud-storage/.sqlx/query-e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957.json new file mode 100644 index 0000000000..edb97b0c59 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, segment_id, speaker_id, diarized_speaker_id, custom_speaker, content, started_at, ended_at, sequence_num\n FROM call_record_transcripts\n WHERE call_record_id = $1\n ORDER BY sequence_num ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "segment_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "speaker_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "diarized_speaker_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "custom_speaker", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "started_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "ended_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "sequence_num", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true, + false, + true, + true, + false, + false, + true, + false + ] + }, + "hash": "e0f6814556fe2f6367e9e337e4f33fb4c48b673d594fcaf198ee927949796957" +} diff --git a/rust/cloud-storage/.sqlx/query-e0f9ac039268a99b0d65cecf7ed18ee7fb04db4955d5dca83ca1c6c9e0eaa884.json b/rust/cloud-storage/.sqlx/query-e0f9ac039268a99b0d65cecf7ed18ee7fb04db4955d5dca83ca1c6c9e0eaa884.json new file mode 100644 index 0000000000..20b26e117e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e0f9ac039268a99b0d65cecf7ed18ee7fb04db4955d5dca83ca1c6c9e0eaa884.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM notification_email_sent\n WHERE user_id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "e0f9ac039268a99b0d65cecf7ed18ee7fb04db4955d5dca83ca1c6c9e0eaa884" +} diff --git a/rust/cloud-storage/.sqlx/query-e10378347cb7114449942c583bb9426932aba9ae4a09ab96ebfa32c46e8b6fcf.json b/rust/cloud-storage/.sqlx/query-e10378347cb7114449942c583bb9426932aba9ae4a09ab96ebfa32c46e8b6fcf.json new file mode 100644 index 0000000000..d7cd03f2bf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e10378347cb7114449942c583bb9426932aba9ae4a09ab96ebfa32c46e8b6fcf.json @@ -0,0 +1,87 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n mr.message_id,\n c.id,\n c.link_id,\n c.email_address,\n COALESCE(mr.name, c.name) as \"name\", -- name from message overrides contact name\n c.original_photo_url,\n c.sfs_photo_url,\n c.created_at,\n c.updated_at,\n mr.recipient_type as \"recipient_type!: db::address::EmailRecipientType\"\n FROM email_messages m\n JOIN email_message_recipients mr ON m.id = mr.message_id\n JOIN email_contacts c ON mr.contact_id = c.id\n WHERE\n m.id = ANY($1)\n ORDER BY mr.message_id, mr.recipient_type\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "original_photo_url", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "sfs_photo_url", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "recipient_type!: db::address::EmailRecipientType", + "type_info": { + "Custom": { + "name": "email_recipient_type", + "kind": { + "Enum": [ + "TO", + "CC", + "BCC" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + false, + null, + true, + true, + false, + false, + false + ] + }, + "hash": "e10378347cb7114449942c583bb9426932aba9ae4a09ab96ebfa32c46e8b6fcf" +} diff --git a/rust/cloud-storage/.sqlx/query-e11187ed1bd1944597258bbdefa8ec23de215edc1de1d020d418e2e89b17424e.json b/rust/cloud-storage/.sqlx/query-e11187ed1bd1944597258bbdefa8ec23de215edc1de1d020d418e2e89b17424e.json new file mode 100644 index 0000000000..155a235c83 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e11187ed1bd1944597258bbdefa8ec23de215edc1de1d020d418e2e89b17424e.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"OrganizationDefaultSharePermission\"\n WHERE \"organization_id\" = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [] + }, + "hash": "e11187ed1bd1944597258bbdefa8ec23de215edc1de1d020d418e2e89b17424e" +} diff --git a/rust/cloud-storage/.sqlx/query-e12622009d9e824222ae86c7b823e4f4ba653a16b53f9ffb7b99566d202dbd68.json b/rust/cloud-storage/.sqlx/query-e12622009d9e824222ae86c7b823e4f4ba653a16b53f9ffb7b99566d202dbd68.json new file mode 100644 index 0000000000..41d0d39078 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e12622009d9e824222ae86c7b823e4f4ba653a16b53f9ffb7b99566d202dbd68.json @@ -0,0 +1,71 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n company_id,\n email,\n name,\n hidden,\n first_interaction,\n last_interaction,\n created_at,\n updated_at\n FROM crm_contacts\n WHERE company_id = $1\n AND ($2 OR hidden = FALSE)\n ORDER BY LOWER(COALESCE(name, email)) ASC, id DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "company_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "email", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "hidden", + "type_info": "Bool" + }, + { + "ordinal": 5, + "name": "first_interaction", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "last_interaction", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Bool" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false, + false, + false, + false + ] + }, + "hash": "e12622009d9e824222ae86c7b823e4f4ba653a16b53f9ffb7b99566d202dbd68" +} diff --git a/rust/cloud-storage/.sqlx/query-e17994ebc0589faabde0aa239f24c542292d06b39c744f2055038ac46c41bbdc.json b/rust/cloud-storage/.sqlx/query-e17994ebc0589faabde0aa239f24c542292d06b39c744f2055038ac46c41bbdc.json new file mode 100644 index 0000000000..996b2268bd --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e17994ebc0589faabde0aa239f24c542292d06b39c744f2055038ac46c41bbdc.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, macro_id, fusionauth_user_id as \"fusionauth_user_id: Uuid\", github_username, github_user_id, created_at, updated_at\n FROM github_links\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "github_username", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "github_user_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "e17994ebc0589faabde0aa239f24c542292d06b39c744f2055038ac46c41bbdc" +} diff --git a/rust/cloud-storage/.sqlx/query-e17eb13c62a13ec9d5355a6f632b414792f6d87963138b7969b6a8f179e508a1.json b/rust/cloud-storage/.sqlx/query-e17eb13c62a13ec9d5355a6f632b414792f6d87963138b7969b6a8f179e508a1.json new file mode 100644 index 0000000000..15dd620397 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e17eb13c62a13ec9d5355a6f632b414792f6d87963138b7969b6a8f179e508a1.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n id,\n email,\n \"organizationId\" as \"organization_id?\",\n macro_user_id as \"macro_user_id?\"\n FROM \"User\"\n WHERE \"email\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "email", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "organization_id?", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "macro_user_id?", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true, + false + ] + }, + "hash": "e17eb13c62a13ec9d5355a6f632b414792f6d87963138b7969b6a8f179e508a1" +} diff --git a/rust/cloud-storage/.sqlx/query-e1aae69a066a831096b61a7318b753897d59e28cedd21e439c20ff09268a831a.json b/rust/cloud-storage/.sqlx/query-e1aae69a066a831096b61a7318b753897d59e28cedd21e439c20ff09268a831a.json new file mode 100644 index 0000000000..0aa41ab440 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e1aae69a066a831096b61a7318b753897d59e28cedd21e439c20ff09268a831a.json @@ -0,0 +1,92 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE bots\n SET name = COALESCE($2, name),\n handle = COALESCE($3, handle),\n description = COALESCE($4, description),\n avatar_url = COALESCE($5, avatar_url),\n updated_at = now()\n WHERE id = $1\n AND deleted_at IS NULL\n RETURNING\n id,\n kind,\n owner_user_id,\n team_id,\n name,\n handle,\n description,\n avatar_url,\n created_by,\n created_at,\n updated_at,\n deleted_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "kind", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "team_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "handle", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "description", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "avatar_url", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "created_by", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true + ] + }, + "hash": "e1aae69a066a831096b61a7318b753897d59e28cedd21e439c20ff09268a831a" +} diff --git a/rust/cloud-storage/.sqlx/query-e1f9c3663588dbc2e59aa729190c477b8ae7e89dde630c125c1364ee211c454b.json b/rust/cloud-storage/.sqlx/query-e1f9c3663588dbc2e59aa729190c477b8ae7e89dde630c125c1364ee211c454b.json new file mode 100644 index 0000000000..5b3d78de3a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e1f9c3663588dbc2e59aa729190c477b8ae7e89dde630c125c1364ee211c454b.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"macro_user\" (\"id\", \"username\", \"stripe_customer_id\", \"email\", \"has_trialed\")\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Text", + "Bool" + ] + }, + "nullable": [ + false + ] + }, + "hash": "e1f9c3663588dbc2e59aa729190c477b8ae7e89dde630c125c1364ee211c454b" +} diff --git a/rust/cloud-storage/.sqlx/query-e1fc9c7524d0d20844d2cad0402fd1a2058e31c5692d66a0107d9a45c9d83f7b.json b/rust/cloud-storage/.sqlx/query-e1fc9c7524d0d20844d2cad0402fd1a2058e31c5692d66a0107d9a45c9d83f7b.json new file mode 100644 index 0000000000..7448650148 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e1fc9c7524d0d20844d2cad0402fd1a2058e31c5692d66a0107d9a45c9d83f7b.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE comms_channels\n SET name = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Varchar", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "e1fc9c7524d0d20844d2cad0402fd1a2058e31c5692d66a0107d9a45c9d83f7b" +} diff --git a/rust/cloud-storage/.sqlx/query-e263f6ef753e7f2c2debc7f63c8658670ee906d1814f037f1c20e3569ecfd270.json b/rust/cloud-storage/.sqlx/query-e263f6ef753e7f2c2debc7f63c8658670ee906d1814f037f1c20e3569ecfd270.json new file mode 100644 index 0000000000..5d79450654 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e263f6ef753e7f2c2debc7f63c8658670ee906d1814f037f1c20e3569ecfd270.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"User\"\n SET \"hasOnboardingDocuments\" = $1\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bool", + "Text" + ] + }, + "nullable": [] + }, + "hash": "e263f6ef753e7f2c2debc7f63c8658670ee906d1814f037f1c20e3569ecfd270" +} diff --git a/rust/cloud-storage/.sqlx/query-e28bfb9ffa642d99401e17cbbe174df5312e5fae38f374945f807ce68d0314a8.json b/rust/cloud-storage/.sqlx/query-e28bfb9ffa642d99401e17cbbe174df5312e5fae38f374945f807ce68d0314a8.json new file mode 100644 index 0000000000..20764699a6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e28bfb9ffa642d99401e17cbbe174df5312e5fae38f374945f807ce68d0314a8.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT team_id\n FROM team_user\n WHERE user_id = $1\n ORDER BY team_role DESC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "team_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "e28bfb9ffa642d99401e17cbbe174df5312e5fae38f374945f807ce68d0314a8" +} diff --git a/rust/cloud-storage/.sqlx/query-e2c696b916af0f7591d95a280d75c01e2e6e9dee46a74504fde48b78587934b6.json b/rust/cloud-storage/.sqlx/query-e2c696b916af0f7591d95a280d75c01e2e6e9dee46a74504fde48b78587934b6.json new file mode 100644 index 0000000000..aadf5b33e9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e2c696b916af0f7591d95a280d75c01e2e6e9dee46a74504fde48b78587934b6.json @@ -0,0 +1,27 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_channel_participants (channel_id, user_id, role)\n VALUES ($1, $2, $3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + { + "Custom": { + "name": "comms_participant_role", + "kind": { + "Enum": [ + "owner", + "admin", + "member" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "e2c696b916af0f7591d95a280d75c01e2e6e9dee46a74504fde48b78587934b6" +} diff --git a/rust/cloud-storage/.sqlx/query-e2cadbb29d007b092339274024c3638798761653ca72db90aa2ce7417976ef61.json b/rust/cloud-storage/.sqlx/query-e2cadbb29d007b092339274024c3638798761653ca72db90aa2ce7417976ef61.json new file mode 100644 index 0000000000..a24ebef4da --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e2cadbb29d007b092339274024c3638798761653ca72db90aa2ce7417976ef61.json @@ -0,0 +1,47 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH old AS (\n SELECT link_id, message_id, send_time, sent, processing\n FROM email_scheduled_messages\n WHERE link_id = $1 AND message_id = $2\n ), updated AS (\n UPDATE email_scheduled_messages\n SET processing = true, updated_at = NOW()\n WHERE link_id = $1 AND message_id = $2\n )\n SELECT link_id, message_id, send_time, sent, processing\n FROM old\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "message_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "send_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "sent", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "processing", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false + ] + }, + "hash": "e2cadbb29d007b092339274024c3638798761653ca72db90aa2ce7417976ef61" +} diff --git a/rust/cloud-storage/.sqlx/query-e33fa0c9cec501d3d4a9c98d1c80717756b395ffb54f82d50691520065eb6036.json b/rust/cloud-storage/.sqlx/query-e33fa0c9cec501d3d4a9c98d1c80717756b395ffb54f82d50691520065eb6036.json new file mode 100644 index 0000000000..057a1963fc --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e33fa0c9cec501d3d4a9c98d1c80717756b395ffb54f82d50691520065eb6036.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Pin\" WHERE \"pinnedItemId\" = ANY($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "e33fa0c9cec501d3d4a9c98d1c80717756b395ffb54f82d50691520065eb6036" +} diff --git a/rust/cloud-storage/.sqlx/query-e3502d4611d734fa9d27c17c3adb0785d06317da255894345de287a654f24fc3.json b/rust/cloud-storage/.sqlx/query-e3502d4611d734fa9d27c17c3adb0785d06317da255894345de287a654f24fc3.json new file mode 100644 index 0000000000..1bb390dc5d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e3502d4611d734fa9d27c17c3adb0785d06317da255894345de287a654f24fc3.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM property_definitions WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "e3502d4611d734fa9d27c17c3adb0785d06317da255894345de287a654f24fc3" +} diff --git a/rust/cloud-storage/.sqlx/query-e35594f0b886c9eaba037a0b13ccb3baf21cd37b638190889fb5383180a8e437.json b/rust/cloud-storage/.sqlx/query-e35594f0b886c9eaba037a0b13ccb3baf21cd37b638190889fb5383180a8e437.json new file mode 100644 index 0000000000..3ac1b029f6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e35594f0b886c9eaba037a0b13ccb3baf21cd37b638190889fb5383180a8e437.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n \"publicAccessLevel\" as \"access_level!\"\n FROM \"SharePermission\"\n WHERE \"isPublic\" = true\n AND \"publicAccessLevel\" IS NOT NULL\n AND id IN (\n SELECT \"sharePermissionId\" FROM \"EmailThreadPermission\" WHERE \"threadId\" = $1\n )\n\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "access_level!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true + ] + }, + "hash": "e35594f0b886c9eaba037a0b13ccb3baf21cd37b638190889fb5383180a8e437" +} diff --git a/rust/cloud-storage/.sqlx/query-e3cbccf7e62eaa5d655b12fbf32d181f2bb79b25ac3c2300e2eab17c912697af.json b/rust/cloud-storage/.sqlx/query-e3cbccf7e62eaa5d655b12fbf32d181f2bb79b25ac3c2300e2eab17c912697af.json new file mode 100644 index 0000000000..be2165bfbe --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e3cbccf7e62eaa5d655b12fbf32d181f2bb79b25ac3c2300e2eab17c912697af.json @@ -0,0 +1,95 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH limited_companies AS (\n SELECT\n c.id,\n c.team_id,\n c.email_sync,\n c.hidden,\n c.first_interaction,\n c.last_interaction\n FROM crm_companies c\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = c.id::text\n AND uh.\"itemType\" = 'crm_company'\n AND uh.\"userId\" = $8\n WHERE c.team_id = $1\n AND c.hidden = COALESCE($5::bool, FALSE)\n AND EXISTS (\n SELECT 1 FROM team_crm_settings tcs\n WHERE tcs.team_id = $1 AND tcs.crm_enabled\n )\n AND (cardinality($2::uuid[]) = 0 OR c.id = ANY($2::uuid[]))\n -- Keyset seek (NULL = first page): keep only rows that\n -- sort strictly after the cursor.\n AND (\n $6::timestamptz IS NULL\n OR (\n CASE $4\n WHEN 'created_at' THEN c.first_interaction\n WHEN 'viewed_at' THEN uh.\"updatedAt\"\n WHEN 'viewed_updated'\n THEN COALESCE(uh.\"updatedAt\", c.last_interaction)\n ELSE c.last_interaction\n END,\n c.id::text\n ) < ($6, $7)\n )\n ORDER BY\n CASE $4\n WHEN 'created_at' THEN c.first_interaction\n WHEN 'viewed_at' THEN uh.\"updatedAt\"\n WHEN 'viewed_updated'\n THEN COALESCE(uh.\"updatedAt\", c.last_interaction)\n ELSE c.last_interaction\n END DESC NULLS LAST,\n c.id DESC\n LIMIT $3\n )\n SELECT\n lc.id AS \"company_id!\",\n lc.team_id AS \"company_team_id!\",\n lc.email_sync AS \"company_email_sync!\",\n lc.hidden AS \"company_hidden!\",\n lc.first_interaction AS \"company_created_at!\",\n lc.last_interaction AS \"company_updated_at!\",\n d.id AS \"domain_id?\",\n d.domain AS \"domain?\",\n d.created_at AS \"domain_created_at?\",\n dd.name AS \"dir_name?\",\n dd.description AS \"dir_description?\",\n uh.\"updatedAt\"::timestamptz AS \"viewed_at?\"\n FROM limited_companies lc\n LEFT JOIN \"UserHistory\" uh\n ON uh.\"itemId\" = lc.id::text\n AND uh.\"itemType\" = 'crm_company'\n AND uh.\"userId\" = $8\n LEFT JOIN crm_domains d ON d.company_id = lc.id\n LEFT JOIN crm_domain_directory dd\n ON LOWER(dd.domain) = LOWER(d.domain)\n ORDER BY\n CASE $4\n WHEN 'created_at' THEN lc.first_interaction\n WHEN 'viewed_at' THEN uh.\"updatedAt\"\n WHEN 'viewed_updated'\n THEN COALESCE(uh.\"updatedAt\", lc.last_interaction)\n ELSE lc.last_interaction\n END DESC NULLS LAST,\n lc.id DESC,\n d.created_at ASC NULLS LAST\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "company_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "company_team_id!", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "company_email_sync!", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "company_hidden!", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "company_created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "company_updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "domain_id?", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "domain?", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "domain_created_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "dir_name?", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "dir_description?", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "viewed_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "UuidArray", + "Int8", + "Text", + "Bool", + "Timestamptz", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + null + ] + }, + "hash": "e3cbccf7e62eaa5d655b12fbf32d181f2bb79b25ac3c2300e2eab17c912697af" +} diff --git a/rust/cloud-storage/.sqlx/query-e3ceebff1df78cef1b26e165cc4967a55f7b5355b7ff835eed0f93b4b8458ceb.json b/rust/cloud-storage/.sqlx/query-e3ceebff1df78cef1b26e165cc4967a55f7b5355b7ff835eed0f93b4b8458ceb.json new file mode 100644 index 0000000000..b6ac45e454 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e3ceebff1df78cef1b26e165cc4967a55f7b5355b7ff835eed0f93b4b8458ceb.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"SharePermission\" (\"isPublic\", \"publicAccessLevel\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, NOW(), NOW())\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Bool", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "e3ceebff1df78cef1b26e165cc4967a55f7b5355b7ff835eed0f93b4b8458ceb" +} diff --git a/rust/cloud-storage/.sqlx/query-e3e481b6dc2c40e088840b2f96b463fd3df8488cbce6001cad1bfe990b347b63.json b/rust/cloud-storage/.sqlx/query-e3e481b6dc2c40e088840b2f96b463fd3df8488cbce6001cad1bfe990b347b63.json new file mode 100644 index 0000000000..d429ec70af --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e3e481b6dc2c40e088840b2f96b463fd3df8488cbce6001cad1bfe990b347b63.json @@ -0,0 +1,19 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_contacts (id, link_id, email_address, name, original_photo_url, sfs_photo_url, updated_at)\n SELECT * FROM UNNEST($1::uuid[], $2::uuid[], $3::varchar[], $4::varchar[], $5::text[], $6::text[]), NOW()\n ON CONFLICT (link_id, email_address)\n DO UPDATE SET\n -- Overwrite existing name - contact names take precedence over names included with emails\n name = COALESCE(EXCLUDED.name, email_contacts.name),\n original_photo_url = COALESCE(EXCLUDED.original_photo_url, email_contacts.original_photo_url),\n sfs_photo_url = COALESCE(EXCLUDED.sfs_photo_url, email_contacts.sfs_photo_url),\n updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "UuidArray", + "VarcharArray", + "VarcharArray", + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "e3e481b6dc2c40e088840b2f96b463fd3df8488cbce6001cad1bfe990b347b63" +} diff --git a/rust/cloud-storage/.sqlx/query-e46bb839438b0dc805a6336d9ab0e64bad441f07222bfe922c9da81c7d2c3a47.json b/rust/cloud-storage/.sqlx/query-e46bb839438b0dc805a6336d9ab0e64bad441f07222bfe922c9da81c7d2c3a47.json new file mode 100644 index 0000000000..edb2659776 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e46bb839438b0dc805a6336d9ab0e64bad441f07222bfe922c9da81c7d2c3a47.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT document_id\n FROM document_email de\n INNER JOIN \"Document\" d on de.document_id = d.id\n INNER JOIN email_attachments ea on de.email_attachment_id = ea.id\n INNER JOIN email_messages em on ea.message_id = em.id\n WHERE em.link_id = $1 AND email_attachment_id = $2 AND d.\"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "e46bb839438b0dc805a6336d9ab0e64bad441f07222bfe922c9da81c7d2c3a47" +} diff --git a/rust/cloud-storage/.sqlx/query-e4bd72019eaf76d30d907a1fb8b3811f1d4c96c7049794890f30b1e831381010.json b/rust/cloud-storage/.sqlx/query-e4bd72019eaf76d30d907a1fb8b3811f1d4c96c7049794890f30b1e831381010.json new file mode 100644 index 0000000000..99718ab20d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e4bd72019eaf76d30d907a1fb8b3811f1d4c96c7049794890f30b1e831381010.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n u.id as user_profile_id, \n mui.first_name, \n mui.last_name\n FROM macro_user_info mui\n JOIN \"User\" u ON mui.macro_user_id = u.macro_user_id\n WHERE u.id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_profile_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "first_name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "last_name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + true, + true + ] + }, + "hash": "e4bd72019eaf76d30d907a1fb8b3811f1d4c96c7049794890f30b1e831381010" +} diff --git a/rust/cloud-storage/.sqlx/query-e4dda9b303d359c6c4e3c7b120136ae5c11cd902c373ed20d8119ba050c7dfbd.json b/rust/cloud-storage/.sqlx/query-e4dda9b303d359c6c4e3c7b120136ae5c11cd902c373ed20d8119ba050c7dfbd.json new file mode 100644 index 0000000000..a9bb85e11c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e4dda9b303d359c6c4e3c7b120136ae5c11cd902c373ed20d8119ba050c7dfbd.json @@ -0,0 +1,95 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n id, \n link_id, \n provider_label_id, \n name, \n created_at,\n message_list_visibility as \"message_list_visibility: _\",\n label_list_visibility as \"label_list_visibility: _\",\n type as \"type_: _\"\n FROM email_labels\n WHERE link_id = $1\n ORDER BY name\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "provider_label_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "message_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_message_list_visibility_enum", + "kind": { + "Enum": [ + "Show", + "Hide" + ] + } + } + } + }, + { + "ordinal": 6, + "name": "label_list_visibility: _", + "type_info": { + "Custom": { + "name": "email_label_list_visibility_enum", + "kind": { + "Enum": [ + "LabelShow", + "LabelShowIfUnread", + "LabelHide" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "type_: _", + "type_info": { + "Custom": { + "name": "email_label_type_enum", + "kind": { + "Enum": [ + "System", + "User" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "e4dda9b303d359c6c4e3c7b120136ae5c11cd902c373ed20d8119ba050c7dfbd" +} diff --git a/rust/cloud-storage/.sqlx/query-e4e4c79727e7a83f2dfbb1d82a00a771eb3bd08aab63d2be4a1338fbde315f62.json b/rust/cloud-storage/.sqlx/query-e4e4c79727e7a83f2dfbb1d82a00a771eb3bd08aab63d2be4a1338fbde315f62.json new file mode 100644 index 0000000000..f0ae8ed700 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e4e4c79727e7a83f2dfbb1d82a00a771eb3bd08aab63d2be4a1338fbde315f62.json @@ -0,0 +1,66 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT *\n FROM frecency_aggregates\n WHERE user_id = $1 AND ($2::float8 IS NULL OR frecency_score < $2)\n ORDER BY frecency_score DESC\n LIMIT $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "entity_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "entity_type", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "user_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "event_count", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "frecency_score", + "type_info": "Float8" + }, + { + "ordinal": 6, + "name": "first_event", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "recent_events", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Text", + "Float8", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "e4e4c79727e7a83f2dfbb1d82a00a771eb3bd08aab63d2be4a1338fbde315f62" +} diff --git a/rust/cloud-storage/.sqlx/query-e4eb2173ecfc39987f998d5075237c0b8aaf00c3eae94c06f069591f72445e14.json b/rust/cloud-storage/.sqlx/query-e4eb2173ecfc39987f998d5075237c0b8aaf00c3eae94c06f069591f72445e14.json new file mode 100644 index 0000000000..0c2c26e399 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e4eb2173ecfc39987f998d5075237c0b8aaf00c3eae94c06f069591f72445e14.json @@ -0,0 +1,71 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH source_ids AS (\n SELECT DISTINCT stored_for_id, stored_for_auth_entity\n FROM UNNEST($1::text[], $2::text[])\n AS source_rows(stored_for_id, stored_for_auth_entity)\n ),\n deduped AS (\n SELECT DISTINCT ON (fe.foreign_entity_source, fe.foreign_entity_id)\n fe.id,\n fe.foreign_entity_id,\n fe.foreign_entity_source,\n fe.metadata,\n fe.stored_for_id,\n fe.stored_for_auth_entity,\n fe.created_at,\n fe.updated_at,\n CASE $3::text\n WHEN 'created_at' THEN fe.created_at\n ELSE fe.updated_at\n END AS sort_at\n FROM foreign_entity fe\n WHERE EXISTS (\n SELECT 1\n FROM source_ids s\n WHERE s.stored_for_id = fe.stored_for_id\n AND s.stored_for_auth_entity = fe.stored_for_auth_entity\n )\n AND (\n $4::text IS NULL\n OR jsonb_path_match(\n jsonb_build_object(\n 'id', fe.id::text,\n 'foreignEntityId', fe.foreign_entity_id,\n 'foreignEntitySource', fe.foreign_entity_source\n ),\n ($4::text)::jsonpath\n )\n )\n AND (\n $8::text IS NULL\n OR (fe.metadata -> 'participantGithubUserIds') ? $8::text\n )\n ORDER BY fe.foreign_entity_source, fe.foreign_entity_id, sort_at DESC, fe.id DESC\n )\n SELECT\n id as \"id!: Uuid\",\n foreign_entity_id as \"foreign_entity_id!: String\",\n foreign_entity_source as \"foreign_entity_source!: String\",\n metadata as \"metadata!: serde_json::Value\",\n stored_for_id as \"stored_for_id!: String\",\n stored_for_auth_entity as \"stored_for_auth_entity!: String\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\"\n FROM deduped\n WHERE $5::timestamptz IS NULL\n OR (sort_at, id) < ($5::timestamptz, $6::uuid)\n ORDER BY sort_at DESC, id DESC\n LIMIT $7\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "foreign_entity_id!: String", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "foreign_entity_source!: String", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "metadata!: serde_json::Value", + "type_info": "Jsonb" + }, + { + "ordinal": 4, + "name": "stored_for_id!: String", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "stored_for_auth_entity!: String", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "created_at!: DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at!: DateTime", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "TextArray", + "TextArray", + "Text", + "Text", + "Timestamptz", + "Uuid", + "Int8", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "e4eb2173ecfc39987f998d5075237c0b8aaf00c3eae94c06f069591f72445e14" +} diff --git a/rust/cloud-storage/.sqlx/query-e52ca994b4107db7e434502dc1f370666bf2efa34290ee8f1a6c89330b29522e.json b/rust/cloud-storage/.sqlx/query-e52ca994b4107db7e434502dc1f370666bf2efa34290ee8f1a6c89330b29522e.json new file mode 100644 index 0000000000..4c4e54cbd8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e52ca994b4107db7e434502dc1f370666bf2efa34290ee8f1a6c89330b29522e.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"OrganizationInvitation\" (\"organization_id\", \"email\")\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Text" + ] + }, + "nullable": [] + }, + "hash": "e52ca994b4107db7e434502dc1f370666bf2efa34290ee8f1a6c89330b29522e" +} diff --git a/rust/cloud-storage/.sqlx/query-e54d13b2e6e397c0f1fbc83ea7dea28d255c30f360759bf57b7d0b31294c785f.json b/rust/cloud-storage/.sqlx/query-e54d13b2e6e397c0f1fbc83ea7dea28d255c30f360759bf57b7d0b31294c785f.json new file mode 100644 index 0000000000..d8c8d36d0b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e54d13b2e6e397c0f1fbc83ea7dea28d255c30f360759bf57b7d0b31294c785f.json @@ -0,0 +1,18 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"UserHistory\" (\"userId\", \"itemId\", \"itemType\", \"createdAt\", \"updatedAt\")\n SELECT * FROM UNNEST($1::text[], $2::text[], $3::text[], $4::timestamptz[], $5::timestamptz[])\n ON CONFLICT (\"userId\", \"itemId\", \"itemType\") DO UPDATE\n SET \"updatedAt\" = EXCLUDED.\"updatedAt\"\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "TextArray", + "TextArray", + "TimestamptzArray", + "TimestamptzArray" + ] + }, + "nullable": [] + }, + "hash": "e54d13b2e6e397c0f1fbc83ea7dea28d255c30f360759bf57b7d0b31294c785f" +} diff --git a/rust/cloud-storage/.sqlx/query-e57d0a84a9cb67f987d4a53bfb123136039849d1c3c5ff81463691e0ae271f74.json b/rust/cloud-storage/.sqlx/query-e57d0a84a9cb67f987d4a53bfb123136039849d1c3c5ff81463691e0ae271f74.json new file mode 100644 index 0000000000..1f42113c88 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e57d0a84a9cb67f987d4a53bfb123136039849d1c3c5ff81463691e0ae271f74.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT hidden\n FROM crm_companies\n WHERE id = $1 AND team_id = $2\n FOR UPDATE\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hidden", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "e57d0a84a9cb67f987d4a53bfb123136039849d1c3c5ff81463691e0ae271f74" +} diff --git a/rust/cloud-storage/.sqlx/query-e63fd5c15b6e5327aecb2524ee304fcd25df705766b08c6fd8d39d10cacfb33e.json b/rust/cloud-storage/.sqlx/query-e63fd5c15b6e5327aecb2524ee304fcd25df705766b08c6fd8d39d10cacfb33e.json new file mode 100644 index 0000000000..982ccd411b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e63fd5c15b6e5327aecb2524ee304fcd25df705766b08c6fd8d39d10cacfb33e.json @@ -0,0 +1,48 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH matched AS (\n SELECT c.id, c.last_interaction AS updated_at\n FROM crm_companies c\n WHERE c.team_id = $1\n AND (\n (c.hidden = FALSE AND ($2::bool IS NULL OR $2 = FALSE))\n OR (c.hidden = TRUE AND $2 = TRUE AND $9)\n )\n AND (cardinality($3::uuid[]) = 0 OR c.id = ANY($3))\n AND EXISTS (\n SELECT 1\n FROM crm_domains d\n LEFT JOIN crm_domain_directory dd\n ON LOWER(dd.domain) = LOWER(d.domain)\n WHERE d.company_id = c.id\n AND (d.domain ILIKE $4 OR dd.name ILIKE $4)\n )\n AND ($7::timestamptz IS NULL OR (c.last_interaction, c.id) < ($7, $8))\n ORDER BY c.last_interaction DESC, c.id DESC\n LIMIT $5\n ),\n primary_domain AS (\n SELECT DISTINCT ON (d.company_id)\n d.company_id,\n COALESCE(dd.name, d.domain) AS display_name\n FROM crm_domains d\n LEFT JOIN crm_domain_directory dd\n ON LOWER(dd.domain) = LOWER(d.domain)\n WHERE d.company_id IN (SELECT id FROM matched)\n ORDER BY d.company_id, d.created_at ASC NULLS LAST\n )\n SELECT\n m.id AS \"id!\",\n COALESCE(pd.display_name, '') AS \"name!\",\n regexp_replace(\n COALESCE(pd.display_name, ''),\n $6, '\\1', 'gi'\n ) AS \"name_highlighted!\",\n m.updated_at AS \"updated_at!\"\n FROM matched m\n LEFT JOIN primary_domain pd ON pd.company_id = m.id\n ORDER BY m.updated_at DESC, m.id DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "name!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "name_highlighted!", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "updated_at!", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Bool", + "UuidArray", + "Text", + "Int8", + "Text", + "Timestamptz", + "Uuid", + "Bool" + ] + }, + "nullable": [ + false, + null, + null, + false + ] + }, + "hash": "e63fd5c15b6e5327aecb2524ee304fcd25df705766b08c6fd8d39d10cacfb33e" +} diff --git a/rust/cloud-storage/.sqlx/query-e694a7861bbcbc4102b2335afa8d201e0b71608319da53a9551cf3c83fbf1487.json b/rust/cloud-storage/.sqlx/query-e694a7861bbcbc4102b2335afa8d201e0b71608319da53a9551cf3c83fbf1487.json new file mode 100644 index 0000000000..5c9497b6af --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e694a7861bbcbc4102b2335afa8d201e0b71608319da53a9551cf3c83fbf1487.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id\n FROM\n \"Document\" d\n WHERE\n d.id = ANY($1)\n AND d.\"owner\" = ANY($2)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray", + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "e694a7861bbcbc4102b2335afa8d201e0b71608319da53a9551cf3c83fbf1487" +} diff --git a/rust/cloud-storage/.sqlx/query-e6a3bb4ea73a16bb6664ecb2adda3573d0cb043fee8aeb7c46a61bcd534357e3.json b/rust/cloud-storage/.sqlx/query-e6a3bb4ea73a16bb6664ecb2adda3573d0cb043fee8aeb7c46a61bcd534357e3.json new file mode 100644 index 0000000000..a06abc2bc4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e6a3bb4ea73a16bb6664ecb2adda3573d0cb043fee8aeb7c46a61bcd534357e3.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.name AS document_name,\n d.owner AS \"owner: MacroUserIdStr\",\n d.\"fileType\" AS file_type,\n dst.sub_type::text AS sub_type\n FROM \"Document\" d\n LEFT JOIN document_sub_type dst ON dst.document_id = d.id\n WHERE d.id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner: MacroUserIdStr", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "sub_type", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + false, + true, + null + ] + }, + "hash": "e6a3bb4ea73a16bb6664ecb2adda3573d0cb043fee8aeb7c46a61bcd534357e3" +} diff --git a/rust/cloud-storage/.sqlx/query-e6f63b89995a909f72c7c4012ab340e40f13453f1bec6cf41cb202930c44e84a.json b/rust/cloud-storage/.sqlx/query-e6f63b89995a909f72c7c4012ab340e40f13453f1bec6cf41cb202930c44e84a.json new file mode 100644 index 0000000000..9c27aa5033 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e6f63b89995a909f72c7c4012ab340e40f13453f1bec6cf41cb202930c44e84a.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, channel_id, thread_id, created_at\n FROM comms_messages\n WHERE id = $1\n AND channel_id = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [ + false, + false, + true, + false + ] + }, + "hash": "e6f63b89995a909f72c7c4012ab340e40f13453f1bec6cf41cb202930c44e84a" +} diff --git a/rust/cloud-storage/.sqlx/query-e6fe90cc7c58f3bcdcd2655b11c82ea99a8eda29d45570028deda4075173cfe6.json b/rust/cloud-storage/.sqlx/query-e6fe90cc7c58f3bcdcd2655b11c82ea99a8eda29d45570028deda4075173cfe6.json new file mode 100644 index 0000000000..6edc935c13 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e6fe90cc7c58f3bcdcd2655b11c82ea99a8eda29d45570028deda4075173cfe6.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT t.email as \"email!\", \n EXISTS(SELECT 1 FROM notification_email_unsubscribe u WHERE u.email = t.email) as \"is_unsubscribed!\"\n FROM UNNEST($1::text[]) AS t(email)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "is_unsubscribed!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + null, + null + ] + }, + "hash": "e6fe90cc7c58f3bcdcd2655b11c82ea99a8eda29d45570028deda4075173cfe6" +} diff --git a/rust/cloud-storage/.sqlx/query-e70d5acce88125ae894d9d57356559c6e59e236c9650211a52fdc90602318cc3.json b/rust/cloud-storage/.sqlx/query-e70d5acce88125ae894d9d57356559c6e59e236c9650211a52fdc90602318cc3.json new file mode 100644 index 0000000000..3ace0da282 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e70d5acce88125ae894d9d57356559c6e59e236c9650211a52fdc90602318cc3.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM email_filters WHERE id = $1 AND link_id = $2", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "e70d5acce88125ae894d9d57356559c6e59e236c9650211a52fdc90602318cc3" +} diff --git a/rust/cloud-storage/.sqlx/query-e7906bd42de06eff9291279715d9f6f1a860c05be610f8b620fe2426d59b2e62.json b/rust/cloud-storage/.sqlx/query-e7906bd42de06eff9291279715d9f6f1a860c05be610f8b620fe2426d59b2e62.json new file mode 100644 index 0000000000..2f6ba5b042 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e7906bd42de06eff9291279715d9f6f1a860c05be610f8b620fe2426d59b2e62.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS(\n SELECT 1 FROM crm_contact_sources WHERE contact_id = $1 LIMIT 1\n ) AS \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "e7906bd42de06eff9291279715d9f6f1a860c05be610f8b620fe2426d59b2e62" +} diff --git a/rust/cloud-storage/.sqlx/query-e792f05e8ff1bba6124255b61ae57b1429cb22745012c396910f2fa549aedf79.json b/rust/cloud-storage/.sqlx/query-e792f05e8ff1bba6124255b61ae57b1429cb22745012c396910f2fa549aedf79.json new file mode 100644 index 0000000000..bfb19c8735 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e792f05e8ff1bba6124255b61ae57b1429cb22745012c396910f2fa549aedf79.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT cp.\"sharePermissionId\" as share_permission_id\n FROM \"ChatPermission\" cp\n WHERE cp.\"chatId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "e792f05e8ff1bba6124255b61ae57b1429cb22745012c396910f2fa549aedf79" +} diff --git a/rust/cloud-storage/.sqlx/query-e7d8ee1a89eda56e35de8795a6bf83e4ce9af436279fc24b7aafe8f0d41aab04.json b/rust/cloud-storage/.sqlx/query-e7d8ee1a89eda56e35de8795a6bf83e4ce9af436279fc24b7aafe8f0d41aab04.json new file mode 100644 index 0000000000..20ec02a6fe --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e7d8ee1a89eda56e35de8795a6bf83e4ce9af436279fc24b7aafe8f0d41aab04.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT subscription_id\n FROM team\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "subscription_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + true + ] + }, + "hash": "e7d8ee1a89eda56e35de8795a6bf83e4ce9af436279fc24b7aafe8f0d41aab04" +} diff --git a/rust/cloud-storage/.sqlx/query-e7e9e2db72c9bf45273b0cfe11057a5dbce790572f2420457e24b0fd498c2024.json b/rust/cloud-storage/.sqlx/query-e7e9e2db72c9bf45273b0cfe11057a5dbce790572f2420457e24b0fd498c2024.json new file mode 100644 index 0000000000..5d51a7025e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e7e9e2db72c9bf45273b0cfe11057a5dbce790572f2420457e24b0fd498c2024.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_threads (id, provider_id, link_id, inbox_visible, is_read,\n latest_inbound_message_ts, latest_outbound_message_ts,\n latest_non_spam_message_ts)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n ON CONFLICT (link_id, provider_id) WHERE provider_id IS NOT NULL DO UPDATE\n SET\n latest_inbound_message_ts = EXCLUDED.latest_inbound_message_ts,\n updated_at = NOW()\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Uuid", + "Bool", + "Bool", + "Timestamptz", + "Timestamptz", + "Timestamptz" + ] + }, + "nullable": [ + false + ] + }, + "hash": "e7e9e2db72c9bf45273b0cfe11057a5dbce790572f2420457e24b0fd498c2024" +} diff --git a/rust/cloud-storage/.sqlx/query-e802b95145183d9bec6fb5f542fe93d392fdcf0fbebc9935f263f3f4fd1d8c34.json b/rust/cloud-storage/.sqlx/query-e802b95145183d9bec6fb5f542fe93d392fdcf0fbebc9935f263f3f4fd1d8c34.json new file mode 100644 index 0000000000..e30af0774f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e802b95145183d9bec6fb5f542fe93d392fdcf0fbebc9935f263f3f4fd1d8c34.json @@ -0,0 +1,128 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n t.id,\n t.provider_id,\n t.inbox_visible,\n t.is_read,\n t.effective_ts AS \"sort_ts!\",\n t.created_at AS \"created_at!\",\n t.updated_at AS \"updated_at!\",\n t.project_id,\n t.viewed_at AS \"viewed_at?\",\n lmp.subject AS \"name?\",\n lmp.snippet AS \"snippet?\",\n lmp.is_draft,\n (\n SELECT EXISTS (\n SELECT 1\n FROM email_messages m_imp\n JOIN email_message_labels ml ON m_imp.id = ml.message_id\n JOIN email_labels l ON ml.label_id = l.id\n WHERE m_imp.thread_id = t.id\n AND l.name = 'IMPORTANT'\n AND l.link_id = t.link_id\n )\n ) AS \"is_important!\",\n c.email_address AS \"sender_email?\",\n COALESCE(lmp.from_name, c.name) AS \"sender_name?\",\n c.sfs_photo_url as \"sender_photo_url?\",\n el.macro_id AS \"owner_id!\",\n el.id AS \"link_id!\"\n FROM (\n -- Step 1: Efficiently find and sort ONLY the top N+1 candidate threads.\n -- This subquery only touches `threads` and `user_history`.\n SELECT\n t.id,\n t.provider_id,\n t.link_id,\n t.inbox_visible,\n t.is_read,\n t.project_id,\n t.latest_outbound_message_ts AS created_at,\n t.latest_outbound_message_ts AS updated_at,\n uh.updated_at AS viewed_at,\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_outbound_message_ts)\n ELSE t.latest_outbound_message_ts\n END AS effective_ts\n FROM email_threads t\n LEFT JOIN email_user_history uh ON uh.thread_id = t.id AND uh.link_id = t.link_id\n WHERE\n t.link_id = ANY($1)\n AND t.latest_outbound_message_ts IS NOT NULL\n \n -- Cursor logic moved inside for maximum efficiency\n AND (($3::timestamptz IS NULL) OR (\n -- This CASE must exactly match the one that defines `effective_ts`\n CASE $5 -- sort_method_str\n WHEN 'viewed_at' THEN COALESCE(uh.\"updated_at\", '1970-01-01 00:00:00+00')\n WHEN 'viewed_updated' THEN COALESCE(uh.updated_at, t.latest_outbound_message_ts)\n ELSE t.latest_outbound_message_ts\n END, t.id\n ) < ($3::timestamptz, $4::uuid))\n ORDER BY effective_ts DESC, t.updated_at DESC\n LIMIT $2\n ) AS t\n -- Step 2: For EACH of the limited threads from above, find its latest SENT, non-trashed message.\n CROSS JOIN LATERAL (\n SELECT\n m.subject,\n m.snippet,\n m.from_contact_id,\n m.from_name,\n m.is_draft\n FROM email_messages m\n WHERE m.thread_id = t.id\n AND m.is_sent = TRUE -- This condition is specific to the \"Sent\" view\n AND NOT EXISTS (\n SELECT 1 FROM email_message_labels ml JOIN email_labels l ON ml.label_id = l.id\n WHERE ml.message_id = m.id AND l.name = 'TRASH' AND l.link_id = t.link_id\n )\n ORDER BY m.internal_date_ts DESC\n LIMIT 1\n ) AS lmp\n -- Step 3: Join to get the sender's details for the final result set.\n LEFT JOIN email_contacts c ON lmp.from_contact_id = c.id\n JOIN email_links el ON t.link_id = el.id\n -- Final ordering is preserved because the input `t` is already sorted.\n ORDER BY t.effective_ts DESC, t.updated_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "inbox_visible", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "sort_ts!", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "created_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at!", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "viewed_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "name?", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "snippet?", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 12, + "name": "is_important!", + "type_info": "Bool" + }, + { + "ordinal": 13, + "name": "sender_email?", + "type_info": "Varchar" + }, + { + "ordinal": 14, + "name": "sender_name?", + "type_info": "Varchar" + }, + { + "ordinal": 15, + "name": "sender_photo_url?", + "type_info": "Text" + }, + { + "ordinal": 16, + "name": "owner_id!", + "type_info": "Text" + }, + { + "ordinal": 17, + "name": "link_id!", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "Int8", + "Timestamptz", + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + true, + false, + false, + null, + true, + true, + true, + false, + true, + true, + false, + null, + false, + null, + true, + false, + false + ] + }, + "hash": "e802b95145183d9bec6fb5f542fe93d392fdcf0fbebc9935f263f3f4fd1d8c34" +} diff --git a/rust/cloud-storage/.sqlx/query-e82694bed350dc3b7b22de00e655dfabb45e608cfd9a0a5a463fc6e1792393f2.json b/rust/cloud-storage/.sqlx/query-e82694bed350dc3b7b22de00e655dfabb45e608cfd9a0a5a463fc6e1792393f2.json new file mode 100644 index 0000000000..c73a91ea4d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e82694bed350dc3b7b22de00e655dfabb45e608cfd9a0a5a463fc6e1792393f2.json @@ -0,0 +1,119 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH updated AS (\n UPDATE \"PdfHighlightAnchor\"\n SET \"threadId\" = $1\n WHERE uuid = $2\n RETURNING uuid, \"threadId\"\n )\n SELECT \n ph.uuid, \n ph.\"documentId\" as document_id,\n ph.owner, \n updated.\"threadId\" as thread_id, \n ph.page, \n ph.red,\n ph.green, \n ph.blue, \n ph.alpha, \n ph.type as highlight_type, \n ph.text, \n ph.\"pageViewportWidth\" as page_viewport_width, \n ph.\"pageViewportHeight\" as page_viewport_height, \n ph.\"createdAt\"::timestamptz as created_at, \n ph.\"updatedAt\"::timestamptz as updated_at, \n ph.\"deletedAt\"::timestamptz as deleted_at, \n array_agg((phr.id, phr.top, phr.left, phr.width, phr.height)) as \"highlight_rects!: Vec\"\n FROM updated \n JOIN \"PdfHighlightAnchor\" ph ON updated.uuid = ph.uuid\n JOIN \"PdfHighlightRect\" phr ON ph.uuid = phr.\"pdfHighlightAnchorId\"\n GROUP BY ph.uuid, ph.owner, updated.\"threadId\", ph.page, ph.red, ph.green, ph.blue, ph.alpha, ph.type, ph.text, ph.\"pageViewportWidth\", ph.\"pageViewportHeight\", ph.\"createdAt\", ph.\"updatedAt\", ph.\"deletedAt\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "thread_id", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "page", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "red", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "green", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "blue", + "type_info": "Int4" + }, + { + "ordinal": 8, + "name": "alpha", + "type_info": "Float8" + }, + { + "ordinal": 9, + "name": "highlight_type", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "text", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "page_viewport_width", + "type_info": "Float8" + }, + { + "ordinal": 12, + "name": "page_viewport_height", + "type_info": "Float8" + }, + { + "ordinal": 13, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 14, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 16, + "name": "highlight_rects!: Vec", + "type_info": "RecordArray" + } + ], + "parameters": { + "Left": [ + "Int8", + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + null, + null, + null, + null + ] + }, + "hash": "e82694bed350dc3b7b22de00e655dfabb45e608cfd9a0a5a463fc6e1792393f2" +} diff --git a/rust/cloud-storage/.sqlx/query-e82b920450ded09debcd219dbe7a34dbde810b6b60c8d8a0854ee49ac57a7c02.json b/rust/cloud-storage/.sqlx/query-e82b920450ded09debcd219dbe7a34dbde810b6b60c8d8a0854ee49ac57a7c02.json new file mode 100644 index 0000000000..4913744755 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e82b920450ded09debcd219dbe7a34dbde810b6b60c8d8a0854ee49ac57a7c02.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM macro_user_links\n WHERE child_macro_id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "e82b920450ded09debcd219dbe7a34dbde810b6b60c8d8a0854ee49ac57a7c02" +} diff --git a/rust/cloud-storage/.sqlx/query-e84c6b52fb4748ec73c01340862a1fa3c65711050239ca5d7bcd59b04f920894.json b/rust/cloud-storage/.sqlx/query-e84c6b52fb4748ec73c01340862a1fa3c65711050239ca5d7bcd59b04f920894.json new file mode 100644 index 0000000000..51a5fb5c98 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e84c6b52fb4748ec73c01340862a1fa3c65711050239ca5d7bcd59b04f920894.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE scheduled_action\n SET claimed = NULL, updated_at = now()\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "e84c6b52fb4748ec73c01340862a1fa3c65711050239ca5d7bcd59b04f920894" +} diff --git a/rust/cloud-storage/.sqlx/query-e8633dfaa07a4420442beb666625c7af4b6e8db0ea192d08aa971b20ebe69eb4.json b/rust/cloud-storage/.sqlx/query-e8633dfaa07a4420442beb666625c7af4b6e8db0ea192d08aa971b20ebe69eb4.json new file mode 100644 index 0000000000..7b0116f0b2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e8633dfaa07a4420442beb666625c7af4b6e8db0ea192d08aa971b20ebe69eb4.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Project\" \n WHERE id = ANY($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "e8633dfaa07a4420442beb666625c7af4b6e8db0ea192d08aa971b20ebe69eb4" +} diff --git a/rust/cloud-storage/.sqlx/query-e89719852a1e6166dbcebe6190a79a830b0e0a98c92967f15c2a89b96871bbd4.json b/rust/cloud-storage/.sqlx/query-e89719852a1e6166dbcebe6190a79a830b0e0a98c92967f15c2a89b96871bbd4.json new file mode 100644 index 0000000000..30b3a2d488 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e89719852a1e6166dbcebe6190a79a830b0e0a98c92967f15c2a89b96871bbd4.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n industry,\n title,\n \"firstName\" as first_name,\n \"lastName\" as last_name,\n \"profilePicture\" as profile_picture,\n \"profilePictureHash\" as profile_picture_hash\n FROM \"User\"\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "industry", + "type_info": "Varchar" + }, + { + "ordinal": 1, + "name": "title", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "first_name", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "last_name", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "profile_picture", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "profile_picture_hash", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true, + true, + true, + true, + true, + true + ] + }, + "hash": "e89719852a1e6166dbcebe6190a79a830b0e0a98c92967f15c2a89b96871bbd4" +} diff --git a/rust/cloud-storage/.sqlx/query-e8bf9c53f71988ac7364aef5680e3cb74f7ddc5bacda3caf78db4b8672a8cf72.json b/rust/cloud-storage/.sqlx/query-e8bf9c53f71988ac7364aef5680e3cb74f7ddc5bacda3caf78db4b8672a8cf72.json new file mode 100644 index 0000000000..5d56d3b171 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e8bf9c53f71988ac7364aef5680e3cb74f7ddc5bacda3caf78db4b8672a8cf72.json @@ -0,0 +1,162 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id, provider_id, thread_id, provider_thread_id, replying_to_id,\n global_id, link_id, provider_history_id, internal_date_ts, snippet,\n size_estimate, subject, sent_at, has_attachments, is_read, is_starred,\n is_sent, is_draft, body_text, body_html_sanitized, body_macro,\n headers_jsonb, created_at, updated_at\n FROM email_messages\n WHERE is_draft = true\n AND provider_id IS NULL\n AND replying_to_id = ANY($1)\n AND link_id = ANY($2)\n AND thread_id <> $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 13, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 14, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 15, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 19, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 20, + "name": "body_macro", + "type_info": "Text" + }, + { + "ordinal": 21, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 22, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 23, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "UuidArray", + "UuidArray", + "Uuid" + ] + }, + "nullable": [ + false, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "e8bf9c53f71988ac7364aef5680e3cb74f7ddc5bacda3caf78db4b8672a8cf72" +} diff --git a/rust/cloud-storage/.sqlx/query-e951a324bc8638caa7d3d8b3793b5dbe6ce6bfec8f307f22aa7b2bab42a5a13a.json b/rust/cloud-storage/.sqlx/query-e951a324bc8638caa7d3d8b3793b5dbe6ce6bfec8f307f22aa7b2bab42a5a13a.json new file mode 100644 index 0000000000..b95788812b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-e951a324bc8638caa7d3d8b3793b5dbe6ce6bfec8f307f22aa7b2bab42a5a13a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH upsert AS (\n INSERT INTO team_crm_settings (team_id, crm_enabled)\n VALUES ($1, TRUE)\n ON CONFLICT (team_id) DO UPDATE\n SET crm_enabled = EXCLUDED.crm_enabled,\n updated_at = now()\n WHERE team_crm_settings.crm_enabled IS DISTINCT FROM EXCLUDED.crm_enabled\n RETURNING 1\n )\n SELECT EXISTS (SELECT 1 FROM upsert) AS \"changed!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "changed!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "e951a324bc8638caa7d3d8b3793b5dbe6ce6bfec8f307f22aa7b2bab42a5a13a" +} diff --git a/rust/cloud-storage/.sqlx/query-ea3b56b003d40d52eb5fe2e247fa38e7cfbcff3def9db49e5d9bad83207a3a48.json b/rust/cloud-storage/.sqlx/query-ea3b56b003d40d52eb5fe2e247fa38e7cfbcff3def9db49e5d9bad83207a3a48.json new file mode 100644 index 0000000000..9bf47379af --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ea3b56b003d40d52eb5fe2e247fa38e7cfbcff3def9db49e5d9bad83207a3a48.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT pg_try_advisory_lock(hashtextextended('team_memory:' || $1, 0)) as \"locked!\"", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "locked!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "ea3b56b003d40d52eb5fe2e247fa38e7cfbcff3def9db49e5d9bad83207a3a48" +} diff --git a/rust/cloud-storage/.sqlx/query-ea674f0a9d53a37775cee691aaa387db892d3902606258ac7c1e87652eba76e7.json b/rust/cloud-storage/.sqlx/query-ea674f0a9d53a37775cee691aaa387db892d3902606258ac7c1e87652eba76e7.json new file mode 100644 index 0000000000..9107558690 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ea674f0a9d53a37775cee691aaa387db892d3902606258ac7c1e87652eba76e7.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE saved_view\n SET \n name = COALESCE($2, name),\n config = CASE \n WHEN $3::jsonb IS NOT NULL THEN config || $3 \n ELSE config \n END,\n updated_at = NOW()\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "ea674f0a9d53a37775cee691aaa387db892d3902606258ac7c1e87652eba76e7" +} diff --git a/rust/cloud-storage/.sqlx/query-ea7622c671b053d5519e2fb2a996372002b31d070e2cbfe2d58ae763bc04b7c6.json b/rust/cloud-storage/.sqlx/query-ea7622c671b053d5519e2fb2a996372002b31d070e2cbfe2d58ae763bc04b7c6.json new file mode 100644 index 0000000000..071f6b7b3a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ea7622c671b053d5519e2fb2a996372002b31d070e2cbfe2d58ae763bc04b7c6.json @@ -0,0 +1,86 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_backfill_jobs (id, link_id, fusionauth_user_id, threads_requested_limit, status)\n VALUES ($1, $2, $3, $4, 'Init')\n RETURNING \n id, \n link_id, \n fusionauth_user_id,\n threads_requested_limit,\n total_threads,\n threads_retrieved_count,\n status as \"status: db::backfill::BackfillJobStatus\",\n created_at, \n updated_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "threads_requested_limit", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "total_threads", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "threads_retrieved_count", + "type_info": "Int4" + }, + { + "ordinal": 6, + "name": "status: db::backfill::BackfillJobStatus", + "type_info": { + "Custom": { + "name": "email_backfill_job_status", + "kind": { + "Enum": [ + "Init", + "InProgress", + "Complete", + "Cancelled", + "Failed" + ] + } + } + } + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text", + "Int4" + ] + }, + "nullable": [ + false, + true, + false, + true, + false, + false, + false, + false, + false + ] + }, + "hash": "ea7622c671b053d5519e2fb2a996372002b31d070e2cbfe2d58ae763bc04b7c6" +} diff --git a/rust/cloud-storage/.sqlx/query-eab276e5a26ac65dd643a67de93e82418e3a012a628f1b5cd3be1f490eeec9f1.json b/rust/cloud-storage/.sqlx/query-eab276e5a26ac65dd643a67de93e82418e3a012a628f1b5cd3be1f490eeec9f1.json new file mode 100644 index 0000000000..f47afb182d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-eab276e5a26ac65dd643a67de93e82418e3a012a628f1b5cd3be1f490eeec9f1.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT owner FROM \"Document\" WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "owner", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "eab276e5a26ac65dd643a67de93e82418e3a012a628f1b5cd3be1f490eeec9f1" +} diff --git a/rust/cloud-storage/.sqlx/query-eaeb36fcd2e9915d830eb2cdcefb6ab84c37acac7de5fdd06fefbec94abfe956.json b/rust/cloud-storage/.sqlx/query-eaeb36fcd2e9915d830eb2cdcefb6ab84c37acac7de5fdd06fefbec94abfe956.json new file mode 100644 index 0000000000..07c61accc9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-eaeb36fcd2e9915d830eb2cdcefb6ab84c37acac7de5fdd06fefbec94abfe956.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT id AS \"user_id!\" FROM (\n SELECT m.sender_id AS id\n FROM comms_messages m\n JOIN comms_channel_participants cp\n ON cp.channel_id = m.channel_id AND cp.user_id = m.sender_id\n WHERE (m.id = $1 OR m.thread_id = $1) AND cp.left_at IS NULL\n UNION\n SELECT em.entity_id AS id\n FROM comms_entity_mentions em\n JOIN comms_messages m ON m.id::text = em.source_entity_id\n JOIN comms_channel_participants cp\n ON cp.channel_id = m.channel_id AND cp.user_id = em.entity_id\n WHERE (m.id = $1 OR m.thread_id = $1)\n AND em.source_entity_type = 'message'\n AND em.entity_type = 'user'\n AND cp.left_at IS NULL\n ) AS combined\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "eaeb36fcd2e9915d830eb2cdcefb6ab84c37acac7de5fdd06fefbec94abfe956" +} diff --git a/rust/cloud-storage/.sqlx/query-eaef3f030f89336b4530560c11b502fd1ef001d1247a155814df5c4510170aaa.json b/rust/cloud-storage/.sqlx/query-eaef3f030f89336b4530560c11b502fd1ef001d1247a155814df5c4510170aaa.json new file mode 100644 index 0000000000..40b5070db6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-eaef3f030f89336b4530560c11b502fd1ef001d1247a155814df5c4510170aaa.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT u.id\n FROM \"User\" u\n WHERE u.id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "eaef3f030f89336b4530560c11b502fd1ef001d1247a155814df5c4510170aaa" +} diff --git a/rust/cloud-storage/.sqlx/query-eb2b040d1563d048ca6a81a00fb98bbc2e5d6c3c3063be43655ed32a3baf028f.json b/rust/cloud-storage/.sqlx/query-eb2b040d1563d048ca6a81a00fb98bbc2e5d6c3c3063be43655ed32a3baf028f.json new file mode 100644 index 0000000000..36028beba4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-eb2b040d1563d048ca6a81a00fb98bbc2e5d6c3c3063be43655ed32a3baf028f.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"RolesOnUsers\" (\"userId\", \"roleId\")\n SELECT $1, unnest($2::text[])\n ON CONFLICT DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "eb2b040d1563d048ca6a81a00fb98bbc2e5d6c3c3063be43655ed32a3baf028f" +} diff --git a/rust/cloud-storage/.sqlx/query-eb8ac8459fac8423966a6daf85b51dd7c57b312cf54b2c47ba87c7ee99f0d9c1.json b/rust/cloud-storage/.sqlx/query-eb8ac8459fac8423966a6daf85b51dd7c57b312cf54b2c47ba87c7ee99f0d9c1.json new file mode 100644 index 0000000000..588363d908 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-eb8ac8459fac8423966a6daf85b51dd7c57b312cf54b2c47ba87c7ee99f0d9c1.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE user_notification\n SET deleted_at = now()\n WHERE user_id = $1\n AND notification_id = ANY($2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "UuidArray" + ] + }, + "nullable": [] + }, + "hash": "eb8ac8459fac8423966a6daf85b51dd7c57b312cf54b2c47ba87c7ee99f0d9c1" +} diff --git a/rust/cloud-storage/.sqlx/query-ebb5fcd2dc97d8c2f1ea17927db39e0fd0419594e068b4d43eaaddca5e46f6b0.json b/rust/cloud-storage/.sqlx/query-ebb5fcd2dc97d8c2f1ea17927db39e0fd0419594e068b4d43eaaddca5e46f6b0.json new file mode 100644 index 0000000000..9481eb3d97 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ebb5fcd2dc97d8c2f1ea17927db39e0fd0419594e068b4d43eaaddca5e46f6b0.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n di.id, \n d.uploaded\n FROM \"DocumentInstance\" di\n JOIN \"Document\" d ON di.\"documentId\" = d.id\n WHERE di.\"documentId\" = $1\n ORDER BY di.\"createdAt\" DESC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "uploaded", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "ebb5fcd2dc97d8c2f1ea17927db39e0fd0419594e068b4d43eaaddca5e46f6b0" +} diff --git a/rust/cloud-storage/.sqlx/query-ebd8690a2a7068b485816697c3d6660c82f616f8f3456a6137b872043404d282.json b/rust/cloud-storage/.sqlx/query-ebd8690a2a7068b485816697c3d6660c82f616f8f3456a6137b872043404d282.json new file mode 100644 index 0000000000..d7dd77cdc8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ebd8690a2a7068b485816697c3d6660c82f616f8f3456a6137b872043404d282.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT c.id, c.hidden\n FROM crm_companies c\n JOIN crm_domains d ON d.company_id = c.id\n WHERE c.team_id = $1\n AND LOWER(d.domain) = $2\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "hidden", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "ebd8690a2a7068b485816697c3d6660c82f616f8f3456a6137b872043404d282" +} diff --git a/rust/cloud-storage/.sqlx/query-ebe9fefb7d1b8505df6bd0ec41102abb947fea3cb939dadaa76b6e53bf896390.json b/rust/cloud-storage/.sqlx/query-ebe9fefb7d1b8505df6bd0ec41102abb947fea3cb939dadaa76b6e53bf896390.json new file mode 100644 index 0000000000..36a18f0f8c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ebe9fefb7d1b8505df6bd0ec41102abb947fea3cb939dadaa76b6e53bf896390.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_labels\n WHERE link_id = $1 AND provider_label_id = ANY($2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "ebe9fefb7d1b8505df6bd0ec41102abb947fea3cb939dadaa76b6e53bf896390" +} diff --git a/rust/cloud-storage/.sqlx/query-ec772d88365b803914f51dbe270f14ab6cdd2fe57c9d76e430cfef7234e92168.json b/rust/cloud-storage/.sqlx/query-ec772d88365b803914f51dbe270f14ab6cdd2fe57c9d76e430cfef7234e92168.json new file mode 100644 index 0000000000..65e2bc75d4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ec772d88365b803914f51dbe270f14ab6cdd2fe57c9d76e430cfef7234e92168.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO frecency_events (\n user_id,\n entity_type,\n event_type,\n timestamp,\n connection_id,\n entity_id,\n was_processed\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Timestamptz", + "Text", + "Text", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "ec772d88365b803914f51dbe270f14ab6cdd2fe57c9d76e430cfef7234e92168" +} diff --git a/rust/cloud-storage/.sqlx/query-ec9e817e0985ec4f58c8c6bc5817016f366e31f1ac3a8cf8696ed61434472afb.json b/rust/cloud-storage/.sqlx/query-ec9e817e0985ec4f58c8c6bc5817016f366e31f1ac3a8cf8696ed61434472afb.json new file mode 100644 index 0000000000..579bd20b2e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ec9e817e0985ec4f58c8c6bc5817016f366e31f1ac3a8cf8696ed61434472afb.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id,\n m.channel_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.edited_at::timestamptz AS \"edited_at?\",\n m.deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages m\n WHERE m.channel_id = $1\n AND m.thread_id IS NULL\n AND (m.deleted_at IS NULL OR EXISTS (\n SELECT 1 FROM comms_messages r\n WHERE r.thread_id = m.id AND r.deleted_at IS NULL\n ))\n AND ($2::timestamptz IS NULL OR (m.created_at, m.id) < ($2, $3))\n AND ($5::uuid[] IS NULL OR m.id = ANY($5))\n AND ($6::timestamptz IS NULL OR m.created_at >= $6)\n AND ($7::timestamptz IS NULL OR m.created_at < $7)\n AND (\n ($8::timestamptz IS NULL AND $9::timestamptz IS NULL)\n OR (\n ($8::timestamptz IS NULL OR m.created_at >= $8)\n AND ($9::timestamptz IS NULL OR m.created_at < $9)\n )\n OR EXISTS (\n SELECT 1 FROM comms_messages r\n WHERE r.thread_id = m.id\n AND r.deleted_at IS NULL\n AND ($8::timestamptz IS NULL OR r.created_at >= $8)\n AND ($9::timestamptz IS NULL OR r.created_at < $9)\n )\n )\n AND ($10::bool = FALSE OR (\n ($11::bool IS NULL OR EXISTS (\n SELECT 1\n FROM notification n\n JOIN user_notification un ON un.notification_id = n.id\n JOIN comms_messages msg ON msg.id = (n.metadata->>'messageId')::uuid\n WHERE un.user_id = $13::text\n AND un.deleted_at IS NULL\n AND un.done = $11\n AND n.event_item_type = 'channel'\n AND n.event_item_id = $1::uuid::text\n AND n.metadata->>'messageId' IS NOT NULL\n AND msg.channel_id = $1\n AND msg.deleted_at IS NULL\n AND COALESCE(msg.thread_id, msg.id) = m.id\n ))\n AND ($12::bool IS NULL OR EXISTS (\n SELECT 1\n FROM notification n\n JOIN user_notification un ON un.notification_id = n.id\n JOIN comms_messages msg ON msg.id = (n.metadata->>'messageId')::uuid\n WHERE un.user_id = $13::text\n AND un.deleted_at IS NULL\n AND (un.seen_at IS NOT NULL) = $12\n AND n.event_item_type = 'channel'\n AND n.event_item_id = $1::uuid::text\n AND n.metadata->>'messageId' IS NOT NULL\n AND msg.channel_id = $1\n AND msg.deleted_at IS NULL\n AND COALESCE(msg.thread_id, msg.id) = m.id\n ))\n ))\n ORDER BY m.created_at DESC, m.id DESC\n LIMIT $4\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "edited_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "deleted_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Timestamptz", + "Uuid", + "Int8", + "UuidArray", + "Timestamptz", + "Timestamptz", + "Timestamptz", + "Timestamptz", + "Bool", + "Bool", + "Bool", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + null, + null + ] + }, + "hash": "ec9e817e0985ec4f58c8c6bc5817016f366e31f1ac3a8cf8696ed61434472afb" +} diff --git a/rust/cloud-storage/.sqlx/query-ecccdffab47c2a500f64baee0488afa6d87a4f32cb7c852318de504fa6d20b2f.json b/rust/cloud-storage/.sqlx/query-ecccdffab47c2a500f64baee0488afa6d87a4f32cb7c852318de504fa6d20b2f.json new file mode 100644 index 0000000000..9c0571f3ec --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ecccdffab47c2a500f64baee0488afa6d87a4f32cb7c852318de504fa6d20b2f.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"SharePermission\"\n WHERE id IN (\n SELECT \"sharePermissionId\"\n FROM \"ProjectPermission\"\n WHERE \"projectId\" = ANY($1)\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "ecccdffab47c2a500f64baee0488afa6d87a4f32cb7c852318de504fa6d20b2f" +} diff --git a/rust/cloud-storage/.sqlx/query-ecd16f9e0fd909784c5831fd73e705b6f12c716417f4d337aa68f73fb05a6dd1.json b/rust/cloud-storage/.sqlx/query-ecd16f9e0fd909784c5831fd73e705b6f12c716417f4d337aa68f73fb05a6dd1.json new file mode 100644 index 0000000000..30ceb7ad1d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ecd16f9e0fd909784c5831fd73e705b6f12c716417f4d337aa68f73fb05a6dd1.json @@ -0,0 +1,39 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT team_id, team_role as \"role!: TeamRole\"\n FROM team_user\n WHERE user_id = $1\n ORDER BY team_role DESC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "team_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "role!: TeamRole", + "type_info": { + "Custom": { + "name": "team_role", + "kind": { + "Enum": [ + "member", + "admin", + "owner" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "ecd16f9e0fd909784c5831fd73e705b6f12c716417f4d337aa68f73fb05a6dd1" +} diff --git a/rust/cloud-storage/.sqlx/query-ecd59864bf9f241755a73ed370146370580a768c26a4c9f6b1fe9d8244abdb36.json b/rust/cloud-storage/.sqlx/query-ecd59864bf9f241755a73ed370146370580a768c26a4c9f6b1fe9d8244abdb36.json new file mode 100644 index 0000000000..c1ea54d83e --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ecd59864bf9f241755a73ed370146370580a768c26a4c9f6b1fe9d8244abdb36.json @@ -0,0 +1,86 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as \"document_id\",\n d.owner,\n d.name as \"document_name\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"projectId\" as \"project_id\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n WHERE\n d.id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "branched_from_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "branched_from_version_id", + "type_info": "Int8" + }, + { + "ordinal": 5, + "name": "document_family_id", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + }, + { + "ordinal": 8, + "name": "project_id", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + false, + false, + true, + true, + true, + true, + true, + true, + null + ] + }, + "hash": "ecd59864bf9f241755a73ed370146370580a768c26a4c9f6b1fe9d8244abdb36" +} diff --git a/rust/cloud-storage/.sqlx/query-ecfb0370e15c5d6e326a8580ada1af7ccf5264e6ac8b7ce80fa9d68be5aed976.json b/rust/cloud-storage/.sqlx/query-ecfb0370e15c5d6e326a8580ada1af7ccf5264e6ac8b7ce80fa9d68be5aed976.json new file mode 100644 index 0000000000..f162e50496 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ecfb0370e15c5d6e326a8580ada1af7ccf5264e6ac8b7ce80fa9d68be5aed976.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"DocumentTextParts\" (id, reference, \"documentId\")\n SELECT id, ref, $1\n FROM UNNEST($2::text[], $3::text[])\n AS t(id, ref)\n ON CONFLICT (id) \n DO UPDATE SET \n reference = EXCLUDED.reference,\n \"documentId\" = EXCLUDED.\"documentId\"\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "TextArray", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "ecfb0370e15c5d6e326a8580ada1af7ccf5264e6ac8b7ce80fa9d68be5aed976" +} diff --git a/rust/cloud-storage/.sqlx/query-ed2f2e964af409b89eceb93c1b4ee3364dbb75bdc22047789492b8f73b3e2491.json b/rust/cloud-storage/.sqlx/query-ed2f2e964af409b89eceb93c1b4ee3364dbb75bdc22047789492b8f73b3e2491.json new file mode 100644 index 0000000000..4c202caa69 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ed2f2e964af409b89eceb93c1b4ee3364dbb75bdc22047789492b8f73b3e2491.json @@ -0,0 +1,72 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n channel_id,\n sender_id,\n content,\n created_at,\n updated_at,\n thread_id,\n edited_at as \"edited_at: chrono::DateTime\",\n deleted_at as \"deleted_at: chrono::DateTime\"\n FROM (\n SELECT *\n FROM comms_messages\n WHERE channel_id = $1\n AND ($2::timestamptz IS NULL OR created_at >= $2)\n ORDER BY created_at DESC\n LIMIT $3\n ) AS latest_messages\n ORDER BY created_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "edited_at: chrono::DateTime", + "type_info": "Timestamp" + }, + { + "ordinal": 8, + "name": "deleted_at: chrono::DateTime", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Timestamptz", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + true + ] + }, + "hash": "ed2f2e964af409b89eceb93c1b4ee3364dbb75bdc22047789492b8f73b3e2491" +} diff --git a/rust/cloud-storage/.sqlx/query-ed43958d3b45528df34f3216299e47e00e2aa671b9d235abffa4ad8bfe126c12.json b/rust/cloud-storage/.sqlx/query-ed43958d3b45528df34f3216299e47e00e2aa671b9d235abffa4ad8bfe126c12.json new file mode 100644 index 0000000000..104b3123e1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ed43958d3b45528df34f3216299e47e00e2aa671b9d235abffa4ad8bfe126c12.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT macro_id\n FROM github_links\n WHERE github_user_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "ed43958d3b45528df34f3216299e47e00e2aa671b9d235abffa4ad8bfe126c12" +} diff --git a/rust/cloud-storage/.sqlx/query-ed817d80e4f40fc10b32eb79e9fba0a0dd46cc9b31980dba5a76dfb4540d6cd3.json b/rust/cloud-storage/.sqlx/query-ed817d80e4f40fc10b32eb79e9fba0a0dd46cc9b31980dba5a76dfb4540d6cd3.json new file mode 100644 index 0000000000..19bb7c918a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ed817d80e4f40fc10b32eb79e9fba0a0dd46cc9b31980dba5a76dfb4540d6cd3.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"jobId\" as job_id, \"jobType\" as job_type FROM \"UploadJob\" WHERE \"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "job_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "job_type", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "ed817d80e4f40fc10b32eb79e9fba0a0dd46cc9b31980dba5a76dfb4540d6cd3" +} diff --git a/rust/cloud-storage/.sqlx/query-ed8fbc6860616548698e4134d1f4404c910188de8a57899dd6cadea50025b4bf.json b/rust/cloud-storage/.sqlx/query-ed8fbc6860616548698e4134d1f4404c910188de8a57899dd6cadea50025b4bf.json new file mode 100644 index 0000000000..e5fa9a9e1a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ed8fbc6860616548698e4134d1f4404c910188de8a57899dd6cadea50025b4bf.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"PdfHighlightAnchor\" (\n \"documentId\", \"owner\", \"page\", \"red\", \"green\", \"blue\", \"alpha\", \n \"type\", \"text\", \"pageViewportWidth\", \"pageViewportHeight\", \n \"threadId\", \"createdAt\", \"updatedAt\"\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14)\n RETURNING uuid\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "uuid", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Int4", + "Int4", + "Int4", + "Int4", + "Float8", + "Int4", + "Text", + "Float8", + "Float8", + "Int8", + "Timestamp", + "Timestamp" + ] + }, + "nullable": [ + false + ] + }, + "hash": "ed8fbc6860616548698e4134d1f4404c910188de8a57899dd6cadea50025b4bf" +} diff --git a/rust/cloud-storage/.sqlx/query-eda8f3dae4d58225307ad036c6a19e0d6bef4a3d9ea2791d75799c93b4f2350f.json b/rust/cloud-storage/.sqlx/query-eda8f3dae4d58225307ad036c6a19e0d6bef4a3d9ea2791d75799c93b4f2350f.json new file mode 100644 index 0000000000..bb45b730c4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-eda8f3dae4d58225307ad036c6a19e0d6bef4a3d9ea2791d75799c93b4f2350f.json @@ -0,0 +1,66 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.channel_id AS \"channel_id: uuid::Uuid\",\n c.name AS \"channel_name?\", -- Option\n m.id AS \"message_id: uuid::Uuid\",\n m.thread_id AS \"thread_id?: uuid::Uuid\",\n m.sender_id AS \"sender_id!\", -- String\n m.content AS \"message_content!\", -- String\n m.created_at AS \"message_created_at!: chrono::DateTime\",\n em.created_at AS \"attachment_created_at!: chrono::DateTime\"\n FROM comms_entity_mentions em\n JOIN comms_messages m ON (em.source_entity_id = m.id::text AND em.source_entity_type = 'message')\n JOIN comms_channels c ON m.channel_id = c.id\n JOIN comms_channel_participants cp ON cp.channel_id = c.id\n WHERE em.entity_type = $1\n AND em.entity_id = $2\n AND cp.user_id = $3\n AND cp.left_at IS NULL\n AND m.deleted_at IS NULL\n ORDER BY em.created_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "channel_id: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_name?", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "message_id: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "thread_id?: uuid::Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "sender_id!", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "message_content!", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "message_created_at!: chrono::DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "attachment_created_at!: chrono::DateTime", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text" + ] + }, + "nullable": [ + false, + true, + false, + true, + false, + false, + false, + false + ] + }, + "hash": "eda8f3dae4d58225307ad036c6a19e0d6bef4a3d9ea2791d75799c93b4f2350f" +} diff --git a/rust/cloud-storage/.sqlx/query-edbec9f2fb09a6f4d6c51f137639b7ce0b5c5fdf66aba0a6efc62530ec611766.json b/rust/cloud-storage/.sqlx/query-edbec9f2fb09a6f4d6c51f137639b7ce0b5c5fdf66aba0a6efc62530ec611766.json new file mode 100644 index 0000000000..20ff5c1ef8 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-edbec9f2fb09a6f4d6c51f137639b7ce0b5c5fdf66aba0a6efc62530ec611766.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id as \"db_id\", sfs_id\n FROM email_attachments_sfs\n WHERE\n attachment_id IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "db_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "sfs_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false + ] + }, + "hash": "edbec9f2fb09a6f4d6c51f137639b7ce0b5c5fdf66aba0a6efc62530ec611766" +} diff --git a/rust/cloud-storage/.sqlx/query-edce1ca1979c9bd7c42f7e89d80a8d25037d25951b1f406dddb8d62cc13f74f0.json b/rust/cloud-storage/.sqlx/query-edce1ca1979c9bd7c42f7e89d80a8d25037d25951b1f406dddb8d62cc13f74f0.json new file mode 100644 index 0000000000..13653d45bf --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-edce1ca1979c9bd7c42f7e89d80a8d25037d25951b1f406dddb8d62cc13f74f0.json @@ -0,0 +1,185 @@ +{ + "db_name": "PostgreSQL", + "query": "\nSELECT\n ep.id as entity_property_id,\n ep.entity_id,\n ep.entity_type as \"entity_type: EntityType\",\n ep.property_definition_id,\n ep.values as \"values: sqlx::types::JsonValue\",\n ep.created_at as entity_property_created_at,\n ep.updated_at as entity_property_updated_at,\n pd.organization_id as definition_organization_id,\n pd.user_id as definition_user_id,\n pd.display_name,\n pd.data_type as \"data_type: DataType\",\n pd.is_multi_select,\n pd.specific_entity_type as \"specific_entity_type: Option\",\n pd.created_at as definition_created_at,\n pd.updated_at as definition_updated_at,\n pd.is_system as definition_is_system\nFROM entity_properties ep\nINNER JOIN property_definitions pd ON ep.property_definition_id = pd.id\nWHERE (ep.entity_id, ep.entity_type) IN (\n SELECT * FROM UNNEST($1::TEXT[], $2::property_entity_type[])\n)\nAND pd.id = ANY($3::UUID[])\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_property_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "entity_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "entity_type: EntityType", + "type_info": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + }, + { + "ordinal": 3, + "name": "property_definition_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "values: sqlx::types::JsonValue", + "type_info": "Jsonb" + }, + { + "ordinal": 5, + "name": "entity_property_created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "entity_property_updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "definition_organization_id", + "type_info": "Int4" + }, + { + "ordinal": 8, + "name": "definition_user_id", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "display_name", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "data_type: DataType", + "type_info": { + "Custom": { + "name": "property_data_type", + "kind": { + "Enum": [ + "BOOLEAN", + "DATE", + "NUMBER", + "STRING", + "SELECT_NUMBER", + "SELECT_STRING", + "ENTITY", + "LINK" + ] + } + } + } + }, + { + "ordinal": 11, + "name": "is_multi_select", + "type_info": "Bool" + }, + { + "ordinal": 12, + "name": "specific_entity_type: Option", + "type_info": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + }, + { + "ordinal": 13, + "name": "definition_created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 14, + "name": "definition_updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "definition_is_system", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "TextArray", + { + "Custom": { + "name": "property_entity_type[]", + "kind": { + "Array": { + "Custom": { + "name": "property_entity_type", + "kind": { + "Enum": [ + "CHANNEL", + "CHAT", + "DOCUMENT", + "PROJECT", + "THREAD", + "USER", + "COMPANY", + "TASK" + ] + } + } + } + } + } + }, + "UuidArray" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + false, + false, + true, + true, + false, + false, + false, + true, + false, + false, + false + ] + }, + "hash": "edce1ca1979c9bd7c42f7e89d80a8d25037d25951b1f406dddb8d62cc13f74f0" +} diff --git a/rust/cloud-storage/.sqlx/query-edd4b100c5da632fdd5b89c67b8a478e593d8236cf4efcebaa15ab4046917cc3.json b/rust/cloud-storage/.sqlx/query-edd4b100c5da632fdd5b89c67b8a478e593d8236cf4efcebaa15ab4046917cc3.json new file mode 100644 index 0000000000..46c54c63f4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-edd4b100c5da632fdd5b89c67b8a478e593d8236cf4efcebaa15ab4046917cc3.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n rp.\"permissionId\" AS id,\n p.\"description\" AS description\n FROM\n \"User\" u\n INNER JOIN\n \"RolesOnUsers\" ru ON u.id = ru.\"userId\"\n INNER JOIN\n \"RolesOnPermissions\" rp ON ru.\"roleId\" = rp.\"roleId\"\n INNER JOIN\n \"Permission\" p ON rp.\"permissionId\" = p.id\n WHERE\n u.id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "description", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "edd4b100c5da632fdd5b89c67b8a478e593d8236cf4efcebaa15ab4046917cc3" +} diff --git a/rust/cloud-storage/.sqlx/query-ee0142b21993b387a2279768973366203093e40f519275702f3bcfa711812321.json b/rust/cloud-storage/.sqlx/query-ee0142b21993b387a2279768973366203093e40f519275702f3bcfa711812321.json new file mode 100644 index 0000000000..efc90ee86b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ee0142b21993b387a2279768973366203093e40f519275702f3bcfa711812321.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE team\n SET subscription_id = $2\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "ee0142b21993b387a2279768973366203093e40f519275702f3bcfa711812321" +} diff --git a/rust/cloud-storage/.sqlx/query-ee374b0fcc0e59609fbc6368541c65cc9e27d786fd2648040cc9f2c6a3295d8e.json b/rust/cloud-storage/.sqlx/query-ee374b0fcc0e59609fbc6368541c65cc9e27d786fd2648040cc9f2c6a3295d8e.json new file mode 100644 index 0000000000..32f9a9bade --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ee374b0fcc0e59609fbc6368541c65cc9e27d786fd2648040cc9f2c6a3295d8e.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH participant_ids AS (\n SELECT user_id\n FROM call_record_participants\n WHERE call_record_id = $1\n ),\n participant_team_ids AS (\n SELECT DISTINCT tu.team_id\n FROM team_user tu\n JOIN participant_ids p ON p.user_id = tu.user_id\n ),\n candidate_user_ids AS (\n SELECT user_id FROM participant_ids\n UNION\n SELECT tu.user_id\n FROM team_user tu\n JOIN participant_team_ids t ON t.team_id = tu.team_id\n )\n SELECT DISTINCT user_id AS \"user_id!\"\n FROM candidate_user_ids\n ORDER BY user_id ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "ee374b0fcc0e59609fbc6368541c65cc9e27d786fd2648040cc9f2c6a3295d8e" +} diff --git a/rust/cloud-storage/.sqlx/query-eec442b23af1030f7f161a304469b00fa7c2c474980361fbc5d98839dc40773f.json b/rust/cloud-storage/.sqlx/query-eec442b23af1030f7f161a304469b00fa7c2c474980361fbc5d98839dc40773f.json new file mode 100644 index 0000000000..27c368ad1f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-eec442b23af1030f7f161a304469b00fa7c2c474980361fbc5d98839dc40773f.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Chat\" \n WHERE id = ANY($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "eec442b23af1030f7f161a304469b00fa7c2c474980361fbc5d98839dc40773f" +} diff --git a/rust/cloud-storage/.sqlx/query-eed44d491b8b8bce4f111b92565b371093099209a80349d311f45a0aa4b9cca9.json b/rust/cloud-storage/.sqlx/query-eed44d491b8b8bce4f111b92565b371093099209a80349d311f45a0aa4b9cca9.json new file mode 100644 index 0000000000..37b4e188f4 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-eed44d491b8b8bce4f111b92565b371093099209a80349d311f45a0aa4b9cca9.json @@ -0,0 +1,88 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n kind,\n owner_user_id,\n team_id,\n name,\n handle,\n description,\n avatar_url,\n created_by,\n created_at,\n updated_at,\n deleted_at\n FROM bots\n WHERE kind = 'owned'\n AND deleted_at IS NULL\n AND (\n owner_user_id = $1\n OR team_id IN (\n SELECT team_id FROM team_user WHERE user_id = $1\n )\n )\n ORDER BY created_at ASC, id ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "kind", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "owner_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "team_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "handle", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "description", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "avatar_url", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "created_by", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "deleted_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true + ] + }, + "hash": "eed44d491b8b8bce4f111b92565b371093099209a80349d311f45a0aa4b9cca9" +} diff --git a/rust/cloud-storage/.sqlx/query-ef427e34315b97ade2b38516eb477af19b53c578df995fbbcef546aaba55176d.json b/rust/cloud-storage/.sqlx/query-ef427e34315b97ade2b38516eb477af19b53c578df995fbbcef546aaba55176d.json new file mode 100644 index 0000000000..7044065d55 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ef427e34315b97ade2b38516eb477af19b53c578df995fbbcef546aaba55176d.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id FROM \"Project\" WHERE \"userId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "ef427e34315b97ade2b38516eb477af19b53c578df995fbbcef546aaba55176d" +} diff --git a/rust/cloud-storage/.sqlx/query-ef656114c7f86aa883e6360df927ea16b18efcff635cbb4d8146ff4f3ba67416.json b/rust/cloud-storage/.sqlx/query-ef656114c7f86aa883e6360df927ea16b18efcff635cbb4d8146ff4f3ba67416.json new file mode 100644 index 0000000000..82ec51214d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ef656114c7f86aa883e6360df927ea16b18efcff635cbb4d8146ff4f3ba67416.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS (\n SELECT 1 FROM crm_thread\n WHERE id = $1\n AND deleted_at IS NULL\n AND (company_id = $2 OR contact_id = $3)\n ) AS \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "ef656114c7f86aa883e6360df927ea16b18efcff635cbb4d8146ff4f3ba67416" +} diff --git a/rust/cloud-storage/.sqlx/query-efc06b0244fc40aa8fbf3721d76886d7b8909f3150f779b64a56a456027c0d26.json b/rust/cloud-storage/.sqlx/query-efc06b0244fc40aa8fbf3721d76886d7b8909f3150f779b64a56a456027c0d26.json new file mode 100644 index 0000000000..848a23ff17 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-efc06b0244fc40aa8fbf3721d76886d7b8909f3150f779b64a56a456027c0d26.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"UserDocumentViewLocation\"\n WHERE user_id = $1 AND document_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "efc06b0244fc40aa8fbf3721d76886d7b8909f3150f779b64a56a456027c0d26" +} diff --git a/rust/cloud-storage/.sqlx/query-efc740cd935fb67ef5c2a75b3c37cf16bf09d6e52e5f6e5c5b107ef8244a141d.json b/rust/cloud-storage/.sqlx/query-efc740cd935fb67ef5c2a75b3c37cf16bf09d6e52e5f6e5c5b107ef8244a141d.json new file mode 100644 index 0000000000..1cbb49a96b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-efc740cd935fb67ef5c2a75b3c37cf16bf09d6e52e5f6e5c5b107ef8244a141d.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO user_notification (notification_id, user_id)\n SELECT $1, user_id\n FROM UNNEST($2::text[]) as user_id\n RETURNING created_at::timestamptz as \"created_at!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "created_at!", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [ + null + ] + }, + "hash": "efc740cd935fb67ef5c2a75b3c37cf16bf09d6e52e5f6e5c5b107ef8244a141d" +} diff --git a/rust/cloud-storage/.sqlx/query-f02b1d7d15a7657f2f5132db649f9a4097ff7320d336de3ea25fe1899a7826f3.json b/rust/cloud-storage/.sqlx/query-f02b1d7d15a7657f2f5132db649f9a4097ff7320d336de3ea25fe1899a7826f3.json new file mode 100644 index 0000000000..02caa915ac --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f02b1d7d15a7657f2f5132db649f9a4097ff7320d336de3ea25fe1899a7826f3.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_backfill_jobs\n SET status = $1::email_backfill_job_status, updated_at = now()\n WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + { + "Custom": { + "name": "email_backfill_job_status", + "kind": { + "Enum": [ + "Init", + "InProgress", + "Complete", + "Cancelled", + "Failed" + ] + } + } + }, + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "f02b1d7d15a7657f2f5132db649f9a4097ff7320d336de3ea25fe1899a7826f3" +} diff --git a/rust/cloud-storage/.sqlx/query-f04a97eb13684a35daf6c5ff52890da499864d7f8e97a390a11b384d6429fa13.json b/rust/cloud-storage/.sqlx/query-f04a97eb13684a35daf6c5ff52890da499864d7f8e97a390a11b384d6429fa13.json new file mode 100644 index 0000000000..5b722afbd3 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f04a97eb13684a35daf6c5ff52890da499864d7f8e97a390a11b384d6429fa13.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM comms_channels\n WHERE id = $1\n AND EXISTS (\n SELECT 1\n FROM comms_channel_participants\n WHERE channel_id = $1\n AND user_id = $2\n AND role = 'owner'::comms_participant_role\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "f04a97eb13684a35daf6c5ff52890da499864d7f8e97a390a11b384d6429fa13" +} diff --git a/rust/cloud-storage/.sqlx/query-f04af5974db6b600e88a7c1fd3f39a09a5f4d3185af10d1a7a32e8035b2c5ec1.json b/rust/cloud-storage/.sqlx/query-f04af5974db6b600e88a7c1fd3f39a09a5f4d3185af10d1a7a32e8035b2c5ec1.json new file mode 100644 index 0000000000..d5989a39ec --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f04af5974db6b600e88a7c1fd3f39a09a5f4d3185af10d1a7a32e8035b2c5ec1.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE team\n SET paying = $2\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Bool" + ] + }, + "nullable": [] + }, + "hash": "f04af5974db6b600e88a7c1fd3f39a09a5f4d3185af10d1a7a32e8035b2c5ec1" +} diff --git a/rust/cloud-storage/.sqlx/query-f0c307220a9a497860462656f53da3e5786501c7b07a41983acb8459df610b8b.json b/rust/cloud-storage/.sqlx/query-f0c307220a9a497860462656f53da3e5786501c7b07a41983acb8459df610b8b.json new file mode 100644 index 0000000000..87007e2972 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f0c307220a9a497860462656f53da3e5786501c7b07a41983acb8459df610b8b.json @@ -0,0 +1,73 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n channel_id,\n thread_id,\n sender_id,\n content,\n created_at,\n updated_at,\n edited_at::timestamptz AS \"edited_at?\",\n deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages\n WHERE channel_id = $1\n AND (created_at, id) < ($2, $3)\n ORDER BY created_at DESC, id DESC\n LIMIT $4\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "edited_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 8, + "name": "deleted_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Timestamptz", + "Uuid", + "Int8" + ] + }, + "nullable": [ + false, + false, + true, + false, + false, + false, + false, + null, + null + ] + }, + "hash": "f0c307220a9a497860462656f53da3e5786501c7b07a41983acb8459df610b8b" +} diff --git a/rust/cloud-storage/.sqlx/query-f1346adcde7c4a86859ebc936ac4c8ae492febce05ce35df78bced81c1070f01.json b/rust/cloud-storage/.sqlx/query-f1346adcde7c4a86859ebc936ac4c8ae492febce05ce35df78bced81c1070f01.json new file mode 100644 index 0000000000..2a382f9975 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f1346adcde7c4a86859ebc936ac4c8ae492febce05ce35df78bced81c1070f01.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM macro_user\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "f1346adcde7c4a86859ebc936ac4c8ae492febce05ce35df78bced81c1070f01" +} diff --git a/rust/cloud-storage/.sqlx/query-f1afe1bb26ffc5e97fe3a5db39ca0fe594d449939c99f3dd8e338aff9d26753b.json b/rust/cloud-storage/.sqlx/query-f1afe1bb26ffc5e97fe3a5db39ca0fe594d449939c99f3dd8e338aff9d26753b.json new file mode 100644 index 0000000000..cbe9dea652 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f1afe1bb26ffc5e97fe3a5db39ca0fe594d449939c99f3dd8e338aff9d26753b.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM comms_entity_mentions\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "f1afe1bb26ffc5e97fe3a5db39ca0fe594d449939c99f3dd8e338aff9d26753b" +} diff --git a/rust/cloud-storage/.sqlx/query-f249e23685d626a0e63015828655a4dc7053d1e1d6425b9de339986d41c8e180.json b/rust/cloud-storage/.sqlx/query-f249e23685d626a0e63015828655a4dc7053d1e1d6425b9de339986d41c8e180.json new file mode 100644 index 0000000000..4153fa8d99 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f249e23685d626a0e63015828655a4dc7053d1e1d6425b9de339986d41c8e180.json @@ -0,0 +1,19 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Document\" (id, owner, name, \"fileType\", \"projectId\", \"createdAt\", \"updatedAt\")\n VALUES ($1, $2, $3, $4, $5, $6, $6)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Text", + "Text", + "Timestamp" + ] + }, + "nullable": [] + }, + "hash": "f249e23685d626a0e63015828655a4dc7053d1e1d6425b9de339986d41c8e180" +} diff --git a/rust/cloud-storage/.sqlx/query-f2a71de44d62190ec6ccad44b2e3a5b00bf57e5f0b948b2d882d2d036375d913.json b/rust/cloud-storage/.sqlx/query-f2a71de44d62190ec6ccad44b2e3a5b00bf57e5f0b948b2d882d2d036375d913.json new file mode 100644 index 0000000000..c793fa1d88 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f2a71de44d62190ec6ccad44b2e3a5b00bf57e5f0b948b2d882d2d036375d913.json @@ -0,0 +1,27 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO comms_channel_participants (channel_id, role, user_id)\n VALUES ($1, $2, $3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + { + "Custom": { + "name": "comms_participant_role", + "kind": { + "Enum": [ + "owner", + "admin", + "member" + ] + } + } + }, + "Text" + ] + }, + "nullable": [] + }, + "hash": "f2a71de44d62190ec6ccad44b2e3a5b00bf57e5f0b948b2d882d2d036375d913" +} diff --git a/rust/cloud-storage/.sqlx/query-f2b90d413f8882f0d1da810aeca51a503118d0dddd8759495f607c65158605d7.json b/rust/cloud-storage/.sqlx/query-f2b90d413f8882f0d1da810aeca51a503118d0dddd8759495f607c65158605d7.json new file mode 100644 index 0000000000..13b75b74c6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f2b90d413f8882f0d1da810aeca51a503118d0dddd8759495f607c65158605d7.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, channel_id, room_name, created_by, created_at, egress_id\n FROM calls\n WHERE room_name = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "room_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_by", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "egress_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true + ] + }, + "hash": "f2b90d413f8882f0d1da810aeca51a503118d0dddd8759495f607c65158605d7" +} diff --git a/rust/cloud-storage/.sqlx/query-f2c563a84ecf4b347e19eed2770c9593db5cf4bba24c234e9179f741a920d4d5.json b/rust/cloud-storage/.sqlx/query-f2c563a84ecf4b347e19eed2770c9593db5cf4bba24c234e9179f741a920d4d5.json new file mode 100644 index 0000000000..b9194ba12f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f2c563a84ecf4b347e19eed2770c9593db5cf4bba24c234e9179f741a920d4d5.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"macro_user_id\" as \"macro_user_id!\", \"id\"\n FROM \"User\"\n WHERE \"email\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id!", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "f2c563a84ecf4b347e19eed2770c9593db5cf4bba24c234e9179f741a920d4d5" +} diff --git a/rust/cloud-storage/.sqlx/query-f2d5d7aea9918978cd69c14f8afe24156c2fa387e001ee8eaf57e4a70a106069.json b/rust/cloud-storage/.sqlx/query-f2d5d7aea9918978cd69c14f8afe24156c2fa387e001ee8eaf57e4a70a106069.json new file mode 100644 index 0000000000..182e0858ba --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f2d5d7aea9918978cd69c14f8afe24156c2fa387e001ee8eaf57e4a70a106069.json @@ -0,0 +1,18 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO entity_properties (id, entity_id, entity_type, property_definition_id, values)\n SELECT \n u.id,\n u.entity_id,\n u.entity_type::property_entity_type,\n u.property_definition_id,\n u.values\n FROM UNNEST(\n $1::UUID[],\n $2::TEXT[],\n $3::TEXT[],\n $4::UUID[],\n $5::JSONB[]\n ) AS u(id, entity_id, entity_type, property_definition_id, values)\n ON CONFLICT (entity_id, entity_type, property_definition_id)\n DO UPDATE SET \n values = EXCLUDED.values,\n updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "TextArray", + "TextArray", + "UuidArray", + "JsonbArray" + ] + }, + "nullable": [] + }, + "hash": "f2d5d7aea9918978cd69c14f8afe24156c2fa387e001ee8eaf57e4a70a106069" +} diff --git a/rust/cloud-storage/.sqlx/query-f360ad52de6c2f6b0c60902cbcb7ebad2671fe50f6425314bf3c007d01f53884.json b/rust/cloud-storage/.sqlx/query-f360ad52de6c2f6b0c60902cbcb7ebad2671fe50f6425314bf3c007d01f53884.json new file mode 100644 index 0000000000..70f8666277 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f360ad52de6c2f6b0c60902cbcb7ebad2671fe50f6425314bf3c007d01f53884.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"comms_channel_participants\"\n WHERE channel_id = $1 AND user_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "f360ad52de6c2f6b0c60902cbcb7ebad2671fe50f6425314bf3c007d01f53884" +} diff --git a/rust/cloud-storage/.sqlx/query-f3c74398e522602a72523704c37edbd92ada98d1c5b00dd4052db371fd191598.json b/rust/cloud-storage/.sqlx/query-f3c74398e522602a72523704c37edbd92ada98d1c5b00dd4052db371fd191598.json new file mode 100644 index 0000000000..4142c2a694 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f3c74398e522602a72523704c37edbd92ada98d1c5b00dd4052db371fd191598.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"User\"\n SET macro_user_id = $2\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "f3c74398e522602a72523704c37edbd92ada98d1c5b00dd4052db371fd191598" +} diff --git a/rust/cloud-storage/.sqlx/query-f3e53dd531be738b881df199783a2beded3bd378038cbd6f012080ac77c5291b.json b/rust/cloud-storage/.sqlx/query-f3e53dd531be738b881df199783a2beded3bd378038cbd6f012080ac77c5291b.json new file mode 100644 index 0000000000..39180b3b0f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f3e53dd531be738b881df199783a2beded3bd378038cbd6f012080ac77c5291b.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE user_notification\n SET deleted_at = NOW()\n WHERE user_id = $1 AND notification_id = ANY($2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "UuidArray" + ] + }, + "nullable": [] + }, + "hash": "f3e53dd531be738b881df199783a2beded3bd378038cbd6f012080ac77c5291b" +} diff --git a/rust/cloud-storage/.sqlx/query-f3e6e462f1b3d364bbcb2e556f68dced036c605ba52ff484b30130cf837b9408.json b/rust/cloud-storage/.sqlx/query-f3e6e462f1b3d364bbcb2e556f68dced036c605ba52ff484b30130cf837b9408.json new file mode 100644 index 0000000000..185e41a820 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f3e6e462f1b3d364bbcb2e556f68dced036c605ba52ff484b30130cf837b9408.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM user_mute_notification WHERE user_id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "f3e6e462f1b3d364bbcb2e556f68dced036c605ba52ff484b30130cf837b9408" +} diff --git a/rust/cloud-storage/.sqlx/query-f3fe8a220414038b0f4ebd8fbf0a6842bf271ef6cb2e4de41b820113295ca18d.json b/rust/cloud-storage/.sqlx/query-f3fe8a220414038b0f4ebd8fbf0a6842bf271ef6cb2e4de41b820113295ca18d.json new file mode 100644 index 0000000000..a902d75da9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f3fe8a220414038b0f4ebd8fbf0a6842bf271ef6cb2e4de41b820113295ca18d.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO macro_user (id, username, email, stripe_customer_id)\n VALUES ($1, $2, $3, $4)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "f3fe8a220414038b0f4ebd8fbf0a6842bf271ef6cb2e4de41b820113295ca18d" +} diff --git a/rust/cloud-storage/.sqlx/query-f419ff9b35e559aedd0c8623986307a3d445a6a5643262d3efda804e3d04ccc6.json b/rust/cloud-storage/.sqlx/query-f419ff9b35e559aedd0c8623986307a3d445a6a5643262d3efda804e3d04ccc6.json new file mode 100644 index 0000000000..23b9253715 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f419ff9b35e559aedd0c8623986307a3d445a6a5643262d3efda804e3d04ccc6.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS(\n SELECT 1 FROM crm_contacts WHERE company_id = $1 LIMIT 1\n ) AS \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "f419ff9b35e559aedd0c8623986307a3d445a6a5643262d3efda804e3d04ccc6" +} diff --git a/rust/cloud-storage/.sqlx/query-f4dd3bd30a64a7fd82d9a254a0fb0ea36e8607ebd4c272509afba882a3e0b572.json b/rust/cloud-storage/.sqlx/query-f4dd3bd30a64a7fd82d9a254a0fb0ea36e8607ebd4c272509afba882a3e0b572.json new file mode 100644 index 0000000000..3cdb5b9433 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f4dd3bd30a64a7fd82d9a254a0fb0ea36e8607ebd4c272509afba882a3e0b572.json @@ -0,0 +1,73 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, macro_id, fusionauth_user_id, email_address, provider as \"provider: _\",\n is_sync_active, created_at, updated_at\n FROM email_links\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "macro_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "fusionauth_user_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "provider: _", + "type_info": { + "Custom": { + "name": "email_user_provider_enum", + "kind": { + "Enum": [ + "GMAIL" + ] + } + } + } + }, + { + "ordinal": 5, + "name": "is_sync_active", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "f4dd3bd30a64a7fd82d9a254a0fb0ea36e8607ebd4c272509afba882a3e0b572" +} diff --git a/rust/cloud-storage/.sqlx/query-f4e290fa3d4abc3cc6c28f3e88b35cb2d29a67a4c437234f0ac7d1e6baa34669.json b/rust/cloud-storage/.sqlx/query-f4e290fa3d4abc3cc6c28f3e88b35cb2d29a67a4c437234f0ac7d1e6baa34669.json new file mode 100644 index 0000000000..28c3067d28 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f4e290fa3d4abc3cc6c28f3e88b35cb2d29a67a4c437234f0ac7d1e6baa34669.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM github_links\n WHERE id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "f4e290fa3d4abc3cc6c28f3e88b35cb2d29a67a4c437234f0ac7d1e6baa34669" +} diff --git a/rust/cloud-storage/.sqlx/query-f53db7386c5bcacad71c665b79d14921d77330e127ed9083235078bc0d8ee970.json b/rust/cloud-storage/.sqlx/query-f53db7386c5bcacad71c665b79d14921d77330e127ed9083235078bc0d8ee970.json new file mode 100644 index 0000000000..2dcc350139 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f53db7386c5bcacad71c665b79d14921d77330e127ed9083235078bc0d8ee970.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT EXISTS (\n SELECT 1 FROM entity_access\n WHERE entity_id = $1\n AND entity_type = 'document'\n AND source_id = $2\n AND source_type = 'team'\n ) as \"exists!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "f53db7386c5bcacad71c665b79d14921d77330e127ed9083235078bc0d8ee970" +} diff --git a/rust/cloud-storage/.sqlx/query-f5fff13701e91118a77c814a3c1b31f3c3202031f51868b9af724e701248079f.json b/rust/cloud-storage/.sqlx/query-f5fff13701e91118a77c814a3c1b31f3c3202031f51868b9af724e701248079f.json new file mode 100644 index 0000000000..6e3ae4d785 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f5fff13701e91118a77c814a3c1b31f3c3202031f51868b9af724e701248079f.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT user_id AS \"user_id!\"\n FROM call_record_participants\n WHERE call_record_id = $1\n ORDER BY joined_at ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "f5fff13701e91118a77c814a3c1b31f3c3202031f51868b9af724e701248079f" +} diff --git a/rust/cloud-storage/.sqlx/query-f61e5ffbf5f10d3989640c3f1b70bbe79c9e1b2e6d2e6925bdf89df1a07ead5d.json b/rust/cloud-storage/.sqlx/query-f61e5ffbf5f10d3989640c3f1b70bbe79c9e1b2e6d2e6925bdf89df1a07ead5d.json new file mode 100644 index 0000000000..b75c335b28 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f61e5ffbf5f10d3989640c3f1b70bbe79c9e1b2e6d2e6925bdf89df1a07ead5d.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM email_attachments_fwd eaf\n USING email_messages m\n WHERE eaf.message_id = m.id\n AND eaf.message_id = $1 AND eaf.attachment_id = $2 AND m.link_id = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "f61e5ffbf5f10d3989640c3f1b70bbe79c9e1b2e6d2e6925bdf89df1a07ead5d" +} diff --git a/rust/cloud-storage/.sqlx/query-f61fae90a53682f217091f1ecbdaa60d2eb5b7b0ff90863b0d0dc288779a5f7f.json b/rust/cloud-storage/.sqlx/query-f61fae90a53682f217091f1ecbdaa60d2eb5b7b0ff90863b0d0dc288779a5f7f.json new file mode 100644 index 0000000000..2333f15f8b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f61fae90a53682f217091f1ecbdaa60d2eb5b7b0ff90863b0d0dc288779a5f7f.json @@ -0,0 +1,87 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n c.\"id\" as \"item_id!\",\n c.\"owner\" as \"owner\",\n c.\"fileType\" as \"file_type\",\n c.\"name\" as \"file_name\",\n c.\"createdAt\" as \"created_at!\",\n c.\"updatedAt\" as \"updated_at!\",\n c.\"deletedAt\" as \"deleted_at?\",\n uh.\"updatedAt\" as \"viewed_at?\",\n c.\"projectId\" as \"project_id?\",\n dt.sub_type as \"sub_type?: DocumentSubType\"\n FROM\n \"Document\" c\n LEFT JOIN document_sub_type dt ON dt.document_id = c.id\n LEFT JOIN\n \"UserHistory\" uh ON uh.\"itemId\" = c.\"id\"\n AND uh.\"userId\" = $1\n AND uh.\"itemType\" = 'document'\n WHERE\n c.\"id\" = ANY($2)\n ORDER BY\n c.\"updatedAt\" DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "item_id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "file_name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at!", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "updated_at!", + "type_info": "Timestamp" + }, + { + "ordinal": 6, + "name": "deleted_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 7, + "name": "viewed_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 8, + "name": "project_id?", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Text", + "TextArray" + ] + }, + "nullable": [ + false, + false, + true, + false, + false, + false, + true, + false, + true, + false + ] + }, + "hash": "f61fae90a53682f217091f1ecbdaa60d2eb5b7b0ff90863b0d0dc288779a5f7f" +} diff --git a/rust/cloud-storage/.sqlx/query-f6226ec842f894cdf49b4a8d0d1f363e31040405915cffa7da18a3ed337e298a.json b/rust/cloud-storage/.sqlx/query-f6226ec842f894cdf49b4a8d0d1f363e31040405915cffa7da18a3ed337e298a.json new file mode 100644 index 0000000000..c69a93a03c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f6226ec842f894cdf49b4a8d0d1f363e31040405915cffa7da18a3ed337e298a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*) as \"count!\"\n FROM call_participants\n WHERE call_id = $1 AND left_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count!", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + null + ] + }, + "hash": "f6226ec842f894cdf49b4a8d0d1f363e31040405915cffa7da18a3ed337e298a" +} diff --git a/rust/cloud-storage/.sqlx/query-f62b5eb569c1751fe1b85a81c1b50811245e71af919de567277e505bb59d62e5.json b/rust/cloud-storage/.sqlx/query-f62b5eb569c1751fe1b85a81c1b50811245e71af919de567277e505bb59d62e5.json new file mode 100644 index 0000000000..a5c0451b89 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f62b5eb569c1751fe1b85a81c1b50811245e71af919de567277e505bb59d62e5.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT task_id, duplicate_task_id\n FROM task_duplicate_match\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "task_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "duplicate_task_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "f62b5eb569c1751fe1b85a81c1b50811245e71af919de567277e505bb59d62e5" +} diff --git a/rust/cloud-storage/.sqlx/query-f6600a8a539ce77dbd8b5332ea8994e58da416d649dc4963c510b3f6906db5fd.json b/rust/cloud-storage/.sqlx/query-f6600a8a539ce77dbd8b5332ea8994e58da416d649dc4963c510b3f6906db5fd.json new file mode 100644 index 0000000000..0257874645 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f6600a8a539ce77dbd8b5332ea8994e58da416d649dc4963c510b3f6906db5fd.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n 'item' as unsubscribe_type,\n unsubscribe_item.item_id as \"item_id!\",\n unsubscribe_item.item_type as \"item_type!\"\n FROM\n user_notification_item_unsubscribe unsubscribe_item\n WHERE\n unsubscribe_item.user_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "unsubscribe_type", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "item_id!", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "item_type!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null, + false, + false + ] + }, + "hash": "f6600a8a539ce77dbd8b5332ea8994e58da416d649dc4963c510b3f6906db5fd" +} diff --git a/rust/cloud-storage/.sqlx/query-f6a7499d3079d346afe5d866734ffc5d4ac3f9f1a8c2a5714ef130e53d11145f.json b/rust/cloud-storage/.sqlx/query-f6a7499d3079d346afe5d866734ffc5d4ac3f9f1a8c2a5714ef130e53d11145f.json new file mode 100644 index 0000000000..c718076a09 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f6a7499d3079d346afe5d866734ffc5d4ac3f9f1a8c2a5714ef130e53d11145f.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH RECURSIVE child_projects AS (\n SELECT id FROM \"Project\" WHERE id = $1\n\n UNION ALL\n\n SELECT p.id FROM \"Project\" p\n INNER JOIN child_projects cp ON p.\"parentId\" = cp.id\n )\n SELECT id as \"entity_id!\", 'project' as \"entity_type!\" FROM child_projects\n\n UNION ALL\n\n SELECT d.id as \"entity_id!\", 'document' as \"entity_type!\" FROM \"Document\" d\n WHERE d.\"projectId\" IN (SELECT id FROM child_projects)\n\n UNION ALL\n\n SELECT c.id as \"entity_id!\", 'chat' as \"entity_type!\" FROM \"Chat\" c\n WHERE c.\"projectId\" IN (SELECT id FROM child_projects)\n\n UNION ALL\n\n SELECT et.id::text as \"entity_id!\", 'email_thread' as \"entity_type!\" FROM email_threads et\n WHERE et.project_id IN (SELECT id FROM child_projects)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_id!", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "entity_type!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null, + null + ] + }, + "hash": "f6a7499d3079d346afe5d866734ffc5d4ac3f9f1a8c2a5714ef130e53d11145f" +} diff --git a/rust/cloud-storage/.sqlx/query-f6bc8c7f62c44aa50928badd81140cddf46a772f8a638259541b05f006bd4c1c.json b/rust/cloud-storage/.sqlx/query-f6bc8c7f62c44aa50928badd81140cddf46a772f8a638259541b05f006bd4c1c.json new file mode 100644 index 0000000000..92d4487785 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f6bc8c7f62c44aa50928badd81140cddf46a772f8a638259541b05f006bd4c1c.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, name\n FROM \"Document\"\n WHERE id = ANY($1)\n AND \"deletedAt\" IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "f6bc8c7f62c44aa50928badd81140cddf46a772f8a638259541b05f006bd4c1c" +} diff --git a/rust/cloud-storage/.sqlx/query-f6c0addc618fb161405a1a989f2cacd0718c070eb2ee345d524abe7ba8b5b35e.json b/rust/cloud-storage/.sqlx/query-f6c0addc618fb161405a1a989f2cacd0718c070eb2ee345d524abe7ba8b5b35e.json new file mode 100644 index 0000000000..0d013147f7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f6c0addc618fb161405a1a989f2cacd0718c070eb2ee345d524abe7ba8b5b35e.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n sp.id as id,\n sp.\"isPublic\" as is_public,\n sp.\"publicAccessLevel\" as \"public_access_level?\",\n p.\"userId\" as owner,\n COALESCE(\n json_agg(json_build_object(\n 'channel_id', csp.\"channel_id\",\n 'access_level', csp.\"access_level\"\n )) FILTER (WHERE csp.\"channel_id\" IS NOT NULL),\n '[]'\n ) as \"channel_share_permissions?\"\n FROM\n \"ProjectPermission\" pp\n JOIN \"SharePermission\" sp ON pp.\"sharePermissionId\" = sp.id\n JOIN \"Project\" p ON pp.\"projectId\" = p.id\n LEFT JOIN \"ChannelSharePermission\" csp ON csp.\"share_permission_id\" = sp.id\n WHERE\n pp.\"projectId\" = $1\n GROUP BY\n sp.id, p.\"userId\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "is_public", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "public_access_level?", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "channel_share_permissions?", + "type_info": "Json" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + true, + false, + null + ] + }, + "hash": "f6c0addc618fb161405a1a989f2cacd0718c070eb2ee345d524abe7ba8b5b35e" +} diff --git a/rust/cloud-storage/.sqlx/query-f7350272860b713193c09bbd784418605ec3f0f9f090344882fcac7d251bfdba.json b/rust/cloud-storage/.sqlx/query-f7350272860b713193c09bbd784418605ec3f0f9f090344882fcac7d251bfdba.json new file mode 100644 index 0000000000..ba4b6efa55 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f7350272860b713193c09bbd784418605ec3f0f9f090344882fcac7d251bfdba.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "INSERT INTO referral_tracking (id, referrer_id, referred_id, status, created_at) VALUES ($1, $2, $3, 'incomplete', NOW())", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "f7350272860b713193c09bbd784418605ec3f0f9f090344882fcac7d251bfdba" +} diff --git a/rust/cloud-storage/.sqlx/query-f740b3f09ab349c876e1c7d8e42ad59600be3ea7f6f3db61fcc3045330a20f39.json b/rust/cloud-storage/.sqlx/query-f740b3f09ab349c876e1c7d8e42ad59600be3ea7f6f3db61fcc3045330a20f39.json new file mode 100644 index 0000000000..182393ae7b --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f740b3f09ab349c876e1c7d8e42ad59600be3ea7f6f3db61fcc3045330a20f39.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE call_records\n SET recording_started_at = $1\n WHERE id = $2\n AND (\n recording_started_at IS NULL\n OR recording_started_at = date_trunc('second', recording_started_at)\n OR $1 < recording_started_at\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Timestamptz", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "f740b3f09ab349c876e1c7d8e42ad59600be3ea7f6f3db61fcc3045330a20f39" +} diff --git a/rust/cloud-storage/.sqlx/query-f77a2e12f69d9ca98e0ddf9bc9c10b9c54cb028c0f723b18c05231eafe5722af.json b/rust/cloud-storage/.sqlx/query-f77a2e12f69d9ca98e0ddf9bc9c10b9c54cb028c0f723b18c05231eafe5722af.json new file mode 100644 index 0000000000..6cdb842426 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f77a2e12f69d9ca98e0ddf9bc9c10b9c54cb028c0f723b18c05231eafe5722af.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"ChatPermission\"\n WHERE \"sharePermissionId\" = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "f77a2e12f69d9ca98e0ddf9bc9c10b9c54cb028c0f723b18c05231eafe5722af" +} diff --git a/rust/cloud-storage/.sqlx/query-f8e7be63fb307e8882da2ef41dfb8ebb75a89ecd397f5a266032c2c8a1f9c561.json b/rust/cloud-storage/.sqlx/query-f8e7be63fb307e8882da2ef41dfb8ebb75a89ecd397f5a266032c2c8a1f9c561.json new file mode 100644 index 0000000000..99ffe52fc0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f8e7be63fb307e8882da2ef41dfb8ebb75a89ecd397f5a266032c2c8a1f9c561.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE email_threads\n SET\n is_read = $1,\n updated_at = NOW()\n WHERE\n id = $2 AND\n link_id = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bool", + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "f8e7be63fb307e8882da2ef41dfb8ebb75a89ecd397f5a266032c2c8a1f9c561" +} diff --git a/rust/cloud-storage/.sqlx/query-f8ea2beac8e9feddd9f8ebd4e3d67032505a085b4c9c5e787f3194414758601b.json b/rust/cloud-storage/.sqlx/query-f8ea2beac8e9feddd9f8ebd4e3d67032505a085b4c9c5e787f3194414758601b.json new file mode 100644 index 0000000000..0bd8267545 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f8ea2beac8e9feddd9f8ebd4e3d67032505a085b4c9c5e787f3194414758601b.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE bot_tokens\n SET revoked_at = now()\n WHERE id = $1\n AND bot_id = $2\n AND revoked_at IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "f8ea2beac8e9feddd9f8ebd4e3d67032505a085b4c9c5e787f3194414758601b" +} diff --git a/rust/cloud-storage/.sqlx/query-f95b295c9ffa7b96a7907c43c0557d60af3f02fc72c3f541bc94c903034a6748.json b/rust/cloud-storage/.sqlx/query-f95b295c9ffa7b96a7907c43c0557d60af3f02fc72c3f541bc94c903034a6748.json new file mode 100644 index 0000000000..8f396b9fba --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f95b295c9ffa7b96a7907c43c0557d60af3f02fc72c3f541bc94c903034a6748.json @@ -0,0 +1,162 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id, provider_id, thread_id, provider_thread_id, replying_to_id,\n global_id, link_id, provider_history_id, internal_date_ts, snippet,\n size_estimate, subject, sent_at, has_attachments, is_read, is_starred,\n is_sent, is_draft, body_text, body_html_sanitized, body_macro,\n headers_jsonb, created_at, updated_at\n FROM email_messages\n WHERE thread_id = $1\n ORDER BY internal_date_ts DESC\n LIMIT $2 OFFSET $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 3, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 7, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 13, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 14, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 15, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 19, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 20, + "name": "body_macro", + "type_info": "Text" + }, + { + "ordinal": 21, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 22, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 23, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + true, + true, + true, + true, + false, + false + ] + }, + "hash": "f95b295c9ffa7b96a7907c43c0557d60af3f02fc72c3f541bc94c903034a6748" +} diff --git a/rust/cloud-storage/.sqlx/query-f97467addd6684e98f641dabde769092e981121feea08d55de4cd41762f1fa1e.json b/rust/cloud-storage/.sqlx/query-f97467addd6684e98f641dabde769092e981121feea08d55de4cd41762f1fa1e.json new file mode 100644 index 0000000000..31c8f80def --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f97467addd6684e98f641dabde769092e981121feea08d55de4cd41762f1fa1e.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"Thread\" (\"owner\", \"documentId\", \"createdAt\", \"updatedAt\", \"resolved\")\n VALUES ($1, $2, $3, $4, $5)\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Timestamp", + "Timestamp", + "Bool" + ] + }, + "nullable": [ + false + ] + }, + "hash": "f97467addd6684e98f641dabde769092e981121feea08d55de4cd41762f1fa1e" +} diff --git a/rust/cloud-storage/.sqlx/query-f97ea400ea881b9116d2deb19f1cb9c8f850746382a3c7049303286f2868a851.json b/rust/cloud-storage/.sqlx/query-f97ea400ea881b9116d2deb19f1cb9c8f850746382a3c7049303286f2868a851.json new file mode 100644 index 0000000000..48e611fc43 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f97ea400ea881b9116d2deb19f1cb9c8f850746382a3c7049303286f2868a851.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT owner_id\n FROM team\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "owner_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "f97ea400ea881b9116d2deb19f1cb9c8f850746382a3c7049303286f2868a851" +} diff --git a/rust/cloud-storage/.sqlx/query-f9dd839c0eeb6b25a432136def701390348a6d4e33feefb4c3d33974e15fcf83.json b/rust/cloud-storage/.sqlx/query-f9dd839c0eeb6b25a432136def701390348a6d4e33feefb4c3d33974e15fcf83.json new file mode 100644 index 0000000000..ac492d99f7 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f9dd839c0eeb6b25a432136def701390348a6d4e33feefb4c3d33974e15fcf83.json @@ -0,0 +1,67 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id,\n m.channel_id,\n m.sender_id,\n m.content,\n m.created_at,\n m.updated_at,\n m.edited_at::timestamptz AS \"edited_at?\",\n m.deleted_at::timestamptz AS \"deleted_at?\"\n FROM comms_messages m\n WHERE m.channel_id = $1\n AND m.thread_id IS NULL\n AND (m.deleted_at IS NULL OR EXISTS (\n SELECT 1 FROM comms_messages r\n WHERE r.thread_id = m.id AND r.deleted_at IS NULL\n ))\n AND (m.created_at, m.id) < ($2, $3)\n ORDER BY m.created_at DESC, m.id DESC\n LIMIT $4\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "channel_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "sender_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "content", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "edited_at?", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "deleted_at?", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Timestamptz", + "Uuid", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + null, + null + ] + }, + "hash": "f9dd839c0eeb6b25a432136def701390348a6d4e33feefb4c3d33974e15fcf83" +} diff --git a/rust/cloud-storage/.sqlx/query-f9e1032b35c2a8134372f0188b76dc5ca777fdfccf87f1760b3ff0f03d4515b2.json b/rust/cloud-storage/.sqlx/query-f9e1032b35c2a8134372f0188b76dc5ca777fdfccf87f1760b3ff0f03d4515b2.json new file mode 100644 index 0000000000..60443a4422 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f9e1032b35c2a8134372f0188b76dc5ca777fdfccf87f1760b3ff0f03d4515b2.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT github_user_id\n FROM github_links\n WHERE macro_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "github_user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "f9e1032b35c2a8134372f0188b76dc5ca777fdfccf87f1760b3ff0f03d4515b2" +} diff --git a/rust/cloud-storage/.sqlx/query-f9f132f209b5a22522df5c6b9ae936efa63645abc9b36965f9e8daead43b7adc.json b/rust/cloud-storage/.sqlx/query-f9f132f209b5a22522df5c6b9ae936efa63645abc9b36965f9e8daead43b7adc.json new file mode 100644 index 0000000000..dd2fb46466 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f9f132f209b5a22522df5c6b9ae936efa63645abc9b36965f9e8daead43b7adc.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT\n ea.entity_id,\n ea.entity_type\n FROM entity_access ea\n WHERE ea.source_id = ANY($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "entity_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "entity_type", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "f9f132f209b5a22522df5c6b9ae936efa63645abc9b36965f9e8daead43b7adc" +} diff --git a/rust/cloud-storage/.sqlx/query-f9f7a7f7bf87cffd10d68d891874a0a270de769b42747942090f55ac86c78574.json b/rust/cloud-storage/.sqlx/query-f9f7a7f7bf87cffd10d68d891874a0a270de769b42747942090f55ac86c78574.json new file mode 100644 index 0000000000..75e27686b5 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-f9f7a7f7bf87cffd10d68d891874a0a270de769b42747942090f55ac86c78574.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n \"messageId\" as \"message_id\",\n \"url\",\n \"title\",\n \"description\",\n \"favicon_url\",\n \"image_url\"\n FROM \"WebAnnotations\" wa\n INNER JOIN \"ChatMessage\" cm ON cm.id = wa.\"messageId\"\n WHERE cm.\"chatId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "message_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "url", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "title", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "description", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "favicon_url", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "image_url", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + true, + false, + false, + true, + true, + true + ] + }, + "hash": "f9f7a7f7bf87cffd10d68d891874a0a270de769b42747942090f55ac86c78574" +} diff --git a/rust/cloud-storage/.sqlx/query-fa0410f4a8b799f01b4a582582d0baafac16a1058e7017d63813abf87b340e4a.json b/rust/cloud-storage/.sqlx/query-fa0410f4a8b799f01b4a582582d0baafac16a1058e7017d63813abf87b340e4a.json new file mode 100644 index 0000000000..1913a02577 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fa0410f4a8b799f01b4a582582d0baafac16a1058e7017d63813abf87b340e4a.json @@ -0,0 +1,43 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO crm_domain_directory (\n domain, name, description, icon_url,\n apollo_organization_id, website_url, linkedin_url, twitter_url,\n facebook_url, industry, keywords, technologies,\n estimated_num_employees, annual_revenue, annual_revenue_printed,\n total_funding, total_funding_printed, latest_funding_stage,\n latest_funding_round_date, founded_year, publicly_traded_symbol,\n publicly_traded_exchange, phone, raw_address, street_address,\n city, state, postal_code, country, raw, enriched_at\n )\n VALUES (\n $1, $2, $3, $4,\n $5, $6, $7, $8,\n $9, $10, $11, $12,\n $13, $14, $15,\n $16, $17, $18,\n $19, $20, $21,\n $22, $23, $24, $25,\n $26, $27, $28, $29, $30, now()\n )\n ON CONFLICT (LOWER(domain)) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Text", + "Text", + "Text", + "Text", + "Text", + "Text", + "Text", + "TextArray", + "TextArray", + "Int4", + "Int8", + "Text", + "Int8", + "Text", + "Text", + "Timestamptz", + "Int4", + "Text", + "Text", + "Text", + "Text", + "Text", + "Text", + "Text", + "Text", + "Text", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "fa0410f4a8b799f01b4a582582d0baafac16a1058e7017d63813abf87b340e4a" +} diff --git a/rust/cloud-storage/.sqlx/query-fa0c2815727b1e1d81f6fc75f7b1b0bd250c9b56ab63138ac60b52e9174c48b1.json b/rust/cloud-storage/.sqlx/query-fa0c2815727b1e1d81f6fc75f7b1b0bd250c9b56ab63138ac60b52e9174c48b1.json new file mode 100644 index 0000000000..e79acf2cbe --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fa0c2815727b1e1d81f6fc75f7b1b0bd250c9b56ab63138ac60b52e9174c48b1.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT macro_user_id FROM macro_user_voice WHERE voice_id = $1 LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "fa0c2815727b1e1d81f6fc75f7b1b0bd250c9b56ab63138ac60b52e9174c48b1" +} diff --git a/rust/cloud-storage/.sqlx/query-fa1bd94a6aca08ddbb856f2c42327e8397a42089600571a38981bfa11b7796d4.json b/rust/cloud-storage/.sqlx/query-fa1bd94a6aca08ddbb856f2c42327e8397a42089600571a38981bfa11b7796d4.json new file mode 100644 index 0000000000..b22ba93a90 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fa1bd94a6aca08ddbb856f2c42327e8397a42089600571a38981bfa11b7796d4.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"OrganizationEmailMatches\" (\"organizationId\", \"email\")\n VALUES ($1, $2)\n ON CONFLICT (\"email\") DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Varchar" + ] + }, + "nullable": [] + }, + "hash": "fa1bd94a6aca08ddbb856f2c42327e8397a42089600571a38981bfa11b7796d4" +} diff --git a/rust/cloud-storage/.sqlx/query-fa24799c4889a98bfb62a1987d1fe93975169bfeb0cdbecb04dac3f31288570f.json b/rust/cloud-storage/.sqlx/query-fa24799c4889a98bfb62a1987d1fe93975169bfeb0cdbecb04dac3f31288570f.json new file mode 100644 index 0000000000..afb3979b4f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fa24799c4889a98bfb62a1987d1fe93975169bfeb0cdbecb04dac3f31288570f.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM \"DocumentInstance\" WHERE id = $2 and \"documentId\" = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "fa24799c4889a98bfb62a1987d1fe93975169bfeb0cdbecb04dac3f31288570f" +} diff --git a/rust/cloud-storage/.sqlx/query-fa75cf5f948fd99ec052e6bc48a9fc3f7df9188479defc6072394d8d06f4b3c1.json b/rust/cloud-storage/.sqlx/query-fa75cf5f948fd99ec052e6bc48a9fc3f7df9188479defc6072394d8d06f4b3c1.json new file mode 100644 index 0000000000..333e6ee5ef --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fa75cf5f948fd99ec052e6bc48a9fc3f7df9188479defc6072394d8d06f4b3c1.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO email_gmail_histories (link_id, history_id, updated_at)\n VALUES ($1, $2, NOW())\n ON CONFLICT (link_id)\n DO UPDATE SET\n history_id = EXCLUDED.history_id,\n updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [] + }, + "hash": "fa75cf5f948fd99ec052e6bc48a9fc3f7df9188479defc6072394d8d06f4b3c1" +} diff --git a/rust/cloud-storage/.sqlx/query-fab6b92c5781874261b3c3ca673d0bf0ad8155e25cf77aa57dafdcb133f30509.json b/rust/cloud-storage/.sqlx/query-fab6b92c5781874261b3c3ca673d0bf0ad8155e25cf77aa57dafdcb133f30509.json new file mode 100644 index 0000000000..bbff4acae2 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fab6b92c5781874261b3c3ca673d0bf0ad8155e25cf77aa57dafdcb133f30509.json @@ -0,0 +1,32 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT sub_type as \"sub_type: DocumentSubType\" FROM document_sub_type WHERE document_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "sub_type: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "fab6b92c5781874261b3c3ca673d0bf0ad8155e25cf77aa57dafdcb133f30509" +} diff --git a/rust/cloud-storage/.sqlx/query-faf5532927a794d4e40350f17e0633ba54b8185f1e6aeac32a8d1bfca35a43d3.json b/rust/cloud-storage/.sqlx/query-faf5532927a794d4e40350f17e0633ba54b8185f1e6aeac32a8d1bfca35a43d3.json new file mode 100644 index 0000000000..9ec28469b0 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-faf5532927a794d4e40350f17e0633ba54b8185f1e6aeac32a8d1bfca35a43d3.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT name FROM \"Document\" WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "faf5532927a794d4e40350f17e0633ba54b8185f1e6aeac32a8d1bfca35a43d3" +} diff --git a/rust/cloud-storage/.sqlx/query-fafa84eb636a2855f683f73eba494f9ce25445a642ef58e1f8a59788a7f374b8.json b/rust/cloud-storage/.sqlx/query-fafa84eb636a2855f683f73eba494f9ce25445a642ef58e1f8a59788a7f374b8.json new file mode 100644 index 0000000000..9c9523edbb --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fafa84eb636a2855f683f73eba494f9ce25445a642ef58e1f8a59788a7f374b8.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n macro_user_id,\n linked_email\n FROM\n in_progress_user_link\n WHERE\n id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "linked_email", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "fafa84eb636a2855f683f73eba494f9ce25445a642ef58e1f8a59788a7f374b8" +} diff --git a/rust/cloud-storage/.sqlx/query-fb28d507d6c6e160fdf0e56d5fc7a70bfbf8709ea5473b3ec59e8f547cbeaed9.json b/rust/cloud-storage/.sqlx/query-fb28d507d6c6e160fdf0e56d5fc7a70bfbf8709ea5473b3ec59e8f547cbeaed9.json new file mode 100644 index 0000000000..e89466fcd6 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fb28d507d6c6e160fdf0e56d5fc7a70bfbf8709ea5473b3ec59e8f547cbeaed9.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH target AS (SELECT embedding FROM voice WHERE id = $1)\n SELECT muv.macro_user_id\n FROM voice v\n JOIN macro_user_voice muv ON muv.voice_id = v.id\n WHERE (v.embedding <=> (SELECT embedding FROM target)) <= $2\n ORDER BY v.embedding <=> (SELECT embedding FROM target) ASC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "macro_user_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Float8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "fb28d507d6c6e160fdf0e56d5fc7a70bfbf8709ea5473b3ec59e8f547cbeaed9" +} diff --git a/rust/cloud-storage/.sqlx/query-fb8a9157d4c7546ced9440b417c693bcaa3226934fedb2a4348a24ca9568c4ed.json b/rust/cloud-storage/.sqlx/query-fb8a9157d4c7546ced9440b417c693bcaa3226934fedb2a4348a24ca9568c4ed.json new file mode 100644 index 0000000000..9bee89e00f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fb8a9157d4c7546ced9440b417c693bcaa3226934fedb2a4348a24ca9568c4ed.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"UserHistory\" WHERE \"itemId\" = $1 AND \"itemType\" = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "fb8a9157d4c7546ced9440b417c693bcaa3226934fedb2a4348a24ca9568c4ed" +} diff --git a/rust/cloud-storage/.sqlx/query-fc0744ebeb842c69501102f111cb569a6f2b0c2fc0e62e5243a5857e054e61c7.json b/rust/cloud-storage/.sqlx/query-fc0744ebeb842c69501102f111cb569a6f2b0c2fc0e62e5243a5857e054e61c7.json new file mode 100644 index 0000000000..d9a73c770f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fc0744ebeb842c69501102f111cb569a6f2b0c2fc0e62e5243a5857e054e61c7.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT team_id\n FROM team_user\n WHERE user_id = $1\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "team_id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "fc0744ebeb842c69501102f111cb569a6f2b0c2fc0e62e5243a5857e054e61c7" +} diff --git a/rust/cloud-storage/.sqlx/query-fc0a71fe3ce6804e5f2b80e78c108aba496434dc78909951f7c1bd86f9c56ec0.json b/rust/cloud-storage/.sqlx/query-fc0a71fe3ce6804e5f2b80e78c108aba496434dc78909951f7c1bd86f9c56ec0.json new file mode 100644 index 0000000000..fcef9aca61 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fc0a71fe3ce6804e5f2b80e78c108aba496434dc78909951f7c1bd86f9c56ec0.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"SharePermission\" sp\n USING \"ProjectPermission\" pp \n WHERE pp.\"sharePermissionId\" = sp.id\n AND pp.\"projectId\" = ANY($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "fc0a71fe3ce6804e5f2b80e78c108aba496434dc78909951f7c1bd86f9c56ec0" +} diff --git a/rust/cloud-storage/.sqlx/query-fc6df4dc3c0f82de02b70975338d7455df93799b12af38d50bb85d81391861c3.json b/rust/cloud-storage/.sqlx/query-fc6df4dc3c0f82de02b70975338d7455df93799b12af38d50bb85d81391861c3.json new file mode 100644 index 0000000000..ca1b2f5d86 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fc6df4dc3c0f82de02b70975338d7455df93799b12af38d50bb85d81391861c3.json @@ -0,0 +1,58 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id, is_draft, is_sent, is_read, provider_id,\n internal_date_ts, updated_at\n FROM email_messages\n WHERE thread_id = $1\n ORDER BY internal_date_ts DESC NULLS LAST\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 3, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 4, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + true, + false + ] + }, + "hash": "fc6df4dc3c0f82de02b70975338d7455df93799b12af38d50bb85d81391861c3" +} diff --git a/rust/cloud-storage/.sqlx/query-fc8a4a51536361c5b5c0a742ba268fff2908654b8bb53923320e7fabe244b467.json b/rust/cloud-storage/.sqlx/query-fc8a4a51536361c5b5c0a742ba268fff2908654b8bb53923320e7fabe244b467.json new file mode 100644 index 0000000000..decc4d20e9 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fc8a4a51536361c5b5c0a742ba268fff2908654b8bb53923320e7fabe244b467.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n (SELECT COUNT(*) FROM \"DocumentInstance\" WHERE \"documentId\" = $1) +\n (SELECT COUNT(*) FROM \"DocumentBom\" WHERE \"documentId\" = $1) AS total_count\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "total_count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "fc8a4a51536361c5b5c0a742ba268fff2908654b8bb53923320e7fabe244b467" +} diff --git a/rust/cloud-storage/.sqlx/query-fc9cc90bb37368b293d46d43efd16c178a9865c5926e4195249eb22e2a4a91b3.json b/rust/cloud-storage/.sqlx/query-fc9cc90bb37368b293d46d43efd16c178a9865c5926e4195249eb22e2a4a91b3.json new file mode 100644 index 0000000000..fbcc874a9d --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fc9cc90bb37368b293d46d43efd16c178a9865c5926e4195249eb22e2a4a91b3.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \"id\", \"userId\" as user_id FROM \"Chat\" WHERE \"projectId\" = ANY($1) AND \"deletedAt\" IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "TextArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "fc9cc90bb37368b293d46d43efd16c178a9865c5926e4195249eb22e2a4a91b3" +} diff --git a/rust/cloud-storage/.sqlx/query-fcd4b67db8a3a8de51b0bb55880c5934f900adbadcc5549165e709cb1cd345b5.json b/rust/cloud-storage/.sqlx/query-fcd4b67db8a3a8de51b0bb55880c5934f900adbadcc5549165e709cb1cd345b5.json new file mode 100644 index 0000000000..671a73cb36 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fcd4b67db8a3a8de51b0bb55880c5934f900adbadcc5549165e709cb1cd345b5.json @@ -0,0 +1,129 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n d.id as document_id,\n d.owner as owner,\n d.name as document_name,\n COALESCE(db.id, di.id) as \"document_version_id!\",\n d.\"branchedFromId\" as \"branched_from_id?\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id?\",\n d.\"documentFamilyId\" as \"document_family_id?\",\n d.\"fileType\" as file_type,\n d.\"createdAt\"::timestamptz as created_at,\n d.\"updatedAt\"::timestamptz as updated_at,\n d.\"deletedAt\"::timestamptz as deleted_at,\n db.bom_parts as \"document_bom?\",\n di.modification_data as \"modification_data?\",\n d.\"projectId\" as \"project_id?\",\n p.name as \"project_name?\",\n di.sha as \"sha?\",\n dt.sub_type as \"sub_type?: DocumentSubType\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n LEFT JOIN LATERAL (\n SELECT\n b.id,\n (\n SELECT\n json_agg(\n json_build_object(\n 'id', bp.id,\n 'sha', bp.sha,\n 'path', bp.path\n )\n )\n FROM\n \"BomPart\" bp\n WHERE\n bp.\"documentBomId\" = b.id\n ) as bom_parts\n FROM\n \"DocumentBom\" b\n WHERE\n b.\"documentId\" = d.id\n ORDER BY\n b.\"createdAt\" DESC\n LIMIT 1\n ) db ON d.\"fileType\" = 'docx'\n LEFT JOIN LATERAL (\n SELECT\n i.id,\n i.\"documentId\",\n i.\"sha\",\n i.\"createdAt\",\n (\n SELECT\n imod.\"modificationData\"\n FROM\n \"DocumentInstanceModificationData\" imod\n WHERE\n imod.\"documentInstanceId\" = i.id\n ) as modification_data,\n i.\"updatedAt\"\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"updatedAt\" DESC\n LIMIT 1\n ) di ON d.\"fileType\" IS DISTINCT FROM 'docx'\n LEFT JOIN \"Project\" p ON p.id = d.\"projectId\"\n WHERE\n d.\"deletedAt\" IS NULL\n ORDER BY d.\"createdAt\" DESC\n LIMIT $1 OFFSET $2\n\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "document_id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "owner", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "document_name", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "document_version_id!", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "branched_from_id?", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "branched_from_version_id?", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "document_family_id?", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "file_type", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 10, + "name": "deleted_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 11, + "name": "document_bom?", + "type_info": "Json" + }, + { + "ordinal": 12, + "name": "modification_data?", + "type_info": "Jsonb" + }, + { + "ordinal": 13, + "name": "project_id?", + "type_info": "Text" + }, + { + "ordinal": 14, + "name": "project_name?", + "type_info": "Text" + }, + { + "ordinal": 15, + "name": "sha?", + "type_info": "Text" + }, + { + "ordinal": 16, + "name": "sub_type?: DocumentSubType", + "type_info": { + "Custom": { + "name": "document_sub_type_value", + "kind": { + "Enum": [ + "task", + "snippet" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + null, + true, + true, + true, + true, + null, + null, + null, + null, + null, + true, + false, + false, + false + ] + }, + "hash": "fcd4b67db8a3a8de51b0bb55880c5934f900adbadcc5549165e709cb1cd345b5" +} diff --git a/rust/cloud-storage/.sqlx/query-fd2b153cf0275acd708641fc7908abfce69d431447fcbf846e60aa60febb1433.json b/rust/cloud-storage/.sqlx/query-fd2b153cf0275acd708641fc7908abfce69d431447fcbf846e60aa60febb1433.json new file mode 100644 index 0000000000..50aff8134c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fd2b153cf0275acd708641fc7908abfce69d431447fcbf846e60aa60febb1433.json @@ -0,0 +1,69 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO foreign_entity (\n id,\n foreign_entity_id,\n foreign_entity_source,\n metadata,\n stored_for_id,\n stored_for_auth_entity\n )\n VALUES ($1, $2, $3, $4, $5, $6)\n RETURNING\n id as \"id!: Uuid\",\n foreign_entity_id as \"foreign_entity_id!: String\",\n foreign_entity_source as \"foreign_entity_source!: String\",\n metadata as \"metadata!: serde_json::Value\",\n stored_for_id as \"stored_for_id!: String\",\n stored_for_auth_entity as \"stored_for_auth_entity!: String\",\n created_at as \"created_at!: DateTime\",\n updated_at as \"updated_at!: DateTime\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id!: Uuid", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "foreign_entity_id!: String", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "foreign_entity_source!: String", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "metadata!: serde_json::Value", + "type_info": "Jsonb" + }, + { + "ordinal": 4, + "name": "stored_for_id!: String", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "stored_for_auth_entity!: String", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "created_at!: DateTime", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "updated_at!: DateTime", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Text", + "Jsonb", + "Text", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "fd2b153cf0275acd708641fc7908abfce69d431447fcbf846e60aa60febb1433" +} diff --git a/rust/cloud-storage/.sqlx/query-fd65e80e68a17871a3a3ef4bd1bab20faaf6ba24f55172486a74aaec3da480f4.json b/rust/cloud-storage/.sqlx/query-fd65e80e68a17871a3a3ef4bd1bab20faaf6ba24f55172486a74aaec3da480f4.json new file mode 100644 index 0000000000..6819822606 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fd65e80e68a17871a3a3ef4bd1bab20faaf6ba24f55172486a74aaec3da480f4.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"entity_access\"\n WHERE (entity_id = ANY($1) AND entity_type = $2)\n OR granted_from_project_id = ANY($3)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray", + "Text", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "fd65e80e68a17871a3a3ef4bd1bab20faaf6ba24f55172486a74aaec3da480f4" +} diff --git a/rust/cloud-storage/.sqlx/query-fd9545dca362a8cdf1b3189af6277d724c16d6068b7ab828c2eb604617227113.json b/rust/cloud-storage/.sqlx/query-fd9545dca362a8cdf1b3189af6277d724c16d6068b7ab828c2eb604617227113.json new file mode 100644 index 0000000000..a9456acc75 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fd9545dca362a8cdf1b3189af6277d724c16d6068b7ab828c2eb604617227113.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM comms_entity_mentions\n WHERE entity_id = ANY($1) AND source_entity_id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "Text" + ] + }, + "nullable": [] + }, + "hash": "fd9545dca362a8cdf1b3189af6277d724c16d6068b7ab828c2eb604617227113" +} diff --git a/rust/cloud-storage/.sqlx/query-fe93b3b50a3a64b8b354903858cfef2cdff408625fa1a592977996a81e8b3f3c.json b/rust/cloud-storage/.sqlx/query-fe93b3b50a3a64b8b354903858cfef2cdff408625fa1a592977996a81e8b3f3c.json new file mode 100644 index 0000000000..caa1a7dfef --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-fe93b3b50a3a64b8b354903858cfef2cdff408625fa1a592977996a81e8b3f3c.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"MacroPromptPermission\" (\"macro_prompt_id\", \"share_permission_id\")\n VALUES ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "fe93b3b50a3a64b8b354903858cfef2cdff408625fa1a592977996a81e8b3f3c" +} diff --git a/rust/cloud-storage/.sqlx/query-ff0ad36a3e9b991dfd04335db13c6bec2f121b2afb9c5c1fa39c2d804cb71286.json b/rust/cloud-storage/.sqlx/query-ff0ad36a3e9b991dfd04335db13c6bec2f121b2afb9c5c1fa39c2d804cb71286.json new file mode 100644 index 0000000000..ce97215e6a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ff0ad36a3e9b991dfd04335db13c6bec2f121b2afb9c5c1fa39c2d804cb71286.json @@ -0,0 +1,173 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n m.id, m.provider_id, m.global_id, m.link_id, m.thread_id, m.provider_thread_id, m.provider_history_id,\n m.replying_to_id, m.internal_date_ts, m.snippet, m.size_estimate, m.subject, m.from_name,\n m.from_contact_id, m.sent_at, m.has_attachments, m.is_read, m.is_starred, m.is_sent, m.is_draft,\n NULL::TEXT as body_text,\n NULL::TEXT as body_html_sanitized,\n NULL::TEXT as body_macro,\n m.headers_jsonb, m.created_at, m.updated_at\n FROM email_messages m\n WHERE m.link_id = $1\n AND m.is_draft = true\n AND jsonb_path_exists(\n m.headers_jsonb,\n '$[*] ? (@.\"Macro-In-Reply-To\" == $macro_uuid)'::jsonpath,\n jsonb_build_object('macro_uuid', $2::text)\n )\n ORDER BY m.created_at DESC\n LIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "provider_id", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "global_id", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "link_id", + "type_info": "Uuid" + }, + { + "ordinal": 4, + "name": "thread_id", + "type_info": "Uuid" + }, + { + "ordinal": 5, + "name": "provider_thread_id", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "provider_history_id", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "replying_to_id", + "type_info": "Uuid" + }, + { + "ordinal": 8, + "name": "internal_date_ts", + "type_info": "Timestamptz" + }, + { + "ordinal": 9, + "name": "snippet", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "size_estimate", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "subject", + "type_info": "Text" + }, + { + "ordinal": 12, + "name": "from_name", + "type_info": "Varchar" + }, + { + "ordinal": 13, + "name": "from_contact_id", + "type_info": "Uuid" + }, + { + "ordinal": 14, + "name": "sent_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 15, + "name": "has_attachments", + "type_info": "Bool" + }, + { + "ordinal": 16, + "name": "is_read", + "type_info": "Bool" + }, + { + "ordinal": 17, + "name": "is_starred", + "type_info": "Bool" + }, + { + "ordinal": 18, + "name": "is_sent", + "type_info": "Bool" + }, + { + "ordinal": 19, + "name": "is_draft", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "body_text", + "type_info": "Text" + }, + { + "ordinal": 21, + "name": "body_html_sanitized", + "type_info": "Text" + }, + { + "ordinal": 22, + "name": "body_macro", + "type_info": "Text" + }, + { + "ordinal": 23, + "name": "headers_jsonb", + "type_info": "Jsonb" + }, + { + "ordinal": 24, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 25, + "name": "updated_at", + "type_info": "Timestamptz" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Text" + ] + }, + "nullable": [ + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + null, + null, + null, + true, + false, + false + ] + }, + "hash": "ff0ad36a3e9b991dfd04335db13c6bec2f121b2afb9c5c1fa39c2d804cb71286" +} diff --git a/rust/cloud-storage/.sqlx/query-ff3cfaae68201d92e5a587defc0b23eddb2d7a5a8a1572ef33f3040f8e0d671b.json b/rust/cloud-storage/.sqlx/query-ff3cfaae68201d92e5a587defc0b23eddb2d7a5a8a1572ef33f3040f8e0d671b.json new file mode 100644 index 0000000000..b0ce9f3ac1 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ff3cfaae68201d92e5a587defc0b23eddb2d7a5a8a1572ef33f3040f8e0d671b.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT dp.\"sharePermissionId\" as \"share_permission_id!\"\n FROM \"DocumentPermission\" dp\n WHERE dp.\"documentId\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "share_permission_id!", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "ff3cfaae68201d92e5a587defc0b23eddb2d7a5a8a1572ef33f3040f8e0d671b" +} diff --git a/rust/cloud-storage/.sqlx/query-ff54b7462bad2c7811807786e3b57f3b77a2108138b267fd97144edad023be1c.json b/rust/cloud-storage/.sqlx/query-ff54b7462bad2c7811807786e3b57f3b77a2108138b267fd97144edad023be1c.json new file mode 100644 index 0000000000..688074a36f --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ff54b7462bad2c7811807786e3b57f3b77a2108138b267fd97144edad023be1c.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM crm_companies WHERE id = $1", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "ff54b7462bad2c7811807786e3b57f3b77a2108138b267fd97144edad023be1c" +} diff --git a/rust/cloud-storage/.sqlx/query-ff7d21bb92d1ed078738e8190acee79c3e0b64c8c4a507719aa78405325cad76.json b/rust/cloud-storage/.sqlx/query-ff7d21bb92d1ed078738e8190acee79c3e0b64c8c4a507719aa78405325cad76.json new file mode 100644 index 0000000000..6c75d8252a --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ff7d21bb92d1ed078738e8190acee79c3e0b64c8c4a507719aa78405325cad76.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT \n d.name \n FROM \"Document\" d\n WHERE d.\"id\" = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "ff7d21bb92d1ed078738e8190acee79c3e0b64c8c4a507719aa78405325cad76" +} diff --git a/rust/cloud-storage/.sqlx/query-ff9a8fc2c134909f51787e9bbc3e541dddf035820810dbf1b1a6feacfeb0e431.json b/rust/cloud-storage/.sqlx/query-ff9a8fc2c134909f51787e9bbc3e541dddf035820810dbf1b1a6feacfeb0e431.json new file mode 100644 index 0000000000..81fd455c63 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ff9a8fc2c134909f51787e9bbc3e541dddf035820810dbf1b1a6feacfeb0e431.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE user_notification\n SET sent = true\n WHERE notification_id = $1 AND user_id = ANY($2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "TextArray" + ] + }, + "nullable": [] + }, + "hash": "ff9a8fc2c134909f51787e9bbc3e541dddf035820810dbf1b1a6feacfeb0e431" +} diff --git a/rust/cloud-storage/.sqlx/query-ffb324854a460dd540e7c0849f87741bc7947c8473dba0fb39c61ee8be80950c.json b/rust/cloud-storage/.sqlx/query-ffb324854a460dd540e7c0849f87741bc7947c8473dba0fb39c61ee8be80950c.json new file mode 100644 index 0000000000..cc13e43e45 --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-ffb324854a460dd540e7c0849f87741bc7947c8473dba0fb39c61ee8be80950c.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM \"Thread\" WHERE \"documentId\" = $1;\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "ffb324854a460dd540e7c0849f87741bc7947c8473dba0fb39c61ee8be80950c" +} From 0407542d962c47328e389a4d60323fc5f99ddd81 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 10 Jun 2026 22:18:55 +0000 Subject: [PATCH 4/5] refactor(memory): store team memory in memory table, unify into one service Review feedback from #3972: - team memory is now a team_id-scoped row in the existing memory table (user_id/team_id are mutually exclusive, partial unique indexes keep one-row-per-owner upsert semantics) instead of a separate table - one MemoryService::get_or_generate_memory call now fetches both the personal and team memory and triggers both background generations; the separate TeamMemoryService and GET /memory/team endpoint are gone - GET /memory returns { memory?, team_memory? }; regenerated OpenAPI spec and TypeScript client https://claude.ai/code/session_01CyfX47q3gqFp49pLrcco8b --- .../service-cognition/generated/client.ts | 8 +- .../generated/schemas/index.ts | 2 + .../generated/schemas/memoryResponse.ts | 11 ++- .../generated/schemas/memoryResponseMemory.ts | 11 +++ .../schemas/memoryResponseTeamMemory.ts | 12 +++ .../service-cognition/openapi.json | 19 +++-- ...67bc5e7f96ca1d145e65f0c6e3f2787cf227.json} | 4 +- ...faf14c6da39d8e7a2ade3b370343002be82c.json} | 4 +- ...ff6f2ff306ed1c8b69388a0f7fbdff9d9bc74.json | 24 ------ ...1abbce728b93591e34fb09d9ce8bfa19729c1.json | 24 ++++++ ...1ff406ea348014419a970a7a4ea5b7a455b0.json} | 4 +- .../src/api/context/mod.rs | 7 +- .../src/api/context/test.rs | 13 +-- .../document_cognition_service/src/api/mod.rs | 4 - .../src/api/stream/chat_message/mod.rs | 25 ++---- .../src/api/swagger.rs | 1 - .../document_cognition_service/src/main.rs | 14 +--- ...0610212946_add_team_id_to_memory_table.sql | 11 +++ ...0260610212946_create_team_memory_table.sql | 9 -- rust/cloud-storage/memory/src/domain/mod.rs | 5 +- rust/cloud-storage/memory/src/domain/ports.rs | 21 +++-- .../memory/src/domain/service.rs | 43 ++++++++-- .../{team_service.rs => service/team.rs} | 61 ++++---------- .../{team_service => service/team}/test.rs | 0 .../memory/src/inbound/axum_router.rs | 83 +++++-------------- rust/cloud-storage/memory/src/main.rs | 12 ++- .../memory/src/outbound/pg_memory_repo.rs | 2 +- .../src/outbound/pg_team_memory_repo.rs | 8 +- .../src/outbound/pg_team_memory_repo/test.rs | 39 ++++++++- .../outbound/inprocess_executor/agent_task.rs | 49 +++-------- 30 files changed, 253 insertions(+), 277 deletions(-) create mode 100644 js/app/packages/service-clients/service-cognition/generated/schemas/memoryResponseMemory.ts create mode 100644 js/app/packages/service-clients/service-cognition/generated/schemas/memoryResponseTeamMemory.ts rename rust/cloud-storage/.sqlx/{query-cbeb059dc82fad969d3f6d1ba50733a8e5a01c9584765a61536f0835ae46bca8.json => query-2bacd87def214ac03a40e3b5858a67bc5e7f96ca1d145e65f0c6e3f2787cf227.json} (67%) rename rust/cloud-storage/.sqlx/{query-b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc.json => query-5a427312ded69610ede4679d54cefaf14c6da39d8e7a2ade3b370343002be82c.json} (63%) delete mode 100644 rust/cloud-storage/.sqlx/query-7245eb3c102f3a7d4ef12b37137ff6f2ff306ed1c8b69388a0f7fbdff9d9bc74.json create mode 100644 rust/cloud-storage/.sqlx/query-bdbe32af4a2c3138e6853ec1d541abbce728b93591e34fb09d9ce8bfa19729c1.json rename rust/cloud-storage/.sqlx/{query-2bd69fc8396fe1765b4d3e2c229d7a703234207c5747da7f76bf210966819fb8.json => query-d932a832244139cad77a3dcfb0b11ff406ea348014419a970a7a4ea5b7a455b0.json} (58%) create mode 100644 rust/cloud-storage/macro_db_client/migrations/20260610212946_add_team_id_to_memory_table.sql delete mode 100644 rust/cloud-storage/macro_db_client/migrations/20260610212946_create_team_memory_table.sql rename rust/cloud-storage/memory/src/domain/{team_service.rs => service/team.rs} (88%) rename rust/cloud-storage/memory/src/domain/{team_service => service/team}/test.rs (100%) diff --git a/js/app/packages/service-clients/service-cognition/generated/client.ts b/js/app/packages/service-clients/service-cognition/generated/client.ts index e8b67cc0bd..6ae28060da 100644 --- a/js/app/packages/service-clients/service-cognition/generated/client.ts +++ b/js/app/packages/service-clients/service-cognition/generated/client.ts @@ -1362,10 +1362,10 @@ export const startMcpAuth = async ( }; /** - * Returns the current memory if one exists. If the memory is stale or missing, -a background generation is triggered and the endpoint returns the stale -memory (200) or 404 if none exists yet. - * @summary Get the authenticated user's latest memory. + * Returns whichever memories currently exist. If either memory is stale or +missing, a background generation for it is triggered and the endpoint +returns the stale values (200), or 404 if neither exists yet. + * @summary Get the authenticated user's latest personal and team memories. */ export type getMemoryHandlerResponse200 = { data: MemoryResponse; diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/index.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/index.ts index d058d3e6c1..cd7a724d24 100644 --- a/js/app/packages/service-clients/service-cognition/generated/schemas/index.ts +++ b/js/app/packages/service-clients/service-cognition/generated/schemas/index.ts @@ -115,6 +115,8 @@ export * from './jwtPayload'; export * from './mcpAuthCallbackParams'; export * from './memoryErrorBody'; export * from './memoryResponse'; +export * from './memoryResponseMemory'; +export * from './memoryResponseTeamMemory'; export * from './messageWithAttachments'; export * from './newAttachment'; export * from './newChatMessage'; diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/memoryResponse.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/memoryResponse.ts index 5d14e7deb7..e20d06de9f 100644 --- a/js/app/packages/service-clients/service-cognition/generated/schemas/memoryResponse.ts +++ b/js/app/packages/service-clients/service-cognition/generated/schemas/memoryResponse.ts @@ -4,11 +4,16 @@ * Document Cognition Service * OpenAPI spec version: 1.0.0 */ +import type { MemoryResponseMemory } from './memoryResponseMemory'; +import type { MemoryResponseTeamMemory } from './memoryResponseTeamMemory'; /** - * The user's latest memory. + * The user's latest memories. */ export interface MemoryResponse { - /** The generated memory text. */ - memory: string; + /** The user's personal memory, if one has been generated. */ + memory?: MemoryResponseMemory; + /** The latest memory of the user's team, if the user belongs to a team +and a team memory has been generated. */ + team_memory?: MemoryResponseTeamMemory; } diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/memoryResponseMemory.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/memoryResponseMemory.ts new file mode 100644 index 0000000000..c29575d26f --- /dev/null +++ b/js/app/packages/service-clients/service-cognition/generated/schemas/memoryResponseMemory.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v7.21.0 🍺 + * Do not edit manually. + * Document Cognition Service + * OpenAPI spec version: 1.0.0 + */ + +/** + * The user's personal memory, if one has been generated. + */ +export type MemoryResponseMemory = string | null; diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/memoryResponseTeamMemory.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/memoryResponseTeamMemory.ts new file mode 100644 index 0000000000..3cd5ebd122 --- /dev/null +++ b/js/app/packages/service-clients/service-cognition/generated/schemas/memoryResponseTeamMemory.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v7.21.0 🍺 + * Do not edit manually. + * Document Cognition Service + * OpenAPI spec version: 1.0.0 + */ + +/** + * The latest memory of the user's team, if the user belongs to a team +and a team memory has been generated. + */ +export type MemoryResponseTeamMemory = string | null; diff --git a/js/app/packages/service-clients/service-cognition/openapi.json b/js/app/packages/service-clients/service-cognition/openapi.json index e514f792a8..da5c9c3239 100644 --- a/js/app/packages/service-clients/service-cognition/openapi.json +++ b/js/app/packages/service-clients/service-cognition/openapi.json @@ -1166,12 +1166,12 @@ "/memory": { "get": { "tags": ["memory"], - "summary": "Get the authenticated user's latest memory.", - "description": "Returns the current memory if one exists. If the memory is stale or missing,\na background generation is triggered and the endpoint returns the stale\nmemory (200) or 404 if none exists yet.", + "summary": "Get the authenticated user's latest personal and team memories.", + "description": "Returns whichever memories currently exist. If either memory is stale or\nmissing, a background generation for it is triggered and the endpoint\nreturns the stale values (200), or 404 if neither exists yet.", "operationId": "get_memory_handler", "responses": { "200": { - "description": "Latest memory for the user", + "description": "Latest personal and team memories for the user", "content": { "application/json": { "schema": { @@ -1181,7 +1181,7 @@ } }, "404": { - "description": "No memory exists for this user yet (generation triggered)" + "description": "No memory exists for this user or their team yet (generation triggered)" }, "500": { "description": "Internal server error", @@ -2784,12 +2784,15 @@ }, "MemoryResponse": { "type": "object", - "description": "The user's latest memory.", - "required": ["memory"], + "description": "The user's latest memories.", "properties": { "memory": { - "type": "string", - "description": "The generated memory text." + "type": ["string", "null"], + "description": "The user's personal memory, if one has been generated." + }, + "team_memory": { + "type": ["string", "null"], + "description": "The latest memory of the user's team, if the user belongs to a team\nand a team memory has been generated." } } }, diff --git a/rust/cloud-storage/.sqlx/query-cbeb059dc82fad969d3f6d1ba50733a8e5a01c9584765a61536f0835ae46bca8.json b/rust/cloud-storage/.sqlx/query-2bacd87def214ac03a40e3b5858a67bc5e7f96ca1d145e65f0c6e3f2787cf227.json similarity index 67% rename from rust/cloud-storage/.sqlx/query-cbeb059dc82fad969d3f6d1ba50733a8e5a01c9584765a61536f0835ae46bca8.json rename to rust/cloud-storage/.sqlx/query-2bacd87def214ac03a40e3b5858a67bc5e7f96ca1d145e65f0c6e3f2787cf227.json index eab167ea42..6d5f0a65b9 100644 --- a/rust/cloud-storage/.sqlx/query-cbeb059dc82fad969d3f6d1ba50733a8e5a01c9584765a61536f0835ae46bca8.json +++ b/rust/cloud-storage/.sqlx/query-2bacd87def214ac03a40e3b5858a67bc5e7f96ca1d145e65f0c6e3f2787cf227.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "\n SELECT memory, updated_at as \"updated_at!\"\n FROM team_memory\n WHERE team_id = $1\n ORDER BY updated_at DESC\n LIMIT 1\n ", + "query": "\n SELECT memory, updated_at as \"updated_at!\"\n FROM memory\n WHERE team_id = $1\n ORDER BY updated_at DESC\n LIMIT 1\n ", "describe": { "columns": [ { @@ -24,5 +24,5 @@ false ] }, - "hash": "cbeb059dc82fad969d3f6d1ba50733a8e5a01c9584765a61536f0835ae46bca8" + "hash": "2bacd87def214ac03a40e3b5858a67bc5e7f96ca1d145e65f0c6e3f2787cf227" } diff --git a/rust/cloud-storage/.sqlx/query-b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc.json b/rust/cloud-storage/.sqlx/query-5a427312ded69610ede4679d54cefaf14c6da39d8e7a2ade3b370343002be82c.json similarity index 63% rename from rust/cloud-storage/.sqlx/query-b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc.json rename to rust/cloud-storage/.sqlx/query-5a427312ded69610ede4679d54cefaf14c6da39d8e7a2ade3b370343002be82c.json index 3cf399f742..6a5026c87a 100644 --- a/rust/cloud-storage/.sqlx/query-b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc.json +++ b/rust/cloud-storage/.sqlx/query-5a427312ded69610ede4679d54cefaf14c6da39d8e7a2ade3b370343002be82c.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "\n INSERT INTO memory (id, user_id, memory)\n VALUES ($1, $2, $3)\n ON CONFLICT (user_id) DO UPDATE\n SET memory = EXCLUDED.memory,\n updated_at = NOW()\n RETURNING id\n ", + "query": "\n INSERT INTO memory (id, user_id, memory)\n VALUES ($1, $2, $3)\n ON CONFLICT (user_id) WHERE user_id IS NOT NULL DO UPDATE\n SET memory = EXCLUDED.memory,\n updated_at = NOW()\n RETURNING id\n ", "describe": { "columns": [ { @@ -20,5 +20,5 @@ false ] }, - "hash": "b101ce64403b1af489e1cafdd07cbfc71039effb4d2869606534765bce7b17fc" + "hash": "5a427312ded69610ede4679d54cefaf14c6da39d8e7a2ade3b370343002be82c" } diff --git a/rust/cloud-storage/.sqlx/query-7245eb3c102f3a7d4ef12b37137ff6f2ff306ed1c8b69388a0f7fbdff9d9bc74.json b/rust/cloud-storage/.sqlx/query-7245eb3c102f3a7d4ef12b37137ff6f2ff306ed1c8b69388a0f7fbdff9d9bc74.json deleted file mode 100644 index 54390322a3..0000000000 --- a/rust/cloud-storage/.sqlx/query-7245eb3c102f3a7d4ef12b37137ff6f2ff306ed1c8b69388a0f7fbdff9d9bc74.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO team_memory (id, team_id, memory)\n VALUES ($1, $2, $3)\n ON CONFLICT (team_id) DO UPDATE\n SET memory = EXCLUDED.memory,\n updated_at = NOW()\n RETURNING id\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - } - ], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Text" - ] - }, - "nullable": [ - false - ] - }, - "hash": "7245eb3c102f3a7d4ef12b37137ff6f2ff306ed1c8b69388a0f7fbdff9d9bc74" -} diff --git a/rust/cloud-storage/.sqlx/query-bdbe32af4a2c3138e6853ec1d541abbce728b93591e34fb09d9ce8bfa19729c1.json b/rust/cloud-storage/.sqlx/query-bdbe32af4a2c3138e6853ec1d541abbce728b93591e34fb09d9ce8bfa19729c1.json new file mode 100644 index 0000000000..09e06e9d1c --- /dev/null +++ b/rust/cloud-storage/.sqlx/query-bdbe32af4a2c3138e6853ec1d541abbce728b93591e34fb09d9ce8bfa19729c1.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO memory (id, team_id, memory)\n VALUES ($1, $2, $3)\n ON CONFLICT (team_id) WHERE team_id IS NOT NULL DO UPDATE\n SET memory = EXCLUDED.memory,\n updated_at = NOW()\n RETURNING id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "bdbe32af4a2c3138e6853ec1d541abbce728b93591e34fb09d9ce8bfa19729c1" +} diff --git a/rust/cloud-storage/.sqlx/query-2bd69fc8396fe1765b4d3e2c229d7a703234207c5747da7f76bf210966819fb8.json b/rust/cloud-storage/.sqlx/query-d932a832244139cad77a3dcfb0b11ff406ea348014419a970a7a4ea5b7a455b0.json similarity index 58% rename from rust/cloud-storage/.sqlx/query-2bd69fc8396fe1765b4d3e2c229d7a703234207c5747da7f76bf210966819fb8.json rename to rust/cloud-storage/.sqlx/query-d932a832244139cad77a3dcfb0b11ff406ea348014419a970a7a4ea5b7a455b0.json index d9cf85b622..94cf279a56 100644 --- a/rust/cloud-storage/.sqlx/query-2bd69fc8396fe1765b4d3e2c229d7a703234207c5747da7f76bf210966819fb8.json +++ b/rust/cloud-storage/.sqlx/query-d932a832244139cad77a3dcfb0b11ff406ea348014419a970a7a4ea5b7a455b0.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "\n SELECT memory\n FROM team_memory\n WHERE id = $1 AND team_id = $2\n ", + "query": "\n SELECT memory\n FROM memory\n WHERE id = $1 AND team_id = $2\n ", "describe": { "columns": [ { @@ -19,5 +19,5 @@ false ] }, - "hash": "2bd69fc8396fe1765b4d3e2c229d7a703234207c5747da7f76bf210966819fb8" + "hash": "d932a832244139cad77a3dcfb0b11ff406ea348014419a970a7a4ea5b7a455b0" } diff --git a/rust/cloud-storage/document_cognition_service/src/api/context/mod.rs b/rust/cloud-storage/document_cognition_service/src/api/context/mod.rs index f9106afc5e..75dcd2a73a 100644 --- a/rust/cloud-storage/document_cognition_service/src/api/context/mod.rs +++ b/rust/cloud-storage/document_cognition_service/src/api/context/mod.rs @@ -51,10 +51,8 @@ mod test; pub use test::test_api_context; pub(crate) type NotificationIngressType = SqsNotificationIngress; -pub type DcsMemoryService = - memory::domain::service::MemoryServiceImpl; - -pub type DcsTeamMemoryService = memory::domain::team_service::TeamMemoryServiceImpl< +pub type DcsMemoryService = memory::domain::service::MemoryServiceImpl< + memory::outbound::pg_memory_repo::PgMemoryRepo, memory::outbound::pg_team_memory_repo::PgTeamMemoryRepo, >; @@ -85,7 +83,6 @@ pub struct ApiContext { pub stream_repo: Arc, pub document_tool_context: ToolDocumentToolContext, pub memory_service: Arc, - pub team_memory_service: Arc, pub properties_tool_context: ToolPropertiesToolContext, pub email_tool_context: ToolEmailToolContext, pub call_tool_context: ToolCallToolContext, diff --git a/rust/cloud-storage/document_cognition_service/src/api/context/test.rs b/rust/cloud-storage/document_cognition_service/src/api/context/test.rs index d7bf8ee706..e7c15063a4 100644 --- a/rust/cloud-storage/document_cognition_service/src/api/context/test.rs +++ b/rust/cloud-storage/document_cognition_service/src/api/context/test.rs @@ -335,20 +335,14 @@ pub async fn test_api_context(pool: sqlx::Pool) -> std::sync::Ar Arc::new(all_tools.prompt.to_string()); let memory_repo = memory::outbound::pg_memory_repo::PgMemoryRepo::new(pool.clone()); - let memory_service = Arc::new(memory::domain::service::MemoryServiceImpl::new( - pool.clone(), - memory_repo, - tool_service_context.clone(), - all_tools, - )); - let team_memory_repo = memory::outbound::pg_team_memory_repo::PgTeamMemoryRepo::new(pool.clone()); - let team_memory_service = Arc::new(memory::domain::team_service::TeamMemoryServiceImpl::new( + let memory_service = Arc::new(memory::domain::service::MemoryServiceImpl::new( pool.clone(), + memory_repo, team_memory_repo, tool_service_context.clone(), - ai_tools::all_tools(), + all_tools, )); let api_context = ApiContext { @@ -373,7 +367,6 @@ pub async fn test_api_context(pool: sqlx::Pool) -> std::sync::Ar stream_repo: MockStreamRepo::new(), document_tool_context: document_tool_context.clone(), memory_service, - team_memory_service, properties_tool_context, email_tool_context, call_tool_context, diff --git a/rust/cloud-storage/document_cognition_service/src/api/mod.rs b/rust/cloud-storage/document_cognition_service/src/api/mod.rs index f57485bed8..871ef4457c 100644 --- a/rust/cloud-storage/document_cognition_service/src/api/mod.rs +++ b/rust/cloud-storage/document_cognition_service/src/api/mod.rs @@ -71,7 +71,6 @@ pub async fn setup_and_serve(state: ApiContext) -> anyhow::Result<()> { fn api_router(api_context: ApiContext) -> Router { let memory_service = api_context.memory_service.clone(); - let team_memory_service = api_context.team_memory_service.clone(); let mcp_state = api_context.mcp_state.clone(); @@ -96,9 +95,6 @@ fn api_router(api_context: ApiContext) -> Router { .nest("/preview", preview::router()) .nest("/id_mapping", id_mapping::router()) .merge(memory::inbound::axum_router::memory_router(memory_service)) - .merge(memory::inbound::axum_router::team_memory_router( - team_memory_service, - )) .merge(mcp_client::inbound::mcp_router(mcp_state.clone())) .with_state(api_context.clone()) .route( diff --git a/rust/cloud-storage/document_cognition_service/src/api/stream/chat_message/mod.rs b/rust/cloud-storage/document_cognition_service/src/api/stream/chat_message/mod.rs index bf33710989..10c7b6e64d 100644 --- a/rust/cloud-storage/document_cognition_service/src/api/stream/chat_message/mod.rs +++ b/rust/cloud-storage/document_cognition_service/src/api/stream/chat_message/mod.rs @@ -28,7 +28,7 @@ use macro_auth::headers::AccessTokenExtractor; use macro_db_client::dcs::create_chat; use macro_user_id::user_id::MacroUserIdStr; use mcp_client::domain::ports::McpServerStore; -use memory::domain::{MemoryService, TeamMemoryService}; +use memory::domain::MemoryService; use model::user::UserContext; use model_entity::{Entity, EntityType}; use models_permissions::share_permission::SharePermissionV2; @@ -280,23 +280,14 @@ async fn send_chat_message_inner( .filter_map(|r| r.parts) .collect(); - // Fetch user memory (triggers background generation if stale/missing) - let user_memory = ctx + // Fetch the user's personal and team memories (triggers background + // generation of whichever is stale or missing) + let memories = ctx .memory_service .get_or_generate_memory((*user_id).clone()) .await - .inspect_err(|e| tracing::error!(error = ?e, "failed to fetch user memory")) - .ok() - .flatten(); - - // Fetch the memory of the user's team, if any (triggers background generation if stale/missing) - let team_memory = ctx - .team_memory_service - .get_or_generate_team_memory((*user_id).clone()) - .await - .inspect_err(|e| tracing::error!(error = ?e, "failed to fetch team memory")) - .ok() - .flatten(); + .inspect_err(|e| tracing::error!(error = ?e, "failed to fetch memories")) + .unwrap_or_default(); // Build the chat messages let tools_prompt = choose_tools_prompt(&payload, &*ctx.all_tools_prompt); @@ -330,12 +321,12 @@ async fn send_chat_message_inner( .as_deref() .unwrap_or_default(); let mut prompt = format!("{}\n{}", tools_prompt, additional); - if let Some(memory) = user_memory.as_deref() { + if let Some(memory) = memories.user.as_deref() { prompt.push_str("\n\n\n"); prompt.push_str(memory); prompt.push_str("\n"); } - if let Some(memory) = team_memory.as_deref() { + if let Some(memory) = memories.team.as_deref() { prompt.push_str("\n\n\n"); prompt.push_str(memory); prompt.push_str("\n"); diff --git a/rust/cloud-storage/document_cognition_service/src/api/swagger.rs b/rust/cloud-storage/document_cognition_service/src/api/swagger.rs index 5439fa7acc..2a16cd4cf1 100644 --- a/rust/cloud-storage/document_cognition_service/src/api/swagger.rs +++ b/rust/cloud-storage/document_cognition_service/src/api/swagger.rs @@ -80,7 +80,6 @@ use utoipa::OpenApi; stream_stop::stop_chat_stream, structured_completion::structured_completion, memory_api::get_memory_handler, - memory_api::get_team_memory_handler, mcp_api::list_servers, mcp_api::add_server, mcp_api::update_server, diff --git a/rust/cloud-storage/document_cognition_service/src/main.rs b/rust/cloud-storage/document_cognition_service/src/main.rs index aec19da5cd..56b18e249d 100644 --- a/rust/cloud-storage/document_cognition_service/src/main.rs +++ b/rust/cloud-storage/document_cognition_service/src/main.rs @@ -391,22 +391,15 @@ async fn main() -> anyhow::Result<()> { let all_tools_prompt: Arc = Arc::new(all_tools.prompt.to_string()); - // Build memory service + // Build memory service (personal + team memory) let memory_repo = memory::outbound::pg_memory_repo::PgMemoryRepo::new(db.clone()); + let team_memory_repo = memory::outbound::pg_team_memory_repo::PgTeamMemoryRepo::new(db.clone()); let memory_service = Arc::new(memory::domain::service::MemoryServiceImpl::new( db.clone(), memory_repo, - tool_service_context.clone(), - all_tools, - )); - - // Build team memory service - let team_memory_repo = memory::outbound::pg_team_memory_repo::PgTeamMemoryRepo::new(db.clone()); - let team_memory_service = Arc::new(memory::domain::team_service::TeamMemoryServiceImpl::new( - db.clone(), team_memory_repo, tool_service_context.clone(), - ai_tools::all_tools(), + all_tools, )); tracing::info!("initialized memory service"); @@ -457,7 +450,6 @@ async fn main() -> anyhow::Result<()> { stream_repo, document_tool_context, memory_service, - team_memory_service, properties_tool_context, email_tool_context: email_tool_context.clone(), call_tool_context, diff --git a/rust/cloud-storage/macro_db_client/migrations/20260610212946_add_team_id_to_memory_table.sql b/rust/cloud-storage/macro_db_client/migrations/20260610212946_add_team_id_to_memory_table.sql new file mode 100644 index 0000000000..0f4b910966 --- /dev/null +++ b/rust/cloud-storage/macro_db_client/migrations/20260610212946_add_team_id_to_memory_table.sql @@ -0,0 +1,11 @@ +-- Team-level memory lives in the existing memory table: each row is scoped to +-- either a user (personal memory) or a team (team memory), exactly one of the two. +ALTER TABLE memory ALTER COLUMN user_id DROP NOT NULL; +ALTER TABLE memory ADD COLUMN team_id UUID REFERENCES team (id) ON DELETE CASCADE; +ALTER TABLE memory ADD CONSTRAINT memory_user_or_team CHECK (num_nonnulls(user_id, team_id) = 1); + +-- Replace the plain unique constraint with partial unique indexes so both +-- scopes keep one-row-per-owner upsert semantics. +ALTER TABLE memory DROP CONSTRAINT memory_user_id_unique; +CREATE UNIQUE INDEX memory_user_id_unique ON memory (user_id) WHERE user_id IS NOT NULL; +CREATE UNIQUE INDEX memory_team_id_unique ON memory (team_id) WHERE team_id IS NOT NULL; diff --git a/rust/cloud-storage/macro_db_client/migrations/20260610212946_create_team_memory_table.sql b/rust/cloud-storage/macro_db_client/migrations/20260610212946_create_team_memory_table.sql deleted file mode 100644 index 9264f1bfdd..0000000000 --- a/rust/cloud-storage/macro_db_client/migrations/20260610212946_create_team_memory_table.sql +++ /dev/null @@ -1,9 +0,0 @@ --- Team-level memory, one row per team (mirrors the per-user memory table). -CREATE TABLE team_memory ( - id UUID PRIMARY KEY, - team_id UUID NOT NULL REFERENCES team (id) ON DELETE CASCADE, - memory TEXT NOT NULL, - created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), - updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), - CONSTRAINT team_memory_team_id_unique UNIQUE (team_id) -); diff --git a/rust/cloud-storage/memory/src/domain/mod.rs b/rust/cloud-storage/memory/src/domain/mod.rs index b65ced577f..833997d6c7 100644 --- a/rust/cloud-storage/memory/src/domain/mod.rs +++ b/rust/cloud-storage/memory/src/domain/mod.rs @@ -1,8 +1,7 @@ pub mod ports; pub mod service; -pub mod team_service; pub use ports::{ - Memory, MemoryError, MemoryRecord, MemoryRepo, MemoryService, Result, TeamMemoryRepo, - TeamMemoryService, TeamOverview, + Memories, Memory, MemoryError, MemoryRecord, MemoryRepo, MemoryService, Result, TeamMemoryRepo, + TeamOverview, }; diff --git a/rust/cloud-storage/memory/src/domain/ports.rs b/rust/cloud-storage/memory/src/domain/ports.rs index ec75cbe62d..806164d4bf 100644 --- a/rust/cloud-storage/memory/src/domain/ports.rs +++ b/rust/cloud-storage/memory/src/domain/ports.rs @@ -48,11 +48,22 @@ pub trait MemoryRepo: Send + Sync + 'static { ) -> impl Future> + Send; } +/// The memories available to a user: their own and their team's. +#[derive(Debug, Default)] +pub struct Memories { + /// The user's personal memory. + pub user: Option, + /// The latest memory of the team the user belongs to, if any. + pub team: Option, +} + pub trait MemoryService: Send + Sync + 'static { + /// Get the user's personal memory and the memory of their team, triggering + /// background regeneration of whichever is stale or missing. fn get_or_generate_memory( &self, user: MacroUserIdStr<'static>, - ) -> impl Future>> + Send; + ) -> impl Future> + Send; } /// A snapshot of team data used to ground team memory generation. @@ -90,11 +101,3 @@ pub trait TeamMemoryRepo: Send + Sync + 'static { team_id: Uuid, ) -> impl Future>> + Send; } - -pub trait TeamMemoryService: Send + Sync + 'static { - /// Get the latest memory for the user's team, if the user belongs to one. - fn get_or_generate_team_memory( - &self, - user: MacroUserIdStr<'static>, - ) -> impl Future>> + Send; -} diff --git a/rust/cloud-storage/memory/src/domain/service.rs b/rust/cloud-storage/memory/src/domain/service.rs index 2dfd47eafb..293b124737 100644 --- a/rust/cloud-storage/memory/src/domain/service.rs +++ b/rust/cloud-storage/memory/src/domain/service.rs @@ -1,3 +1,5 @@ +mod team; + use super::ports::*; use agent::types::{ChatMessage, ChatMessageContent, Role}; use agent::{AgentLoop, AgentModel, StreamPart}; @@ -67,23 +69,26 @@ struct MemoryJudgement { reason: String, } -pub struct MemoryServiceImpl { +pub struct MemoryServiceImpl { db: sqlx::PgPool, memory_repo: Rpo, + team_memory_repo: TRpo, tool_context: ToolServiceContext, tools: ToolSetWithPrompt, } -impl MemoryServiceImpl { +impl MemoryServiceImpl { pub fn new( db: sqlx::PgPool, memory_repo: Rpo, + team_memory_repo: TRpo, tool_context: ToolServiceContext, tools: ToolSetWithPrompt, ) -> Self { Self { db, memory_repo, + team_memory_repo, tool_context, tools, } @@ -93,14 +98,37 @@ impl MemoryServiceImpl { /// Default max age for memory freshness (1 day). const MAX_AGE: std::time::Duration = std::time::Duration::from_hours(24); -impl MemoryService for MemoryServiceImpl +impl MemoryService for MemoryServiceImpl where Rpo: MemoryRepo, + TRpo: TeamMemoryRepo, { #[tracing::instrument(skip(self), err)] async fn get_or_generate_memory( &self, user: macro_user_id::user_id::MacroUserIdStr<'static>, + ) -> super::Result { + let (user_memory, team_memory) = tokio::join!( + self.get_or_generate_user_memory(user.clone()), + self.get_or_generate_team_memory(user) + ); + + Ok(Memories { + user: user_memory?, + team: team_memory?, + }) + } +} + +impl MemoryServiceImpl +where + Rpo: MemoryRepo, + TRpo: TeamMemoryRepo, +{ + #[tracing::instrument(skip(self), err)] + async fn get_or_generate_user_memory( + &self, + user: macro_user_id::user_id::MacroUserIdStr<'static>, ) -> super::Result> { let record = self.memory_repo.get_latest_memory(user.clone()).await?; @@ -122,8 +150,10 @@ where Box::new(self.tools.prompt.to_string()); tokio::spawn(async move { let repo = crate::outbound::pg_memory_repo::PgMemoryRepo::new(pool.clone()); + let team_repo = + crate::outbound::pg_team_memory_repo::PgTeamMemoryRepo::new(pool.clone()); let tools = ToolSetWithPrompt { toolset, prompt }; - let svc = MemoryServiceImpl::new(pool, repo, tool_context, tools); + let svc = MemoryServiceImpl::new(pool, repo, team_repo, tool_context, tools); match svc.generate_memory(user.clone(), previous_memory).await { Ok(_) => tracing::info!(%user, "memory generated"), Err(MemoryError::Rejected(reason)) => { @@ -136,12 +166,7 @@ where Ok(record.map(|r| r.memory)) } -} -impl MemoryServiceImpl -where - Rpo: MemoryRepo, -{ #[tracing::instrument(skip(self), err)] async fn generate_memory( &self, diff --git a/rust/cloud-storage/memory/src/domain/team_service.rs b/rust/cloud-storage/memory/src/domain/service/team.rs similarity index 88% rename from rust/cloud-storage/memory/src/domain/team_service.rs rename to rust/cloud-storage/memory/src/domain/service/team.rs index bf3b170b3d..38e995d25b 100644 --- a/rust/cloud-storage/memory/src/domain/team_service.rs +++ b/rust/cloud-storage/memory/src/domain/service/team.rs @@ -1,11 +1,11 @@ #[cfg(test)] mod test; -use super::ports::*; -use super::service::judge_memory; +use super::{GENERATION_MODEL, MAX_AGE, MemoryServiceImpl, judge_memory}; +use crate::domain::ports::*; use agent::types::{ChatMessage, ChatMessageContent, Role}; -use agent::{AgentLoop, AgentModel, StreamPart}; -use ai_tools::{ToolServiceContext, ToolSetWithPrompt}; +use agent::{AgentLoop, StreamPart}; +use ai_tools::ToolSetWithPrompt; use chrono::Utc; use futures::stream::StreamExt; use macro_env::Environment; @@ -13,8 +13,6 @@ use macro_user_id::user_id::MacroUserIdStr; use macro_uuid::Uuid; use std::sync::Arc; -static GENERATION_MODEL: AgentModel = AgentModel::Smart; - static GENERATE_TEAM_MEMORY_PROMPT: &str = "\ Use tool calls to research the team identified in the system prompt: what the \ team does, who is on it, and what it is working on. Look at shared projects, \ @@ -69,41 +67,18 @@ ACCEPT only if the memory contains concrete, specific, actionable context derive from substantial workspace data (documents, code, projects, emails, messages) that \ would meaningfully improve future AI interactions for every member of the team."; -pub struct TeamMemoryServiceImpl { - db: sqlx::PgPool, - team_memory_repo: Rpo, - tool_context: ToolServiceContext, - tools: ToolSetWithPrompt, -} - -impl TeamMemoryServiceImpl { - pub fn new( - db: sqlx::PgPool, - team_memory_repo: Rpo, - tool_context: ToolServiceContext, - tools: ToolSetWithPrompt, - ) -> Self { - Self { - db, - team_memory_repo, - tool_context, - tools, - } - } -} - -/// Default max age for team memory freshness (1 day). -const MAX_AGE: std::time::Duration = std::time::Duration::from_hours(24); - -impl TeamMemoryService for TeamMemoryServiceImpl +impl MemoryServiceImpl where - Rpo: TeamMemoryRepo, + Rpo: MemoryRepo, + TRpo: TeamMemoryRepo, { + /// Get the latest memory for the user's team, if the user belongs to one, + /// triggering background regeneration when it is stale or missing. #[tracing::instrument(skip(self), err)] - async fn get_or_generate_team_memory( + pub(super) async fn get_or_generate_team_memory( &self, user: MacroUserIdStr<'static>, - ) -> super::Result> { + ) -> crate::domain::Result> { let Some(team_id) = self.team_memory_repo.get_user_team_id(user.clone()).await? else { return Ok(None); }; @@ -145,10 +120,11 @@ where return; } }; - let repo = + let repo = crate::outbound::pg_memory_repo::PgMemoryRepo::new(pool.clone()); + let team_repo = crate::outbound::pg_team_memory_repo::PgTeamMemoryRepo::new(pool.clone()); let tools = ToolSetWithPrompt { toolset, prompt }; - let svc = TeamMemoryServiceImpl::new(pool, repo, tool_context, tools); + let svc = MemoryServiceImpl::new(pool, repo, team_repo, tool_context, tools); match svc .generate_team_memory(team_id, user.clone(), previous_memory) .await @@ -166,12 +142,7 @@ where Ok(record.map(|r| r.memory)) } -} -impl TeamMemoryServiceImpl -where - Rpo: TeamMemoryRepo, -{ /// Generate a fresh team memory by researching the team's workspace with /// the access of the `user` who triggered the refresh. #[tracing::instrument(skip(self), err)] @@ -180,7 +151,7 @@ where team_id: Uuid, user: MacroUserIdStr<'static>, previous_memory: Option, - ) -> super::Result { + ) -> crate::domain::Result { let overview = self .team_memory_repo .get_team_overview(team_id) @@ -251,7 +222,7 @@ where async fn try_acquire_generation_lock( pool: &sqlx::PgPool, team_id: Uuid, -) -> super::Result> { +) -> crate::domain::Result> { let mut conn = pool.acquire().await?.detach(); let locked = sqlx::query_scalar!( r#"SELECT pg_try_advisory_lock(hashtextextended('team_memory:' || $1, 0)) as "locked!""#, diff --git a/rust/cloud-storage/memory/src/domain/team_service/test.rs b/rust/cloud-storage/memory/src/domain/service/team/test.rs similarity index 100% rename from rust/cloud-storage/memory/src/domain/team_service/test.rs rename to rust/cloud-storage/memory/src/domain/service/team/test.rs diff --git a/rust/cloud-storage/memory/src/inbound/axum_router.rs b/rust/cloud-storage/memory/src/inbound/axum_router.rs index fe17a0779f..2527ff48e1 100644 --- a/rust/cloud-storage/memory/src/inbound/axum_router.rs +++ b/rust/cloud-storage/memory/src/inbound/axum_router.rs @@ -1,4 +1,4 @@ -use crate::domain::{MemoryService, TeamMemoryService}; +use crate::domain::MemoryService; use axum::{ Json, Router, extract::State, @@ -11,11 +11,14 @@ use serde::Serialize; use std::sync::Arc; use utoipa::ToSchema; -/// The user's latest memory. +/// The user's latest memories. #[derive(Serialize, ToSchema)] pub struct MemoryResponse { - /// The generated memory text. - pub memory: String, + /// The user's personal memory, if one has been generated. + pub memory: Option, + /// The latest memory of the user's team, if the user belongs to a team + /// and a team memory has been generated. + pub team_memory: Option, } #[derive(Serialize, ToSchema)] @@ -34,17 +37,17 @@ where .with_state(service) } -/// Get the authenticated user's latest memory. +/// Get the authenticated user's latest personal and team memories. /// -/// Returns the current memory if one exists. If the memory is stale or missing, -/// a background generation is triggered and the endpoint returns the stale -/// memory (200) or 404 if none exists yet. +/// Returns whichever memories currently exist. If either memory is stale or +/// missing, a background generation for it is triggered and the endpoint +/// returns the stale values (200), or 404 if neither exists yet. #[utoipa::path( get, path = "/memory", responses( - (status = 200, description = "Latest memory for the user", body = MemoryResponse), - (status = 404, description = "No memory exists for this user yet (generation triggered)"), + (status = 200, description = "Latest personal and team memories for the user", body = MemoryResponse), + (status = 404, description = "No memory exists for this user or their team yet (generation triggered)"), (status = 500, description = "Internal server error", body = MemoryErrorBody), ), tag = "memory" @@ -55,8 +58,14 @@ pub async fn get_memory_handler( user: MacroUserExtractor, ) -> Response { match service.get_or_generate_memory(user.macro_user_id).await { - Ok(Some(memory)) => Json(MemoryResponse { memory }).into_response(), - Ok(None) => StatusCode::NOT_FOUND.into_response(), + Ok(memories) if memories.user.is_none() && memories.team.is_none() => { + StatusCode::NOT_FOUND.into_response() + } + Ok(memories) => Json(MemoryResponse { + memory: memories.user, + team_memory: memories.team, + }) + .into_response(), Err(e) => { tracing::error!(error = ?e, "failed to get memory"); ( @@ -69,53 +78,3 @@ pub async fn get_memory_handler( } } } - -pub fn team_memory_router(service: Arc) -> Router -where - T: TeamMemoryService + Send + Sync + 'static, - S: Send + Sync + Clone + 'static, -{ - Router::new() - .route("/memory/team", get(get_team_memory_handler::)) - .with_state(service) -} - -/// Get the latest memory for the authenticated user's team. -/// -/// Returns the current team memory if one exists. If the memory is stale or -/// missing, a background generation is triggered and the endpoint returns the -/// stale memory (200) or 404 if none exists yet. Also returns 404 when the -/// user does not belong to a team. -#[utoipa::path( - get, - path = "/memory/team", - responses( - (status = 200, description = "Latest memory for the user's team", body = MemoryResponse), - (status = 404, description = "User has no team, or no team memory exists yet (generation triggered)"), - (status = 500, description = "Internal server error", body = MemoryErrorBody), - ), - tag = "memory" -)] -#[tracing::instrument(skip(service, user), fields(user_id = %user.macro_user_id))] -pub async fn get_team_memory_handler( - State(service): State>, - user: MacroUserExtractor, -) -> Response { - match service - .get_or_generate_team_memory(user.macro_user_id) - .await - { - Ok(Some(memory)) => Json(MemoryResponse { memory }).into_response(), - Ok(None) => StatusCode::NOT_FOUND.into_response(), - Err(e) => { - tracing::error!(error = ?e, "failed to get team memory"); - ( - StatusCode::INTERNAL_SERVER_ERROR, - Json(MemoryErrorBody { - error: "failed to get team memory".to_string(), - }), - ) - .into_response() - } - } -} diff --git a/rust/cloud-storage/memory/src/main.rs b/rust/cloud-storage/memory/src/main.rs index d8f4a7854f..312719987b 100644 --- a/rust/cloud-storage/memory/src/main.rs +++ b/rust/cloud-storage/memory/src/main.rs @@ -6,6 +6,7 @@ use macro_user_id::user_id::MacroUserIdStr; use memory::config::Config; use memory::domain::{MemoryService, service::MemoryServiceImpl}; use memory::outbound::pg_memory_repo::PgMemoryRepo; +use memory::outbound::pg_team_memory_repo::PgTeamMemoryRepo; use sqlx::postgres::PgPoolOptions; #[tokio::main] @@ -22,16 +23,23 @@ async fn main() -> anyhow::Result<()> { let tool_context = build_tool_service_context_from_env(pool.clone()).await?; let tools = all_tools(); let memory_repo = PgMemoryRepo::new(pool.clone()); - let memory_service = MemoryServiceImpl::new(pool, memory_repo, tool_context, tools); + let team_memory_repo = PgTeamMemoryRepo::new(pool.clone()); + let memory_service = + MemoryServiceImpl::new(pool, memory_repo, team_memory_repo, tool_context, tools); let user = MacroUserIdStr::try_from(config.user_id.clone()) .context("USER_ID must be a valid Macro user id")?; tracing::info!("Generating memory for {user}..."); - match memory_service.get_or_generate_memory(user).await? { + let memories = memory_service.get_or_generate_memory(user).await?; + match memories.user { Some(memory) => println!("{memory}"), None => println!("No memory yet, generation triggered in background"), } + match memories.team { + Some(memory) => println!("\n\n{memory}\n"), + None => println!("No team memory yet (no team, or generation triggered in background)"), + } Ok(()) } diff --git a/rust/cloud-storage/memory/src/outbound/pg_memory_repo.rs b/rust/cloud-storage/memory/src/outbound/pg_memory_repo.rs index a110f981b2..f87ed176f5 100644 --- a/rust/cloud-storage/memory/src/outbound/pg_memory_repo.rs +++ b/rust/cloud-storage/memory/src/outbound/pg_memory_repo.rs @@ -23,7 +23,7 @@ impl MemoryRepo for PgMemoryRepo { r#" INSERT INTO memory (id, user_id, memory) VALUES ($1, $2, $3) - ON CONFLICT (user_id) DO UPDATE + ON CONFLICT (user_id) WHERE user_id IS NOT NULL DO UPDATE SET memory = EXCLUDED.memory, updated_at = NOW() RETURNING id diff --git a/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo.rs b/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo.rs index 674a92f00a..4114c60093 100644 --- a/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo.rs +++ b/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo.rs @@ -24,9 +24,9 @@ impl TeamMemoryRepo for PgTeamMemoryRepo { let id = macro_uuid::generate_uuid_v7(); let row = sqlx::query!( r#" - INSERT INTO team_memory (id, team_id, memory) + INSERT INTO memory (id, team_id, memory) VALUES ($1, $2, $3) - ON CONFLICT (team_id) DO UPDATE + ON CONFLICT (team_id) WHERE team_id IS NOT NULL DO UPDATE SET memory = EXCLUDED.memory, updated_at = NOW() RETURNING id @@ -45,7 +45,7 @@ impl TeamMemoryRepo for PgTeamMemoryRepo { let row = sqlx::query!( r#" SELECT memory, updated_at as "updated_at!" - FROM team_memory + FROM memory WHERE team_id = $1 ORDER BY updated_at DESC LIMIT 1 @@ -65,7 +65,7 @@ impl TeamMemoryRepo for PgTeamMemoryRepo { let row = sqlx::query!( r#" SELECT memory - FROM team_memory + FROM memory WHERE id = $1 AND team_id = $2 "#, id, diff --git a/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo/test.rs b/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo/test.rs index 8249432502..8eab16634f 100644 --- a/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo/test.rs +++ b/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo/test.rs @@ -1,5 +1,6 @@ use super::PgTeamMemoryRepo; -use crate::domain::{MemoryError, TeamMemoryRepo}; +use crate::domain::{MemoryError, MemoryRepo, TeamMemoryRepo}; +use crate::outbound::pg_memory_repo::PgMemoryRepo; use macro_db_migrator::MACRO_DB_MIGRATIONS; use macro_user_id::user_id::MacroUserIdStr; use macro_uuid::Uuid; @@ -132,6 +133,42 @@ async fn memories_are_scoped_to_team(pool: Pool) { assert_eq!(latest_b.memory, "team b memory"); } +#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")] +async fn team_and_user_memories_coexist_in_shared_table(pool: Pool) { + let team_id = create_team(&pool, "acme", "macro|owner@example.com").await; + let team_repo = PgTeamMemoryRepo::new(pool.clone()); + let user_repo = PgMemoryRepo::new(pool); + let user = MacroUserIdStr::parse_from_str("macro|owner@example.com").unwrap(); + + user_repo + .save_memory(&"personal memory".to_string(), user.clone()) + .await + .unwrap(); + team_repo + .save_team_memory(&"team memory".to_string(), team_id) + .await + .unwrap(); + + // Upserts stay scoped: refreshing one must not clobber the other. + user_repo + .save_memory(&"fresh personal memory".to_string(), user.clone()) + .await + .unwrap(); + team_repo + .save_team_memory(&"fresh team memory".to_string(), team_id) + .await + .unwrap(); + + let personal = user_repo.get_latest_memory(user).await.unwrap().unwrap(); + let team = team_repo + .get_latest_team_memory(team_id) + .await + .unwrap() + .unwrap(); + assert_eq!(personal.memory, "fresh personal memory"); + assert_eq!(team.memory, "fresh team memory"); +} + #[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")] async fn deleting_team_deletes_its_memory(pool: Pool) { let team_id = create_team(&pool, "acme", "macro|owner@example.com").await; diff --git a/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs b/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs index 178d11d8f0..e00d8c28e2 100644 --- a/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs +++ b/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs @@ -12,8 +12,7 @@ use chat::outbound::postgres::PgChatRepo; use futures::StreamExt; use macro_db_client::dcs::create_chat_message::create_chat_message; use memory::domain::service::MemoryServiceImpl; -use memory::domain::team_service::TeamMemoryServiceImpl; -use memory::domain::{MemoryService, TeamMemoryService}; +use memory::domain::{Memories, MemoryService}; use memory::outbound::pg_memory_repo::PgMemoryRepo; use memory::outbound::pg_team_memory_repo::PgTeamMemoryRepo; use model::chat::NewChatMessage; @@ -58,11 +57,11 @@ pub async fn run_agent_task( Ok(()) } -async fn fetch_user_memory( +async fn fetch_memories( db: &PgPool, tool_context: &ToolServiceContext, owner: ¯o_user_id::user_id::MacroUserIdStr<'static>, -) -> Option { +) -> Memories { let tools = all_tools(); let tools = ToolSetWithPrompt { toolset: tools.toolset, @@ -71,42 +70,15 @@ async fn fetch_user_memory( let memory_service = MemoryServiceImpl::new( db.clone(), PgMemoryRepo::new(db.clone()), - tool_context.clone(), - tools, - ); - match memory_service.get_or_generate_memory(owner.clone()).await { - Ok(memory) => memory, - Err(e) => { - tracing::warn!(error=?e, %owner, "failed to fetch user memory; running without it"); - None - } - } -} - -async fn fetch_team_memory( - db: &PgPool, - tool_context: &ToolServiceContext, - owner: ¯o_user_id::user_id::MacroUserIdStr<'static>, -) -> Option { - let tools = all_tools(); - let tools = ToolSetWithPrompt { - toolset: tools.toolset, - prompt: tools.prompt, - }; - let team_memory_service = TeamMemoryServiceImpl::new( - db.clone(), PgTeamMemoryRepo::new(db.clone()), tool_context.clone(), tools, ); - match team_memory_service - .get_or_generate_team_memory(owner.clone()) - .await - { - Ok(memory) => memory, + match memory_service.get_or_generate_memory(owner.clone()).await { + Ok(memories) => memories, Err(e) => { - tracing::warn!(error=?e, %owner, "failed to fetch team memory; running without it"); - None + tracing::warn!(error=?e, %owner, "failed to fetch memories; running without them"); + Memories::default() } } } @@ -149,16 +121,15 @@ async fn run_tool_loop( agent_task: &AgentTask, ) -> Result> { let tools = all_tools(); - let user_memory = fetch_user_memory(db, tool_context, &action.owner).await; - let team_memory = fetch_team_memory(db, tool_context, &action.owner).await; - let mut system_prompt = match user_memory { + let memories = fetch_memories(db, tool_context, &action.owner).await; + let mut system_prompt = match memories.user { Some(memory) => format!( "{}\n{}\n\n{}\n", tools.prompt, SCHEDULED_AGENT_PROMPT, memory ), None => tools.prompt.to_string(), }; - if let Some(memory) = team_memory { + if let Some(memory) = memories.team { system_prompt.push_str(&format!("\n\n{memory}\n")); } system_prompt.push_str(&format!("\n{}", agent_task.prompt)); From 73e1af564f80ef33e1f9e21a347d91eb11b6c0f1 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 10 Jun 2026 23:18:53 +0000 Subject: [PATCH 5/5] fix(memory): address review feedback on combined retrieval and locking - get_or_generate_memory returns whichever scope resolved instead of failing both when one errors - re-check team memory staleness after acquiring the advisory lock so it deduplicates rather than merely serializes generations - scheduled agent runs keep SCHEDULED_AGENT_PROMPT when no user memory exists - document the team memory repo trait and Postgres impl https://claude.ai/code/session_01CyfX47q3gqFp49pLrcco8b --- rust/cloud-storage/memory/src/domain/ports.rs | 7 +++++ .../memory/src/domain/service.rs | 21 ++++++++++++--- .../memory/src/domain/service/team.rs | 26 ++++++++++++++++++- .../src/outbound/pg_team_memory_repo.rs | 2 ++ .../outbound/inprocess_executor/agent_task.rs | 12 ++++----- 5 files changed, 56 insertions(+), 12 deletions(-) diff --git a/rust/cloud-storage/memory/src/domain/ports.rs b/rust/cloud-storage/memory/src/domain/ports.rs index 806164d4bf..80149935f4 100644 --- a/rust/cloud-storage/memory/src/domain/ports.rs +++ b/rust/cloud-storage/memory/src/domain/ports.rs @@ -75,16 +75,23 @@ pub struct TeamOverview { pub member_ids: Vec, } +/// Persistence for team-scoped memory. +/// +/// Team memory lives in the same `memory` table as personal memory but is +/// keyed by `team_id` rather than `user_id`. pub trait TeamMemoryRepo: Send + Sync + 'static { + /// Upsert the team's memory, returning the row id. fn save_team_memory( &self, memory: &Memory, team_id: Uuid, ) -> impl Future> + Send; + /// Fetch the team's latest memory, or `None` if it has none yet. fn get_latest_team_memory( &self, team_id: Uuid, ) -> impl Future>> + Send; + /// Fetch a specific team memory row by id, scoped to the team. fn get_team_memory_by_id( &self, team_id: Uuid, diff --git a/rust/cloud-storage/memory/src/domain/service.rs b/rust/cloud-storage/memory/src/domain/service.rs index 293b124737..1c0bf7b519 100644 --- a/rust/cloud-storage/memory/src/domain/service.rs +++ b/rust/cloud-storage/memory/src/domain/service.rs @@ -113,10 +113,23 @@ where self.get_or_generate_team_memory(user) ); - Ok(Memories { - user: user_memory?, - team: team_memory?, - }) + // Return whichever scope(s) resolved: a transient failure in one must + // not discard the other's result. Only surface an error if both failed. + match (user_memory, team_memory) { + (Ok(user), Ok(team)) => Ok(Memories { user, team }), + (Ok(user), Err(e)) => { + tracing::error!(error = ?e, "failed to load team memory"); + Ok(Memories { user, team: None }) + } + (Err(e), Ok(team)) => { + tracing::error!(error = ?e, "failed to load user memory"); + Ok(Memories { user: None, team }) + } + (Err(user_err), Err(team_err)) => { + tracing::error!(error = ?team_err, "failed to load team memory"); + Err(user_err) + } + } } } diff --git a/rust/cloud-storage/memory/src/domain/service/team.rs b/rust/cloud-storage/memory/src/domain/service/team.rs index 38e995d25b..baf5505c3f 100644 --- a/rust/cloud-storage/memory/src/domain/service/team.rs +++ b/rust/cloud-storage/memory/src/domain/service/team.rs @@ -98,7 +98,6 @@ where let env = Environment::new_or_prod(); if needs_generation && !matches!(env, Environment::Local) { - let previous_memory = record.as_ref().map(|r| r.memory.clone()); let pool = self.db.clone(); let tool_context = self.tool_context.clone(); let toolset = self.tools.toolset.clone(); @@ -123,6 +122,31 @@ where let repo = crate::outbound::pg_memory_repo::PgMemoryRepo::new(pool.clone()); let team_repo = crate::outbound::pg_team_memory_repo::PgTeamMemoryRepo::new(pool.clone()); + + // Re-check under the lock: another instance may have refreshed + // the row between our staleness check and acquiring the lock, so + // the lock deduplicates rather than merely serializing. Also read + // `previous_memory` here so we diff against the freshest baseline. + let latest = match team_repo.get_latest_team_memory(team_id).await { + Ok(latest) => latest, + Err(e) => { + tracing::error!(error = ?e, %team_id, "failed to reload latest team memory"); + return; + } + }; + let still_needs_generation = match &latest { + Some(r) => { + let age = Utc::now() - r.updated_at; + age > chrono::Duration::from_std(MAX_AGE).unwrap_or(chrono::TimeDelta::MAX) + } + None => true, + }; + if !still_needs_generation { + tracing::debug!(%team_id, "team memory already refreshed; skipping"); + return; + } + let previous_memory = latest.map(|r| r.memory); + let tools = ToolSetWithPrompt { toolset, prompt }; let svc = MemoryServiceImpl::new(pool, repo, team_repo, tool_context, tools); match svc diff --git a/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo.rs b/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo.rs index 4114c60093..2bfef6eee0 100644 --- a/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo.rs +++ b/rust/cloud-storage/memory/src/outbound/pg_team_memory_repo.rs @@ -9,11 +9,13 @@ use macro_user_id::user_id::MacroUserIdStr; use macro_uuid::Uuid; use sqlx::PgPool; +/// Postgres-backed [`TeamMemoryRepo`] over the shared `memory` table. pub struct PgTeamMemoryRepo { inner: PgPool, } impl PgTeamMemoryRepo { + /// Create a new repository backed by the given pool. pub fn new(inner: PgPool) -> Self { PgTeamMemoryRepo { inner } } diff --git a/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs b/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs index e00d8c28e2..eba2208da9 100644 --- a/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs +++ b/rust/cloud-storage/scheduled_action/src/outbound/inprocess_executor/agent_task.rs @@ -122,13 +122,11 @@ async fn run_tool_loop( ) -> Result> { let tools = all_tools(); let memories = fetch_memories(db, tool_context, &action.owner).await; - let mut system_prompt = match memories.user { - Some(memory) => format!( - "{}\n{}\n\n{}\n", - tools.prompt, SCHEDULED_AGENT_PROMPT, memory - ), - None => tools.prompt.to_string(), - }; + // The guardrail prompt must always be present, regardless of which memories exist. + let mut system_prompt = format!("{}\n{}", tools.prompt, SCHEDULED_AGENT_PROMPT); + if let Some(memory) = memories.user { + system_prompt.push_str(&format!("\n\n{memory}\n")); + } if let Some(memory) = memories.team { system_prompt.push_str(&format!("\n\n{memory}\n")); }