From 03181b652a5d5f0b246f58d6524b4b81c260716b Mon Sep 17 00:00:00 2001 From: Marcos Date: Sun, 22 Mar 2026 21:15:21 -0300 Subject: [PATCH] Migrate to VPS Supabase with steelbook schema --- src/lib/supabase.ts | 3 +++ src/lib/types.ts | 54 ++++++++++++++++++++++----------------------- 2 files changed, 30 insertions(+), 27 deletions(-) diff --git a/src/lib/supabase.ts b/src/lib/supabase.ts index f063fcb..37994c0 100644 --- a/src/lib/supabase.ts +++ b/src/lib/supabase.ts @@ -13,4 +13,7 @@ export const supabase = createClient(supabaseUrl, supabaseAnonKey, { persistSession: true, autoRefreshToken: true, }, + db: { + schema: 'steelbook', + }, }) diff --git a/src/lib/types.ts b/src/lib/types.ts index 8266e75..7ded0dc 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -7,7 +7,7 @@ export type Json = | Json[] export interface Database { - public: { + steelbook: { Tables: { usuarios: { Row: { @@ -18,8 +18,8 @@ export interface Database { ativo: boolean created_at: string } - Insert: Omit - Update: Partial + Insert: Omit + Update: Partial } clientes: { Row: { @@ -32,8 +32,8 @@ export interface Database { inativado_em: string | null created_at: string } - Insert: Omit - Update: Partial + Insert: Omit + Update: Partial } templates_topicos: { Row: { @@ -50,8 +50,8 @@ export interface Database { inativado_em: string | null created_at: string } - Insert: Omit - Update: Partial + Insert: Omit + Update: Partial } templates_customizados: { Row: { @@ -68,8 +68,8 @@ export interface Database { created_at: string updated_at: string } - Insert: Omit - Update: Partial + Insert: Omit + Update: Partial } projetos: { Row: { @@ -86,8 +86,8 @@ export interface Database { created_at: string updated_at: string } - Insert: Omit - Update: Partial + Insert: Omit + Update: Partial } databooks_mestres: { Row: { @@ -127,8 +127,8 @@ export interface Database { created_at: string updated_at: string } - Insert: Omit - Update: Partial + Insert: Omit + Update: Partial } configuracoes_pastas: { Row: { @@ -152,8 +152,8 @@ export interface Database { created_at: string updated_at: string } - Insert: Omit - Update: Partial + Insert: Omit + Update: Partial } design_templates: { Row: { @@ -167,8 +167,8 @@ export interface Database { criado_em: string atualizado_em: string } - Insert: Omit - Update: Partial + Insert: Omit + Update: Partial } databook_design_aplicacoes: { Row: { @@ -183,8 +183,8 @@ export interface Database { aplicado_em: string atualizado_em: string } - Insert: Omit - Update: Partial + Insert: Omit + Update: Partial } documentos_auto_indexados: { Row: { @@ -209,8 +209,8 @@ export interface Database { processado_em: string | null criado_em: string } - Insert: Omit - Update: Partial + Insert: Omit + Update: Partial } categorias: { Row: { @@ -221,8 +221,8 @@ export interface Database { ativo: boolean created_at: string } - Insert: Omit - Update: Partial + Insert: Omit + Update: Partial } integracao_ia: { Row: { @@ -236,8 +236,8 @@ export interface Database { created_at: string updated_at: string } - Insert: Omit - Update: Partial + Insert: Omit + Update: Partial } logs_indexacao: { Row: { @@ -252,8 +252,8 @@ export interface Database { status: 'sucesso' | 'erro' | 'em_andamento' created_at: string } - Insert: Omit - Update: Partial + Insert: Omit + Update: Partial } } Views: {