create table if not exists financas_config (
id int primary key default 1,
salt text,
dados jsonb not null default '{}'::jsonb
);
create table if not exists financas_meses (
ano int not null,
mes int not null,
dados jsonb not null default '{}'::jsonb,
updated_at timestamptz default now(),
primary key (ano, mes)
);
alter table financas_config enable row level security;
alter table financas_meses enable row level security;
create policy "acesso config" on financas_config for all using (true) with check (true);
create policy "acesso meses" on financas_meses for all using (true) with check (true);