Alpha Cell
ALPHA CELL Painel ADM
Ver Loja Online
Total de Pedidos
0
Faturamento Total
R$ 0,00
Em Aberto / Pendentes
0
Concluídos / Entregues
0
ID Data/Hora Cliente & Contato Entrega / Frete Total Peças Status do Pedido Ações

Emitir Nota Fiscal Eletrônica

Documento auxiliar de venda e garantia para o cliente e envio direto no WhatsApp

Informações do Documento Fiscal
Destinatário / Consumidor
Produtos, Peças e Serviços da Nota Fiscal *
Descrição do Produto / Peça / Serviço Qtd Unitário (R$) Subtotal (R$)
Valor Total da Nota:
R$ 0,00
Nota Fiscal Emitida

Cadastrar Celular Seminovo

Preencha as informações do smartphone, fotos, valor e a descrição detalhada para exibir na vitrine da loja.

Preview
Pré-visualização da Foto: Cole um link direto da imagem acima. Se deixar em branco, usará a logo oficial da Alpha Cell.

Script SQL para o Supabase

Copie o script abaixo e cole no SQL Editor do seu painel do Supabase para criar as tabelas com 1 clique:

-- 1. TABELA DE PEDIDOS
create table if not exists pedidos (
  id text primary key,
  data text,
  cliente text,
  telefone text,
  tipo_entrega text,
  endereco text,
  observacoes text,
  itens jsonb,
  total numeric,
  status text,
  created_at timestamp with time zone default timezone('utc'::text, now())
);

-- 2. TABELA DE NOTAS FISCAIS
create table if not exists notas_fiscais (
  id text primary key,
  numero text,
  serie text,
  data text,
  natureza text,
  pedido_ref text,
  cliente jsonb,
  itens jsonb,
  subtotal_itens numeric,
  valor_frete numeric,
  valor_desconto numeric,
  valor_total numeric,
  forma_pagamento text,
  termo_garantia text,
  observacoes text,
  enviado_whatsapp boolean default false,
  created_at timestamp with time zone default timezone('utc'::text, now())
);

-- 3. TABELA DE CELULARES SEMINOVOS
create table if not exists seminovos (
  id text primary key,
  nome text,
  marca text,
  capacidade text,
  saude_bateria text,
  condicao text,
  preco numeric,
  preco_de numeric,
  status text,
  imagem text,
  garantia text,
  descricao text,
  created_at timestamp with time zone default timezone('utc'::text, now())
);

-- Habilitar leitura/escrita publica para aplicacao cliente (ou configure RLS se preferir)
alter table pedidos enable row level security;
alter table notas_fiscais enable row level security;
alter table seminovos enable row level security;

create policy "Public Access Pedidos" on pedidos for all using (true) with check (true);
create policy "Public Access Notas" on notas_fiscais for all using (true) with check (true);
create policy "Public Access Seminovos" on seminovos for all using (true) with check (true);