Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot] 2026-04-26 20:23:37 +00:00
parent 5c1c588aac
commit 676a424259
2 changed files with 13 additions and 0 deletions

View file

@ -21,6 +21,8 @@ export type Database = {
created_at: string created_at: string
id: string id: string
last_health_check_at: string | null last_health_check_at: string | null
managed_bot_pending: boolean
managed_bot_suggested_username: string | null
model_config: Json model_config: Json
onboarding_completed: boolean onboarding_completed: boolean
provisioned_at: string | null provisioned_at: string | null
@ -48,6 +50,8 @@ export type Database = {
created_at?: string created_at?: string
id?: string id?: string
last_health_check_at?: string | null last_health_check_at?: string | null
managed_bot_pending?: boolean
managed_bot_suggested_username?: string | null
model_config?: Json model_config?: Json
onboarding_completed?: boolean onboarding_completed?: boolean
provisioned_at?: string | null provisioned_at?: string | null
@ -75,6 +79,8 @@ export type Database = {
created_at?: string created_at?: string
id?: string id?: string
last_health_check_at?: string | null last_health_check_at?: string | null
managed_bot_pending?: boolean
managed_bot_suggested_username?: string | null
model_config?: Json model_config?: Json
onboarding_completed?: boolean onboarding_completed?: boolean
provisioned_at?: string | null provisioned_at?: string | null

View file

@ -0,0 +1,7 @@
ALTER TABLE public.agent_instances
ADD COLUMN IF NOT EXISTS managed_bot_pending boolean NOT NULL DEFAULT false,
ADD COLUMN IF NOT EXISTS managed_bot_suggested_username text;
CREATE INDEX IF NOT EXISTS idx_agent_instances_managed_bot_pending
ON public.agent_instances (managed_bot_pending)
WHERE managed_bot_pending = true;