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