Migrate to VPS Supabase with steelbook schema
This commit is contained in:
@@ -13,4 +13,7 @@ export const supabase = createClient<Database>(supabaseUrl, supabaseAnonKey, {
|
||||
persistSession: true,
|
||||
autoRefreshToken: true,
|
||||
},
|
||||
db: {
|
||||
schema: 'steelbook',
|
||||
},
|
||||
})
|
||||
|
||||
@@ -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<Database['public']['Tables']['usuarios']['Row'], 'id' | 'created_at'>
|
||||
Update: Partial<Database['public']['Tables']['usuarios']['Insert']>
|
||||
Insert: Omit<Database['steelbook']['Tables']['usuarios']['Row'], 'id' | 'created_at'>
|
||||
Update: Partial<Database['steelbook']['Tables']['usuarios']['Insert']>
|
||||
}
|
||||
clientes: {
|
||||
Row: {
|
||||
@@ -32,8 +32,8 @@ export interface Database {
|
||||
inativado_em: string | null
|
||||
created_at: string
|
||||
}
|
||||
Insert: Omit<Database['public']['Tables']['clientes']['Row'], 'id' | 'created_at'>
|
||||
Update: Partial<Database['public']['Tables']['clientes']['Insert']>
|
||||
Insert: Omit<Database['steelbook']['Tables']['clientes']['Row'], 'id' | 'created_at'>
|
||||
Update: Partial<Database['steelbook']['Tables']['clientes']['Insert']>
|
||||
}
|
||||
templates_topicos: {
|
||||
Row: {
|
||||
@@ -50,8 +50,8 @@ export interface Database {
|
||||
inativado_em: string | null
|
||||
created_at: string
|
||||
}
|
||||
Insert: Omit<Database['public']['Tables']['templates_topicos']['Row'], 'id' | 'created_at'>
|
||||
Update: Partial<Database['public']['Tables']['templates_topicos']['Insert']>
|
||||
Insert: Omit<Database['steelbook']['Tables']['templates_topicos']['Row'], 'id' | 'created_at'>
|
||||
Update: Partial<Database['steelbook']['Tables']['templates_topicos']['Insert']>
|
||||
}
|
||||
templates_customizados: {
|
||||
Row: {
|
||||
@@ -68,8 +68,8 @@ export interface Database {
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
Insert: Omit<Database['public']['Tables']['templates_customizados']['Row'], 'id' | 'created_at' | 'updated_at'>
|
||||
Update: Partial<Database['public']['Tables']['templates_customizados']['Insert']>
|
||||
Insert: Omit<Database['steelbook']['Tables']['templates_customizados']['Row'], 'id' | 'created_at' | 'updated_at'>
|
||||
Update: Partial<Database['steelbook']['Tables']['templates_customizados']['Insert']>
|
||||
}
|
||||
projetos: {
|
||||
Row: {
|
||||
@@ -86,8 +86,8 @@ export interface Database {
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
Insert: Omit<Database['public']['Tables']['projetos']['Row'], 'id' | 'created_at' | 'updated_at'>
|
||||
Update: Partial<Database['public']['Tables']['projetos']['Insert']>
|
||||
Insert: Omit<Database['steelbook']['Tables']['projetos']['Row'], 'id' | 'created_at' | 'updated_at'>
|
||||
Update: Partial<Database['steelbook']['Tables']['projetos']['Insert']>
|
||||
}
|
||||
databooks_mestres: {
|
||||
Row: {
|
||||
@@ -127,8 +127,8 @@ export interface Database {
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
Insert: Omit<Database['public']['Tables']['databooks_mestres']['Row'], 'id' | 'created_at' | 'updated_at'>
|
||||
Update: Partial<Database['public']['Tables']['databooks_mestres']['Insert']>
|
||||
Insert: Omit<Database['steelbook']['Tables']['databooks_mestres']['Row'], 'id' | 'created_at' | 'updated_at'>
|
||||
Update: Partial<Database['steelbook']['Tables']['databooks_mestres']['Insert']>
|
||||
}
|
||||
configuracoes_pastas: {
|
||||
Row: {
|
||||
@@ -152,8 +152,8 @@ export interface Database {
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
Insert: Omit<Database['public']['Tables']['configuracoes_pastas']['Row'], 'id' | 'created_at' | 'updated_at'>
|
||||
Update: Partial<Database['public']['Tables']['configuracoes_pastas']['Insert']>
|
||||
Insert: Omit<Database['steelbook']['Tables']['configuracoes_pastas']['Row'], 'id' | 'created_at' | 'updated_at'>
|
||||
Update: Partial<Database['steelbook']['Tables']['configuracoes_pastas']['Insert']>
|
||||
}
|
||||
design_templates: {
|
||||
Row: {
|
||||
@@ -167,8 +167,8 @@ export interface Database {
|
||||
criado_em: string
|
||||
atualizado_em: string
|
||||
}
|
||||
Insert: Omit<Database['public']['Tables']['design_templates']['Row'], 'id' | 'criado_em' | 'atualizado_em'>
|
||||
Update: Partial<Database['public']['Tables']['design_templates']['Insert']>
|
||||
Insert: Omit<Database['steelbook']['Tables']['design_templates']['Row'], 'id' | 'criado_em' | 'atualizado_em'>
|
||||
Update: Partial<Database['steelbook']['Tables']['design_templates']['Insert']>
|
||||
}
|
||||
databook_design_aplicacoes: {
|
||||
Row: {
|
||||
@@ -183,8 +183,8 @@ export interface Database {
|
||||
aplicado_em: string
|
||||
atualizado_em: string
|
||||
}
|
||||
Insert: Omit<Database['public']['Tables']['databook_design_aplicacoes']['Row'], 'id' | 'aplicado_em' | 'atualizado_em'>
|
||||
Update: Partial<Database['public']['Tables']['databook_design_aplicacoes']['Insert']>
|
||||
Insert: Omit<Database['steelbook']['Tables']['databook_design_aplicacoes']['Row'], 'id' | 'aplicado_em' | 'atualizado_em'>
|
||||
Update: Partial<Database['steelbook']['Tables']['databook_design_aplicacoes']['Insert']>
|
||||
}
|
||||
documentos_auto_indexados: {
|
||||
Row: {
|
||||
@@ -209,8 +209,8 @@ export interface Database {
|
||||
processado_em: string | null
|
||||
criado_em: string
|
||||
}
|
||||
Insert: Omit<Database['public']['Tables']['documentos_auto_indexados']['Row'], 'id' | 'criado_em'>
|
||||
Update: Partial<Database['public']['Tables']['documentos_auto_indexados']['Insert']>
|
||||
Insert: Omit<Database['steelbook']['Tables']['documentos_auto_indexados']['Row'], 'id' | 'criado_em'>
|
||||
Update: Partial<Database['steelbook']['Tables']['documentos_auto_indexados']['Insert']>
|
||||
}
|
||||
categorias: {
|
||||
Row: {
|
||||
@@ -221,8 +221,8 @@ export interface Database {
|
||||
ativo: boolean
|
||||
created_at: string
|
||||
}
|
||||
Insert: Omit<Database['public']['Tables']['categorias']['Row'], 'id' | 'created_at'>
|
||||
Update: Partial<Database['public']['Tables']['categorias']['Insert']>
|
||||
Insert: Omit<Database['steelbook']['Tables']['categorias']['Row'], 'id' | 'created_at'>
|
||||
Update: Partial<Database['steelbook']['Tables']['categorias']['Insert']>
|
||||
}
|
||||
integracao_ia: {
|
||||
Row: {
|
||||
@@ -236,8 +236,8 @@ export interface Database {
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
Insert: Omit<Database['public']['Tables']['integracao_ia']['Row'], 'id' | 'created_at' | 'updated_at'>
|
||||
Update: Partial<Database['public']['Tables']['integracao_ia']['Insert']>
|
||||
Insert: Omit<Database['steelbook']['Tables']['integracao_ia']['Row'], 'id' | 'created_at' | 'updated_at'>
|
||||
Update: Partial<Database['steelbook']['Tables']['integracao_ia']['Insert']>
|
||||
}
|
||||
logs_indexacao: {
|
||||
Row: {
|
||||
@@ -252,8 +252,8 @@ export interface Database {
|
||||
status: 'sucesso' | 'erro' | 'em_andamento'
|
||||
created_at: string
|
||||
}
|
||||
Insert: Omit<Database['public']['Tables']['logs_indexacao']['Row'], 'id' | 'created_at'>
|
||||
Update: Partial<Database['public']['Tables']['logs_indexacao']['Insert']>
|
||||
Insert: Omit<Database['steelbook']['Tables']['logs_indexacao']['Row'], 'id' | 'created_at'>
|
||||
Update: Partial<Database['steelbook']['Tables']['logs_indexacao']['Insert']>
|
||||
}
|
||||
}
|
||||
Views: {
|
||||
|
||||
Reference in New Issue
Block a user