Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.env
.idea/
.idea/
*__pycache__/
Binary file removed python/__pycache__/rpa.cpython-314.pyc
Binary file not shown.
Binary file removed python/__pycache__/test_rpa.cpython-314.pyc
Binary file not shown.
7 changes: 7 additions & 0 deletions sql/001_script.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-- Criando schemas
DROP SCHEMA IF EXISTS public CASCADE;
DROP SCHEMA IF EXISTS pdca CASCADE;
Expand Down Expand Up @@ -119,10 +119,17 @@
);

-- Schema PDCA
CREATE TABLE IF NOT EXISTS pdca.icone (
id BIGSERIAL PRIMARY KEY,
nome VARCHAR(100) NOT NULL UNIQUE,
url_icone TEXT NOT NULL,

);
CREATE TABLE IF NOT EXISTS pdca.ciclo (
id BIGSERIAL PRIMARY KEY,
id_empresa BIGINT NOT NULL REFERENCES empresa(id) ON DELETE CASCADE,
id_responsavel BIGINT NOT NULL REFERENCES usuario_sistema(id),
id_icone BIGINT REFERENCES pdca.icone(id),
id_ishikawa_mongo UUID,
titulo VARCHAR(160) NOT NULL,
descricao TEXT NOT NULL,
Expand Down
Loading