From 5b0000b0c06ef99e7b04b1de5e1332e300d9f6f8 Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Fri, 5 Jun 2026 15:50:24 +0000 Subject: [PATCH] =?UTF-8?q?Adiciona=20inicializa=C3=A7=C3=A3o=20de=20tabel?= =?UTF-8?q?as=20musica/historia=20no=20DB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/server.js b/server.js index b2ed64b..bfa016a 100644 --- a/server.js +++ b/server.js @@ -1654,6 +1654,31 @@ async function initDatabase() { poesia TEXT NOT NULL, created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() ); + + -- Músicas (Musicando Ideias) + CREATE TABLE IF NOT EXISTS escola.musicas ( + id UUID PRIMARY KEY DEFAULT gen_random_uuid(), + usuario_id UUID NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000', + faixa_etaria VARCHAR(100) NOT NULL, + estrofes INTEGER NOT NULL, + ritmo VARCHAR(100) NOT NULL, + tema TEXT NOT NULL, + musica TEXT NOT NULL, + created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() + ); + + -- Histórias (Inventando Histórias) + CREATE TABLE IF NOT EXISTS escola.historias ( + id UUID PRIMARY KEY DEFAULT gen_random_uuid(), + usuario_id UUID NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000', + faixa_etaria VARCHAR(100) NOT NULL, + paragrafos INTEGER NOT NULL, + personagens INTEGER NOT NULL, + estilo VARCHAR(100) NOT NULL, + tema TEXT NOT NULL, + historia TEXT NOT NULL, + created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() + ); `); // Garantir que a coluna character_description_english exista na tabela projetos_comics