PASSO 3 — Criar as tabelas via SQL
No menu lateral, clique em SQL Editor, cole o SQL abaixo e clique Run:
create table if not exists coilsdb (coil text primary key, armazem text, bl text, cliente text, navio text, viagem text, produto text, pesob text, pesol text);
create table if not exists records (id bigint primary key, coil text, data text, periodo text, bl text, navio text, veiculo text, motorista text, cliente text, viagem text, produto text, pesob text, pesol text, armazem text, obs text, "registradoEm" text);
create table if not exists expedicoes (id bigint primary key, coil text, data text, periodo text, bl text, navio text, veiculo text, motorista text, cliente text, viagem text, produto text, pesob text, pesol text, armazem text, obs text, "registradoEm" text);
create table if not exists users (id text primary key, nome text, "user" text, pass text, role text, perms text);
create table if not exists navios (nome text primary key);
alter table coilsdb enable row level security;
alter table records enable row level security;
alter table expedicoes enable row level security;
alter table users enable row level security;
alter table navios enable row level security;
create policy "allow all" on coilsdb for all using (true) with check (true);
create policy "allow all" on records for all using (true) with check (true);
create policy "allow all" on expedicoes for all using (true) with check (true);
create policy "allow all" on users for all using (true) with check (true);
create policy "allow all" on navios for all using (true) with check (true);