Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix db schema
Tomas Valenta56d3b0c166a8
diff --git a/db/supabase.ts b/db/supabase.tsindex f28cb5146..a845a6afc 100644--- a/db/supabase.ts+++ b/db/supabase.ts@@ -16,7 +16,7 @@ export interface Database {logs: Json[] | nulllogs_raw: string | nullproject_id: string- route_id: string+ route_id: string | nullstate: Database["public"]["Enums"]["deployment_state"] | nullurl: string | null}@@ -26,7 +26,7 @@ export interface Database {logs?: Json[] | nulllogs_raw?: string | nullproject_id: string- route_id: string+ route_id?: string | nullstate?: Database["public"]["Enums"]["deployment_state"] | nullurl?: string | null}@@ -36,7 +36,7 @@ export interface Database {logs?: Json[] | nulllogs_raw?: string | nullproject_id?: string- route_id?: string+ route_id?: string | nullstate?: Database["public"]["Enums"]["deployment_state"] | nullurl?: string | null}diff --git a/prisma/schema.prisma b/prisma/schema.prismaindex e49f92722..43208c2c5 100644--- a/prisma/schema.prisma+++ b/prisma/schema.prisma@@ -257,7 +257,7 @@ model deployments {created_at DateTime @default(now()) @db.Timestamptz(6)logs Json[]project_id String- route_id String+ route_id String?state deployment_state?url String?logs_raw String? @default("")@@ -278,6 +278,22 @@ model projects {@@schema("public")}+model flow_state {+ id String @id @db.Uuid+ user_id String? @db.Uuid+ auth_code String+ code_challenge_method code_challenge_method+ code_challenge String+ provider_type String+ provider_access_token String?+ provider_refresh_token String?+ created_at DateTime? @db.Timestamptz(6)+ updated_at DateTime? @db.Timestamptz(6)++ @@index([auth_code], map: "idx_auth_code")+ @@schema("auth")+}+enum aal_level {aal1aal2@@ -308,3 +324,10 @@ enum deployment_state {@@schema("public")}++enum code_challenge_method {+ s256+ plain++ @@schema("auth")+}diff --git a/supabase/migrations/1680452567_name.sql b/supabase/migrations/1680452567_name.sqlindex bde01524b..88cf74c8c 100644--- a/supabase/migrations/1680452567_name.sql+++ b/supabase/migrations/1680452567_name.sql@@ -85,7 +85,7 @@ CREATE TABLE "public"."deployments" ("created_at" timestamp with time zone DEFAULT "now"() NOT NULL,"logs" "jsonb"[],"project_id" "text" NOT NULL,- "route_id" "text" NOT NULL,+ "route_id" "text","state" "public"."deployment_state","url" "text","logs_raw" "text" DEFAULT ''::"text"